修正了提交国家不能选择
This commit is contained in:
parent
547cab2ac0
commit
39fa3b0801
@ -13,7 +13,7 @@ const createI18n = (config: Config) => ({
|
||||
locale: ref(config.locale),
|
||||
messages: config.messages,
|
||||
$t(key: string) {
|
||||
console.log(key)
|
||||
// console.log(key)
|
||||
return this.messages[this.locale.value][key];
|
||||
},
|
||||
$s(){
|
||||
|
@ -50,6 +50,8 @@
|
||||
style="width: 171px"
|
||||
size="small"
|
||||
ref="select"
|
||||
show-search
|
||||
@change="selguojia"
|
||||
:getPopupContainer="
|
||||
(triggerNode) => triggerNode.parentNode
|
||||
"
|
||||
@ -57,7 +59,7 @@
|
||||
<a-select-option
|
||||
v-for="(item, index) in chiveslist[0]"
|
||||
:key="index"
|
||||
:value="item.name"
|
||||
:value="item.id"
|
||||
>
|
||||
{{ item.name }}
|
||||
</a-select-option>
|
||||
@ -77,6 +79,7 @@
|
||||
v-model:value="userinfo.tlanguageValue"
|
||||
style="width: 171px"
|
||||
size="small"
|
||||
show-search
|
||||
ref="select"
|
||||
:getPopupContainer="
|
||||
(triggerNode) => triggerNode.parentNode
|
||||
@ -105,6 +108,7 @@
|
||||
style="width: 171px"
|
||||
size="small"
|
||||
ref="select"
|
||||
show-search
|
||||
@change="choosewillsay"
|
||||
:getPopupContainer="
|
||||
(triggerNode) =>
|
||||
@ -253,6 +257,7 @@
|
||||
style="width: 171px"
|
||||
size="small"
|
||||
ref="select"
|
||||
show-search
|
||||
:getPopupContainer="
|
||||
(triggerNode) => triggerNode.parentNode
|
||||
"
|
||||
@ -548,7 +553,6 @@ export default defineComponent({
|
||||
formData.value = toRaw(userinfo.value);
|
||||
console.log(userinfo.value.currencyValue, "listsssss");
|
||||
currencyindex.value = userinfo.value.currency;
|
||||
|
||||
console.log(currencyindex.value, "listsssss");
|
||||
});
|
||||
const modalNode = () =>
|
||||
@ -803,22 +807,30 @@ export default defineComponent({
|
||||
console.log(uesrinfo);
|
||||
|
||||
// console.log(toRaw(formData.value));
|
||||
if (userinfo.value.currency == "") {
|
||||
if (userinfo.value.currencyValue != "") {
|
||||
for (let i = 0; i < currencylist.value.length; i++) {
|
||||
if (
|
||||
userinfo.value.currencyValue ==
|
||||
currencylist.value[i].name
|
||||
) {
|
||||
userinfo.value.currency = (i + 1).toString();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const reg = /^\w+((.\w+)|(-\w+))@[A-Za-z0-9]+((.|-)[A-Za-z0-9]+).[A-Za-z0-9]+$/;
|
||||
// if (uesrinfo.currency == "") {
|
||||
// if (uesrinfo.currencyValue != "") {
|
||||
// for (let i = 0; i < currencylist.value.length; i++) {
|
||||
// if (
|
||||
// uesrinfo.currencyValue ==
|
||||
// currencylist.value[i].name
|
||||
// ) {
|
||||
// uesrinfo.currency = currencylist.value[i].value;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// eslint-disable-next-line
|
||||
const reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
|
||||
console.log(userinfo.value.email);
|
||||
console.log();
|
||||
// console.log();
|
||||
// for (let i = 0; i < currencylist.value.length; i++) {
|
||||
// if (
|
||||
// uesrinfo.currencyValue ==
|
||||
// currencylist.value[i].name
|
||||
// ) {
|
||||
// uesrinfo.currency = currencylist.value[i].value;
|
||||
// }
|
||||
// }
|
||||
if (reg.test(userinfo.value.email)) {
|
||||
putmember(uesrinfo);
|
||||
} else {
|
||||
@ -858,6 +870,7 @@ export default defineComponent({
|
||||
if (formData.value.video != "" && uploadprogress.value == 0) {
|
||||
uploadprogress.value = 100;
|
||||
}
|
||||
console.log(formData.value.country)
|
||||
});
|
||||
|
||||
function choosewillsay(e?: any) {
|
||||
@ -881,6 +894,10 @@ export default defineComponent({
|
||||
// picinfo.url=res.video.url
|
||||
formData.value.img = res.video.url;
|
||||
}
|
||||
function selguojia(e: any){
|
||||
userinfo.value.countryValue = e;
|
||||
console.log(e)
|
||||
}
|
||||
|
||||
return {
|
||||
modalNode,
|
||||
@ -923,6 +940,7 @@ export default defineComponent({
|
||||
showname,
|
||||
uploadspic,
|
||||
lan,
|
||||
selguojia
|
||||
};
|
||||
},
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user