|
@ -58,6 +58,7 @@ Page({ |
|
|
gid: "", // indexNew
|
|
|
gid: "", // indexNew
|
|
|
isVolunteer: false, // 通过接口获取判断是否已注册过志愿者
|
|
|
isVolunteer: false, // 通过接口获取判断是否已注册过志愿者
|
|
|
defaultGridId: '', // 默认网格id 用于默认注册未注册的用户
|
|
|
defaultGridId: '', // 默认网格id 用于默认注册未注册的用户
|
|
|
|
|
|
detailId: '', // 通过分享进入 团购详情的id
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
@ -571,16 +572,16 @@ Page({ |
|
|
//2021.04.07 志愿者独立小程序 indexNew
|
|
|
//2021.04.07 志愿者独立小程序 indexNew
|
|
|
indexNew (options) { |
|
|
indexNew (options) { |
|
|
this.getResidentConfig() |
|
|
this.getResidentConfig() |
|
|
// if (options.shareType) {
|
|
|
if (options.shareType) { |
|
|
// const para = {
|
|
|
const para = { |
|
|
// shareType: options.shareType,
|
|
|
shareType: options.shareType, |
|
|
// id: options.id,
|
|
|
// id: options.id,
|
|
|
// detailId: options.detailId,
|
|
|
detailId: options.detailId, |
|
|
// type: options.type ? options.type : "",
|
|
|
// type: options.type ? options.type : "",
|
|
|
// defaultGridId: options.defaultGridId ? options.defaultGridId : "",
|
|
|
// defaultGridId: options.defaultGridId ? options.defaultGridId : "",
|
|
|
// }
|
|
|
} |
|
|
// wx.setStorageSync("shareObj", JSON.stringify(para))
|
|
|
wx.setStorageSync("shareObj", JSON.stringify(para)) |
|
|
// }
|
|
|
} |
|
|
// if (options.scene) {
|
|
|
// if (options.scene) {
|
|
|
// if (options.scene == 'module_ma_code_zyzqn' || options.scene == 'module_ma_code_lbzx') {
|
|
|
// if (options.scene == 'module_ma_code_zyzqn' || options.scene == 'module_ma_code_lbzx') {
|
|
|
// this.setData({
|
|
|
// this.setData({
|
|
@ -670,19 +671,24 @@ Page({ |
|
|
// } else if (that.data.sceneFrom == 'module_ma_code_lbzx') {
|
|
|
// } else if (that.data.sceneFrom == 'module_ma_code_lbzx') {
|
|
|
// //that.toLaoBingZaiXian(1)
|
|
|
// //that.toLaoBingZaiXian(1)
|
|
|
// }
|
|
|
// }
|
|
|
// if (wx.getStorageSync("shareObj")) {
|
|
|
if (wx.getStorageSync("shareObj")) { |
|
|
// const para = JSON.parse(wx.getStorageSync("shareObj"))
|
|
|
const para = JSON.parse(wx.getStorageSync("shareObj")) |
|
|
// if (para.shareType === "heartDetail") {
|
|
|
// if (para.shareType === "heartDetail") {
|
|
|
// wx.navigateTo({
|
|
|
// wx.navigateTo({
|
|
|
// url: `/subpages/heart/pages/heartDetail/heartDetail?id=${para.id}`
|
|
|
// url: `/subpages/heart/pages/heartDetail/heartDetail?id=${para.id}`
|
|
|
// })
|
|
|
// })
|
|
|
// } else if (para.shareType === 'newsDetail') {
|
|
|
// } else if (para.shareType === 'newsDetail') {
|
|
|
// wx.navigateTo({
|
|
|
// wx.navigateTo({
|
|
|
// url: `/subpages/home/pages/newsDetail/newsDetail?id=${para.detailId}`
|
|
|
// url: `/subpages/home/pages/newsDetail/newsDetail?id=${para.detailId}`
|
|
|
// })
|
|
|
// })
|
|
|
// }
|
|
|
// }
|
|
|
// wx.removeStorageSync("shareObj")
|
|
|
if (para.shareType === 'groupBuyDetail') { |
|
|
// }
|
|
|
wx.navigateTo({ |
|
|
|
|
|
url: `/subpages/heart/pages/groupBuyDetail/groupBuyDetail?id=${para.detailId}` |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
wx.removeStorageSync("shareObj") |
|
|
|
|
|
} |
|
|
that.onLoadConfig() |
|
|
that.onLoadConfig() |
|
|
} |
|
|
} |
|
|
// }
|
|
|
// }
|
|
@ -721,7 +727,7 @@ Page({ |
|
|
app.globalData.infoCompleted = state |
|
|
app.globalData.infoCompleted = state |
|
|
wx.removeStorageSync("token") |
|
|
wx.removeStorageSync("token") |
|
|
wx.setStorageSync("token", res.data.token) |
|
|
wx.setStorageSync("token", res.data.token) |
|
|
that.onLoadConfig() |
|
|
that.getUserState() |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|