Browse Source

no message

feature/v2.2
xpz2018 4 years ago
parent
commit
c08661bcfb
1 changed files with 12 additions and 12 deletions
  1. 24
      pages/login/index.js

24
pages/login/index.js

@ -25,7 +25,7 @@ Page({
loging: false,
regist: false,
metaData: null,
url: null,
path: null,
code: null
// code: '?mark=ztb_saas&QrCodeRecordId=597399780326510592'
},
@ -40,9 +40,9 @@ Page({
//分享进入
this.data.code = '?mark=ztb_saas&QrCodeRecordId=' + options.qrcode
} else if (options.url) {
this.data.url = options.url
this.data.path = options.url
if (options.key && options.value) {
this.data.url += '?' + options.key + '=' + options.value
this.data.path += '?' + options.key + '=' + options.value
}
}
app.globalData.token = app.globalData.token || storage.get('Authorization')
@ -91,18 +91,18 @@ Page({
storage.put('X-FACTORY-ID' + app.userInfo.userId, factoryId)
}
}
if(factoryId){
app.userInfo.factoryId = factoryId
headerFactoryId(app.userInfo.factoryId)
if(this.data.url) {
wx.redirectTo({ url: '/pages/index/index?url=' + this.data.url })
} else {
wx.redirectTo({ url: '/pages/index/index' })
}
} else {
if(!factoryId){
this.setData({ loging: false})
Dialog.alert({ title: '温馨提示', message: '还没有您所属的打包站信息,请联系相关客服人员' }).then(() => {
})
return
}
app.userInfo.factoryId = factoryId
headerFactoryId(app.userInfo.factoryId)
if(this.data.path) {
wx.redirectTo({ url: '/pages/index/index?url=' + this.data.path })
} else {
wx.redirectTo({ url: '/pages/index/index' })
}
},
contactMeta: function(metaData){

Loading…
Cancel
Save