From 920ff46f8ce7bceeaf44f75655a6bafc1c2c6cf6 Mon Sep 17 00:00:00 2001 From: Wayne Date: Thu, 16 Nov 2023 18:27:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9C=83=E5=93=A1=E8=B3=87?= =?UTF-8?q?=E6=96=99...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Member/index.vue | 83 +++++++++++++++++++++++--------------- 1 file changed, 51 insertions(+), 32 deletions(-) diff --git a/src/views/Member/index.vue b/src/views/Member/index.vue index 520c71e..1d80447 100644 --- a/src/views/Member/index.vue +++ b/src/views/Member/index.vue @@ -196,6 +196,24 @@ const searchOnUpdateValue = (newValue) => { }); }; + +const userExtraSubmit = async (values) => { + // showLoadingToast({ + // duration: 0, + // message: '資料更新中...', + // forbidClick: true, + // }); + console.log("test",values); + let res = await updateUserInfo(values) + if(res.code===200){ + showSuccessToast('更新成功') + store.commit('user/setUserInfo',values) + router.push('/member') + }else{ + showToast.fail('更新失敗') + } +}; + // START: 人脈資源 const search = ref({ @@ -226,15 +244,10 @@ const handleSearch = async () => { if(res.code===200){ tab2list.value = res.data; } - - // res = await addUserFavi({uf_user_id:form.value.user_id}); - // // console.log(res); - // if(res.code===200){ - // tab2AddFriend.value = res.data; - // } }; const tab2list = ref([]); + const tab2Loading = ref(false); const tab2Finished = ref(false); const tab2TodoLists = ref([]); @@ -258,8 +271,9 @@ const tab2ListonLoad = () => { // }, 1000); }; -const handleAddFavi = async (user_id) => { - let res = await addUserFavi({uf_user_id:user_id}); +const handleAddFavi = async (uf_user_id) => { + let res = await addUserFavi({uf_user_id}); + if(res.code===200){ return showToast({ message: '已加入好友', @@ -447,7 +461,7 @@ onBeforeMount(async () => { - +