|
@@ -60,7 +60,7 @@
|
60
|
60
|
v-for="(item, index) in activityList"
|
61
|
61
|
:key="index"
|
62
|
62
|
>
|
63
|
|
- <div class="main">
|
|
63
|
+ <div class="main" @click="goDetail(item)">
|
64
|
64
|
<my-image
|
65
|
65
|
class="goods__img"
|
66
|
66
|
:src="item.brandLogo"
|
|
@@ -80,9 +80,9 @@
|
80
|
80
|
}}
|
81
|
81
|
</div>
|
82
|
82
|
<div class="goods__sale flex">
|
83
|
|
- <span> 308款 </span>
|
|
83
|
+ <span> {{ item.onlineProductCount }}款 </span>
|
84
|
84
|
|
85
|
|
- <span> 最多赚:18 </span>
|
|
85
|
+ <span> 最多赚:{{item.maxCommission / 100}} </span>
|
86
|
86
|
</div>
|
87
|
87
|
</div>
|
88
|
88
|
<!-- <div
|
|
@@ -168,6 +168,7 @@
|
168
|
168
|
|
169
|
169
|
<script>
|
170
|
170
|
import MyImage from "../../components/image/index";
|
|
171
|
+import plugin from "../../common/js/plugin";
|
171
|
172
|
export default {
|
172
|
173
|
name: "",
|
173
|
174
|
components: { MyImage },
|
|
@@ -204,7 +205,7 @@ export default {
|
204
|
205
|
let quarter = month * 3;
|
205
|
206
|
let year = quarter * 12;
|
206
|
207
|
if (mius < 0) {
|
207
|
|
- return `结束时间:${this.fn.dateFormat(
|
|
208
|
+ return `结束时间:${plugin.dateFormat(
|
208
|
209
|
dateStr,
|
209
|
210
|
"MM-dd hh:mm"
|
210
|
211
|
)}`;
|
|
@@ -217,7 +218,7 @@ export default {
|
217
|
218
|
} else if (mius < month) {
|
218
|
219
|
return `距结束还有${Math.floor(mius / day)}天`;
|
219
|
220
|
} else if (mius < quarter) {
|
220
|
|
- return `结束时间:${this.fn.dateFormat(
|
|
221
|
+ return `结束时间:${plugin.dateFormat(
|
221
|
222
|
dateStr,
|
222
|
223
|
"MM-dd hh:mm"
|
223
|
224
|
)}`;
|
|
@@ -239,17 +240,6 @@ export default {
|
239
|
240
|
this.getActivityList();
|
240
|
241
|
},
|
241
|
242
|
|
242
|
|
- onShareAppMessage() {
|
243
|
|
- // const self = this;
|
244
|
|
- // let obj = {
|
245
|
|
- // ...self.$mp.query,
|
246
|
|
- // storeId: self.$store.state.common.storeId,
|
247
|
|
- // };
|
248
|
|
- // return {
|
249
|
|
- // path: self.router.getPath(self.$mp.page.route, obj),
|
250
|
|
- // };
|
251
|
|
- },
|
252
|
|
-
|
253
|
243
|
// 函数
|
254
|
244
|
methods: {
|
255
|
245
|
// 获取店铺信息
|
|
@@ -269,11 +259,7 @@ export default {
|
269
|
259
|
|
270
|
260
|
// 获取商品分类
|
271
|
261
|
getClassify() {
|
272
|
|
- uni.showLoading({
|
273
|
|
- title: "加载中...",
|
274
|
|
- });
|
275
|
262
|
this.api.get("/Yx/GetCategoryList", {}).then((res) => {
|
276
|
|
- uni.hideLoading();
|
277
|
263
|
this.classifyList = res.data;
|
278
|
264
|
});
|
279
|
265
|
},
|
|
@@ -433,6 +419,16 @@ export default {
|
433
|
419
|
this.searchVal = "";
|
434
|
420
|
this.getActivityList();
|
435
|
421
|
},
|
|
422
|
+
|
|
423
|
+ // 去详情
|
|
424
|
+ goDetail(val){
|
|
425
|
+ this.router.push({
|
|
426
|
+ path:'/pages/youxuan/good',
|
|
427
|
+ query:{
|
|
428
|
+ aid:val.aid
|
|
429
|
+ }
|
|
430
|
+ })
|
|
431
|
+ },
|
436
|
432
|
},
|
437
|
433
|
|
438
|
434
|
// 数据计算
|