登录增加切换身份置空商户号
This commit is contained in:
parent
d0bb6bff46
commit
7030d60847
|
|
@ -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',
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue