Authored by 陈轩

search

... ... @@ -9,3 +9,15 @@ Name | Path | Note
品牌店铺分享页面 | /product/brand-share?domain=colormad |
商品详情 | /product/{productId} |
资讯列表 | /news |
----
### order 常亮
Name | Note
---------|--------
s_t_desc | 默认(最新)
s_p_asc | 价格升序
s_p_desc | 价格降序
p_d_asc | 折扣升序
p_d_desc | 折扣降序
s_n_asc | 销量升序
s_n_desc | 销量降序
\ No newline at end of file
... ...
... ... @@ -7,19 +7,19 @@ $(function() {
return [
{
txt: '默认',
val: 1
val: ''
}, {
txt: '最新',
val: 2
val: 's_t_desc'
}, {
type: 'updown',
txt: '价格',
val: [3, 4] // [up, down]
val: ['s_p_asc', 's_p_desc'] // [up, down]
},
{
type: 'updown',
txt: '折扣',
val: [5, 6]
val: ['p_d_asc', 'p_d_desc']
}
];
};
... ...
... ... @@ -91,6 +91,7 @@
.card-label {
margin: 0 0 10px;
font-size: 24px;
height: 65px;
font-weight: normal;
}
}
... ...
... ... @@ -26,7 +26,7 @@ module.exports = {
config: Array,
// 初始值 可以进行双向绑定
val: Number
val: String
},
components: {
simple,
... ...
... ... @@ -38,7 +38,7 @@
// query
url: '/product/search.json',
sort: null,
sort: '',
query: qs.query,
page: 0, // 未搜索 page=0; 全部加载完 page = totalPage; 无数据: page !=0 && productList.length=0
totalPage: null,
... ...