Browse Source

切换产品详情页跳转链接

yangc 7 years ago
parent
commit
6107835f65

+ 1 - 1
components/default/RightBar.vue

@@ -46,7 +46,7 @@
             <h3><a href="/user#/browsingHistory">浏览历史</a></h3>
             <dl>
               <dd v-for="item in listMe(history)">
-                  <a :href="'/store/' + item.storeid + '/' + item.batchCode" target="_blank" :title="item.code" v-text="item.code" v-if="item.status== 1"></a>
+                  <a :href="'/store/productDetail/' + item.batchCode" target="_blank" :title="item.code" v-text="item.code" v-if="item.status== 1"></a>
                   <a :title="item.code" v-text="item.code" v-if="item.status== 0" disabled="disabled"></a>
                   <div class="hover-shows">
                       <em :class="{ 'off' : item.status== 0}"></em>

+ 1 - 1
components/product/ComponentGoods.vue

@@ -25,7 +25,7 @@
         <td style="position: relative">
           <img class="sellout-flag" v-if="compGoods.status === 602" src="/images/search/sellout-search.png" alt="">
           <!--store/{{compGoods.storeId}}#/batchInfo/{{compGoods.batchCode}}-->
-          <nuxt-link v-if="compGoods.batchCode" :to="`/store/${compGoods.storeId}/${compGoods.batchCode}`" target="_blank">
+          <nuxt-link v-if="compGoods.batchCode" :to="`/store/productDetail/${compGoods.batchCode}`" target="_blank">
             <img :src="compGoods.img?compGoods.img:compGoods.brand&&compGoods.brand.logoUrl?compGoods.brand.logoUrl:'/images/all/default.png'"/>
           </nuxt-link>
             <img v-if="!compGoods.batchCode" :src="compGoods.img?compGoods.img:compGoods.brand&&compGoods.brand.logoUrl?compGoods.brand.logoUrl:'/images/all/default.png'"/>

+ 3 - 3
components/product/component/StoreInfo.vue

@@ -46,7 +46,7 @@
           </tr>
         </thead>
         <tbody class="text-center">
-          <tr style="cursor: pointer;" v-for="list in storeList.content" @click="goProductDetail(list.storeid, list.batchCode)">
+          <tr style="cursor: pointer;" v-for="list in storeList.content" @click="goProductDetail(list.batchCode)">
             <td style="position: relative">
               <img class="sellout-flag" v-if="list.status === 602" src="/images/search/sellout-search.png" alt="">
               <a v-if="list.code">{{list.code}}</a>
@@ -260,8 +260,8 @@
         }
         this.$store.dispatch('loadComponentInformation', this.params)
       },
-      goProductDetail: function (storeid, batchcode) {
-        window.location.href = '/store/' + storeid + '/' + batchcode
+      goProductDetail: function (batchCode) {
+        window.location.href = '/store/productDetail/' + batchCode
       }
     }
   }

+ 4 - 4
components/product/original/OriginalDetail.vue

@@ -9,7 +9,7 @@
         <div class="hot-center clearfix">
           <div class="hot-center-1 clearfix">
             <div class="hot-pro" v-for="item in list1">
-              <a :title="item.code" :href="'/store/' + item.storeid + '/' + item.batchCode" target="_blank">
+              <a :title="item.code" :href="'/store/productDetail/' + item.batchCode" target="_blank">
                 <p><img :src="item.img" alt=""></p>
                 <span><em>{{item.code}}</em></span>
               </a>
@@ -18,7 +18,7 @@
           <div class="hot-center-2 clearfix">
             <ul>
               <li v-for="item in list2">
-                <a :title="item.code" :href="'/store/' + item.storeid + '/' + item.batchCode" target="_blank">
+                <a :title="item.code" :href="'/store/productDetail/' + item.batchCode" target="_blank">
                   <p><img :src="item.img" alt=""></p>
                   <span><em>{{item.code}}</em></span>
                 </a>
@@ -29,7 +29,7 @@
           <div class="hot-center clearfix pad-b10">
             <div class="hot-center-1 clearfix">
               <div class="hot-pro" v-for="item in list3">
-                <a title="" :title="item.code" :href="'/store/' + item.storeid + '/' + item.batchCode" target="_blank">
+                <a title="" :title="item.code" :href="'/store/productDetail/' + item.batchCode" target="_blank">
                   <p><img :src="item.img" alt=""></p>
                   <span><em>{{item.code}}</em></span>
                 </a>
@@ -38,7 +38,7 @@
             <div class="hot-center-2 clearfix">
               <ul>
                 <li v-for="item in list4">
-                  <nuxt-link title="" :to="'/store/' + item.storeid + '/' + item.batchCode" target="_blank">
+                  <nuxt-link title="" :to="'/store/productDetail/' + item.batchCode" target="_blank">
                     <p><img :src="item.img" alt=""></p>
                     <span><em>{{item.code}}</em></span>
                   </nuxt-link>

+ 1 - 1
components/search/GoodList.vue

@@ -295,7 +295,7 @@
       },
       goUnstandardDetail: function (comp) {
         if (!comp.brand && comp.brandEn) {
-          this.$router.push('/store/' + comp.storeId + '/' + comp.batchCode)
+          this.$router.push('/store/productDetail/' + comp.batchCode)
         }
       }
     }

+ 1 - 1
components/searchStore/StoreContent.vue

@@ -125,7 +125,7 @@
         this.$emit('pageAction', page)
       },
       goStore: function (index, compIndex) {
-        window.open('/store/' + this.componentData[index].content[compIndex].storeid + '/' + this.componentData[index].content[compIndex].batchCode)
+        window.open('/store/productDetail/' + this.componentData[index].content[compIndex].batchCode)
       }
     }
   }

+ 0 - 0
pages/store/_uuid/_batchCode.vue → pages/store/productDetail/_batchCode.vue