Browse Source

器件詳情頁面链接的添加和打印输出的删除

hangb 8 years ago
parent
commit
9df02a036a

+ 0 - 1
components/product/component/StoreInfo.vue

@@ -128,7 +128,6 @@
         return this.$store.state.componentInformation.information
       },
       storeList () {
-        console.log(this.storeLists.data)
         return this.storeLists.data
       }
     }

+ 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">
+              <a :title="item.code" :href="'/store/' + item.storeid + '/' + 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>
+                <a :title="item.code" :href="'/store/' + item.storeid + '/' + 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="">
+                <a title="" :title="item.code" :href="'/store/' + item.storeid + '/' + 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="'/product/component/:uuid?'+item.code">
+                  <nuxt-link title="" :to="'/store/' + item.storeid + '/' + item.batchCode" target="_blank">
                     <p><img :src="item.img" alt=""></p>
                     <span><em>{{item.code}}</em></span>
                   </nuxt-link>

+ 0 - 2
store/index.js

@@ -193,7 +193,6 @@ export const actions = {
     commit('componentInformation/REQUEST_INFORMATION')
     return axios.get('/api/commodity/goods/page', { params })
       .then(response => {
-        console.log(response.data)
         commit('componentInformation/GET_INFORMATION_SUCCESS', response.data)
       }, err => {
         commit('componentInformation/GET_INFORMATION_FAILURE', err)
@@ -207,7 +206,6 @@ export const actions = {
     return axios.get(`/api/product/brand/${id}`)
       .then(response => {
         let brand = response.data || {}
-        console.log('loadBrandDetail', response.data !== null)
         commit('brandDetail/GET_DETAIL_SUCCESS', response.data)
         return Promise.all([
           loadBrandCategories({ commit }, {id: brand.id}),