|
@@ -4,8 +4,8 @@
|
|
<div class="order-input-con">
|
|
<div class="order-input-con">
|
|
<div class="order-input-item">
|
|
<div class="order-input-item">
|
|
<div class="order-sub">
|
|
<div class="order-sub">
|
|
- <div class="top-title">{{langModify.phone.txt}}</div>
|
|
|
|
- <div class="top-username">+{{info.country==='中国'?'86':info.country}} {{info.userName}}</div>
|
|
|
|
|
|
+ <div class="top-title">{{ $t('login.account') }}</div>
|
|
|
|
+ <div class="top-username"><span v-if="isPhone">+{{info.country==='中国'?'86':info.country}}</span> {{info.userName}}</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="order-input-item">
|
|
<div class="order-input-item">
|
|
@@ -58,8 +58,12 @@ export default {
|
|
language: state => state.language.current,
|
|
language: state => state.language.current,
|
|
langToast: state => state.language.home.toast,
|
|
langToast: state => state.language.home.toast,
|
|
langModify: state => state.language.home.manage.modify,
|
|
langModify: state => state.language.home.manage.modify,
|
|
- info: state => state.user.info
|
|
|
|
- })
|
|
|
|
|
|
+ info: state => state.user.info,
|
|
|
|
+ isInternational: state => state.isInternational
|
|
|
|
+ }),
|
|
|
|
+ isPhone () {
|
|
|
|
+ return this.info.userName.indexOf('@') === -1
|
|
|
|
+ }
|
|
},
|
|
},
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
@@ -76,7 +80,9 @@ export default {
|
|
let {userName, country} = this.info
|
|
let {userName, country} = this.info
|
|
let res = await this.$store.dispatch('getAuthCode', {
|
|
let res = await this.$store.dispatch('getAuthCode', {
|
|
phone: userName,
|
|
phone: userName,
|
|
- code: country === '中国' ? 86 : country
|
|
|
|
|
|
+ code: country === '中国' ? 86 : country,
|
|
|
|
+ email: userName,
|
|
|
|
+ qudao: this.isPhone ? '' : 'email'
|
|
})
|
|
})
|
|
if (res) {
|
|
if (res) {
|
|
this.interl && clearInterval(this.interl)
|
|
this.interl && clearInterval(this.interl)
|