Merge pull request 'gdpao' (#137) from gyh into master

Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/137
This commit was merged in pull request #137.
This commit is contained in:
gyh
2020-08-09 11:33:25 +08:00
12 changed files with 385 additions and 20 deletions

View File

@@ -145,6 +145,8 @@
image: item.adv_code,
adv_link: item.adv_link,
adv_id: item.adv_id,
info_id: item.info_id,
url_type: item.url_type,
})
})
this.list = temp;
@@ -181,9 +183,33 @@
})
},
clickImage(index) {
console.log(index);
console.log(this.list[index]);
// console.log(this.list[index]);
let item = this.list[index];
this.activityLink({
type: item.url_type,
id: item.info_id,
});
},
activityLink({
type,
id
}) {
console.log(type,id);
if (type == 0) return false;
// type 1 商品详情页, 2 店铺详情页
const url = type == 1 ? 'pageB/sdetails/index' : 'pageC/merchant/index';
let params = {
id: id
};
// type: 1 // 商品详情 1普通 2拼团 3秒杀 4优惠券
if (type == 1) Object.assign(params, {
type: 1
});
this.$u.route({
url: url,
params: params
})
},
// 下拉加载更多推荐商品
onreachBottom() {
this.$refs.recommendGoods.loadMore();