From 10141bb795a6dcc9af7cf4b40f46063d50418902 Mon Sep 17 00:00:00 2001 From: asd <374367073@qq.com> Date: Mon, 26 Oct 2020 12:00:30 +0800 Subject: [PATCH] HUOBI --- src/api/index.ts | 2 +- src/views/mine/Archives.vue | 30 ++++++++++++++++++++++-------- 2 files changed, 23 insertions(+), 9 deletions(-) diff --git a/src/api/index.ts b/src/api/index.ts index ff30ef3..8fb324c 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: parseInt(data.currency), + currency: 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 4580b50..bdf0c9d 100644 --- a/src/views/mine/Archives.vue +++ b/src/views/mine/Archives.vue @@ -167,7 +167,7 @@ ref="select" :getPopupContainer="triggerNode => triggerNode.parentNode" @change="currencychange" - :defaultValue="currencyindex" + v-model:value="currencyindex" > {{item.name}} @@ -309,9 +309,14 @@ export default defineComponent({ }]; const userinfo = computed(() => {return store.state.userinfo}) // 表单数据 + const currencyindex=ref(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] @@ -321,7 +326,8 @@ export default defineComponent({ const myquhao = ref(""); const mynewtel = ref(""); - const currencyindex=ref("人民币¥") + + const isSecondStep: Ref = ref(false); const currencylist=ref([{ alias: "CNY", @@ -350,8 +356,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) + }) /** @@ -550,10 +558,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 { - // console.log(res) - // }) } @@ -603,7 +617,7 @@ export default defineComponent({ userinfo.value.currency=e } - currencyindex.value=userinfo.value.currencyValue + return { modalNode, formData, -- 2.39.5