From 2b1531a213a914f0d235affbc5997df61e584c61 Mon Sep 17 00:00:00 2001 From: wuhui_zzw <1760308791@qq.com> Date: Fri, 12 Jul 2024 15:09:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=9A=E5=95=86=E6=88=B7?= =?UTF-8?q?=E7=99=BB=E5=BD=95=20=E5=8C=BA=E5=88=86=E5=95=86=E6=88=B7?= =?UTF-8?q?=E7=B1=BB=E5=88=AB=20=E7=A6=81=E6=AD=A2=E8=B7=A8=E7=B1=BB?= =?UTF-8?q?=E5=88=AB=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/admin/business/login.vue | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/pages/admin/business/login.vue b/pages/admin/business/login.vue index 80e7024..f7bad29 100644 --- a/pages/admin/business/login.vue +++ b/pages/admin/business/login.vue @@ -73,7 +73,8 @@ export default { login_bg: '', loginInfo:{ account: '', - password: '' + password: '', + merchant_type: '', }, // 当前时间戳 intervalId: '', @@ -85,6 +86,17 @@ export default { }, onLoad: function(options) { this.is_sys = options.is_sys; + // merchant_type:商户类别:0=普通商户,1=酒道馆,2=供应商,3=烟酒店,4=超市,5=省公司门店,6=城市会客厅,7=惠民健康体检馆 + // is_sys:0=商户管理,1=平台管理,2=酒道馆管理,3=烟酒店管理,4=超市,5=省公司门店,6=城市会客厅管理,7=惠民健康体检馆管理 + switch (Number(this.is_sys)) { + case 0:this.loginInfo.merchant_type = 0;break;// 商户管理 + case 2:this.loginInfo.merchant_type = 1;break;// 酒道馆管理 + case 3:this.loginInfo.merchant_type = 3;break;// 烟酒店管理 + case 4:this.loginInfo.merchant_type = 4;break;// 超市 + case 5:this.loginInfo.merchant_type = 5;break;// 省公司门店 + case 6:this.loginInfo.merchant_type = 6;break;// 城市会客厅管理 + case 7:this.loginInfo.merchant_type = 7;break;// 惠民健康体检馆管理 + } // 设置页面标题 this.pageTitle = this.$util.getIsSysText(this.is_sys); uni.setNavigationBarTitle({ @@ -173,6 +185,12 @@ export default { // 登录弹框 - 关闭 loginPopupClose(){ this.$refs.loginPopup.close(); + // 判断:没有历史账号时 返回个人中心 + if(Object.values(this.loginHistory).length <= 0){ + uni.switchTab({ + url: '/pages/user/index', + }); + } },