Commit 19bfd989 by 赵雅纹

Merge branch 'feature-zyw' into 'dev'

Feature zyw

See merge request !25
parents e0b489a6 10912668
...@@ -23,7 +23,8 @@ wxService.page({ ...@@ -23,7 +23,8 @@ wxService.page({
couponNum: 0, couponNum: 0,
// isAllScreen: fullSucreen.isAllScreen // isAllScreen: fullSucreen.isAllScreen
isAllScreen: config.isAllScreen, isAllScreen: config.isAllScreen,
token:'' token:'',
isAuthorization: false
}, },
/** /**
...@@ -112,23 +113,29 @@ wxService.page({ ...@@ -112,23 +113,29 @@ wxService.page({
// 获取当前帐号信息 // 获取当前帐号信息
const accountInfo = utils.getAccountInfo() const accountInfo = utils.getAccountInfo()
// 是当前小程序 直接跳转 // 是当前小程序 直接跳转
if(accountInfo.miniProgram.appId == appid){ if (wx.getStorageSync('_baseUserInfo')){
wxService.router(`${path}`) if(accountInfo.miniProgram.appId == appid){
} else { wxService.router(`${path}`)
// 跳转其他小程序 } else {
wx.navigateToMiniProgram({ // 跳转其他小程序
appId: appid, wx.navigateToMiniProgram({
path: `${path}`, appId: appid,
success: e => { path: `${path}`,
console.log(e) success: e => {
}, console.log(e)
fail: e => { },
console.log(e) fail: e => {
}, console.log(e)
complete: e => { },
console.log(e) complete: e => {
}, console.log(e)
}) },
})
}
}else{
this.setData({
isAuthorization: true
})
} }
} }
}, },
......
...@@ -27,3 +27,5 @@ ...@@ -27,3 +27,5 @@
</view> </view>
</block> </block>
</view> </view>
<authorization-modal isAuthorization='{{isAuthorization}}'/>
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