|
|
@@ -63,13 +63,14 @@ import cryptojs from 'crypto-js'
|
|
|
import { i18n, useUserStore } from '@/stores'
|
|
|
import { getCountryCodeList } from '@/constants/unit'
|
|
|
|
|
|
-const show = shallowRef(false) // 是否弹出选择器
|
|
|
const datalist = computed(() => {
|
|
|
return getCountryCodeList().map(e => {
|
|
|
return { text: e.value, value: e.value }
|
|
|
})
|
|
|
})
|
|
|
-const countryCode = ref(datalist.value[0].value.toString())
|
|
|
+const show = shallowRef(false) // 是否弹出选择器
|
|
|
+const countryCode = ref(datalist.value[0]?.value.toString())
|
|
|
+
|
|
|
const onCancel = () => {
|
|
|
show.value = false
|
|
|
}
|
|
|
@@ -188,12 +189,11 @@ const formSubmit = () => {
|
|
|
const logincode = res.data
|
|
|
const encryptedData = cryptojs.SHA256(logincode + password).toString()
|
|
|
const encryptedHex = cryptojs.enc.Hex.parse(encryptedData).toString().toLocaleLowerCase()
|
|
|
- formData.mobile = countryCode.value + formData.mobile
|
|
|
|
|
|
resetPassword({
|
|
|
data: {
|
|
|
logincode,
|
|
|
- mobile: getEncryptMobile(mobile),
|
|
|
+ mobile: getEncryptMobile(countryCode.value + mobile),
|
|
|
password: encryptedHex,
|
|
|
vcode,
|
|
|
}
|