|
@@ -198,12 +198,12 @@ import { showToast } from 'vant';
|
|
import lang from './lang.js';
|
|
import lang from './lang.js';
|
|
const showCheck = ref(false);
|
|
const showCheck = ref(false);
|
|
const verificationCode = ref('');
|
|
const verificationCode = ref('');
|
|
-const prprs = defineProps(['langType']);
|
|
|
|
|
|
+const props = defineProps(['langType']);
|
|
const emits = defineEmits(['checkVerificationCode']);
|
|
const emits = defineEmits(['checkVerificationCode']);
|
|
let code = '';
|
|
let code = '';
|
|
|
|
|
|
const checkVerificationCode = () => {
|
|
const checkVerificationCode = () => {
|
|
- let userType = lang[prprs.langType].distinguishedGuest[code];
|
|
|
|
|
|
+ let userType = lang[props.langType].distinguishedGuest[code];
|
|
checkCode({
|
|
checkCode({
|
|
code: verificationCode.value.toLowerCase(),
|
|
code: verificationCode.value.toLowerCase(),
|
|
userType
|
|
userType
|
|
@@ -217,7 +217,7 @@ const checkVerificationCode = () => {
|
|
message = messages.enMessage;
|
|
message = messages.enMessage;
|
|
}
|
|
}
|
|
showToast(message);
|
|
showToast(message);
|
|
- showToast(lang[prprs.langType].verificationCodeError);
|
|
|
|
|
|
+ showToast(lang[props.langType].verificationCodeError);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
})
|
|
})
|