|
|
@@ -5,7 +5,7 @@
|
|
|
<span :class="activeType=='support'?'active':''" @click="clickType('support')">店铺自营</span>
|
|
|
</div>
|
|
|
|
|
|
- <div class="brand-list-content" v-if="!productList.brands && productList.components[0].brands">
|
|
|
+ <div class="brand-list-content" v-if="!productList.brands && productList.expose">
|
|
|
<div class="brand-list-top">
|
|
|
<span>品牌墙</span>
|
|
|
<span @click="onclick()">展开<i class="iconfont icon-arrow-down"></i></span>
|
|
|
@@ -36,12 +36,12 @@
|
|
|
<p>型号:<span>{{item.code}}</span></p>
|
|
|
<p>品牌:<span>{{item.brand.nameCn}}</span></p>
|
|
|
<p>产品描述:<span>{{item.kind.nameCn}}</span></p>
|
|
|
- <i class="iconfont icon-shoucang"></i>
|
|
|
+ <i class="iconfont icon-shoucang" :style="(item.isFocus==='true')?'color:#ff7800':'color:#333'"></i>
|
|
|
</div>
|
|
|
</nuxt-link>
|
|
|
</div>
|
|
|
|
|
|
- <div class="none-state" v-if="!productList.components[0].brands">
|
|
|
+ <div class="none-state" v-if="!productList.expose">
|
|
|
<img src="/images/mobile/@2x/sousuokongzhuangtai@2x.png">
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -58,7 +58,8 @@
|
|
|
page: '',
|
|
|
sorting: {},
|
|
|
isShow: true,
|
|
|
- isMove: ''
|
|
|
+ isMove: '',
|
|
|
+ isFocus: false
|
|
|
}
|
|
|
},
|
|
|
fetch ({store, route}) {
|
|
|
@@ -69,7 +70,17 @@
|
|
|
},
|
|
|
computed: {
|
|
|
productList () {
|
|
|
- return this.$store.state.searchData.searchList.lists.data
|
|
|
+// const listData = this.$store.state.provider.stores.storeList.data
|
|
|
+// for (let i = 0; i < listData.components.length; i++) {
|
|
|
+// this.$http.get('/trade/storeFocus/ifFocus?storeid=' + listData.components[i].id)
|
|
|
+// .then(
|
|
|
+// function (response) {
|
|
|
+// listData.components[i].isFocus = response.data
|
|
|
+// }
|
|
|
+// )
|
|
|
+// }
|
|
|
+// return listData
|
|
|
+ return this.$store.state.provider.stores.storeList.data
|
|
|
},
|
|
|
brandList () {
|
|
|
return this.$store.state.searchData.searchBrands.brands.data
|
|
|
@@ -85,6 +96,7 @@
|
|
|
clickType (type) {
|
|
|
if (type === 'store') {
|
|
|
this.activeType = 'store'
|
|
|
+ this.$store.dispatch('searchData/searchForList', {count: 15, filter: {}, keyword: this.$route.query.w, page: 1, sorting: {'GO_RESERVE': 'DESC', 'GO_SEARCH': 'DESC'}})
|
|
|
}
|
|
|
if (type === 'support') {
|
|
|
this.activeType = 'support'
|