|
@ -53,6 +53,8 @@ Page({ |
|
|
btnLeft: 0, |
|
|
btnLeft: 0, |
|
|
shouye: {}, |
|
|
shouye: {}, |
|
|
scanBtn: {}, // 扫码签到改为可配置
|
|
|
scanBtn: {}, // 扫码签到改为可配置
|
|
|
|
|
|
applyBtn: {}, // 申请发单按钮改为可配置
|
|
|
|
|
|
tabLeftList: [], // 首页配置按钮+申请发单按钮
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
@ -367,6 +369,35 @@ Page({ |
|
|
}, |
|
|
}, |
|
|
// 获取配置图片
|
|
|
// 获取配置图片
|
|
|
getImgUrl:function (){//0:咨询热线
|
|
|
getImgUrl:function (){//0:咨询热线
|
|
|
|
|
|
let params = { |
|
|
|
|
|
imageTypes: '0, 5, 8, 9' |
|
|
|
|
|
} |
|
|
|
|
|
api.getImgUrlList(params).then(res => { |
|
|
|
|
|
console.log(res.data) |
|
|
|
|
|
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 |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}) |
|
|
|
|
|
return |
|
|
let that = this |
|
|
let that = this |
|
|
api.getImgUrl("0").then(function (res) { |
|
|
api.getImgUrl("0").then(function (res) { |
|
|
that.setData({ |
|
|
that.setData({ |
|
@ -520,11 +551,15 @@ Page({ |
|
|
if (e.currentTarget.dataset.code == 'ptg') { |
|
|
if (e.currentTarget.dataset.code == 'ptg') { |
|
|
wx.navigateTo({ |
|
|
wx.navigateTo({ |
|
|
url: `/subpages/heart/pages/groupBuyList/groupBuyList?title=${e.currentTarget.dataset.title}` |
|
|
url: `/subpages/heart/pages/groupBuyList/groupBuyList?title=${e.currentTarget.dataset.title}` |
|
|
}) |
|
|
}) |
|
|
} else if (e.currentTarget.dataset.code == 'sds') { |
|
|
} else if (e.currentTarget.dataset.code == 'sds') { |
|
|
wx.navigateTo({ |
|
|
wx.navigateTo({ |
|
|
url: `/subpages/heart/pages/dropByList/dropByList?title=${e.currentTarget.dataset.title}` |
|
|
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() |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
//选择志愿者标签筛选
|
|
|
//选择志愿者标签筛选
|
|
@ -609,10 +644,11 @@ Page({ |
|
|
api.moduleCategory(params).then(res => { |
|
|
api.moduleCategory(params).then(res => { |
|
|
console.log('获取模块列表',res.data) |
|
|
console.log('获取模块列表',res.data) |
|
|
res.data.forEach( item => { |
|
|
res.data.forEach( item => { |
|
|
if (item.categoryCode == 'shouye') { |
|
|
if (item.categoryCode == 'shouye') { |
|
|
this.data.shouye = { ...item } |
|
|
this.data.tabLeftList[1] = item |
|
|
this.setData({ |
|
|
this.setData({ |
|
|
shouye: this.data.shouye |
|
|
shouye: item, |
|
|
|
|
|
tabLeftList: this.data.tabLeftList |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|