|
@@ -8,6 +8,7 @@
|
|
|
<li @click="onDown('ORIGINAL_FACTORY')" v-show="downName !== '原厂'">原厂</li>
|
|
<li @click="onDown('ORIGINAL_FACTORY')" v-show="downName !== '原厂'">原厂</li>
|
|
|
<li @click="onDown('AGENCY')" v-show="downName !== '代理'">代理</li>
|
|
<li @click="onDown('AGENCY')" v-show="downName !== '代理'">代理</li>
|
|
|
<li @click="onDown('DISTRIBUTION')" v-show="downName !== '经销'">经销</li>
|
|
<li @click="onDown('DISTRIBUTION')" v-show="downName !== '经销'">经销</li>
|
|
|
|
|
+ <li @click="onDown('CONSIGNMENT')" v-show="downName !== '寄售'">寄售</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="shop-list" v-for="item in searchLists" @click="goStoreDetail(item.uuid)" v-if="item">
|
|
<div class="shop-list" v-for="item in searchLists" @click="goStoreDetail(item.uuid)" v-if="item">
|
|
@@ -72,7 +73,7 @@
|
|
|
},
|
|
},
|
|
|
fetch ({ store }) {
|
|
fetch ({ store }) {
|
|
|
return Promise.all([
|
|
return Promise.all([
|
|
|
- store.dispatch('provider/findStoreListInMobil', { page: 1, count: 10, types: 'ORIGINAL_FACTORY-DISTRIBUTION-AGENCY' })
|
|
|
|
|
|
|
+ store.dispatch('provider/findStoreListInMobil', { page: 1, count: 10, types: 'ORIGINAL_FACTORY-DISTRIBUTION-AGENCY-CONSIGNMENT' })
|
|
|
])
|
|
])
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
@@ -120,13 +121,13 @@
|
|
|
isType (type) {
|
|
isType (type) {
|
|
|
let bgurl = ''
|
|
let bgurl = ''
|
|
|
if (type === 'ORIGINAL_FACTORY') {
|
|
if (type === 'ORIGINAL_FACTORY') {
|
|
|
- bgurl = '/images/mobile/@2x/shop/yuanchang@2x.png'
|
|
|
|
|
- }
|
|
|
|
|
- if (type === 'DISTRIBUTION') {
|
|
|
|
|
- bgurl = '/images/mobile/@2x/shop/jingxiao@2x.png'
|
|
|
|
|
- }
|
|
|
|
|
- if (type === 'AGENCY') {
|
|
|
|
|
- bgurl = '/images/mobile/@2x/shop/daili@2x.png'
|
|
|
|
|
|
|
+ bgurl = '/images/mobile/@2x/shop/original_factory.png'
|
|
|
|
|
+ } else if (type === 'DISTRIBUTION') {
|
|
|
|
|
+ bgurl = '/images/mobile/@2x/shop/distribution.png'
|
|
|
|
|
+ } else if (type === 'AGENCY') {
|
|
|
|
|
+ bgurl = '/images/mobile/@2x/shop/agency.png'
|
|
|
|
|
+ } else if (type === 'CONSIGNMENT') {
|
|
|
|
|
+ bgurl = '/images/mobile/@2x/shop/consignment.png'
|
|
|
}
|
|
}
|
|
|
return bgurl
|
|
return bgurl
|
|
|
},
|
|
},
|
|
@@ -143,7 +144,9 @@
|
|
|
this.downName = '经销'
|
|
this.downName = '经销'
|
|
|
} else if (type === 'AGENCY') {
|
|
} else if (type === 'AGENCY') {
|
|
|
this.downName = '代理'
|
|
this.downName = '代理'
|
|
|
- } else if (type === 'ORIGINAL_FACTORY-DISTRIBUTION-AGENCY') {
|
|
|
|
|
|
|
+ } else if (type === 'CONSIGNMENT') {
|
|
|
|
|
+ this.downName = '寄售'
|
|
|
|
|
+ } else if (type === 'ORIGINAL_FACTORY-DISTRIBUTION-AGENCY-CONSIGNMENT') {
|
|
|
this.downName = '全部'
|
|
this.downName = '全部'
|
|
|
}
|
|
}
|
|
|
this.$store.dispatch('provider/findStoreListInMobil', { page: 1, count: 10, types: type })
|
|
this.$store.dispatch('provider/findStoreListInMobil', { page: 1, count: 10, types: type })
|
|
@@ -189,7 +192,6 @@
|
|
|
<style scoped lang="scss">
|
|
<style scoped lang="scss">
|
|
|
.shop{
|
|
.shop{
|
|
|
margin-bottom: .98rem;
|
|
margin-bottom: .98rem;
|
|
|
- min-height: 10rem;
|
|
|
|
|
background: #e2e4e6;
|
|
background: #e2e4e6;
|
|
|
.shop-top{
|
|
.shop-top{
|
|
|
width:100%;
|
|
width:100%;
|