|
|
@@ -43,6 +43,7 @@ Page({ |
|
|
|
duihuan: imgurl.duihuan.url, |
|
|
|
market: app.globalData.market, |
|
|
|
list: [], |
|
|
|
xslist:[], |
|
|
|
loading: true, |
|
|
|
fistLogin: null, |
|
|
|
alphaData: null, |
|
|
@@ -66,7 +67,11 @@ Page({ |
|
|
|
optionsData: null, |
|
|
|
credit: 0, |
|
|
|
score: '0', |
|
|
|
page: 1 // 刷新进入页面时已经加载了第一页数据,onReachBottom时 page++,从第2页开始加载 |
|
|
|
page: 1 ,// 刷新进入页面时已经加载了第一页数据,onReachBottom时 page++,从第2页开始加载 |
|
|
|
// Ttitle:'', |
|
|
|
// xstitle:null, |
|
|
|
// priceStr:null, |
|
|
|
// salePriceStr:null, |
|
|
|
}, |
|
|
|
close: function() { |
|
|
|
this.setData({ |
|
|
@@ -329,6 +334,7 @@ Page({ |
|
|
|
that.getmemberId(app.globalData.token); |
|
|
|
that.getBannerlist(); |
|
|
|
that.topicShow(); |
|
|
|
that.getxsList(); |
|
|
|
that.getMallInfo(app.globalData.token); |
|
|
|
if (app.couponChannelListCallback) { |
|
|
|
app.couponChannelListCallback(app.globalData.token); |
|
|
@@ -444,6 +450,33 @@ Page({ |
|
|
|
// 不需要错误提示 |
|
|
|
}); |
|
|
|
}, |
|
|
|
//获取限时抢购列表 |
|
|
|
getxsList(){ |
|
|
|
let that = this; |
|
|
|
Http.get({ |
|
|
|
url: config.api.couponChannelList, |
|
|
|
data: { |
|
|
|
pageNum: 1, |
|
|
|
pageSize: 3, |
|
|
|
targetAd: 2 |
|
|
|
} |
|
|
|
}).then(res => { |
|
|
|
if (res && res.data) { |
|
|
|
that.setData({ |
|
|
|
xslist: res.data.list, |
|
|
|
}); |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(err => { |
|
|
|
console.log(err) |
|
|
|
wx.showToast({ |
|
|
|
title: err.errMsg, |
|
|
|
icon: 'none', |
|
|
|
duration: 2000, |
|
|
|
mask: false |
|
|
|
}); |
|
|
|
}) |
|
|
|
}, |
|
|
|
/** |
|
|
|
* banner |
|
|
|
*/ |
|
|
@@ -480,7 +513,7 @@ Page({ |
|
|
|
that.setData({ |
|
|
|
name: res.data.name, |
|
|
|
cover: res.data.cover, |
|
|
|
title: res.data.title, |
|
|
|
Ttitle: res.data.title, |
|
|
|
id: res.data.id, |
|
|
|
showTopic: true |
|
|
|
}) |
|
|
|