Commit 1506eed7 authored by liwei's avatar liwei

修改了查看会员详情页面的判断

parent b2bb1b28
......@@ -175,9 +175,20 @@
},
//查看会员详情
gotoUserDetail(item){
uni.navigateTo({
url: '/pagesUser/userInfo?memberId='+item.businessId
})
//没登录 不能查看会员详情
const token = uni.getStorageSync('token')
if (token == null || token == '' || token == undefined){
//没登录 提示请先登录
uni.showToast({
title: '请先登录',
icon: 'none',
duration: 1000
})
} else {
uni.navigateTo({
url: '/pagesUser/userInfo?memberId='+item.businessId
})
}
},
},
};
......
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