Commit dcb9cce8 authored by 肖健's avatar 肖健

修复跳转问题

parent c4a153b6
...@@ -11,15 +11,16 @@ export function goToLocation(item) { ...@@ -11,15 +11,16 @@ export function goToLocation(item) {
let token = uni.getStorageSync('userToken') let token = uni.getStorageSync('userToken')
if (!token) { if (!token) {
uni.setStorageSync('jdNavToObj', item) uni.setStorageSync('jdNavToObj', item)
let returnPage= '/pages/main';
let pageType = "reLaunch"
uni.navigateTo({ uni.navigateTo({
url: '/pages/login/index/index' url:"/pages/login/index/index?returnPage="+returnPage+'&pageType='+pageType
}) })
return return
} }
let url
//H5链接,判断链接是否设置 //H5链接,判断链接是否设置
if(item.busType == 1 && item.link){ if(item.busType == 1 && item.link){
util.navigateToH5({page:url}) util.navigateToH5({page:item.link})
} }
//小程序链接,需要判断链接和appId是否都设置 //小程序链接,需要判断链接和appId是否都设置
if(item.busType == 2 && item.appId != null && item.link){ if(item.busType == 2 && item.appId != null && item.link){
......
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