提交 b6d41db3 作者: 毛细亚

更新代码

上级 a404e0cb
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="favicon.ico"><meta http-equiv="pragma" content="no-cache"><meta http-equiv="cache-control" content="no-cache"><meta http-equiv="expires" content="0"><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9"/><title>company_app</title><script src="https://g.alicdn.com/dingding/dinglogin/0.0.5/ddLogin.js"></script><script defer="defer" src="static/js/chunk-vendors.b6398f5b.js"></script><script defer="defer" src="static/js/app.915b7f0b.js"></script><link href="static/css/chunk-vendors.8e901099.css" rel="stylesheet"><link href="static/css/app.df602958.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but company_app doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html> <!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="favicon.ico"><meta http-equiv="pragma" content="no-cache"><meta http-equiv="cache-control" content="no-cache"><meta http-equiv="expires" content="0"><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9"/><title>company_app</title><script src="https://g.alicdn.com/dingding/dinglogin/0.0.5/ddLogin.js"></script><script defer="defer" src="static/js/chunk-vendors.b6398f5b.js"></script><script defer="defer" src="static/js/app.101d7d80.js"></script><link href="static/css/chunk-vendors.8e901099.css" rel="stylesheet"><link href="static/css/app.1b60c483.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but company_app doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
\ No newline at end of file \ No newline at end of file
...@@ -89,21 +89,24 @@ export default { ...@@ -89,21 +89,24 @@ export default {
close(){ close(){
this.bindAccount = this.accountSelect this.bindAccount = this.accountSelect
}, },
gameMemberView(item) { async gameMemberView(item) {
if (this.accountSelect && this.accountSelect !== '') { if (this.accountSelect && this.accountSelect !== '') {
this.set_viewLoading(true) this.set_viewLoading(true)
this.set_gameUserInfo({})
await this.$nextTick()
const data = { member_id: this.accountSelect, need_channel: 1, need_roleInfo: 1, need_banned: 1 } const data = { member_id: this.accountSelect, need_channel: 1, need_roleInfo: 1, need_banned: 1 }
memberView(data).then((res) => { try {
const res = await memberView(data)
this.set_viewLoading(false) this.set_viewLoading(false)
if (res.status_code === 1) { if (res.status_code === 1) {
this.set_gameUserInfo(res.data) this.set_gameUserInfo(res.data)
} else { } else {
this.set_gameUserInfo({}) this.set_gameUserInfo({})
} }
}, (err) => { } catch (error) {
this.set_viewLoading(false) this.set_viewLoading(false)
this.set_gameUserInfo({}) this.set_gameUserInfo({})
}) }
} }
}, },
logout(){ logout(){
......
...@@ -118,7 +118,7 @@ ...@@ -118,7 +118,7 @@
</div> --> </div> -->
<!-- 游戏业务的账号信息 --> <!-- 游戏业务的账号信息 -->
<gameDetails <gameDetails
v-if="gameUserInfo.username" v-if="gameUserInfo.username && !viewLoading"
:chat-user-details="chatUserDetails" :chat-user-details="chatUserDetails"
:game-user-info="gameUserInfo" :game-user-info="gameUserInfo"
@changeAppraisal="changeAppraisal" @changeAppraisal="changeAppraisal"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论