Browse Source

库存寄售增加图片链接,搜索结果页样式微调

yangc 8 years ago
parent
commit
9e3258ffd5
3 changed files with 17 additions and 4 deletions
  1. 5 1
      components/search/Kind.vue
  2. 12 3
      layouts/shop.vue
  3. BIN
      static/images/all/banner-consignment.png

+ 5 - 1
components/search/Kind.vue

@@ -494,6 +494,10 @@
     font-size: 12px;
     line-height: 30px;
     border: 1px solid #e5e5e5;
+    border-bottom: none;
+  }
+  #searchResult .selector .sl-wrap:last-child {
+    border-bottom: 1px solid #e5e5e5;
   }
   #searchResult .selector .sl-wrap .sl-key {
     float: left;
@@ -552,7 +556,7 @@
   }
 
   .list-inline {
-    height: 60px;
+    max-height: 60px;
     overflow: hidden;
     margin-bottom: 0;
     padding-left: 0;

+ 12 - 3
layouts/shop.vue

@@ -3,6 +3,7 @@
     <header-view v-if="!isInFrame"></header-view>
     <store-header/>
     <store-title/>
+    <img v-if="isConsignment" class="banner-img" src="/images/all/banner-consignment.png" alt="">
     <nuxt/>
     <footer-view></footer-view>
     <right-bar></right-bar>
@@ -47,7 +48,7 @@
       title () {
         let path = this.$route.path
         if ((path.startsWith('/store/') && getCount(path, '/') === 2) || path.endsWith('/description')) {
-          if (path.indexOf('33069557578d44e69bd91ad12d28a8d4') === -1) {
+          if (!this.isConsignment) {
             return this.storeInfo.storeName + this.getStoreType(this.storeInfo.type) + '专卖店-优软商城'
           } else {
             return 'IC电子元器件库存寄售呆滞尾料空闲库存商城自营现货寄售-优软商城'
@@ -61,7 +62,7 @@
       description () {
         let path = this.$route.path
         if ((path.startsWith('/store/') && getCount(path, '/') === 2) || path.endsWith('/description')) {
-          if (path.indexOf('33069557578d44e69bd91ad12d28a8d4') === -1) {
+          if (!this.isConsignment) {
             return this.storeInfo.storeName + '官方' + this.getStoreType(this.storeInfo.type) + '专卖店,提供最新IC电子元器件现货在线销售。'
           } else {
             return '优软商城为您提供IC电子元器件库存寄售呆滞尾料空闲库存现货寄售服务,商城自营现货寄售让您更放心更省心。'
@@ -75,7 +76,7 @@
       keywords () {
         let path = this.$route.path
         if ((path.startsWith('/store/') && getCount(path, '/') === 2) || path.endsWith('/description')) {
-          if (path.indexOf('33069557578d44e69bd91ad12d28a8d4') === -1) {
+          if (!this.isConsignment) {
             return '电子元器件' + this.getStoreType(this.storeInfo.type) + '专卖店'
           } else {
             return '优软商城,ic芯片库存寄售,电子元器件寄售'
@@ -89,6 +90,9 @@
       storeInfo () {
         return this.$store.state.shop.storeInfo.store.data
       },
+      isConsignment () {
+        return this.storeInfo.type === 'CONSIGNMENT'
+      },
       commodity () {
         return this.$store.state.shop.storeInfo.commodity.data
       }
@@ -109,3 +113,8 @@
     }
   }
 </script>
+<style scoped>
+  .banner-img {
+    margin-top: -10px;
+  }
+</style>

BIN
static/images/all/banner-consignment.png