浏览代码

供应商限制

zhengjinyi 3 年之前
父节点
当前提交
ee7e09838f

+ 2 - 2
src/main/resources/static/js/pay/caimei-paycash.js

@@ -292,8 +292,8 @@ var payContainer = new Vue({
                         CAIMEI.dialog('请选择银行!');
                         return;
                     }
-                    if(_self.payAmount <= 10){
-                        CAIMEI.dialog('网银支付的金额必须大于¥10.00');
+                    if(_self.payAmount <= 12){
+                        CAIMEI.dialog('网银支付的金额必须大于¥12.00');
                         return;
                     }
                     if(_self.pageType === '1'){

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

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

+ 7 - 0
src/main/resources/static/js/supplier/list.js

@@ -77,6 +77,13 @@ var supplierList = new Vue({
                 }
             });
         },
+        hanldHrefLink:function (shopId) {
+            console.log('shopId',shopId)
+            if(shopId == 1161){
+                return;
+            }
+            window.open('/supplier-'+shopId+'.html');
+        }
 
     },
     created: function () {

+ 12 - 10
src/main/resources/templates/product/detail.html

@@ -601,17 +601,19 @@
                         <div class="name"><span th:text="${product.shopTitle}"></span><i
                                 th:if="not${#strings.isEmpty(product.license)}" class="icon shop"></i></div>
                     </a>
-                    <template th:if="not${#strings.isEmpty(product.businessScope)}">
-                        <div class="tit">经营范围:</div>
-                        <div class="con" th:text="${product.businessScope}"></div>
-                    </template>
-                    <template th:if="not${#strings.isEmpty(product.shopAddress)}">
-                        <div class="tit">所在地区:</div>
-                        <div class="con" th:text="${product.shopAddress}"></div>
+                    <template v-if="!isShowCaimeiShop">
+                        <template th:if="not${#strings.isEmpty(product.businessScope)}">
+                            <div class="tit">经营范围:</div>
+                            <div class="con" th:text="${product.businessScope}"></div>
+                        </template>
+                        <template th:if="not${#strings.isEmpty(product.shopAddress)}">
+                            <div class="tit">所在地区:</div>
+                            <div class="con" th:text="${product.shopAddress}"></div>
+                        </template>
+                        <div class="tit">满意度:<i th:each="i:${#numbers.sequence(1,5)}" class="icon heart"></i></div>
+                        <a th:href="@{'/supplier-'+ ${product.shopId} +'.html'}" class="btn"
+                           onclick="_czc.push(['_trackEvent','商品详情','点击','查看主页','','Um_Event_ProductShopHome'])">查看主页</a>
                     </template>
-                    <div class="tit">满意度:<i th:each="i:${#numbers.sequence(1,5)}" class="icon heart"></i></div>
-                    <a th:href="@{'/supplier-'+ ${product.shopId} +'.html'}" class="btn" v-if="!isShowCaimeiShop"
-                       onclick="_czc.push(['_trackEvent','商品详情','点击','查看主页','','Um_Event_ProductShopHome'])">查看主页</a>
                 </div>
             </div>
             <div class="contact">

+ 3 - 3
src/main/resources/templates/supplier/list.html

@@ -26,9 +26,9 @@
     </div>
     <!--列表-->
     <ul v-else class="supplierList">
-        <li class="supplierItem clear" v-for="shop in listData">
+        <li class="supplierItem clear" v-for="shop in listData"  @click="hanldHrefLink(shop.shopId)">
             <div class="left">
-                <a :href="'/supplier-'+shop.shopId+'.html'" target="_blank" class="logo">
+                <a href="javascript:void(0);" class="logo">
                     <img :src="shop.logo" onerror="javascript:this.src='/img/default/suppliver.jpg';">
                 </a>
                 <h5><a :href="'/supplier-'+shop.shopId+'.html'" :title="shop.name" target="_blank">
@@ -55,7 +55,7 @@
                     </template>
                     <li v-else-if="isPC" v-for="i in 3"></li>
                 </ul>
-                <a v-if="isPC" :href="'/supplier-'+shop.shopId+'.html'" target="_blank" class="four" onclick="_czc.push(['_trackEvent','搜索供应商','点击','查看主页','','Um_Event_SearchShopListHome'])">进入本店铺>>></a>
+                <a v-if="isPC" href="javascript:void(0);" class="four" onclick="_czc.push(['_trackEvent','搜索供应商','点击','查看主页','','Um_Event_SearchShopListHome'])">进入本店铺>>></a>
             </div>
         </li>
     </ul>