|
|
const Vue = require('yoho-vue');
|
|
|
const filterSub = require('component/product/filter/filter-sub.vue');
|
|
|
|
|
|
// TODO: 该mock数据 应该有 上级页面传过来
|
|
|
// const page = {
|
|
|
|
|
|
// 二级筛选的 类型
|
|
|
// type: 'brand',
|
|
|
|
|
|
// data: [ // 二级筛选的 数据
|
|
|
// { id: 1, name: '红色' },
|
|
|
// { id: 2, name: '红色' },
|
|
|
// { id: 3, name: '红色' }
|
|
|
// ],
|
|
|
// data: [{
|
|
|
// domain: 'converse',
|
|
|
// alif: 'C',
|
|
|
// ico: 'http://img12.static.yhbimg.com/brandLogo/2015/12/09/14/02752d2839e7001a09ecf71dcc9a996387.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
|
|
|
// name: 'converse',
|
|
|
// keyword: 'converse,街头,摇滚,百搭,朋克,简约,个性,自然,潮流,环保',
|
|
|
// id: 27,
|
|
|
// hotKeyword: 'converse',
|
|
|
// isHot: 'Y',
|
|
|
// nameEn: 'converse',
|
|
|
// nameCn: '匡威'
|
|
|
// }, {
|
|
|
// domain: 'eightguys',
|
|
|
// alif: 'E',
|
|
|
// ico: 'http://img11.static.yhbimg.com/brandLogo/2013/07/02/19/01959c3b33245e16e786bda6b1e91234be.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
|
|
|
// name: 'Eight Guys',
|
|
|
// keyword: '8Guys,八个男人',
|
|
|
// id: 396,
|
|
|
// hotKeyword: '',
|
|
|
// isHot: 'Y',
|
|
|
// nameEn: 'eight guys',
|
|
|
// nameCn: 'Eight Guys'
|
|
|
// }, {
|
|
|
// domain: 'soulandsole',
|
|
|
// alif: 'S',
|
|
|
// ico: 'http://img13.static.yhbimg.com/brandLogo/2014/01/27/11/02cfe4044dfb82230c1868211b814d6192.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
|
|
|
// name: 'SOUL&SOLE',
|
|
|
// keyword: '',
|
|
|
// id: 335,
|
|
|
// hotKeyword: '',
|
|
|
// isHot: '',
|
|
|
// nameEn: 'SOUL&SOLE ',
|
|
|
// nameCn: 'SOUL&SOLE '
|
|
|
// }, {
|
|
|
// domain: 'thething',
|
|
|
// alif: 'T',
|
|
|
// ico: 'http://img11.static.yhbimg.com/brandLogo/2015/12/09/16/018d25bf4481ed2998bf33b294673a8535.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
|
|
|
// name: 'THETHING',
|
|
|
// keyword: 'thething,tee,polo,衬衫,裤类,包类,配件类',
|
|
|
// id: 138,
|
|
|
// hotKeyword: 'thething',
|
|
|
// isHot: 'Y',
|
|
|
// nameEn: 'THETHING',
|
|
|
// nameCn: 'THETHING'
|
|
|
// }, {
|
|
|
// domain: 'roxy',
|
|
|
// alif: 'R',
|
|
|
// ico: 'http://img12.static.yhbimg.com/brandLogo/2012/05/28/13/0242bc746fa4ddbc9519c14c3b769b6774.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
|
|
|
// name: 'Roxy',
|
|
|
// keyword: 'roxy',
|
|
|
// id: 273,
|
|
|
// hotKeyword: '',
|
|
|
// isHot: '',
|
|
|
// nameEn: 'Roxy',
|
|
|
// nameCn: 'Roxy'
|
|
|
// }, {
|
|
|
// domain: 'roxy',
|
|
|
// alif: 'R',
|
|
|
// ico: 'http://img12.static.yhbimg.com/brandLogo/2012/05/28/13/0242bc746fa4ddbc9519c14c3b769b6774.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
|
|
|
// name: 'Roxy',
|
|
|
// keyword: 'roxy',
|
|
|
// id: 273,
|
|
|
// hotKeyword: '',
|
|
|
// isHot: '',
|
|
|
// nameEn: 'Roxy',
|
|
|
// nameCn: 'Roxy'
|
|
|
// }, {
|
|
|
// domain: 'roxy',
|
|
|
// alif: 'R',
|
|
|
// ico: 'http://img12.static.yhbimg.com/brandLogo/2012/05/28/13/0242bc746fa4ddbc9519c14c3b769b6774.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
|
|
|
// name: 'Roxy',
|
|
|
// keyword: 'roxy',
|
|
|
// id: 273,
|
|
|
// hotKeyword: '',
|
|
|
// isHot: '',
|
|
|
// nameEn: 'Roxy',
|
|
|
// nameCn: 'Roxy'
|
|
|
// }, {
|
|
|
// domain: 'roxy',
|
|
|
// alif: 'R',
|
|
|
// ico: 'http://img12.static.yhbimg.com/brandLogo/2012/05/28/13/0242bc746fa4ddbc9519c14c3b769b6774.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
|
|
|
// name: 'Roxy',
|
|
|
// keyword: 'roxy',
|
|
|
// id: 273,
|
|
|
// hotKeyword: '',
|
|
|
// isHot: '',
|
|
|
// nameEn: 'Roxy',
|
|
|
// nameCn: 'Roxy'
|
|
|
// }, {
|
|
|
// domain: 'roxy',
|
|
|
// alif: 'R',
|
|
|
// ico: 'http://img12.static.yhbimg.com/brandLogo/2012/05/28/13/0242bc746fa4ddbc9519c14c3b769b6774.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
|
|
|
// name: 'Roxy',
|
|
|
// keyword: 'roxy',
|
|
|
// id: 273,
|
|
|
// hotKeyword: '',
|
|
|
// isHot: '',
|
|
|
// nameEn: 'Roxy',
|
|
|
// nameCn: 'Roxy'
|
|
|
// }, {
|
|
|
// domain: 'roxy',
|
|
|
// alif: 'R',
|
|
|
// ico: 'http://img12.static.yhbimg.com/brandLogo/2012/05/28/13/0242bc746fa4ddbc9519c14c3b769b6774.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
|
|
|
// name: 'Roxy',
|
|
|
// keyword: 'roxy',
|
|
|
// id: 273,
|
|
|
// hotKeyword: '',
|
|
|
// isHot: '',
|
|
|
// nameEn: 'Roxy',
|
|
|
// nameCn: 'Roxy'
|
|
|
// }, {
|
|
|
// domain: 'roxy',
|
|
|
// alif: 'R',
|
|
|
// ico: 'http://img12.static.yhbimg.com/brandLogo/2012/05/28/13/0242bc746fa4ddbc9519c14c3b769b6774.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
|
|
|
// name: 'Roxy',
|
|
|
// keyword: 'roxy',
|
|
|
// id: 273,
|
|
|
// hotKeyword: '',
|
|
|
// isHot: '',
|
|
|
// nameEn: 'Roxy',
|
|
|
// nameCn: 'Roxy'
|
|
|
// }, {
|
|
|
// domain: 'roxy',
|
|
|
// alif: 'R',
|
|
|
// ico: 'http://img12.static.yhbimg.com/brandLogo/2012/05/28/13/0242bc746fa4ddbc9519c14c3b769b6774.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
|
|
|
// name: 'Roxy',
|
|
|
// keyword: 'roxy',
|
|
|
// id: 273,
|
|
|
// hotKeyword: '',
|
|
|
// isHot: '',
|
|
|
// nameEn: 'Roxy',
|
|
|
// nameCn: 'Roxy'
|
|
|
// }, {
|
|
|
// domain: 'roxy',
|
|
|
// alif: 'R',
|
|
|
// ico: 'http://img12.static.yhbimg.com/brandLogo/2012/05/28/13/0242bc746fa4ddbc9519c14c3b769b6774.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
|
|
|
// name: 'Roxy',
|
|
|
// keyword: 'roxy',
|
|
|
// id: 273,
|
|
|
// hotKeyword: '',
|
|
|
// isHot: '',
|
|
|
// nameEn: 'Roxy',
|
|
|
// nameCn: 'Roxy'
|
|
|
// }, {
|
|
|
// domain: 'roxy',
|
|
|
// alif: 'R',
|
|
|
// ico: 'http://img12.static.yhbimg.com/brandLogo/2012/05/28/13/0242bc746fa4ddbc9519c14c3b769b6774.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
|
|
|
// name: 'Roxy',
|
|
|
// keyword: 'roxy',
|
|
|
// id: 273,
|
|
|
// hotKeyword: '',
|
|
|
// isHot: '',
|
|
|
// nameEn: 'Roxy',
|
|
|
// nameCn: 'Roxy'
|
|
|
// }, {
|
|
|
// domain: 'roxy',
|
|
|
// alif: 'R',
|
|
|
// ico: 'http://img12.static.yhbimg.com/brandLogo/2012/05/28/13/0242bc746fa4ddbc9519c14c3b769b6774.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
|
|
|
// name: 'Roxy',
|
|
|
// keyword: 'roxy',
|
|
|
// id: 273,
|
|
|
// hotKeyword: '',
|
|
|
// isHot: '',
|
|
|
// nameEn: 'Roxy',
|
|
|
// nameCn: 'Roxy'
|
|
|
// }, {
|
|
|
// domain: 'roxy',
|
|
|
// alif: 'R',
|
|
|
// ico: 'http://img12.static.yhbimg.com/brandLogo/2012/05/28/13/0242bc746fa4ddbc9519c14c3b769b6774.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
|
|
|
// name: 'Roxy',
|
|
|
// keyword: 'roxy',
|
|
|
// id: 273,
|
|
|
// hotKeyword: '',
|
|
|
// isHot: '',
|
|
|
// nameEn: 'Roxy',
|
|
|
// nameCn: 'Roxy'
|
|
|
// }, {
|
|
|
// domain: 'roxy',
|
|
|
// alif: 'R',
|
|
|
// ico: 'http://img12.static.yhbimg.com/brandLogo/2012/05/28/13/0242bc746fa4ddbc9519c14c3b769b6774.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
|
|
|
// name: 'Roxy',
|
|
|
// keyword: 'roxy',
|
|
|
// id: 273,
|
|
|
// hotKeyword: '',
|
|
|
// isHot: '',
|
|
|
// nameEn: 'Roxy',
|
|
|
// nameCn: 'Roxy'
|
|
|
// }, {
|
|
|
// domain: 'roxy',
|
|
|
// alif: 'R',
|
|
|
// ico: 'http://img12.static.yhbimg.com/brandLogo/2012/05/28/13/0242bc746fa4ddbc9519c14c3b769b6774.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
|
|
|
// name: 'Roxy',
|
|
|
// keyword: 'roxy',
|
|
|
// id: 273,
|
|
|
// hotKeyword: '',
|
|
|
// isHot: '',
|
|
|
// nameEn: 'Roxy',
|
|
|
// nameCn: 'Roxy'
|
|
|
// }, {
|
|
|
// domain: 'natkiel',
|
|
|
// alif: 'N',
|
|
|
// ico: 'http://img11.static.yhbimg.com/brandLogo/2015/11/17/10/01032e9fba6bc0770077f2c645bad46127.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
|
|
|
// name: 'Natkiel',
|
|
|
// keyword: '奈凯儿',
|
|
|
// id: 393,
|
|
|
// hotKeyword: '',
|
|
|
// isHot: 'N',
|
|
|
// nameEn: 'Natkiel',
|
|
|
// nameCn: 'Natkiel'
|
|
|
// }, {
|
|
|
// domain: 'natkiel',
|
|
|
// alif: 'N',
|
|
|
// ico: 'http://img11.static.yhbimg.com/brandLogo/2015/11/17/10/01032e9fba6bc0770077f2c645bad46127.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
|
|
|
// name: 'Natkiel',
|
|
|
// keyword: '奈凯儿',
|
|
|
// id: 393,
|
|
|
// hotKeyword: '',
|
|
|
// isHot: 'N',
|
|
|
// nameEn: 'Natkiel',
|
|
|
// nameCn: 'Natkiel'
|
|
|
// }, {
|
|
|
// domain: 'natkiel',
|
|
|
// alif: 'N',
|
|
|
// ico: 'http://img11.static.yhbimg.com/brandLogo/2015/11/17/10/01032e9fba6bc0770077f2c645bad46127.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
|
|
|
// name: 'Natkiel',
|
|
|
// keyword: '奈凯儿',
|
|
|
// id: 393,
|
|
|
// hotKeyword: '',
|
|
|
// isHot: 'N',
|
|
|
// nameEn: 'Natkiel',
|
|
|
// nameCn: 'Natkiel'
|
|
|
// }, {
|
|
|
// domain: 'natkiel',
|
|
|
// alif: 'N',
|
|
|
// ico: 'http://img11.static.yhbimg.com/brandLogo/2015/11/17/10/01032e9fba6bc0770077f2c645bad46127.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
|
|
|
// name: 'Natkiel',
|
|
|
// keyword: '奈凯儿',
|
|
|
// id: 393,
|
|
|
// hotKeyword: '',
|
|
|
// isHot: 'N',
|
|
|
// nameEn: 'Natkiel',
|
|
|
// nameCn: 'Natkiel'
|
|
|
// }, {
|
|
|
// domain: 'natkiel',
|
|
|
// alif: 'N',
|
|
|
// ico: 'http://img11.static.yhbimg.com/brandLogo/2015/11/17/10/01032e9fba6bc0770077f2c645bad46127.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
|
|
|
// name: 'Natkiel',
|
|
|
// keyword: '奈凯儿',
|
|
|
// id: 393,
|
|
|
// hotKeyword: '',
|
|
|
// isHot: 'N',
|
|
|
// nameEn: 'Natkiel',
|
|
|
// nameCn: 'Natkiel'
|
|
|
// }, {
|
|
|
// domain: 'natkiel',
|
|
|
// alif: 'N',
|
|
|
// ico: 'http://img11.static.yhbimg.com/brandLogo/2015/11/17/10/01032e9fba6bc0770077f2c645bad46127.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
|
|
|
// name: 'Natkiel',
|
|
|
// keyword: '奈凯儿',
|
|
|
// id: 393,
|
|
|
// hotKeyword: '',
|
|
|
// isHot: 'N',
|
|
|
// nameEn: 'Natkiel',
|
|
|
// nameCn: 'Natkiel'
|
|
|
// }, {
|
|
|
// domain: 'natkiel',
|
|
|
// alif: 'N',
|
|
|
// ico: 'http://img11.static.yhbimg.com/brandLogo/2015/11/17/10/01032e9fba6bc0770077f2c645bad46127.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
|
|
|
// name: 'Natkiel',
|
|
|
// keyword: '奈凯儿',
|
|
|
// id: 393,
|
|
|
// hotKeyword: '',
|
|
|
// isHot: 'N',
|
|
|
// nameEn: 'Natkiel',
|
|
|
// nameCn: 'Natkiel'
|
|
|
// }],
|
|
|
// val: 3 // 二级筛选 的值
|
|
|
// };
|
|
|
|
|
|
new Vue({
|
|
|
el: '#filter-sub',
|
|
|
data: function() {
|
|
|
return {};
|
|
|
},
|
|
|
components: {
|
|
|
filterSub
|
|
|
}
|
|
|
}); |