|
|
@ -102,24 +102,36 @@ |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if(app.globalData.accountType == '0000016&key' && app.globalData.h5code){ |
|
|
|
// 从分享页进来 |
|
|
|
|
|
|
|
if (app.globalData.accountType == '0000016&key' && app.globalData.h5code) { |
|
|
|
let value = uni.getStorageSync('goUrl'); |
|
|
|
let value = uni.getStorageSync('goUrl'); |
|
|
|
/* /physical-merchants/classify/goodsDetail/goodsDetail?goodsId=35#/ */ |
|
|
|
/* /physical-merchants/classify/goodsDetail/goodsDetail?goodsId=35#/ */ |
|
|
|
value = value.slice(0,value.lastIndexOf("#")); |
|
|
|
value = value.slice(0, value.lastIndexOf("#")); |
|
|
|
|
|
|
|
|
|
|
|
if(value == "/pages/tabBar/home/home" || value == "/pages/tabBar/category/category" || value == "/pages/tabBar/user/user"){ |
|
|
|
|
|
|
|
uni.reLaunch({ |
|
|
|
if (value == "/pages/tabBar/home/home" || value == "/pages/tabBar/category/category" || value == |
|
|
|
|
|
|
|
"/pages/tabBar/user/user") { |
|
|
|
|
|
|
|
uni.switchTab({ |
|
|
|
url: value |
|
|
|
url: value |
|
|
|
}) |
|
|
|
}) |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (value == "/") { |
|
|
|
|
|
|
|
uni.switchTab({ |
|
|
|
|
|
|
|
url: '../tabBar/home/home' |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
uni.reLaunch({ |
|
|
|
|
|
|
|
|
|
|
|
uni.navigateTo({ |
|
|
|
url: value |
|
|
|
url: value |
|
|
|
}) |
|
|
|
}) |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
uni.switchTab({ |
|
|
|
uni.switchTab({ |
|
|
|