Authored by 李奇

品牌和分类资源位修改

... ... @@ -3,7 +3,7 @@
<a-link class="cate-label" :href="brandLink">品牌<i class="icon icon-right"></i></a-link>
<p class="cate-label" @click="show=!show">{{label}}<i class="icon" :class="sortClass"></i></p>
<div class="cate-items" v-if="show">
<a-link :href="item.url" class="cate-item" v-for="item in items">{{item.name}}</a-link>
<a-link :href="item.url" class="cate-item" v-for="item in items" :key="item.name">{{item.name}}</a-link>
</div>
</div>
</template>
... ... @@ -50,7 +50,7 @@ export default {
}
},
brandLink() {
return `/brands?channel=${this.gender}`;
return `/brand?channel=${this.gender}`;
}
},
components: {Resource}
... ...
... ... @@ -33,8 +33,8 @@
data() {
return {
title: {
man: '男士',
woman: '女士'
men: '男士',
women: '女士'
},
products: [{
src: '//img11.static.yhbimg.com/goodsimg/2017/05/04/12/019698fcd41f21403a12e603ae64dc23f0.jpg?imageMogr2/thumbnail/330x440/background/d2hpdGU=/position/center/quality/80/interlace/1',
... ...
... ... @@ -17,11 +17,11 @@ export default {
state: {
home: {},
gender: 'men',
man: {
men: {
data: {},
isFetching: false
},
woman: {
women: {
data: {},
isFetching: false
},
... ...