فهرست منبع

修改品牌中心,供应商列表可点击区域

shenjj 7 سال پیش
والد
کامیت
475a632d17

+ 1 - 1
components/mobile/Home.vue

@@ -42,7 +42,7 @@
           </nuxt-link>
         </li>
         <li>
-          <nuxt-link to="/mobile/brand/brandCenter/ABCD">
+          <nuxt-link to="/mobile/brand/brandCenter/A">
             <img src="/images/mobile/@2x/home/brand.png" alt="">
             <span>品牌中心</span>
           </nuxt-link>

+ 1 - 1
components/mobile/HomeOld.vue

@@ -35,7 +35,7 @@
           </div>
           <p>店铺列表</p>
         </nuxt-link>
-        <nuxt-link to="/mobile/brand/brandCenter/ABCD" class="home-main-content">
+        <nuxt-link to="/mobile/brand/brandCenter/A" class="home-main-content">
           <div>
             <!--<i class="icon-pinpai iconfont"></i>-->
             <img src="/images/mobile/@2x/home/brand@2x.png" alt="">

+ 27 - 1
components/mobile/brand/BrandCenter.vue

@@ -48,7 +48,33 @@
     data () {
       return {
         initArr: [
-          'ABCD', 'EFGH', 'IJKL', 'MNOP', 'QRST', 'UVWX', 'YZ', '0~9'
+          'A',
+          'B',
+          'C',
+          'D',
+          'E',
+          'F',
+          'G',
+          'H',
+          'I',
+          'J',
+          'K',
+          'L',
+          'M',
+          'N',
+          'O',
+          'P',
+          'Q',
+          'R',
+          'S',
+          'T',
+          'U',
+          'V',
+          'W',
+          'X',
+          'Y',
+          'Z',
+          '0~9'
         ],
         activeIndex: this.$route.params.initial,
         isScrolled: false

+ 4 - 2
components/mobile/supplier/List.vue

@@ -10,13 +10,15 @@
       </div>
     </div>
     <ul>
-      <li v-for="item in listData">
+      <!--<li v-for="item in listData">-->
+      <nuxt-link v-bind:key="item.id" v-for="item in listData" tag="li" :to="`/mobile/supplier/detail/${item.enUU}?isStore=${item.isStore}`">
         <nuxt-link :to="`/mobile/supplier/detail/${item.enUU}?isStore=${item.isStore}`">
         <img v-if="item.isStore == 1" class="open" src="/images/mobile/supplier/is-open.png" alt="">
         <span>{{item.enName}}</span>
         <img class="tag" src="/images/mobile/supplier/tag.png" alt="">
         </nuxt-link>
-      </li>
+      </nuxt-link>
+      <!--</li>-->
     </ul>
   </div>
 </template>

+ 1 - 1
components/mobile/supplier/SupplierDetail.vue

@@ -2,7 +2,7 @@
   <div class="supplier-detail">
     <img v-if="$route.query.isStore === '1'" class="open" src="/images/mobile/supplier/is-open.png" alt="">
     <div class="detail">
-      <h1>{{enInfo.enName}} <nuxt-link v-if="$route.query.isStore === '1'" :to="`/mobile/shop/${storeInfo.uuid}`"><i class="iconfont icon-xiangyou"></i></nuxt-link></h1>
+      <nuxt-link v-if="$route.query.isStore === '1'" :to="`/mobile/shop/${storeInfo.uuid}`" tag="h1">{{enInfo.enName}}<i class="iconfont icon-xiangyou"></i></nuxt-link>
       <div class="line">
         <div class="img-wrap">
           <img src="/images/mobile/supplier/business.png" alt="">