Authored by 郭成尧

Merge branch 'feature/defaultSort' into 'release/5.4'

sale-列表页添加默认、最新筛选功能

1、sale-列表页添加默认、最新筛选功能。
2、基础店铺最新筛选order,默认为0。

See merge request !137
... ... @@ -26,6 +26,7 @@ const typeCont = {
// newest: ['s_t_desc,s_s_desc', 's_t_asc,s_s_asc'],
newest: ['s_t_desc', 's_t_asc'],
new: ['s_t_desc', 's_t_asc'],
stock: ['s_s_desc', 's_s_asc'],
all: ['d_s_desc', 'd_s_asc'],
category: ['s_t_desc', 's_t_asc']
... ...
<div class="discount-detail-page goods-page yoho-page" data-product-pool="{{product_pool}}">
{{> sale/banner}}
<ul id="list-nav" class="list-nav clearfix">
<li class="all active">
<a href="javascript:void(0);">
<span class="span-test">全部</span>
</a>
</li>
<li class="price">
<a href="javascript:void(0);">
<span class="span-test">价格</span>
<span class="icon">
<i class="iconfont up cur">&#xe615;</i>
<i class="iconfont down">&#xe616;</i>
</span>
</a>
</li>
<li class="discount">
<a href="javascript:void(0);">
<span class="span-test">折扣</span>
<span class="icon">
<i class="iconfont up cur">&#xe615;</i>
<i class="iconfont down">&#xe616;</i>
</span>
</a>
</li>
<li class="filter">
<a href="javascript:void(0);">
<span class="span-test">筛选</span>
<span class="iconfont cur">&#xe613;</span>
</a>
</li>
</ul>
<div>
<ul id="list-nav" class="list-nav clearfix">
<li class="default active first-li-more">
<a href="javascript:void(0);">
<span class="span-test">默认</span>
<span class="iconfont up cur hide">&#xe615;</span>
<span class="iconfont down cur">&#xe616;</span>
</a>
</li>
<li class="price">
<a href="javascript:void(0);">
<span class="span-test">价格</span>
<span class="icon">
<i class="iconfont up cur">&#xe615;</i>
<i class="iconfont down">&#xe616;</i>
</span>
</a>
</li>
<li class="discount">
<a href="javascript:void(0);">
<span class="span-test">折扣</span>
<span class="icon">
<i class="iconfont up cur">&#xe615;</i>
<i class="iconfont down">&#xe616;</i>
</span>
</a>
</li>
<li class="filter">
<a href="javascript:void(0);">
<span class="span-test">筛选</span>
<span class="iconfont cur">&#xe613;</span>
</a>
</li>
</ul>
<!--搜索默认排序列表-->
{{> product/search-default-sort-list}}
</div>
{{> sale/common}}
<input type="hidden" id="discount" value="discount">
... ...
... ... @@ -50,7 +50,7 @@ var $listNav = $('#list-nav'),
// 导航数据信息
navInfo = {
newest: {
order: 1,
order: 0,
reload: true,
page: 1,
end: false
... ... @@ -892,7 +892,7 @@ $listNav.on('touchstart', 'li', function() {
require('../../common/footer');
require('./coupon');
//点击事件埋点
// 点击事件埋点
$('#goods-container').on('click', '.good-info', function() {
var PRD_ID = $(this).data('good-id'),
PRD_NUM = $(this).index() + 1,
... ...