Authored by 郭成尧

new-goods-list

... ... @@ -26,6 +26,10 @@
</li>
<em>|</em>
<li class="shop-tab-nav tab-nav">
<span data-target="#red-new" data-trigger="tab" data-funFilterHide data-funGetNewGoods>上新</span>
</li>
<em>|</em>
<li class="shop-tab-nav tab-nav">
<span data-target="#all-goods" data-trigger="tab" data-funFilterShow>全部商品</span>
</li>
</ul>
... ... @@ -40,6 +44,12 @@
<div class="shop-coupon coupon-group"></div>
{{> reds-shop/modules}}
</div>
{{!--shop-tab: 上新--}}
<div id="red-new">
<div class="new-good-list-page yoho-page">
</div>
</div>
{{!--shop-tab: 全部商品--}}
<div id="all-goods" class="tab-panel">
<div class="good-list-page yoho-page">
... ...
... ... @@ -4,6 +4,7 @@ require('product/shop/redshop.page.css');
const $ = require('yoho-jquery');
const allProduct = require('./shop/all-product');
const newProuct = require('./shop/new-product');
let Tab = require('../plugin/tab');
let $filterBox = $('.filter-box');
... ... @@ -18,6 +19,9 @@ Tab.prototype.filtershow = function() { // 显示筛选 TAB
allProduct.getGoodsList();
}
};
Tab.prototype.getnewgoods = function() {
newProuct.getNewGoods();
};
// 页面打开直接加载筛选项
allProduct.getFilter();
... ...
/*
* @Author: Targaryen
* @Date: 2017-03-30 16:03:01
* @Last Modified by: Targaryen
* @Last Modified time: 2017-03-30 16:03:55
*/
/* **************************
* 红人店铺-上新
************************** */
const getNewGoods = () => {
console.log('ok');
};
module.exports = {
getNewGoods
};
... ...
... ... @@ -19,7 +19,7 @@
.shop-tab-nav {
color: #dededf;
width: 50%;
width: 33.33%;
text-align: center;
&.active {
... ...