|
|
@ -26,6 +26,7 @@ Page({ |
|
|
|
preloadVisible: true, |
|
|
|
timeJudge: false,//根据当前时间比较活动结束时间,判断活动是否已经结束,用以判断显示订单多多里面的志愿者
|
|
|
|
defaultGridId:"",//默认网格
|
|
|
|
actType: "" |
|
|
|
}, |
|
|
|
onLoad: function (options) { |
|
|
|
console.log("当前时间" + getTimestamp()) |
|
|
@ -34,6 +35,7 @@ Page({ |
|
|
|
actCurrentState: options.actcurrentstate, |
|
|
|
signupFlag: options.signupflag, |
|
|
|
selectedTab: options.selectedTab, |
|
|
|
actType: options.selectedTab==undefined?'':options.selectedTab=='tab0'?'0':options.selectedTab=='tab2'?'1':'' |
|
|
|
}) |
|
|
|
// this.getDetail();//活动详情
|
|
|
|
// this.clockList();//打卡列表
|
|
|
@ -45,8 +47,12 @@ Page({ |
|
|
|
}, |
|
|
|
// 获取详情信息
|
|
|
|
getDetail () { |
|
|
|
let id = this.data.id |
|
|
|
api.detail(id).then(res => { |
|
|
|
// let id = this.data.id
|
|
|
|
const param = { |
|
|
|
id: this.data.id, |
|
|
|
actType: this.data.actType |
|
|
|
} |
|
|
|
api.detail(param).then(res => { |
|
|
|
if (res.code === 0 && res.msg === "success") { |
|
|
|
this.setData({ |
|
|
|
detail: res.data, |
|
|
|