|
@ -16,7 +16,7 @@ |
|
|
<template slot="default">账号管理</template> |
|
|
<template slot="default">账号管理</template> |
|
|
<template slot="right"> |
|
|
<template slot="right"> |
|
|
<view class="ft-account"> |
|
|
<view class="ft-account"> |
|
|
<view class="fc-name" v-if="loginState">{{ extension.brand_name || '-' }}</view> |
|
|
|
|
|
|
|
|
<view class="fc-name" v-if="loginState">{{ accountName || '-' }}</view> |
|
|
<image class="fc-icon" mode="aspectFit" src="/static/images/icon/arrow_b2.png"></image> |
|
|
<image class="fc-icon" mode="aspectFit" src="/static/images/icon/arrow_b2.png"></image> |
|
|
</view> |
|
|
</view> |
|
|
</template> |
|
|
</template> |
|
@ -53,7 +53,7 @@ import bottomLogo from "@/subpackage/menu/components/bottom_logo.vue"; |
|
|
import authorizationLogin from "@/subpackage/authorization/components/login.vue"; |
|
|
import authorizationLogin from "@/subpackage/authorization/components/login.vue"; |
|
|
import authorizationUser from "@/subpackage/authorization/components/user_info/impower.vue"; |
|
|
import authorizationUser from "@/subpackage/authorization/components/user_info/impower.vue"; |
|
|
import { routeTo, debounce, showLoad, hideLoad, showModal, showNone, jsonStr } from "@/utils/util.js"; |
|
|
import { routeTo, debounce, showLoad, hideLoad, showModal, showNone, jsonStr } from "@/utils/util.js"; |
|
|
import { mapGetters } from 'vuex'; |
|
|
|
|
|
|
|
|
import { mapGetters, mapState } from 'vuex'; |
|
|
import { servers } from '../../js/server'; |
|
|
import { servers } from '../../js/server'; |
|
|
import { API } from '../../js/api'; |
|
|
import { API } from '../../js/api'; |
|
|
export default { |
|
|
export default { |
|
@ -66,7 +66,6 @@ export default { |
|
|
}, |
|
|
}, |
|
|
data(){ |
|
|
data(){ |
|
|
return { |
|
|
return { |
|
|
brand_id: '', |
|
|
|
|
|
// 异步组件加载完成状态 |
|
|
// 异步组件加载完成状态 |
|
|
menuPackageLoaded: false, |
|
|
menuPackageLoaded: false, |
|
|
userInfo: {}, |
|
|
userInfo: {}, |
|
@ -80,12 +79,24 @@ export default { |
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
computed: { |
|
|
...mapGetters([ 'loginState' ]), |
|
|
...mapGetters([ 'loginState' ]), |
|
|
|
|
|
...mapState([ 'brandInfo' ]), |
|
|
extension(){ |
|
|
extension(){ |
|
|
return this.userInfo?.extension || {} |
|
|
return this.userInfo?.extension || {} |
|
|
}, |
|
|
}, |
|
|
|
|
|
/** |
|
|
|
|
|
* @param {string} permission_type 1:ADMIN-STADIUM 2:ADMIN-BRAND |
|
|
|
|
|
* */ |
|
|
|
|
|
permissionType(){ |
|
|
|
|
|
return this.userInfo?.extension?.permission_type || ''; |
|
|
|
|
|
}, |
|
|
|
|
|
accountName(){ |
|
|
|
|
|
let { permissionType, extension } = this; |
|
|
|
|
|
if(permissionType === 'ADMIN-STADIUM')return extension?.stadium_name ?? ''; |
|
|
|
|
|
if(permissionType === 'ADMIN-BRAND')return extension?.brand_name ?? ''; |
|
|
|
|
|
return ''; |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
onLoad(options){ |
|
|
onLoad(options){ |
|
|
this.brand_id = options?.brand_id ?? ''; |
|
|
|
|
|
if(this.loginState)this.getUserInfo(); |
|
|
if(this.loginState)this.getUserInfo(); |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
@ -149,9 +160,9 @@ export default { |
|
|
}, |
|
|
}, |
|
|
// 投诉建议 |
|
|
// 投诉建议 |
|
|
toComplaint(){ |
|
|
toComplaint(){ |
|
|
let { brand_id, loginState, showAuthor } = this; |
|
|
|
|
|
|
|
|
let { loginState, showAuthor, brandInfo } = this; |
|
|
if(!loginState)return showAuthor(); |
|
|
if(!loginState)return showAuthor(); |
|
|
routeTo(`/subpackage/message/pages/complaint/list?brand_id=${brand_id}`, 'nT'); |
|
|
|
|
|
|
|
|
routeTo(`/subpackage/message/pages/complaint/list?brand_id=${brandInfo?.brand?.id}`, 'nT'); |
|
|
}, |
|
|
}, |
|
|
// 登录 |
|
|
// 登录 |
|
|
loginBtn(){ |
|
|
loginBtn(){ |
|
|