Showing
6 changed files
with
121 additions
and
0 deletions
@@ -137,6 +137,16 @@ const newDetail = { | @@ -137,6 +137,16 @@ const newDetail = { | ||
137 | return res.json(result); | 137 | return res.json(result); |
138 | }).catch(next); | 138 | }).catch(next); |
139 | } | 139 | } |
140 | + }, | ||
141 | + | ||
142 | + /** | ||
143 | + * 限购商品说明页面 | ||
144 | + */ | ||
145 | + limitHelp(req, res) { | ||
146 | + res.render('detail/limit-help', { | ||
147 | + module: 'product', | ||
148 | + page: 'limit-help' | ||
149 | + }); | ||
140 | } | 150 | } |
141 | }; | 151 | }; |
142 | 152 |
@@ -177,5 +177,6 @@ router.get('/newsale/selectHotrank', newsale.selectHotrank); // 热销排行榜 | @@ -177,5 +177,6 @@ router.get('/newsale/selectHotrank', newsale.selectHotrank); // 热销排行榜 | ||
177 | router.get('/bundle/detail', bundle.detail); // 套装详情页 | 177 | router.get('/bundle/detail', bundle.detail); // 套装详情页 |
178 | 178 | ||
179 | router.post('/opt/favoriteProduct', newDetail.favoriteProduct); // 商品收藏、取消收藏 | 179 | router.post('/opt/favoriteProduct', newDetail.favoriteProduct); // 商品收藏、取消收藏 |
180 | +router.get('/detail/limitHelp', newDetail.limitHelp); | ||
180 | 181 | ||
181 | module.exports = router; | 182 | module.exports = router; |
1 | +<div class="limit-help-page yoho-page"> | ||
2 | + <h2>不同限定商品获取限购码方式不同,获取限购码目前有两种方式:</h2> | ||
3 | + <span class="method">方式一</span> | ||
4 | + <ul class="method-1"> | ||
5 | + <li>1.在限定发售详情页点击分享或者底部“获取限购码”图标。 | ||
6 | + <div class="intro-img"></div> | ||
7 | + </li> | ||
8 | + <li>2.从弹出的分享中选取需要分享的渠道。 | ||
9 | + <div class="intro-img"></div> | ||
10 | + </li> | ||
11 | + <li>3.分享成功后返回Yoho!Buy有货APP会提示已获得限购码。 | ||
12 | + <div class="intro-img"></div> | ||
13 | + </li> | ||
14 | + </ul> | ||
15 | + <span class="method">方式二</span> | ||
16 | + <ul class="method-2"> | ||
17 | + <li>1.在限定发售详情页点击参加排队赢取限购码图标。 | ||
18 | + <div class="intro-img"></div> | ||
19 | + </li> | ||
20 | + <li>2.进入限定发售排队页面,点击参加排队。 | ||
21 | + <div class="intro-img"></div> | ||
22 | + </li> | ||
23 | + <li>3.排队成功后凭排队序列号作为抽奖凭证,等待开奖时间。 | ||
24 | + <div class="intro-img"></div> | ||
25 | + </li> | ||
26 | + <li>4.开奖后,排队页面会公布中奖名单,限购码会直接发送至账户。 | ||
27 | + <div class="intro-img"></div> | ||
28 | + </li> | ||
29 | + </ul> | ||
30 | + <h2>查看和使用限购码</h2> | ||
31 | + <ul class="how"> | ||
32 | + <li>1.从个人中心进入我的限购码页面,可查看所获取的限购码。 | ||
33 | + <div class="intro-img"></div> | ||
34 | + </li> | ||
35 | + <li>2.商品开售后,可凭此限购码购买对应商品。 | ||
36 | + <div class="intro-img"></div> | ||
37 | + </li> | ||
38 | + </ul> | ||
39 | +</div> |
public/js/product/limit-help.page.js
0 → 100644
1 | +require('../common'); |
public/scss/product/detail/_limit-help.css
0 → 100644
1 | +.limit-help-page { | ||
2 | + padding: 28px; | ||
3 | + color: #444; | ||
4 | + | ||
5 | + h2 { | ||
6 | + font-size: 30px; | ||
7 | + font-weight: bold; | ||
8 | + } | ||
9 | + | ||
10 | + .method { | ||
11 | + display: block; | ||
12 | + width: 80px; | ||
13 | + height: 35px; | ||
14 | + line-height: 35px; | ||
15 | + background-color: #444; | ||
16 | + color: #fff; | ||
17 | + border-radius: 20px; | ||
18 | + text-align: center; | ||
19 | + margin: 20px 0; | ||
20 | + } | ||
21 | + | ||
22 | + li { | ||
23 | + font-size: 24px; | ||
24 | + } | ||
25 | + | ||
26 | + .intro-img { | ||
27 | + width: 100%; | ||
28 | + height: 220px; | ||
29 | + background-size: 100%; | ||
30 | + background-repeat: no-repeat; | ||
31 | + margin: 20px 0; | ||
32 | + } | ||
33 | + | ||
34 | + .method-1 { | ||
35 | + li:nth-child(1) .intro-img{ | ||
36 | + background-image: resolve(product/help/1.png); | ||
37 | + } | ||
38 | + li:nth-child(2) .intro-img{ | ||
39 | + background-image: resolve(product/help/2.png); | ||
40 | + } | ||
41 | + li:nth-child(3) .intro-img{ | ||
42 | + background-image: resolve(product/help/3.png); | ||
43 | + } | ||
44 | + } | ||
45 | + .method-2 { | ||
46 | + li:nth-child(1) .intro-img{ | ||
47 | + background-image: resolve(product/help/4.png); | ||
48 | + } | ||
49 | + li:nth-child(2) .intro-img{ | ||
50 | + background-image: resolve(product/help/5.png); | ||
51 | + } | ||
52 | + li:nth-child(3) .intro-img{ | ||
53 | + background-image: resolve(product/help/6.png); | ||
54 | + } | ||
55 | + li:nth-child(4) .intro-img{ | ||
56 | + background-image: resolve(product/help/7.png); | ||
57 | + } | ||
58 | + } | ||
59 | + | ||
60 | + .how { | ||
61 | + li:nth-child(1) .intro-img{ | ||
62 | + background-image: resolve(product/help/8.png); | ||
63 | + } | ||
64 | + li:nth-child(2) .intro-img{ | ||
65 | + background-image: resolve(product/help/9.png); | ||
66 | + margin-bottom: 0; | ||
67 | + } | ||
68 | + } | ||
69 | +} |
-
Please register or login to post a comment