From 91191371e5c90d64b40c1ec2edb1d3d5ed35d706 Mon Sep 17 00:00:00 2001 From: asd <374367073@qq.com> Date: Mon, 26 Oct 2020 10:44:42 +0800 Subject: [PATCH] gaibug --- src/api/index.ts | 2 +- src/views/mine/Archives.vue | 21 +++++++++++++++++---- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/src/api/index.ts b/src/api/index.ts index ac67141..9530548 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -728,7 +728,7 @@ export async function putmember(data: any): Promise{ willsay: JSON.stringify(data.willsayValue), birthday: data.birthday, zoneid: data.zoneid, - currency: data.currencyValue, + currency: parseInt(data.currency), language: data.languageValue, tlanguage: data.tlanguageValue, video: data.video, diff --git a/src/views/mine/Archives.vue b/src/views/mine/Archives.vue index 34a56c0..4580b50 100644 --- a/src/views/mine/Archives.vue +++ b/src/views/mine/Archives.vue @@ -162,14 +162,15 @@
货币
- {{item.value}}{{item.name}} + {{item.name}}
@@ -320,6 +321,7 @@ export default defineComponent({ const myquhao = ref(""); const mynewtel = ref(""); + const currencyindex=ref("人民币¥") const isSecondStep: Ref = ref(false); const currencylist=ref([{ alias: "CNY", @@ -341,13 +343,15 @@ export default defineComponent({ }]) onMounted(async ()=>{ + chiveslist.value = await getarchives() languages.value = await getlanguages() quhaolist.value = await getquhaolist() myquhao.value = quhaolist.value[0].code currencylist.value = await getcurrencys() 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(e) } + + function currencychange(e?: any){ + console.log(e) + userinfo.value.currency=e + + } + currencyindex.value=userinfo.value.currencyValue return { modalNode, formData, @@ -628,7 +639,9 @@ export default defineComponent({ getquhao, myquhao, currencylist, - zonelist + zonelist, + currencychange, + currencyindex } } });