| | |
| | | :dialCode="dialCode" @selectArea="onSelectArea" :icon="icon" /> |
| | | |
| | | <ExInput :placeholderText="$t('passwordTips')" v-model="password" typeText="password" /> |
| | | <ExInput :placeholderText="$t('surePassword')" v-model="repassword" typeText="password" /> |
| | | <!-- <ExInput :placeholderText="$t('surePassword')" v-model="repassword" typeText="password" /> --> |
| | | |
| | | <ExInput :placeholderText="$t('safewordTips')" v-model="safeword" typeText="password" |
| | | v-if="activeIndex === 1" /> |
| | | <div class="inputCom" v-if="activeIndex === 1"> |
| | | <!-- <div class="inputCom" v-if="activeIndex === 1"> |
| | | <div class="iptbox inputBackground"> |
| | | <input class="inputBackground textColor" type="text" :placeholder="$t('entryVerifyCode')" |
| | | v-model="verifyCode"> |
| | |
| | | <template v-if="time">({{ time }})s</template> |
| | | </span> |
| | | </div> |
| | | </div> |
| | | </div> --> |
| | | <ExInput :placeholderText="$t('entryInvitCode')" v-model="invitCode" :clearBtn="false" /> |
| | | <div class="protocol textColor"> |
| | | <i @click="agreeProt"> |
| | |
| | | showToast(t('safewordTips')); |
| | | return |
| | | } |
| | | if (verifyCode.value.length < 6) { |
| | | showToast(t('entryVerifyTips')); |
| | | return |
| | | } |
| | | // if (verifyCode.value.length < 6) { |
| | | // showToast(t('entryVerifyTips')); |
| | | // return |
| | | // } |
| | | } else if (activeIndex.value == 2) { |
| | | if (!(/(^[1-9]\d*$)/.test(username.value))) { |
| | | showToast(t('entryPhone')); |
| | |
| | | showToast(t('passwordTips')); |
| | | return |
| | | } |
| | | if (repassword.value !== password.value) { |
| | | showToast(t('noSamePassword')); |
| | | return |
| | | } |
| | | // if (repassword.value !== password.value) { |
| | | // showToast(t('noSamePassword')); |
| | | // return |
| | | // } |
| | | if (!agree.value) { |
| | | showToast(t('agreeServiceCond')); |
| | | return |
| | |
| | | // re_password: repassword.value, |
| | | type: type.value, |
| | | userCode: invitCode.value, |
| | | emailCode: verifyCode.value, |
| | | // emailCode: verifyCode.value, |
| | | }).then((res) => { |
| | | userStore[GET_USERINFO](res) |
| | | store.state.user.userInfo = res |