|
@@ -1,26 +1,27 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div class="shop">
|
|
<div class="shop">
|
|
|
<div class="shop-top">
|
|
<div class="shop-top">
|
|
|
- <p><i class="iconfont icon-dianpu1"></i><span>{{list.numberOfElements}}</span>家店铺</p>
|
|
|
|
|
|
|
+ <p><i class="iconfont icon-dianpu1"></i><span>{{list.totalElements}}</span>家店铺</p>
|
|
|
<span @click="onClick()">全部 <i class="iconfont icon-arrow-down"></i></span>
|
|
<span @click="onClick()">全部 <i class="iconfont icon-arrow-down"></i></span>
|
|
|
<ul class="supdown" v-if="down">
|
|
<ul class="supdown" v-if="down">
|
|
|
- <li>原厂</li>
|
|
|
|
|
- <li>代理</li>
|
|
|
|
|
- <li>经销</li>
|
|
|
|
|
|
|
+ <li @click="onDown('ORIGINAL_FACTORY')">原厂</li>
|
|
|
|
|
+ <li @click="onDown('AGENCY')">代理</li>
|
|
|
|
|
+ <li @click="onDown('DISTRIBUTION')">经销</li>
|
|
|
|
|
+ <li @click="onDown('ORIGINAL_FACTORY-DISTRIBUTION-AGENCY' )">全部</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="shop-list" v-for="item in list.content">
|
|
<div class="shop-list" v-for="item in list.content">
|
|
|
<h3>{{item.storeName}}</h3>
|
|
<h3>{{item.storeName}}</h3>
|
|
|
<div class="list-item">
|
|
<div class="list-item">
|
|
|
<div class="item-img">
|
|
<div class="item-img">
|
|
|
- <i></i>
|
|
|
|
|
- <img :src="item.bannerUrl || '/images/component/default.png'" alt="">
|
|
|
|
|
|
|
+ <i :style="'background:url(' + isType(item.type) + ')no-repeat 0 0/.65rem .33rem;'"></i>
|
|
|
|
|
+ <img :src="item.logoUrl || '/images/component/default.png'">
|
|
|
</div>
|
|
</div>
|
|
|
<div class="list-item-phone">
|
|
<div class="list-item-phone">
|
|
|
<p>电话:<span>{{item.enterprise.enTel}}</span></p>
|
|
<p>电话:<span>{{item.enterprise.enTel}}</span></p>
|
|
|
<p>传真:<span>{{item.enterprise.enFax}}</span></p>
|
|
<p>传真:<span>{{item.enterprise.enFax}}</span></p>
|
|
|
<p>商家介绍: <nuxt-link :to="'/mobile/merchantDescription/'+item.uuid">点击查看</nuxt-link></p>
|
|
<p>商家介绍: <nuxt-link :to="'/mobile/merchantDescription/'+item.uuid">点击查看</nuxt-link></p>
|
|
|
- <i class="iconfont icon-shoucang" @click="callClick()"></i>
|
|
|
|
|
|
|
+ <i class="iconfont icon-shoucang" ></i>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -35,13 +36,12 @@
|
|
|
page: '',
|
|
page: '',
|
|
|
count: '',
|
|
count: '',
|
|
|
types: '',
|
|
types: '',
|
|
|
- down: false,
|
|
|
|
|
- callIcon: false
|
|
|
|
|
|
|
+ down: false
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
fetch ({ store }) {
|
|
fetch ({ store }) {
|
|
|
return Promise.all([
|
|
return Promise.all([
|
|
|
- store.dispatch('provider/findStoreList', { page: 1, count: 10, types: 'ORIGINAL_FACTORY' })
|
|
|
|
|
|
|
+ store.dispatch('provider/findStoreList', { page: 1, count: 10, types: 'ORIGINAL_FACTORY-DISTRIBUTION-AGENCY' })
|
|
|
])
|
|
])
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
@@ -50,11 +50,24 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ isType (type) {
|
|
|
|
|
+ let bgurl = ''
|
|
|
|
|
+ if (type === 'ORIGINAL_FACTORY') {
|
|
|
|
|
+ bgurl = '/images/mobile/@2x/shop/daili@2x.png'
|
|
|
|
|
+ }
|
|
|
|
|
+ if (type === 'DISTRIBUTION') {
|
|
|
|
|
+ bgurl = '/images/mobile/@2x/shop/jingxiao@2x.png'
|
|
|
|
|
+ }
|
|
|
|
|
+ if (type === 'AGENCY') {
|
|
|
|
|
+ bgurl = '/images/mobile/@2x/shop/yuangchang@2x.png'
|
|
|
|
|
+ }
|
|
|
|
|
+ return bgurl
|
|
|
|
|
+ },
|
|
|
onClick () {
|
|
onClick () {
|
|
|
this.down = !this.down
|
|
this.down = !this.down
|
|
|
},
|
|
},
|
|
|
- callClick () {
|
|
|
|
|
- this.callIcon = !this.callIcon
|
|
|
|
|
|
|
+ onDown (type) {
|
|
|
|
|
+ this.$store.dispatch('provider/findStoreList', { page: 1, count: 10, types: type })
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -134,8 +147,6 @@
|
|
|
position:absolute;
|
|
position:absolute;
|
|
|
width:.65rem;
|
|
width:.65rem;
|
|
|
height:.33rem;
|
|
height:.33rem;
|
|
|
- background: url(/images/mobile/@2x/shop/daili@2x.png)no-repeat;
|
|
|
|
|
- background-size: .65rem .33rem;
|
|
|
|
|
}
|
|
}
|
|
|
img{
|
|
img{
|
|
|
display:inline-block;
|
|
display:inline-block;
|