Browse Source

rel: 处理PCB专区跳转问题

wangcz 6 years ago
parent
commit
9d182f95ab

+ 1 - 1
components/pcb/brand/BrandList.vue

@@ -18,7 +18,7 @@
       </thead>
       <tbody>
       <tr class="text-center" v-for="item in list.content">
-        <td><nuxt-link :to="`/pcb/product/${item.productid}/${item.batchCode}`"><span>{{item.code}}</span></nuxt-link></td>
+        <td><nuxt-link :to="`/store/productDetail/${item.batchCode}`"><span>{{item.code}}</span></nuxt-link></td>
         <td>
           <div v-if="item.prices" v-text="item.currencyName === 'RMB' ? '¥' + item.prices[0].rMBPrice : '$' + item.prices[0].uSDPrice"></div>
           <div v-else>-</div>

+ 5 - 5
components/pcb/home/RecommendPcb.vue

@@ -18,7 +18,7 @@
         <div  v-if="commodities.length<=4">
           <ul class="recommend-list clearfix">
             <li v-for="commodity in commodities.slice(0,3)" class="big">
-              <a :href="commodity.batchCode ? '/pcb/product/'+ commodity.productid +'/'+ commodity.batchCode : '#'" class="href">
+              <a :href="commodity.batchCode ? '/store/productDetail/' + commodity.batchCode : '#'" class="href">
                 <div class="img">
                   <img :src="commodity.comImg.startsWith('static')?'/'+commodity.comImg:commodity.comImg"/>
                 </div>
@@ -38,7 +38,7 @@
           <div class="swiper-slide" v-if="commodities.length>0">
             <ul class="recommend-list clearfix">
               <li v-for="commodity in commodities.slice(0,4)" class="big">
-                <a :href="commodity.batchCode ? '/pcb/product/'+ commodity.productid +'/'+ commodity.batchCode : '#'" class="href">
+                <a :href="commodity.batchCode ? '/store/productDetail/' + commodity.batchCode : '#'" class="href">
                   <div class="img">
                     <img :src="commodity.comImg.startsWith('static')?'/'+commodity.comImg:commodity.comImg"/>
                   </div>
@@ -55,7 +55,7 @@
           <div class="swiper-slide" v-if="commodities.length>4">
             <ul class="recommend-list clearfix">
               <li v-for="commodity in commodities.slice(4,8)" class="big">
-                <a :href="commodity.batchCode ? '/pcb/product/'+ commodity.productid +'/'+ commodity.batchCode : '#'" class="href">
+                <a :href="commodity.batchCode ? '/store/productDetail/' + commodity.batchCode : '#'" class="href">
                   <div class="img">
                     <img :src="commodity.comImg.startsWith('static')?'/'+commodity.comImg:commodity.comImg"/>
                   </div>
@@ -72,7 +72,7 @@
           <div class="swiper-slide" v-if="commodities.length>8">
             <ul class="recommend-list clearfix">
               <li v-for="commodity in commodities.slice(8,12)" class="big">
-                <a :href="commodity.batchCode ? '/pcb/product/'+ commodity.productid +'/'+ commodity.batchCode : '#'" class="href">
+                <a :href="commodity.batchCode ? '/store/productDetail/' + commodity.batchCode : '#'" class="href">
                   <div class="img">
                     <img :src="commodity.comImg.startsWith('static')?'/'+commodity.comImg:commodity.comImg"/>
                   </div>
@@ -89,7 +89,7 @@
           <div class="swiper-slide" v-if="commodities.length>12">
             <ul class="recommend-list clearfix">
               <li v-for="commodity in commodities.slice(12,16)" class="big">
-                <a :href="commodity.batchCode ? '/pcb/product/'+ commodity.productid +'/'+ commodity.batchCode : '#'" class="href">
+                <a :href="commodity.batchCode ? '/store/productDetail/' + commodity.batchCode : '#'" class="href">
                   <div class="img">
                     <img :src="commodity.comImg.startsWith('static')?'/'+commodity.comImg:commodity.comImg"/>
                   </div>

+ 1 - 1
components/pcb/home/floors/Floor.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="floor">
     <ul>
-      <nuxt-link tag="li" :key="item.batchCode" :to="`/pcb/product/${item.productid}/${item.batchCode}`" class="list-item" v-for="item in data">
+      <nuxt-link tag="li" :key="item.batchCode" :to="`/store/productDetail/${item.batchCode}`" class="list-item" v-for="item in data">
         <div class="img">
           <img :src="getLogo(item)" alt="">
         </div>

+ 1 - 1
components/pcb/search/GoodList.vue

@@ -19,7 +19,7 @@
     </div>
     <ul class="good-list" v-if="good_list.pcbgoods && good_list.pcbgoods.length">
       <li v-for="item in good_list.pcbgoods" class="inline-block">
-        <nuxt-link :to="`/pcb/product/${item.productid}/${item.batchCode}`">
+        <nuxt-link :to="`/store/productDetail/${item.batchCode}`">
           <div class="img">
             <img :src="getLogo(item)">
           </div>