From 829d8e7b24bc171edb0d1053ad7b43f0788042c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=BF=97=E9=B9=8F?= <2916022834@qq.com> Date: Tue, 30 Sep 2025 13:24:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E8=B0=B7=E6=AD=8C=E8=A7=A3?= =?UTF-8?q?=E7=BB=91=E6=8C=89=E9=92=AE=E6=B7=BB=E5=8A=A0=E6=8F=90=E4=BA=8C?= =?UTF-8?q?=E6=AC=A1=E6=8F=90=E7=A4=BA=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/component/Account/frontPage/bindPage.vue | 54 +++++++++++++------- src/lang/cn.ts | 3 ++ src/lang/en.ts | 3 ++ 3 files changed, 42 insertions(+), 18 deletions(-) diff --git a/src/component/Account/frontPage/bindPage.vue b/src/component/Account/frontPage/bindPage.vue index 7ec33f51..825781f4 100644 --- a/src/component/Account/frontPage/bindPage.vue +++ b/src/component/Account/frontPage/bindPage.vue @@ -111,28 +111,46 @@ export default defineComponent({ .catch((res) => {accountHomeData.loadingShow = false}); } const ungroupWeiXinModel = ()=>{ - Https.axiosGet(Https.httpUrls.unbindWeChat,).then((rv)=>{ - message.success(t('frontPage.jsContent1')); - let value = { - accountExtendList:{ - WeChat:undefined, - Google:accountHomeData.userDetail.accountExtendList?.Google - } + Modal.confirm({ + title: t('frontPage.UnbindTip'), + okText: t('Yes'), + cancelText: t('No'), + mask:false, + centered:true, + onOk() { + Https.axiosGet(Https.httpUrls.unbindWeChat,).then((rv)=>{ + message.success(t('frontPage.jsContent1')); + let value = { + accountExtendList:{ + WeChat:undefined, + Google:accountHomeData.userDetail.accountExtendList?.Google + } + } + store.commit("upUserDetail", value) + }) } - store.commit("upUserDetail", value) - }) + }); } const ungroupGoogleModel = ()=>{ - Https.axiosGet(Https.httpUrls.unbindGoogle,).then((rv)=>{ - let value = { - accountExtendList:{ - WeChat:accountHomeData.userDetail.accountExtendList?.WeChat, - Google:undefined, - } + Modal.confirm({ + title: t('frontPage.UnbindTip'), + okText: t('Yes'), + cancelText: t('No'), + mask:false, + centered:true, + onOk() { + Https.axiosGet(Https.httpUrls.unbindGoogle,).then((rv)=>{ + let value = { + accountExtendList:{ + WeChat:accountHomeData.userDetail.accountExtendList?.WeChat, + Google:undefined, + } + } + store.commit("upUserDetail", value) + message.success(t('frontPage.jsContent1')); + }) } - store.commit("upUserDetail", value) - message.success(t('frontPage.jsContent1')); - }) + }); } const modifyEmail = ()=>{ bindPageDom.bindEmail.init('Modify') diff --git a/src/lang/cn.ts b/src/lang/cn.ts index 4ad24d17..1b459be2 100644 --- a/src/lang/cn.ts +++ b/src/lang/cn.ts @@ -825,6 +825,7 @@ export default { Modify: "修改", jsContent1: "取消绑定成功", jsContent2: "当前网络无法加载谷歌", + UnbindTip: "确认取消绑定吗?", }, Renew: { title: "选择你的最佳计划", @@ -1413,5 +1414,7 @@ export default { ToProductImage:'产品图', Relight:'打光', ChatRobot:'对话生成', + Yes:'是', + No:'否', }, }; diff --git a/src/lang/en.ts b/src/lang/en.ts index 1f2da2f7..621e7464 100644 --- a/src/lang/en.ts +++ b/src/lang/en.ts @@ -825,6 +825,7 @@ export default { Modify: "Modify", jsContent1: "Successful discharge", jsContent2: "The current network cannot load Google", + UnbindTip: "Are you sure to cancel the binding?", }, Renew: { title: "Find Your Ideal Plan", @@ -1413,5 +1414,7 @@ export default { ToProductImage:'ToProductImage', Relight:'Relight', ChatRobot:'ChatRobot', + Yes:'Yes', + No:'No', }, };