优化:转正申请提示 由生成海报按钮修改到提现按钮

添加:用户分销等级为默认等级时 禁止提现,需要升级后才能申请
This commit is contained in:
wuhui_zzw 2024-05-29 10:15:31 +08:00
parent 242f9323e6
commit d80c896a75
1 changed files with 37 additions and 16 deletions

View File

@ -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({