From f6289c0cae204771252c6f96a09efc6a22b79fbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=BF=97=E5=86=9B?= <543024265@qq.com> Date: Tue, 8 Jul 2025 17:27:27 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=B8=B4=E6=97=B6?= =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../put-account/investment-guidelines/index.vue | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/views/property-marketing/put-account/investment-guidelines/index.vue b/src/views/property-marketing/put-account/investment-guidelines/index.vue index b72fec8..d35dc09 100644 --- a/src/views/property-marketing/put-account/investment-guidelines/index.vue +++ b/src/views/property-marketing/put-account/investment-guidelines/index.vue @@ -40,15 +40,11 @@
- - - - - - - - - + + + + +
@@ -171,7 +167,7 @@ const timerRef = ref(null); const startTask = () => { //todo 暂时注释 - return + return; if (timerRef.value !== null) return; timerRef.value = setInterval(async () => { try { From 0c7d9086c829351fd909ba4d0e8b4dc7de18d4c3 Mon Sep 17 00:00:00 2001 From: rd <1344903914@qq.com> Date: Tue, 8 Jul 2025 17:51:02 +0800 Subject: [PATCH 2/5] =?UTF-8?q?perf:=20=E5=8E=BB=E6=8E=89=E7=99=BE?= =?UTF-8?q?=E5=88=86=E6=AF=94=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../account-detail/components/account-info/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/property-marketing/media-account/account-detail/components/account-info/index.vue b/src/views/property-marketing/media-account/account-detail/components/account-info/index.vue index 851ce48..5b3d2a6 100644 --- a/src/views/property-marketing/media-account/account-detail/components/account-info/index.vue +++ b/src/views/property-marketing/media-account/account-detail/components/account-info/index.vue @@ -80,7 +80,7 @@ > - {{ `${(detailData[field.dataIndex] * 100).toFixed(2)}%` }} + {{ `${detailData[field.dataIndex]}%` }}
@@ -166,11 +166,13 @@ const openDelete = (item) => { }; const handleReauthorize = (item) => { - const isUnauthorized = isUnauthorizedStatus(item.status); + console.log({ item }); + const { id, platform, status } = item; + const isUnauthorized = isUnauthorizedStatus(status); if (isUnauthorized) { - authorizedAccountModalRef.value?.open(item.id); + authorizedAccountModalRef.value?.open(id, platform); } else { - reauthorizeAccountModalRef.value?.open(item.id); + reauthorizeAccountModalRef.value?.open(id, platform); } }; diff --git a/src/views/property-marketing/media-account/account-manage/components/add-account-modal/index.vue b/src/views/property-marketing/media-account/account-manage/components/add-account-modal/index.vue index 1e96ffb..567df68 100644 --- a/src/views/property-marketing/media-account/account-manage/components/add-account-modal/index.vue +++ b/src/views/property-marketing/media-account/account-manage/components/add-account-modal/index.vue @@ -124,7 +124,7 @@ - + @@ -322,15 +322,15 @@ async function onSubmit() { if (isEdit.value) { onClose(); } else { - startAuthorized(data?.id); + startAuthorized(data?.id, data?.platform); } } } }); } -const startAuthorized = (id) => { - authorizedAccountModalRef.value.open(id); +const startAuthorized = (id, platform) => { + authorizedAccountModalRef.value.open(id, platform); }; const handleDownloadTemplate = async () => { diff --git a/src/views/property-marketing/media-account/account-manage/components/authorized-account-modal/index.vue b/src/views/property-marketing/media-account/account-manage/components/authorized-account-modal/index.vue index 33de039..b0ece06 100644 --- a/src/views/property-marketing/media-account/account-manage/components/authorized-account-modal/index.vue +++ b/src/views/property-marketing/media-account/account-manage/components/authorized-account-modal/index.vue @@ -34,7 +34,7 @@
@@ -88,7 +88,7 @@ const isSuccess = ref(false); const failReason = ref(''); const progress = ref(0); const id = ref(''); - +const platform = ref(''); const isFailLoadQrCode = ref(false); const qrCodeUrl = ref(''); const qrCodeLoading = ref(false); @@ -103,8 +103,9 @@ const confirmBtnText = computed(() => { return isSuccess.value ? '继续添加' : '重新扫码'; }); -const open = (accountId) => { +const open = (accountId, platformCode) => { id.value = accountId; + platform.value = platformCode === 0 ? '抖音' : '小红书'; getAuthorizedQrCode(); visible.value = true; }; @@ -114,6 +115,7 @@ const resetTaskFields = () => { isCompleted.value = false; isSuccess.value = false; failReason.value = ''; + platform.value = ''; progress.value = 0; qrCodeUrl.value = ''; qrCodeLoading.value = false; @@ -168,6 +170,7 @@ const startStatusPolling = () => { clearFakeProgressTimer(); clearStatusPollingTimer(); isLoading.value = false; + emits('update'); } } }, 2000); diff --git a/src/views/property-marketing/media-account/account-manage/components/reauthorize-account-modal/index.vue b/src/views/property-marketing/media-account/account-manage/components/reauthorize-account-modal/index.vue index b3372d2..2013748 100644 --- a/src/views/property-marketing/media-account/account-manage/components/reauthorize-account-modal/index.vue +++ b/src/views/property-marketing/media-account/account-manage/components/reauthorize-account-modal/index.vue @@ -34,7 +34,7 @@