Commit 62068d95 authored by liwei's avatar liwei

修改了登录

parent 10b3f25b
......@@ -2,19 +2,9 @@
export default {
onLaunch: function(option) {
console.log("进入App.vue页面 "+option.path)
if (uni.getStorageSync('itemobj')) {
uni.switchTab({
url: '/pages/tab/index'
});
} else {
if (option.path!= "pageslike/like/userInfo") {
console.log("分享用户标识失败,跳转登录页")
console.log(uni.getStorageSync('usershare'))
uni.reLaunch({
url: '/pageslogin/index/index'
});
}
}
uni.switchTab({
url: '/pages/tab/index'
});
},
onShow: function() {
......
This diff is collapsed.
This diff is collapsed.
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