From d80c896a75de3a99ba18efd1ad70c8442c6352e2 Mon Sep 17 00:00:00 2001 From: wuhui_zzw <1760308791@qq.com> Date: Wed, 29 May 2024 10:15:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=9A=E8=BD=AC=E6=AD=A3?= =?UTF-8?q?=E7=94=B3=E8=AF=B7=E6=8F=90=E7=A4=BA=20=E7=94=B1=E7=94=9F?= =?UTF-8?q?=E6=88=90=E6=B5=B7=E6=8A=A5=E6=8C=89=E9=92=AE=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=88=B0=E6=8F=90=E7=8E=B0=E6=8C=89=E9=92=AE=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=EF=BC=9A=E7=94=A8=E6=88=B7=E5=88=86=E9=94=80=E7=AD=89?= =?UTF-8?q?=E7=BA=A7=E4=B8=BA=E9=BB=98=E8=AE=A4=E7=AD=89=E7=BA=A7=E6=97=B6?= =?UTF-8?q?=20=E7=A6=81=E6=AD=A2=E6=8F=90=E7=8E=B0=EF=BC=8C=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E5=8D=87=E7=BA=A7=E5=90=8E=E6=89=8D=E8=83=BD=E7=94=B3?= =?UTF-8?q?=E8=AF=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/users/user_spread_user/index.vue | 53 ++++++++++++++++++-------- 1 file changed, 37 insertions(+), 16 deletions(-) diff --git a/pages/users/user_spread_user/index.vue b/pages/users/user_spread_user/index.vue index 9fc1f53..76e4de1 100644 --- a/pages/users/user_spread_user/index.vue +++ b/pages/users/user_spread_user/index.vue @@ -156,23 +156,44 @@ }, // 页面跳转 goToPage(path){ - // 判断:如果是分享海报 判断是否转正 - // if(path === '/pages/users/user_cash/index' && this.userInfo.is_formal != 1){ - if(path === '/pages/users/user_spread_code/index' && 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' - }) + // 判断:是否转正 + if(path === '/pages/users/user_cash/index'){ + // if(path === '/pages/users/user_spread_code/index'){ + // 普通等级 需要先升级 + let brokerageLevel = this.userInfo.brokerage.brokerage_level || 0; + if(Number(brokerageLevel) <= 0){ + uni.showModal({ + title: '提示', + content: '请先升级成为零风险代销商!', + cancelText: '取消', + confirmText: '去申请', + 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({