|
@@ -7,7 +7,9 @@
|
|
|
</span>
|
|
|
</p>
|
|
|
<div style="width:fit-content;margin: auto;" v-show="!isJoin">
|
|
|
- <p style="font-size:16px;color:#fff">正在通过扫码登录</p>
|
|
|
+ <p style="font-size:16px;color:#fff">正在通过扫码登录
|
|
|
+ <span v-if="systemInfo.ip">{{ systemInfo.ip }}({{ systemInfo.region }})</span>
|
|
|
+ </p>
|
|
|
</div>
|
|
|
|
|
|
<div class="join-btn" @click="toLogin()" v-show="!isJoin && !isRep">
|
|
@@ -32,7 +34,11 @@ export default {
|
|
|
isLogin: false,
|
|
|
isJoin: false,
|
|
|
code: '',
|
|
|
- id_token: ''
|
|
|
+ id_token: '',
|
|
|
+ systemInfo: {
|
|
|
+ ip: '',
|
|
|
+ region: '',
|
|
|
+ },
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -66,6 +72,16 @@ export default {
|
|
|
this.$Message.error(this.$t('cusMgt.join.joinErr'))
|
|
|
})
|
|
|
},
|
|
|
+ getSystemInfo() {
|
|
|
+ this.$api.login.getSystemInfo({}).then(
|
|
|
+ res => {
|
|
|
+ if (res.version) {
|
|
|
+ this.systemInfo.ip = res.ip
|
|
|
+ this.systemInfo.region = res.region
|
|
|
+ }
|
|
|
+ }
|
|
|
+ )
|
|
|
+ },
|
|
|
toLogin() {
|
|
|
// let type = process.env.NODE_ENV //product | development
|
|
|
let accUrl = this.curSiteConfig.accAPIUrl
|
|
@@ -115,6 +131,7 @@ export default {
|
|
|
// 判断移动端还是PC端
|
|
|
this.isPC = !(/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent))
|
|
|
console.log('pc', this.isPC)
|
|
|
+ this.getSystemInfo()
|
|
|
}
|
|
|
}
|
|
|
</script>
|