|
@ -54,6 +54,8 @@ Page({ |
|
|
shouye: {}, |
|
|
shouye: {}, |
|
|
scanBtn: {}, // 扫码签到改为可配置
|
|
|
scanBtn: {}, // 扫码签到改为可配置
|
|
|
applyBtn: {}, // 申请发单按钮改为可配置,
|
|
|
applyBtn: {}, // 申请发单按钮改为可配置,
|
|
|
|
|
|
searchActive: '', //
|
|
|
|
|
|
searchJingcai: '', |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
@ -76,6 +78,7 @@ Page({ |
|
|
timestamp: getTimestamp(), |
|
|
timestamp: getTimestamp(), |
|
|
actType: 0, |
|
|
actType: 0, |
|
|
qkdat: true, |
|
|
qkdat: true, |
|
|
|
|
|
sponsor: this.data.searchActive, |
|
|
selectedTab:this.data.selectedTab |
|
|
selectedTab:this.data.selectedTab |
|
|
} |
|
|
} |
|
|
this.selectComponent("#state-0").getActivityList(parms) |
|
|
this.selectComponent("#state-0").getActivityList(parms) |
|
@ -137,6 +140,7 @@ Page({ |
|
|
timestamp: getTimestamp(), |
|
|
timestamp: getTimestamp(), |
|
|
actType: 0,//活动列表类型(0-招募令,1-精彩活动)
|
|
|
actType: 0,//活动列表类型(0-招募令,1-精彩活动)
|
|
|
qkdat: true, |
|
|
qkdat: true, |
|
|
|
|
|
sponsor: this.data.searchActive, |
|
|
selectedTab:this.data.selectedTab |
|
|
selectedTab:this.data.selectedTab |
|
|
} |
|
|
} |
|
|
this.selectComponent("#state-0").getActivityList(parms) |
|
|
this.selectComponent("#state-0").getActivityList(parms) |
|
@ -156,6 +160,8 @@ Page({ |
|
|
loadMoreVisible: false, |
|
|
loadMoreVisible: false, |
|
|
loadMoreType: "none", |
|
|
loadMoreType: "none", |
|
|
indexPage: 1, |
|
|
indexPage: 1, |
|
|
|
|
|
searchActive: '', |
|
|
|
|
|
searchJingcai: '' |
|
|
}) |
|
|
}) |
|
|
if (e.currentTarget.dataset.tab == "tab0") { |
|
|
if (e.currentTarget.dataset.tab == "tab0") { |
|
|
this.setData({ |
|
|
this.setData({ |
|
@ -168,6 +174,7 @@ Page({ |
|
|
timestamp: getTimestamp(), |
|
|
timestamp: getTimestamp(), |
|
|
actType: 0,//活动列表类型(0-招募令,1-精彩活动)
|
|
|
actType: 0,//活动列表类型(0-招募令,1-精彩活动)
|
|
|
qkdat: true, |
|
|
qkdat: true, |
|
|
|
|
|
sponsor: this.data.searchActive, |
|
|
selectedTab:e.currentTarget.dataset.tab |
|
|
selectedTab:e.currentTarget.dataset.tab |
|
|
} |
|
|
} |
|
|
this.selectComponent("#state-0").getActivityList(parms) |
|
|
this.selectComponent("#state-0").getActivityList(parms) |
|
@ -197,6 +204,7 @@ Page({ |
|
|
timestamp: getTimestamp(), |
|
|
timestamp: getTimestamp(), |
|
|
actType: 1,//活动列表类型(0-招募令,1-精彩活动)
|
|
|
actType: 1,//活动列表类型(0-招募令,1-精彩活动)
|
|
|
qkdat: true, |
|
|
qkdat: true, |
|
|
|
|
|
sponsor: this.data.searchJingcai, |
|
|
selectedTab:e.currentTarget.dataset.tab |
|
|
selectedTab:e.currentTarget.dataset.tab |
|
|
} |
|
|
} |
|
|
this.selectComponent("#state-2").getActivityList(parms) |
|
|
this.selectComponent("#state-2").getActivityList(parms) |
|
@ -223,6 +231,7 @@ Page({ |
|
|
timestamp: getTimestamp(), |
|
|
timestamp: getTimestamp(), |
|
|
actType: 0, |
|
|
actType: 0, |
|
|
actId: this.data.actId, |
|
|
actId: this.data.actId, |
|
|
|
|
|
sponsor: this.data.searchActive, |
|
|
selectedTab:this.data.selectedTab |
|
|
selectedTab:this.data.selectedTab |
|
|
} |
|
|
} |
|
|
this.selectComponent("#state-0").updateActivityList(params) |
|
|
this.selectComponent("#state-0").updateActivityList(params) |
|
@ -233,6 +242,7 @@ Page({ |
|
|
timestamp: getTimestamp(), |
|
|
timestamp: getTimestamp(), |
|
|
actType: 1, |
|
|
actType: 1, |
|
|
actId: this.data.actId, |
|
|
actId: this.data.actId, |
|
|
|
|
|
sponsor: this.data.searchJingcai, |
|
|
selectedTab:this.data.selectedTab |
|
|
selectedTab:this.data.selectedTab |
|
|
} |
|
|
} |
|
|
this.selectComponent("#state-2").updateActivityList(params) |
|
|
this.selectComponent("#state-2").updateActivityList(params) |
|
@ -320,18 +330,43 @@ Page({ |
|
|
} |
|
|
} |
|
|
this.volunteerlist(parms) |
|
|
this.volunteerlist(parms) |
|
|
}, |
|
|
}, |
|
|
/** |
|
|
|
|
|
* 生命周期函数--监听页面隐藏 |
|
|
|
|
|
*/ |
|
|
|
|
|
onHide: function () { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bindInputValueActive (e) { |
|
|
|
|
|
if ((this.data.selectedTab === "tab0")) { |
|
|
|
|
|
this.setData({ |
|
|
|
|
|
searchActive: e.detail.value.trim('') |
|
|
|
|
|
}) |
|
|
|
|
|
} else if (this.data.selectedTab === "tab2") { |
|
|
|
|
|
this.setData({ |
|
|
|
|
|
searchJingcai: e.detail.value.trim('') |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
/** |
|
|
searchActive () { |
|
|
* 生命周期函数--监听页面卸载 |
|
|
if ((this.data.selectedTab === "tab0")) { |
|
|
*/ |
|
|
let params = { |
|
|
onUnload: function () { |
|
|
pageIndex: 1, |
|
|
|
|
|
pageSize: 10, |
|
|
|
|
|
timestamp: getTimestamp(), |
|
|
|
|
|
actType: 0, |
|
|
|
|
|
qkdat: true, |
|
|
|
|
|
sponsor: this.data.searchActive, |
|
|
|
|
|
selectedTab:this.data.selectedTab |
|
|
|
|
|
} |
|
|
|
|
|
this.selectComponent("#state-0").getActivityList(params) |
|
|
|
|
|
} else if (this.data.selectedTab === "tab2") { |
|
|
|
|
|
let params = { |
|
|
|
|
|
pageIndex: 1, |
|
|
|
|
|
pageSize: 10, |
|
|
|
|
|
timestamp: getTimestamp(), |
|
|
|
|
|
actType: 1, |
|
|
|
|
|
qkdat: true, |
|
|
|
|
|
sponsor: this.data.searchJingcai, |
|
|
|
|
|
selectedTab:this.data.selectedTab |
|
|
|
|
|
} |
|
|
|
|
|
this.selectComponent("#state-2").getActivityList(params) |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
@ -390,6 +425,7 @@ Page({ |
|
|
pageSize: this.data.pageSize, |
|
|
pageSize: this.data.pageSize, |
|
|
timestamp: getTimestamp(), |
|
|
timestamp: getTimestamp(), |
|
|
actType: 0, |
|
|
actType: 0, |
|
|
|
|
|
sponsor: this.data.searchActive, |
|
|
selectedTab:this.data.selectedTab |
|
|
selectedTab:this.data.selectedTab |
|
|
} |
|
|
} |
|
|
this.selectComponent("#state-0").getActivityList(parms) |
|
|
this.selectComponent("#state-0").getActivityList(parms) |
|
@ -413,6 +449,7 @@ Page({ |
|
|
pageSize: this.data.pageSize, |
|
|
pageSize: this.data.pageSize, |
|
|
timestamp: getTimestamp(), |
|
|
timestamp: getTimestamp(), |
|
|
actType: 1, |
|
|
actType: 1, |
|
|
|
|
|
sponsor: this.data.searchJingcai, |
|
|
selectedTab:this.data.selectedTab |
|
|
selectedTab:this.data.selectedTab |
|
|
} |
|
|
} |
|
|
this.selectComponent("#state-2").getActivityList(parms) |
|
|
this.selectComponent("#state-2").getActivityList(parms) |
|
|