parent
242f9323e6
commit
d80c896a75
|
|
@ -156,23 +156,44 @@
|
||||||
},
|
},
|
||||||
// 页面跳转
|
// 页面跳转
|
||||||
goToPage(path){
|
goToPage(path){
|
||||||
// 判断:如果是分享海报 判断是否转正
|
// 判断:是否转正
|
||||||
// if(path === '/pages/users/user_cash/index' && this.userInfo.is_formal != 1){
|
if(path === '/pages/users/user_cash/index'){
|
||||||
if(path === '/pages/users/user_spread_code/index' && this.userInfo.is_formal != 1){
|
// if(path === '/pages/users/user_spread_code/index'){
|
||||||
uni.showModal({
|
// 普通等级 需要先升级
|
||||||
title: '提示',
|
let brokerageLevel = this.userInfo.brokerage.brokerage_level || 0;
|
||||||
content: '未转正,无操作权限!',
|
if(Number(brokerageLevel) <= 0){
|
||||||
cancelText: '取消',
|
uni.showModal({
|
||||||
confirmText: '申请转正',
|
title: '提示',
|
||||||
success: function(res) {
|
content: '请先升级成为零风险代销商!',
|
||||||
if (res.confirm) {
|
cancelText: '取消',
|
||||||
uni.navigateTo({
|
confirmText: '去申请',
|
||||||
url: '/pages/users/user_spread_user/formal'
|
success: function(res) {
|
||||||
})
|
if (res.confirm) {
|
||||||
|
uni.switchTab({
|
||||||
|
url: '/pages/index/index'
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
});
|
return false;
|
||||||
return false;
|
}
|
||||||
|
// 未转正 提示转正
|
||||||
|
if(this.userInfo.is_formal != 1){
|
||||||
|
uni.showModal({
|
||||||
|
title: '提示',
|
||||||
|
content: '未转正,无操作权限!',
|
||||||
|
cancelText: '取消',
|
||||||
|
confirmText: '申请转正',
|
||||||
|
success: function(res) {
|
||||||
|
if (res.confirm) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/users/user_spread_user/formal'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// 页面跳转
|
// 页面跳转
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue