ソースを参照

修改店铺首页品牌中心bug

gaoxm 7 年 前
コミット
4042c9a89f

+ 7 - 1
components/brandCenter/BrandIndex.vue

@@ -252,6 +252,7 @@
               font-weight: bold;
               position: relative;
               bottom: 2px;
+              background-color: #ec190f;
             }
           }
         }
@@ -270,6 +271,7 @@
               font-weight: bold;
               position: relative;
               bottom: 2px;
+              background-color: #ea8f02;
             }
           }
         }
@@ -288,6 +290,7 @@
               font-weight: bold;
               position: relative;
               bottom: 2px;
+              background-color: #009b87;
             }
           }
         }
@@ -306,6 +309,7 @@
               font-weight: bold;
               position: relative;
               bottom: 2px;
+              background-color: #0095db;
             }
           }
         }
@@ -324,6 +328,7 @@
               font-weight: bold;
               position: relative;
               bottom: 2px;
+              background-color: #026dc5;
             }
           }
         }
@@ -342,6 +347,7 @@
               font-weight: bold;
               position: relative;
               bottom: 2px;
+              background-color: #7479eb;
             }
           }
         }
@@ -350,7 +356,7 @@
     .brand-center-index-list {
       .brand-list-nav {
         height: 56px;
-        padding-top: 15px;
+        padding-top: 8px;
         .filter-area {
           float: right;
           height: 50px;

+ 22 - 9
components/store/home/CommodityList.vue

@@ -126,7 +126,7 @@
                   <!--<p class="grey f16">暂无器件信息</p>-->
                   <p class="grey f16"> 暂无产品信息</p>
                   <i class="iconfont" v-if="emptyShow === false">&#xe610;</i>&nbsp;<a v-if="emptyShow === false" href="/">返回首页</a>
-                  <img v-if="emptyShow === true" src="/images/brandList/upload.png">&nbsp;<a v-if="emptyShow === true" href="/vendor#/vendor_upload?type=company">马上去上传</a>
+                  <img v-if="emptyShow === true" src="/images/brandList/upload.png">&nbsp;<a v-if="emptyShow === true" href="/vendor#/vendor_upload?type=company" target="_blank">马上去上传</a>
                 </div>
               </div>
             </td>
@@ -266,12 +266,22 @@
         }
       }
     },
-    mounted () {
-      this.kinds.forEach((item) => {
-        this.KindsNameChange(item)
-      })
-//    alert(JSON.stringify(this.kinds))
-    },
+    watch: {
+       kinds: {
+         handler: function (val) {
+           this.kinds.forEach((item) => {
+             this.KindsNameChange(item)
+           })
+         },
+         immediate: false
+       }
+  },
+//  mounted () {
+//      this.kinds.forEach((item) => {
+//        this.KindsNameChange(item)
+//      })
+// //    alert(JSON.stringify(this.kinds))
+//    },
     methods: {
       sendprove: function () {
         if (this.user.logged) {
@@ -288,8 +298,8 @@
         this.baseUtils.goLinkUser(this, this.storeInfo.enUU)
       },
       KindsNameChange: function (obj) {
-//        obj.nameCn += `  (${obj.count})`
-//        document.getElementsByClassName('el-tree-node__label').innerHTML = "<span style='color:#666;'>11</span>"
+        obj.nameCn += `  (${obj.count})`
+        document.getElementsByClassName('el-tree-node__label').innerHTML = "<span style='color:#666;'>11</span>"
         if (obj.children && obj.children.length) {
           console.log(obj.children)
           obj.children.forEach((item) => {
@@ -597,6 +607,9 @@
   #goods-list-fragment .brand-code .code {
     font-weight: 600;
   }
+  #goods-list-fragment .brand-code .spec {
+    word-break: break-all;
+  }
   #goods-list-fragment .brand-code .brand a {
     color: #3c7df5;
   }

+ 2 - 2
components/store/home/QualificationCertificate.vue

@@ -3,7 +3,7 @@
     <div class="brand-content-list">
       <ul class="list-unstyled list-inline">
         <li class="store-box"  v-if="storeInfo.qualifications || storeInfo.qualifications.length !== 0" v-for="(store, index) in storeInfo.qualifications.slice(0,5)">
-          <div><img :src="store.resourceUrl.indexOf('.pdf')>0?'/images/store/common/pdf.png':store.resourceUrl"/></div>
+          <div><img :src="store.resourceUrl.indexOf('.pdf')>0?'/images/store/common/pdf.jpg':store.resourceUrl"/></div>
           <a @click="showImg(store.resourceUrl)"><div class="Open"><i class="fa fa-search"></i>&nbsp;&nbsp;查看</div></a>
         </li>
         <li class="active-empty" v-if="!storeInfo.qualifications || storeInfo.qualifications.length == 0">
@@ -14,7 +14,7 @@
             <div class="col-xs-4 txt-info">
               <p class="grey f16"> 暂无资质证明</p>
                <i class="iconfont" v-if="emptyShow === false">&#xe610;</i>&nbsp;<a href="/" v-if="emptyShow === false">返回首页</a>
-               <img v-if="emptyShow === true" src="/images/brandList/upload.png">&nbsp;<a v-if="emptyShow === true" href="/vendor#/store/maintain">马上去上传</a>
+               <img v-if="emptyShow === true" src="/images/brandList/upload.png">&nbsp;<a v-if="emptyShow === true" href="/vendor#/store/maintain" target="_blank">马上去上传</a>
             </div>
           </div>
         </li>

+ 1 - 1
components/store/home/RecommendList.vue

@@ -26,7 +26,7 @@
            <div class="empty-info">
              <p class="grey f16"> 暂无展示产品</p>
              <i class="iconfont" v-if="emptyShow === false">&#xe610;</i>&nbsp;<a v-if="emptyShow === false" href="/">返回首页</a>
-             <img v-if="emptyShow === true" src="/images/brandList/upload.png">&nbsp;<a v-if="emptyShow === true" href="/vendor#/store/maintain">马上去上传</a>
+             <img v-if="emptyShow === true" src="/images/brandList/upload.png">&nbsp;<a v-if="emptyShow === true" href="/vendor#/store/maintain" target="_blank">马上去上传</a>
            </div>
          </div>
        </li>

+ 3 - 3
components/store/home/StoreBanner.vue

@@ -10,7 +10,7 @@
         <div class="shop-logo">
           <img class="logo-img" :src="storeInfo.logoUrl || '/images/store/common/default.png'" />
          <!-- <p id="shop-title" v-if="storeInfo.storeShortName" v-text="storeInfo.storeShortName">店铺名称</p>-->
-          <p class="shop-name" v-if="storeInfo.storeShortName">{{storeInfo.storeShortName | nameFilter}}</p>
+          <p class="shop-name" v-if="storeInfo.storeName">{{storeInfo.storeName | nameFilter}}</p>
           <p class="shop-name" v-else></p>
           <div class="enter-store">
             <a v-if="isFocus == 'false' || typeof isFocus == 'object'" @click="focus(storeInfo.id, storeInfo.storeName)">关注店铺</a>
@@ -85,8 +85,8 @@ export default {
       _this.clipboard.destroy()
     })
     document.addEventListener('click', function () {
-      _this.showShare = false
-      _this.showCate = false
+//      _this.showShare = false
+//      _this.showCate = false
     })
   },
   components: {

BIN
static/images/store/common/pdf.jpg