...
|
...
|
@@ -212,10 +212,6 @@ Page({ |
|
|
homelist: currentData.data,
|
|
|
})
|
|
|
}
|
|
|
console.log('==============楼层数据===============');
|
|
|
console.log(this.data.homelist);
|
|
|
console.log('====================================');
|
|
|
|
|
|
this.fetchRecommend(force);
|
|
|
},
|
|
|
|
...
|
...
|
@@ -250,9 +246,6 @@ Page({ |
|
|
|
|
|
homeService.getProductlist(param)
|
|
|
.then(json => {
|
|
|
console.log('==============商品数据===============');
|
|
|
console.log(json);
|
|
|
console.log('====================================');
|
|
|
if (!json || !json.code || json.code != 200) {
|
|
|
let currentChannel = this.data.selectedChannel;
|
|
|
let currentChannelData = this.data.newChannels[currentChannel];
|
...
|
...
|
@@ -449,12 +442,11 @@ Page({ |
|
|
},
|
|
|
|
|
|
jumpByRuleEvent(event) {
|
|
|
let url = event.detail.currentTarget.dataset.jump_rule;
|
|
|
console.log('==========jumpByRuleEvent===========');
|
|
|
console.log(event.detail);
|
|
|
console.log(url);
|
|
|
console.log('====================================');
|
|
|
|
|
|
let dataset = event.currentTarget.dataset;
|
|
|
if (Object.keys(dataset).length === 0) {
|
|
|
dataset = event.detail.currentTarget.dataset;
|
|
|
}
|
|
|
let url = dataset.jump_rule;
|
|
|
router.goUrl(url);
|
|
|
},
|
|
|
|
...
|
...
|
|