|
|
@ -61,6 +61,8 @@ Page({ |
|
|
|
detailId: '', // 通过分享进入 团购详情的id
|
|
|
|
scanBtn: {}, // 扫码签到改为可配置
|
|
|
|
shouye: {}, |
|
|
|
applyBtn: {}, // 申请发单改为可配置
|
|
|
|
tabLeftList: [], |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
@ -372,26 +374,33 @@ Page({ |
|
|
|
}, |
|
|
|
// 获取配置图片
|
|
|
|
getImgUrl:function (){//0:咨询热线
|
|
|
|
let that = this |
|
|
|
api.getImgUrl("0").then(function (res) { |
|
|
|
that.setData({ |
|
|
|
getImgUrl: res.data[0] |
|
|
|
}) |
|
|
|
}) |
|
|
|
// 2021.05.08
|
|
|
|
api.getImgUrl("5").then(function (res) { |
|
|
|
that.setData({ |
|
|
|
tabRightList: res.data |
|
|
|
}) |
|
|
|
}) |
|
|
|
// 扫码签到按钮
|
|
|
|
api.getImgUrl("8").then(function (res) { |
|
|
|
let params = { |
|
|
|
imageTypes: '0, 5, 8, 9' |
|
|
|
} |
|
|
|
api.getImgUrlList(params).then(res => { |
|
|
|
console.log(res.data) |
|
|
|
if (res.data.length > 0) { |
|
|
|
that.setData({ |
|
|
|
scanBtn: res.data[0] |
|
|
|
}) |
|
|
|
} |
|
|
|
this.data.tabRightList = [] |
|
|
|
res.data.forEach( item => { |
|
|
|
if (item.imgType == '0') { |
|
|
|
this.setData({ |
|
|
|
getImgUrl: item |
|
|
|
}) |
|
|
|
} else if (item.imgType == '5') { |
|
|
|
this.data.tabRightList.push(item) |
|
|
|
this.setData({ |
|
|
|
tabRightList: this.data.tabRightList |
|
|
|
}) |
|
|
|
} else if (item.imgType == '8') { |
|
|
|
this.setData({ |
|
|
|
scanBtn: item |
|
|
|
}) |
|
|
|
} else if (item.imgType == '9') { |
|
|
|
this.data.tabLeftList[0] = item |
|
|
|
this.setData({ |
|
|
|
tabLeftList: this.data.tabLeftList |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
/** |
|
|
@ -530,6 +539,10 @@ Page({ |
|
|
|
wx.navigateTo({ |
|
|
|
url: `/subpages/heart/pages/dropByList/dropByList?title=${e.currentTarget.dataset.title}` |
|
|
|
}) |
|
|
|
} else if (e.currentTarget.dataset.code == 'volunteer_sqfd') { |
|
|
|
this.myApply() |
|
|
|
} else if (e.currentTarget.dataset.code == 'shouye') { |
|
|
|
this.toShouye() |
|
|
|
} |
|
|
|
}, |
|
|
|
//选择志愿者标签筛选
|
|
|
@ -772,10 +785,11 @@ Page({ |
|
|
|
api.moduleCategory(params).then(res => { |
|
|
|
console.log('获取模块列表',res.data) |
|
|
|
res.data.forEach( item => { |
|
|
|
if (item.categoryCode == 'shouye') { |
|
|
|
this.data.shouye = { ...item } |
|
|
|
if (item.categoryCode == 'shouye') { |
|
|
|
this.data.tabLeftList[1] = item |
|
|
|
this.setData({ |
|
|
|
shouye: this.data.shouye |
|
|
|
shouye: item, |
|
|
|
tabLeftList: this.data.tabLeftList |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|