|
|
|
@ -24,9 +24,9 @@ Page({ |
|
|
|
countDownSecond: 0, |
|
|
|
countdownSec: 0, |
|
|
|
//根据状态切换样式
|
|
|
|
grounpInfo: "block", |
|
|
|
grounpInfo: "none", |
|
|
|
grounpInfo2: "none", |
|
|
|
one_content: "block", |
|
|
|
one_content: "none", |
|
|
|
two_content: "none", |
|
|
|
bottomBGColor: '#F36619', |
|
|
|
buttomText: '我要开团', |
|
|
|
@ -122,14 +122,14 @@ Page({ |
|
|
|
activityDetail: data.response, |
|
|
|
activityNo: data.response.activityNo, |
|
|
|
groupNo: data.response.groupNo == undefined ? that.data.groupNo : data.response.groupNo, |
|
|
|
memberList: data.response.memberList, |
|
|
|
memberList: data.response.memberList == undefined ? [] : data.response.memberList, |
|
|
|
groupStatus: data.response.status, |
|
|
|
currentMemberType: data.response.currentMemberType == undefined ? -1 : data.response.currentMemberType, |
|
|
|
currentMemberType: that.data.currentMemberType == undefined ? -1 : data.response.currentMemberType, |
|
|
|
countdownSec: data.response.countdownSec, |
|
|
|
}); |
|
|
|
let activityContent = data.response.activityContent; |
|
|
|
WxParse.wxParse('activityContent', 'html', activityContent, that); |
|
|
|
console.log("currentMemberType:" + that.data.groupNo + "status:" + that.data.groupStatus); |
|
|
|
console.log("currentMemberType:" + data.response.currentMemberType + "&&status:" + that.data.groupStatus + "&&groupNo" + that.data.groupNo); |
|
|
|
//根据状态切换样式
|
|
|
|
if (that.data.groupNo !=""){ |
|
|
|
//开团后页面变化
|
|
|
|
@ -148,7 +148,7 @@ Page({ |
|
|
|
that.setData({ |
|
|
|
one_content: "none", |
|
|
|
two_content: "block", |
|
|
|
buttomText: '我要开团', |
|
|
|
buttomText: '参与拼团', |
|
|
|
}); |
|
|
|
} else if (that.data.currentMemberType == 0 || that.data.currentMemberType == 10){ |
|
|
|
//发起人和邀请人
|
|
|
|
@ -167,7 +167,7 @@ Page({ |
|
|
|
one_content: "block", |
|
|
|
two_content: "none", |
|
|
|
bottomBGColor: '#F36619', |
|
|
|
buttomText: '我要开团', |
|
|
|
buttomText: '团', |
|
|
|
grounpInfo: "none", |
|
|
|
grounpInfo2: "block", |
|
|
|
|
|
|
|
@ -214,8 +214,10 @@ Page({ |
|
|
|
} |
|
|
|
|
|
|
|
}else{ |
|
|
|
that.countActivityTime(data.response.countdownSec); |
|
|
|
that.setData({ |
|
|
|
grounpInfo: "none", |
|
|
|
one_content: "block", |
|
|
|
grounpInfo: "none", |
|
|
|
grounpInfo2: "none", |
|
|
|
}); |
|
|
|
} |
|
|
|
@ -542,7 +544,7 @@ Page({ |
|
|
|
return { |
|
|
|
title: '1号家政', |
|
|
|
imageUrl: this.data.qrImageUrl, |
|
|
|
path: '/pages/index/index', |
|
|
|
path: '/pages/activity_detail/activity_detail?activityNo=' + this.data.activityNo + '&groupNo=' + this.data.groupNo, |
|
|
|
}; |
|
|
|
}, |
|
|
|
}) |