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