From e6ccd59a9b4cfdf6faaf5abddc6171738fa3adf5 Mon Sep 17 00:00:00 2001 From: liushiwei <499672082@qq.com> Date: Fri, 11 Aug 2023 08:31:53 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/manifest.production.json | 2 +- src/utils/index.js | 6 +- src/view/NormalSendGoods.vue | 209 +++++++++++++++++++++++++++-------- 3 files changed, 169 insertions(+), 48 deletions(-) diff --git a/src/manifest.production.json b/src/manifest.production.json index c595e1a..6ac5e3a 100644 --- a/src/manifest.production.json +++ b/src/manifest.production.json @@ -2,7 +2,7 @@ "manifest_version": 3, "name": "TEMU助手", "description": "TEMU助手 - 自动化提高生产效率", - "version": "2.0", + "version": "2.0.1", "background": { "service_worker": "/background.js" }, diff --git a/src/utils/index.js b/src/utils/index.js index 393e267..55396c7 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -99,7 +99,11 @@ const userCheck = (mallId) => { reject('您的账号未激活或已失效,请激活后使用') return false } - if (res.type != 4 && mallId != store.state.userInfo.mallId) { + let tempMallId = mallId + if (!tempMallId) { + tempMallId = store.state.mallId + } + if (res.type != 4 && tempMallId != store.state.userInfo.mallId) { Message.error('您当前登录的TEMU账号与会员绑定账号不一致') reject('您当前登录的TEMU账号与会员绑定账号不一致') return false diff --git a/src/view/NormalSendGoods.vue b/src/view/NormalSendGoods.vue index fcc0cfb..2199057 100644 --- a/src/view/NormalSendGoods.vue +++ b/src/view/NormalSendGoods.vue @@ -10,8 +10,25 @@