From 78df54d153f8d5be5c40bb4ba6c68e99ea9e87c2 Mon Sep 17 00:00:00 2001 From: Yer <17633066053@163.com> Date: Thu, 14 Sep 2023 09:11:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20:bug:=20=E4=BF=AE=E5=A4=8D=E5=87=A0?= =?UTF-8?q?=E4=B8=AA=E5=B7=B2=E7=9F=A5bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/src/main.js | 12 ++++++++++-- manager/src/views/goods/goods-review/index.vue | 8 ++++---- manager/src/views/member/point/point.vue | 1 + 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/manager/src/main.js b/manager/src/main.js index 47b0d45c..5c3ffde7 100644 --- a/manager/src/main.js +++ b/manager/src/main.js @@ -38,8 +38,16 @@ Vue.config.devtools = true; Vue.config.productionTip = false const PC_URL = BASE.PC_URL; // 跳转买家端地址 pc端 const WAP_URL = BASE.WAP_URL; // 跳转买家端地址 wap端 -Vue.prototype.linkTo = function (goodsId, skuId) { // 跳转买家端商品 - window.open(`${PC_URL}/goodsDetail?skuId=${skuId}&goodsId=${goodsId}`, '_blank') +Vue.prototype.linkTo = function (goodsId, skuId) { + // 跳转买家端商品 + let src; + if (skuId) { + src = `${PC_URL}/goodsDetail?skuId=${skuId}&goodsId=${goodsId}`; + } else { + src = `${PC_URL}/goodsDetail?goodsId=${goodsId}`; + } + + window.open(src, "_blank"); }; Vue.prototype.wapLinkTo = function (goodsId, skuId) { // app端二维码 return `${WAP_URL}/pages/product/goods?id=${skuId}&goodsId=${goodsId}` diff --git a/manager/src/views/goods/goods-review/index.vue b/manager/src/views/goods/goods-review/index.vue index ecce2cad..9073fddb 100644 --- a/manager/src/views/goods/goods-review/index.vue +++ b/manager/src/views/goods/goods-review/index.vue @@ -2,7 +2,7 @@
-
+ @@ -48,10 +48,10 @@
店铺名称:{{ infoData.storeName }}
订单号:{{ infoData.orderNo }}
- +
- + @@ -69,7 +69,7 @@ v-for="(img,index) in infoData.images.split(',')" :src="img" alt="" :key="index"/> - +
diff --git a/manager/src/views/member/point/point.vue b/manager/src/views/member/point/point.vue index a9c31079..2a9abb66 100644 --- a/manager/src/views/member/point/point.vue +++ b/manager/src/views/member/point/point.vue @@ -8,6 +8,7 @@ inline style="margin-top:10px" :label-width="70" + @submit.native.prevent class="search-form" >