This commit is contained in:
asd 2020-10-26 10:44:42 +08:00
parent 5e964e5893
commit 91191371e5
2 changed files with 18 additions and 5 deletions

View File

@ -728,7 +728,7 @@ export async function putmember(data: any): Promise<any>{
willsay: JSON.stringify(data.willsayValue), willsay: JSON.stringify(data.willsayValue),
birthday: data.birthday, birthday: data.birthday,
zoneid: data.zoneid, zoneid: data.zoneid,
currency: data.currencyValue, currency: parseInt(data.currency),
language: data.languageValue, language: data.languageValue,
tlanguage: data.tlanguageValue, tlanguage: data.tlanguageValue,
video: data.video, video: data.video,

View File

@ -162,14 +162,15 @@
<div class="input-box currency-box"> <div class="input-box currency-box">
<div class="label">货币</div> <div class="label">货币</div>
<a-select <a-select
v-model:value="userinfo.currency"
style="width: 171px" style="width: 171px"
size="small" size="small"
ref="select" ref="select"
:getPopupContainer="triggerNode => triggerNode.parentNode" :getPopupContainer="triggerNode => triggerNode.parentNode"
@change="currencychange"
:defaultValue="currencyindex"
> >
<a-select-option v-for="(item, index) in currencylist" :key="index" :value="item.value"> <a-select-option v-for="(item, index) in currencylist" :key="index" :value="item.value">
{{item.value}}{{item.name}} {{item.name}}
</a-select-option> </a-select-option>
</a-select> </a-select>
</div> </div>
@ -320,6 +321,7 @@ export default defineComponent({
const myquhao = ref<string>(""); const myquhao = ref<string>("");
const mynewtel = ref<string>(""); const mynewtel = ref<string>("");
const currencyindex=ref<string>("人民币¥")
const isSecondStep: Ref<boolean> = ref(false); const isSecondStep: Ref<boolean> = ref(false);
const currencylist=ref<any>([{ const currencylist=ref<any>([{
alias: "CNY", alias: "CNY",
@ -341,13 +343,15 @@ export default defineComponent({
}]) }])
onMounted(async ()=>{ onMounted(async ()=>{
chiveslist.value = await getarchives() chiveslist.value = await getarchives()
languages.value = await getlanguages() languages.value = await getlanguages()
quhaolist.value = await getquhaolist() quhaolist.value = await getquhaolist()
myquhao.value = quhaolist.value[0].code myquhao.value = quhaolist.value[0].code
currencylist.value = await getcurrencys() currencylist.value = await getcurrencys()
zonelist.value=await getzonelist() zonelist.value=await getzonelist()
console.log(quhaolist.value,"listsssss") currencyindex.value=userinfo.value.currencyValue
console.log(userinfo.value.currencyValue,"listsssss")
}) })
/** /**
@ -593,6 +597,13 @@ export default defineComponent({
console.log(formData.value.willsayValue) console.log(formData.value.willsayValue)
console.log(e) console.log(e)
} }
function currencychange(e?: any){
console.log(e)
userinfo.value.currency=e
}
currencyindex.value=userinfo.value.currencyValue
return { return {
modalNode, modalNode,
formData, formData,
@ -628,7 +639,9 @@ export default defineComponent({
getquhao, getquhao,
myquhao, myquhao,
currencylist, currencylist,
zonelist zonelist,
currencychange,
currencyindex
} }
} }
}); });