Authored by 李奇

品牌和分类资源位修改

@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 <a-link class="cate-label" :href="brandLink">品牌<i class="icon icon-right"></i></a-link> 3 <a-link class="cate-label" :href="brandLink">品牌<i class="icon icon-right"></i></a-link>
4 <p class="cate-label" @click="show=!show">{{label}}<i class="icon" :class="sortClass"></i></p> 4 <p class="cate-label" @click="show=!show">{{label}}<i class="icon" :class="sortClass"></i></p>
5 <div class="cate-items" v-if="show"> 5 <div class="cate-items" v-if="show">
6 - <a-link :href="item.url" class="cate-item" v-for="item in items">{{item.name}}</a-link> 6 + <a-link :href="item.url" class="cate-item" v-for="item in items" :key="item.name">{{item.name}}</a-link>
7 </div> 7 </div>
8 </div> 8 </div>
9 </template> 9 </template>
@@ -50,7 +50,7 @@ export default { @@ -50,7 +50,7 @@ export default {
50 } 50 }
51 }, 51 },
52 brandLink() { 52 brandLink() {
53 - return `/brands?channel=${this.gender}`; 53 + return `/brand?channel=${this.gender}`;
54 } 54 }
55 }, 55 },
56 components: {Resource} 56 components: {Resource}
@@ -33,8 +33,8 @@ @@ -33,8 +33,8 @@
33 data() { 33 data() {
34 return { 34 return {
35 title: { 35 title: {
36 - man: '男士',  
37 - woman: '女士' 36 + men: '男士',
  37 + women: '女士'
38 }, 38 },
39 products: [{ 39 products: [{
40 src: '//img11.static.yhbimg.com/goodsimg/2017/05/04/12/019698fcd41f21403a12e603ae64dc23f0.jpg?imageMogr2/thumbnail/330x440/background/d2hpdGU=/position/center/quality/80/interlace/1', 40 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 { @@ -17,11 +17,11 @@ export default {
17 state: { 17 state: {
18 home: {}, 18 home: {},
19 gender: 'men', 19 gender: 'men',
20 - man: { 20 + men: {
21 data: {}, 21 data: {},
22 isFetching: false 22 isFetching: false
23 }, 23 },
24 - woman: { 24 + women: {
25 data: {}, 25 data: {},
26 isFetching: false 26 isFetching: false
27 }, 27 },