|
@@ -1,13 +1,13 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div class="toggleStore">
|
|
<div class="toggleStore">
|
|
|
<!--原厂-->
|
|
<!--原厂-->
|
|
|
- <div class="factory list-item">
|
|
|
|
|
|
|
+ <div class="factory list-item" :class="{active: storeType === 'factory'}" @click="toggleStore('factory')">
|
|
|
<div class="header">
|
|
<div class="header">
|
|
|
<div class="kind"><span></span>原 厂</div>
|
|
<div class="kind"><span></span>原 厂</div>
|
|
|
<div class="count">
|
|
<div class="count">
|
|
|
<span>已入驻</span>
|
|
<span>已入驻</span>
|
|
|
<div class="count_num">
|
|
<div class="count_num">
|
|
|
- <span>1</span><span>2</span><span>3</span>
|
|
|
|
|
|
|
+ <span>1</span><span>2</span><span>3</span><span>3</span>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -18,13 +18,13 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<!--代理经销-->
|
|
<!--代理经销-->
|
|
|
- <div class="agent list-item">
|
|
|
|
|
|
|
+ <div class="agent list-item" :class="{active: storeType === 'origin'}" @click="toggleStore('origin')">
|
|
|
<div class="header">
|
|
<div class="header">
|
|
|
<div class="kind"><span></span>代理经销</div>
|
|
<div class="kind"><span></span>代理经销</div>
|
|
|
<div class="count">
|
|
<div class="count">
|
|
|
<span>已入驻</span>
|
|
<span>已入驻</span>
|
|
|
<div class="count_num">
|
|
<div class="count_num">
|
|
|
- <span>1</span><span>2</span><span>3</span>
|
|
|
|
|
|
|
+ <span>1</span><span>2</span><span>3</span><span>3</span>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -52,13 +52,24 @@
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
name: 'excellent-suppliers',
|
|
name: 'excellent-suppliers',
|
|
|
- props: ['isShowMore'],
|
|
|
|
|
computed: {
|
|
computed: {
|
|
|
- stores () {
|
|
|
|
|
|
|
+ storeType () {
|
|
|
|
|
+ return this.$store.state.provider.stores.storeType.data
|
|
|
|
|
+ },
|
|
|
|
|
+ store () {
|
|
|
return this.$store.state.provider.storeCms.recommendStore.data
|
|
return this.$store.state.provider.storeCms.recommendStore.data
|
|
|
|
|
+ },
|
|
|
|
|
+ storeCount () {
|
|
|
|
|
+ return this.$store.state.provider.storeCms.storeCount.data
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ // 切换Store
|
|
|
|
|
+ toggleStore (type) {
|
|
|
|
|
+ this.$store.commit('provider/stores/SET_STORETYPE', type)
|
|
|
|
|
+ this.$store.dispatch('loadBanners', {type: type + '_banner_carousel'})
|
|
|
|
|
+ this.$store.dispatch('provider/findSimilarStoreList', { page: 1, count: 10, types: type === 'factory' ? 'ORIGINAL_FACTORY' : 'AGENCY-DISTRIBUTION' })
|
|
|
|
|
+ },
|
|
|
// 店铺入驻数量
|
|
// 店铺入驻数量
|
|
|
formatNumber (num, key) {
|
|
formatNumber (num, key) {
|
|
|
let count = ('000' + num).substr(-key)
|
|
let count = ('000' + num).substr(-key)
|
|
@@ -106,9 +117,9 @@ export default {
|
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
|
float: right;
|
|
float: right;
|
|
|
padding: 0 5px;
|
|
padding: 0 5px;
|
|
|
- width: 112px;
|
|
|
|
|
|
|
+ width: 120px;
|
|
|
height: 26px;
|
|
height: 26px;
|
|
|
- line-height: 26px;
|
|
|
|
|
|
|
+ line-height: 24px;
|
|
|
background-color: #fff;
|
|
background-color: #fff;
|
|
|
border-radius: 2px;
|
|
border-radius: 2px;
|
|
|
border: solid 1px #bfbfbf;
|
|
border: solid 1px #bfbfbf;
|
|
@@ -124,8 +135,7 @@ export default {
|
|
|
margin-top: 3px;
|
|
margin-top: 3px;
|
|
|
span{
|
|
span{
|
|
|
display: inline-block;
|
|
display: inline-block;
|
|
|
- margin-right: 3px;
|
|
|
|
|
- width: 18px;
|
|
|
|
|
|
|
+ width: 14px;
|
|
|
height: 18px;
|
|
height: 18px;
|
|
|
line-height: 18px;
|
|
line-height: 18px;
|
|
|
font-size: 12px;
|
|
font-size: 12px;
|
|
@@ -162,8 +172,8 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
.body {
|
|
.body {
|
|
|
- margin-top: 20px;
|
|
|
|
|
- padding: 0 12px 0;
|
|
|
|
|
|
|
+ margin-top: 15px;
|
|
|
|
|
+ padding: 0 20px 0;
|
|
|
p{
|
|
p{
|
|
|
width: 195px;
|
|
width: 195px;
|
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
@@ -174,7 +184,7 @@ export default {
|
|
|
color: #666666;
|
|
color: #666666;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- &:hover{
|
|
|
|
|
|
|
+ &:hover, &.active{
|
|
|
background: #fa9819;
|
|
background: #fa9819;
|
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
|
.kind {
|
|
.kind {
|