Commit d46ecc72 by 高淑倩

add: scene

parent f6a05cc3
...@@ -239,12 +239,21 @@ wxService.page({ ...@@ -239,12 +239,21 @@ wxService.page({
// 登录接口返回err // 登录接口返回err
const reLoginErrFlag = wx.getStorageSync('reLoginErr') const reLoginErrFlag = wx.getStorageSync('reLoginErr')
const baseUserInfo = wx.getStorageSync('_baseUserInfo') const baseUserInfo = wx.getStorageSync('_baseUserInfo')
const { id } = this.options let id
if (baseUserInfo && !reLoginErrFlag){ if (baseUserInfo && !reLoginErrFlag){
this.setData({ this.setData({
isAuthorization: false isAuthorization: false
},()=>{ },()=>{
const option = this.options || {}
const { scene } = option
if (scene) {
let idParam = decodeURIComponent(scene).split('&')[0]
let shareId = idParam && idParam.split('=')[1] || 0
id = shareId
} else {
id = option.id
}
if (id) { if (id) {
this.setData({ this.setData({
id id
...@@ -266,16 +275,6 @@ wxService.page({ ...@@ -266,16 +275,6 @@ wxService.page({
isAuthorization: true isAuthorization: true
}) })
} }
// if (id) {
// this.setData({
// id
// }, () => {
// this.getPointDetail(id)
// })
// }
// // 隐藏 dialog
// this.isShowDialog(false)
}, },
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment