Showing
4 changed files
with
34 additions
and
1 deletions
@@ -26,6 +26,10 @@ | @@ -26,6 +26,10 @@ | ||
26 | </li> | 26 | </li> |
27 | <em>|</em> | 27 | <em>|</em> |
28 | <li class="shop-tab-nav tab-nav"> | 28 | <li class="shop-tab-nav tab-nav"> |
29 | + <span data-target="#red-new" data-trigger="tab" data-funFilterHide data-funGetNewGoods>上新</span> | ||
30 | + </li> | ||
31 | + <em>|</em> | ||
32 | + <li class="shop-tab-nav tab-nav"> | ||
29 | <span data-target="#all-goods" data-trigger="tab" data-funFilterShow>全部商品</span> | 33 | <span data-target="#all-goods" data-trigger="tab" data-funFilterShow>全部商品</span> |
30 | </li> | 34 | </li> |
31 | </ul> | 35 | </ul> |
@@ -40,6 +44,12 @@ | @@ -40,6 +44,12 @@ | ||
40 | <div class="shop-coupon coupon-group"></div> | 44 | <div class="shop-coupon coupon-group"></div> |
41 | {{> reds-shop/modules}} | 45 | {{> reds-shop/modules}} |
42 | </div> | 46 | </div> |
47 | + {{!--shop-tab: 上新--}} | ||
48 | + <div id="red-new"> | ||
49 | + <div class="new-good-list-page yoho-page"> | ||
50 | + | ||
51 | + </div> | ||
52 | + </div> | ||
43 | {{!--shop-tab: 全部商品--}} | 53 | {{!--shop-tab: 全部商品--}} |
44 | <div id="all-goods" class="tab-panel"> | 54 | <div id="all-goods" class="tab-panel"> |
45 | <div class="good-list-page yoho-page"> | 55 | <div class="good-list-page yoho-page"> |
@@ -4,6 +4,7 @@ require('product/shop/redshop.page.css'); | @@ -4,6 +4,7 @@ require('product/shop/redshop.page.css'); | ||
4 | 4 | ||
5 | const $ = require('yoho-jquery'); | 5 | const $ = require('yoho-jquery'); |
6 | const allProduct = require('./shop/all-product'); | 6 | const allProduct = require('./shop/all-product'); |
7 | +const newProuct = require('./shop/new-product'); | ||
7 | let Tab = require('../plugin/tab'); | 8 | let Tab = require('../plugin/tab'); |
8 | 9 | ||
9 | let $filterBox = $('.filter-box'); | 10 | let $filterBox = $('.filter-box'); |
@@ -18,6 +19,9 @@ Tab.prototype.filtershow = function() { // 显示筛选 TAB | @@ -18,6 +19,9 @@ Tab.prototype.filtershow = function() { // 显示筛选 TAB | ||
18 | allProduct.getGoodsList(); | 19 | allProduct.getGoodsList(); |
19 | } | 20 | } |
20 | }; | 21 | }; |
22 | +Tab.prototype.getnewgoods = function() { | ||
23 | + newProuct.getNewGoods(); | ||
24 | +}; | ||
21 | 25 | ||
22 | // 页面打开直接加载筛选项 | 26 | // 页面打开直接加载筛选项 |
23 | allProduct.getFilter(); | 27 | allProduct.getFilter(); |
public/js/product/shop/new-product.js
0 → 100644
1 | +/* | ||
2 | + * @Author: Targaryen | ||
3 | + * @Date: 2017-03-30 16:03:01 | ||
4 | + * @Last Modified by: Targaryen | ||
5 | + * @Last Modified time: 2017-03-30 16:03:55 | ||
6 | + */ | ||
7 | + | ||
8 | +/* ************************** | ||
9 | + * 红人店铺-上新 | ||
10 | + ************************** */ | ||
11 | + | ||
12 | +const getNewGoods = () => { | ||
13 | + console.log('ok'); | ||
14 | +}; | ||
15 | + | ||
16 | + | ||
17 | +module.exports = { | ||
18 | + getNewGoods | ||
19 | +}; |
-
Please register or login to post a comment