...
|
...
|
@@ -125,15 +125,6 @@ Page(Object.assign({ |
|
|
},
|
|
|
|
|
|
/**
|
|
|
* 页面相关事件处理函数--监听用户下拉动作
|
|
|
*/
|
|
|
onPullDownRefresh: function() {
|
|
|
let actId = this.data.activityInfo.activityId;
|
|
|
|
|
|
wx.stopPullDownRefresh();
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
* 页面上拉触底事件的处理函数
|
|
|
*/
|
|
|
onReachBottom: function() {
|
...
|
...
|
@@ -222,6 +213,17 @@ Page(Object.assign({ |
|
|
console.log(res);
|
|
|
if (res.data && res.data.length > 0) {
|
|
|
let result = [];
|
|
|
let helpIndex = 0;
|
|
|
|
|
|
if (res.data[0].helpName && res.data[0].helpheadIco) {
|
|
|
result.push({
|
|
|
helpInfo: '好友"' + res.data[0].helpName + '"已为你助力',
|
|
|
background: helper.imgView(this.data.bgStyle[0], 340, 162, 1),
|
|
|
helpName: res.data[0].helpName,
|
|
|
helpheadIco: res.data[0].helpheadIco
|
|
|
});
|
|
|
helpIndex = 1;
|
|
|
}
|
|
|
|
|
|
res.data.forEach((item, index) => {
|
|
|
if (!item.headIco) {
|
...
|
...
|
@@ -235,7 +237,7 @@ Page(Object.assign({ |
|
|
item.vipLevel = item.vipLevel || 0;
|
|
|
item.vipImage = this.data.vipImage[item.vipLevel];
|
|
|
let bgStyle = this.data.bgStyle;
|
|
|
let bgIndex = index % bgStyle.length;
|
|
|
let bgIndex = (index + helpIndex) % bgStyle.length;
|
|
|
|
|
|
item.background = helper.imgView(bgStyle[bgIndex], 340, 162, 1);
|
|
|
result.push(item);
|
...
|
...
|
|