Ver código fonte

供应商跳转修改

zhengjinyi 3 anos atrás
pai
commit
8b8fecba8d

+ 1 - 1
src/main/resources/static/js/product/detail.js

@@ -181,7 +181,7 @@ var productDetail = new Vue({
                     _self.recommendType = product.recommendType ? product.recommendType : 0;
                     _self.archiveId = product.archiveId; // 保存资料列表id
                     _self.productDetailChose = product.productDetailChose; // 同资质机构显示商品详情
-                    if(product.shopId == 1161){
+                    if(product.shop.shopType == 2){
                         _self.isShowCaimeiShop = true
                     }
                     if (product.userLike && product.userLike == 1) {// 商品收藏

+ 3 - 3
src/main/resources/static/js/shopping/cart.js

@@ -569,12 +569,12 @@ var shoppingCart = new Vue({
             var _self = this;
             _self.isShowPopup = false;
         },
-        hanldHrefLink:function (shopId) {
+        hanldHrefLink:function (shop) {
             console.log('shopId',shopId)
-            if(shopId == 1161){
+            if(shop.shopType == 2){
                 return;
             }
-            window.open('/supplier-'+shopId+'.html');
+            window.open('/supplier-'+shop.shopId+'.html');
         }
     },
     created: function () {

+ 1 - 1
src/main/resources/templates/shopping/cart.html

@@ -49,7 +49,7 @@
                     <div class="c0" @click="ckeckSupplier(supplier)">
                         <span class="coll-checked" :class="[supplier.isChecked ? 'checked': '']"></span>
                     </div>
-                    <a  class="shop" href="JavaScript:void(0);" @click="hanldHrefLink(supplier.shopId)">
+                    <a  class="shop" href="JavaScript:void(0);" @click="hanldHrefLink(supplier)">
                         <img class="img" :src="supplier.shopLogo">
                         <span class="name" v-text="supplier.shopName"></span>
                     </a>