| | |
| | | <template> |
| | | <div class="bijnm"> |
| | | <div class="headf"> |
| | | <div > |
| | | <h2 ><span class="hbnh"><a |
| | | @click="$router.go(-1)" class="fan"></a></span> {{ $t('jy355') }} </h2> |
| | | <div> |
| | | <h2><span class="hbnh"><a @click="$router.go(-1)" class="fan"></a></span> {{ $t('jy355') }} </h2> |
| | | </div> |
| | | </div> |
| | | <ul class="ulk"> |
| | | <li><span style="line-height: 1.1748rem;"> {{ $t('jy354') }}</span><img |
| | | src="~@/assets/imgRed/touxiang.png" |
| | | class="heasd"/></li> |
| | | <li><span> {{ $t('jy523') }}</span><a>{{ userInfo.phone ? userInfo.phone : userInfo.phone }}</a></li> |
| | | <li @click="handleOutLoginClick()"><span> {{ $t('hj148') }}</span><img |
| | | <li><span style="line-height: 1.1748rem;"> {{ $t('jy354') }}</span><img src="~@/assets/imgRed/touxiang.png" |
| | | class="heasd" /></li> |
| | | <li><span> {{ $t('jy523') }}</span><a>{{ userInfo.phone ? userInfo.phone : userInfo.phone }}</a></li> |
| | | <li @click="handleOutLoginClick()"><span> {{ $t('hj148') }}</span><img |
| | | src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjVJREFUWEfll7+LE1EQx7+zEcMhBOFKRXG1sLFIZjcaRcxp652lP2oLz0JEsRFBOBubKxS8K87CRhBSKAfiIXKVJshm9j/wam0EiyhZyI5MSCCGCDHydgW32OLt2zefN+8782YIAMIwPJmm6QMANQBzNubg+a6qTSK6JyIfh+tTpVI5TUTvAOx2YHTSkonneQtRFDXtIwVB0FRV23lCRGuq+tkFiKruJ6JlAAUA2yJyrg/AzF3bvaq+iOP4sgvjwzWDINhU1UUAX0VkfgiggwnrInLdJQAzPwdwBcA3Edn7XwKsArgF4JOIHMncA7Vaba7b7S4VCoUoiqKdzAEm6cuiwJkImfkRgEVVvR3H8cs8AMzNhwD0ANwQkbVxCNceOAbgDYB9A8MrInJ/FMIpgBkql8sHPc/bAnB0YHjD9/3lRqNhXulnQmcaGO60Wq3O93q91wCO25iqbhaLxUutVuvHzAD1en1Xp9M5MG3mTNN0D4BnACqDf94nSbI0MwAzbwNYmBbgN/MkVwAi2poZ4G+PwHRQKpUuzgzwJ64fF6Fpwff9qxYJzgEmhOGqiNyxYHAehsw8mojM4F0ReZhZImLm0VR8TUSeZp2KHwO4oKo3c7mMphGqcxGOQlhBkiTJec/zJJeChJmHJdmOiBx2HgXjR/DPVsWZNSbM/MqiYrwxaQE4Ya2Zqj4hoi/TqHeGOVYVWePza2sWhuGZNE3fZtmcEtHZdrv9oS9CewVBcEpVV/Joz38CIWVsSJNAjP0AAAAASUVORK5CYII=" |
| | | class="tui"></li> |
| | | </ul> |
| | |
| | | this.getUserInfo(); |
| | | }, |
| | | methods: { |
| | | async getUserInfo() { |
| | | // 获取用户信息 |
| | | let data = await api.getUserInfo(); |
| | | if (data.status === 0) { |
| | | // 判断是否登录 |
| | | this.$store.commit('dialogVisible', false); |
| | | this.$store.state.userInfo = data.data; |
| | | this.userInfo = data.data; |
| | | } else { |
| | | this.$store.commit('dialogVisible', true); |
| | | } |
| | | }, |
| | | handleOutLoginClick() { |
| | | // 退出登录 |
| | | MessageBox.confirm(this.$t('hj149') + '?', this.$t('hj165'), { |
| | | confirmButtonText: this.$t('hj161'), |
| | | cancelButtonText: this.$t('hj106'), |
| | | }).then(() => { |
| | | this.toRegister(); |
| | | }).catch(() => { |
| | | async getUserInfo() { |
| | | // 获取用户信息 |
| | | let data = await api.getUserInfo(); |
| | | if (data.status === 0) { |
| | | // 判断是否登录 |
| | | this.$store.commit('dialogVisible', false); |
| | | this.$store.state.userInfo = data.data; |
| | | this.userInfo = data.data; |
| | | } else { |
| | | this.$store.commit('dialogVisible', true); |
| | | } |
| | | }, |
| | | handleOutLoginClick() { |
| | | // 退出登录 |
| | | MessageBox.confirm(this.$t('hj149') + '?', this.$t('hj165'), { |
| | | confirmButtonText: this.$t('hj161'), |
| | | cancelButtonText: this.$t('hj106'), |
| | | }).then(() => { |
| | | this.toRegister(); |
| | | }).catch(() => { |
| | | |
| | | }); |
| | | }, |
| | | async toRegister() { |
| | | // 注销登陆 |
| | | window.localStorage.removeItem("phone"); // 清空本地存储 phone字段 |
| | | window.localStorage.removeItem("USERTOKEN"); // 清空本地存储 USERTOKEN字段 |
| | | this.clearCookie(); |
| | | let data = await api.logout(); |
| | | if (data.status === 0) { |
| | | // Toast(data.msg) |
| | | this.$router.push("/login"); |
| | | } else { |
| | | Toast(data.msg); |
| | | } |
| | | this.$router.push("/login"); |
| | | }, |
| | | }); |
| | | }, |
| | | async toRegister() { |
| | | // 注销登陆 |
| | | window.localStorage.removeItem("phone"); // 清空本地存储 phone字段 |
| | | window.localStorage.removeItem("USERTOKEN"); // 清空本地存储 USERTOKEN字段 |
| | | this.clearCookie(); |
| | | let data = await api.logout(); |
| | | if (data.status === 0) { |
| | | // Toast(data.msg) |
| | | this.$router.push("/login"); |
| | | } else { |
| | | Toast(data.msg); |
| | | } |
| | | this.$router.push("/login"); |
| | | }, |
| | | }, |
| | | } |
| | | |
| | |
| | | .headf { |
| | | width: 100%; |
| | | height: 1.1748rem; |
| | | background: linear-gradient(-55deg,rgb(241, 22, 20),rgb(240, 40, 37)); |
| | | background: linear-gradient(-55deg, rgb(241, 22, 20), rgb(240, 40, 37)); |
| | | } |
| | | |
| | | h2 { |
| | |
| | | width: 0.4272rem; |
| | | height: 0.4272rem; |
| | | } |
| | | |
| | | .mint-msgbox-confirm { |
| | | color: #5d7dfb; |
| | | } |
| | | .mint-msgbox-confirm:active{ |
| | | |
| | | .mint-msgbox-confirm:active { |
| | | color: #5d7dfb; |
| | | } |
| | | </style> |