登录增加切换身份置空商户号

This commit is contained in:
YeMingfei666 2024-10-16 14:15:48 +08:00
parent d0bb6bff46
commit 7030d60847
2 changed files with 14 additions and 7 deletions

View File

@ -120,11 +120,11 @@
icon: '/static/indexImg/icon-line-up.svg', icon: '/static/indexImg/icon-line-up.svg',
pageUrl: 'PAGES_LINE_UP' pageUrl: 'PAGES_LINE_UP'
}, },
{ // {
title: '成员管理', // title: '',
icon: '/static/indexImg/icon-staff.svg', // icon: '/static/indexImg/icon-staff.svg',
pageUrl: 'PAGES_USER' // pageUrl: 'PAGES_USER'
}, // },
{ {
title: '设置中心', title: '设置中心',
icon: '/static/indexImg/icon-cashier.svg', icon: '/static/indexImg/icon-cashier.svg',

View File

@ -145,7 +145,8 @@
import { import {
ref, ref,
reactive, reactive,
onMounted onMounted,
watch
} from 'vue'; } from 'vue';
import { import {
$loginByPwd, $loginByPwd,
@ -339,9 +340,15 @@
}) })
// #endif // #endif
} }
watch(()=>accountType.sel,(newval)=>{
if(newval==1){
vdata.formData.merchantName=uni.getStorageSync('merchantName')||''
}else{
vdata.formData.username=''
}
})
// //
async function loginFinishFunc(loginBizData) { async function loginFinishFunc(loginBizData) {
// token // token
storageManage.setLogin(loginBizData) storageManage.setLogin(loginBizData)
storageManage.token(loginBizData.token) storageManage.token(loginBizData.token)