From 1c3482fc99329729b2601ca8f5000057f44f00a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=B5=A9?= <15830956848@163.com> Date: Thu, 13 Mar 2025 09:45:04 +0800 Subject: [PATCH] =?UTF-8?q?im=E9=80=9A=E8=AE=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buyer/src/components/goodsDetail/ShowGoods.vue | 10 +++++++--- txim/src/App.vue | 7 +++++-- txim/vue.config.js | 1 + 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/buyer/src/components/goodsDetail/ShowGoods.vue b/buyer/src/components/goodsDetail/ShowGoods.vue index 5145fbf6..e5c05a01 100644 --- a/buyer/src/components/goodsDetail/ShowGoods.vue +++ b/buyer/src/components/goodsDetail/ShowGoods.vue @@ -331,9 +331,9 @@ export default { handler(val) { this.skuDetail = val.data; this.wholesaleList = val.wholesaleList; - if (this.wholesaleList && this.wholesaleList.length > 0) { - this.count = this.wholesaleList[0].num; - } + // if (this.wholesaleList && this.wholesaleList.length > 0) { + // this.count = this.wholesaleList[0].num; + // } this.promotion(); this.swiperGoodsImg(); }, @@ -438,6 +438,10 @@ export default { }, addShoppingCartBtn() { + // console.log({ + // num: this.count, + // skuId: this.skuDetail.id, + // }); // 添加购物车 const params = { num: this.count, diff --git a/txim/src/App.vue b/txim/src/App.vue index c894eb4e..a2641dc9 100644 --- a/txim/src/App.vue +++ b/txim/src/App.vue @@ -12,6 +12,9 @@ class="callkit-container" :allowedMinimized="true" :allowedFullScreen="false" + :SDKAppID="info.SDKAppID" + :userID="info.userID" + :userSig="info.userSing" /> --> @@ -53,11 +56,11 @@ const getIMDetail = async () => { info.userID = data.result.userID; flag.value = true; } catch (error) { - alert("没有登陆"); + alert("没有登陆,请重新进入"); window.close(); } } else { - alert("没有登陆"); + alert("没有登陆,请重新进入"); window.close(); } }; diff --git a/txim/vue.config.js b/txim/vue.config.js index c17c2cf8..9e767f2b 100644 --- a/txim/vue.config.js +++ b/txim/vue.config.js @@ -5,5 +5,6 @@ module.exports = defineConfig({ client: { overlay: false, }, + port: 8999, // 这里设置你想要的端口号,例如 8081 }, });