Merge branch 'master' of http://git.luyuan.tk/luyuan/beelink into xbx
This commit is contained in:
commit
80d159f344
@ -728,7 +728,7 @@ export async function putmember(data: any): Promise<any>{
|
||||
willsay: JSON.stringify(data.willsayValue),
|
||||
birthday: data.birthday,
|
||||
zoneid: data.zoneid,
|
||||
currency: parseInt(data.currency),
|
||||
currency: data.currency,
|
||||
language: data.languageValue,
|
||||
tlanguage: data.tlanguageValue,
|
||||
video: data.video,
|
||||
|
@ -188,7 +188,7 @@
|
||||
ref="select"
|
||||
:getPopupContainer="triggerNode => triggerNode.parentNode"
|
||||
@change="currencychange"
|
||||
:defaultValue="currencyindex"
|
||||
v-model:value="currencyindex"
|
||||
>
|
||||
<a-select-option v-for="(item, index) in currencylist" :key="index" :value="item.value">
|
||||
{{item.name}}
|
||||
@ -330,9 +330,14 @@ export default defineComponent({
|
||||
}];
|
||||
const userinfo = computed(() => {return store.state.userinfo})
|
||||
// 表单数据
|
||||
const currencyindex=ref<string>(userinfo.value.currencyValue)
|
||||
const formData = ref(toRaw(userinfo.value));
|
||||
watch(userinfo,() => {
|
||||
formData.value = toRaw(userinfo.value);
|
||||
console.log(userinfo.value.currencyValue,"listsssss")
|
||||
currencyindex.value=userinfo.value.currencyValue
|
||||
|
||||
console.log(currencyindex.value,"listsssss")
|
||||
})
|
||||
const modalNode = () => document.getElementsByClassName('modal-container')[0]
|
||||
|
||||
@ -342,7 +347,8 @@ export default defineComponent({
|
||||
const myquhao = ref<string>("");
|
||||
|
||||
const mynewtel = ref<string>("");
|
||||
const currencyindex=ref<string>("人民币¥")
|
||||
|
||||
|
||||
const isSecondStep: Ref<boolean> = ref(false);
|
||||
const currencylist=ref<any>([{
|
||||
alias: "CNY",
|
||||
@ -371,8 +377,10 @@ export default defineComponent({
|
||||
myquhao.value = quhaolist.value[0].code
|
||||
currencylist.value = await getcurrencys()
|
||||
zonelist.value=await getzonelist()
|
||||
currencyindex.value=userinfo.value.currencyValue
|
||||
console.log(userinfo.value.currencyValue,"listsssss")
|
||||
// currencyindex.value=userinfo.value.currencyValue
|
||||
|
||||
console.log(userinfo.value)
|
||||
|
||||
})
|
||||
|
||||
/**
|
||||
@ -574,10 +582,16 @@ 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()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
putmember(uesrinfo)
|
||||
// putmember(toRaw(formData.value)).then((res) => {
|
||||
// console.log(res)
|
||||
// })
|
||||
|
||||
}
|
||||
|
||||
@ -639,6 +653,7 @@ export default defineComponent({
|
||||
formData.value.img = res.video.url;
|
||||
}
|
||||
currencyindex.value=userinfo.value.currencyValue
|
||||
|
||||
return {
|
||||
modalNode,
|
||||
formData,
|
||||
|
Loading…
Reference in New Issue
Block a user