Browse Source

店铺搜索验收修改。

yangc 8 years ago
parent
commit
90ee1200a0

+ 7 - 7
components/searchStore/SearchTitle.vue

@@ -24,13 +24,13 @@
         </div>
         </div>
         <!--<div class=""><a >所在地</a></div>-->
         <!--<div class=""><a >所在地</a></div>-->
     </div>
     </div>
-      <div class="off">
-        <a @click="showClick">
-          <span v-text="show?'收起':'展开'" style="margin-right: 10px;"></span>
-          <i v-show="!show" class="fa fa-angle-down"></i>
-          <i v-show="show" class="fa fa-angle-up"></i>
-        </a>
-      </div>
+      <!--<div class="off">-->
+        <!--<a @click="showClick">-->
+          <!--<span v-text="show?'收起':'展开'" style="margin-right: 10px;"></span>-->
+          <!--<i v-show="!show" class="fa fa-angle-down"></i>-->
+          <!--<i v-show="show" class="fa fa-angle-up"></i>-->
+        <!--</a>-->
+      <!--</div>-->
   </div>
   </div>
   </div>
   </div>
 </template>
 </template>

+ 6 - 2
components/searchStore/StoreContent.vue

@@ -21,7 +21,7 @@
           <span>库存量:<span v-text="store.totalReserve"></span></span>
           <span>库存量:<span v-text="store.totalReserve"></span></span>
         </div>
         </div>
         <div class="btn-content">
         <div class="btn-content">
-          <a class="focus-store store-btn" @click="focusStore(store, index)" v-text="focusData[index] === 'true'?'已关注':'关注店铺'"></a>
+          <a class="focus-store store-btn" @click="focusStore(store, index)" v-text="focusData[index] === 'true'?'已关注':'关注店铺'" :class="{'is-focus': focusData[index] === 'true'}"></a>
           <a :href="'/store/' + store.uuid" target="_blank" class="enter-store store-btn">进入店铺</a>
           <a :href="'/store/' + store.uuid" target="_blank" class="enter-store store-btn">进入店铺</a>
         </div>
         </div>
       </div>
       </div>
@@ -124,7 +124,7 @@
         this.$emit('pageAction', page)
         this.$emit('pageAction', page)
       },
       },
       goStore: function (index, compIndex) {
       goStore: function (index, compIndex) {
-        window.open('/product/component/' + this.componentData[index].content[compIndex].uuid)
+        window.open('/store/' + this.componentData[index].content[compIndex].storeid + '/' + this.componentData[index].content[compIndex].batchCode)
       }
       }
     }
     }
   }
   }
@@ -245,6 +245,10 @@
     background: #5078cb;
     background: #5078cb;
     border: 1px solid #5078cb;
     border: 1px solid #5078cb;
   }
   }
+  .btn-content .is-focus {
+    background: #999;
+    border: 1px solid #999;
+  }
   .btn-content .enter-store {
   .btn-content .enter-store {
     background: #ff8522;
     background: #ff8522;
     border: 1px solid #ff8522;
     border: 1px solid #ff8522;