Showing
4 changed files
with
83 additions
and
74 deletions
@@ -16,13 +16,21 @@ let index = (req, res, next) => { | @@ -16,13 +16,21 @@ let index = (req, res, next) => { | ||
16 | module: 'channel', | 16 | module: 'channel', |
17 | page: 'custom', | 17 | page: 'custom', |
18 | content: result, | 18 | content: result, |
19 | - title: req.query.title || 'Yoho!Buy 有货', | ||
20 | - content_code: req.params.id, // 这是位置码,后边去调用资源位,渲染页面 | ||
21 | - downloadLink: 'http://union.yoho.cn/union/downapp.html?union_type=100000000000081' | 19 | + title: req.query.title || 'Yoho!Buy 有货' |
22 | }); | 20 | }); |
23 | }).catch(next); | 21 | }).catch(next); |
24 | }; | 22 | }; |
25 | 23 | ||
24 | +let zhihui = (req, res) => { | ||
25 | + res.render('zhihui', { | ||
26 | + module: 'channel', | ||
27 | + page: 'custom', | ||
28 | + title: req.query.title || 'Yoho!Buy 有货', | ||
29 | + downloadLink: 'http://union.yoho.cn/union/downapp.html?union_type=100000000000081' | ||
30 | + }); | ||
31 | +}; | ||
32 | + | ||
26 | module.exports = { | 33 | module.exports = { |
27 | - index | 34 | + index, |
35 | + zhihui | ||
28 | }; | 36 | }; |
@@ -36,6 +36,10 @@ router.get('/brands/delBrandHistory', brandController.delBrandHistory); // 删 | @@ -36,6 +36,10 @@ router.get('/brands/delBrandHistory', brandController.delBrandHistory); // 删 | ||
36 | router.post('/channel/shopRecom', channel.shopRecom); // 店铺推荐收藏状态 | 36 | router.post('/channel/shopRecom', channel.shopRecom); // 店铺推荐收藏状态 |
37 | router.post('/channel/userVip', channel.userVip); | 37 | router.post('/channel/userVip', channel.userVip); |
38 | 38 | ||
39 | +// 自定义频道,市场推广-智汇 | ||
40 | +// 此页面做的早,写死发给市场,与自定义的不兼容,所以需要写死 | ||
41 | +router.get('/channel/2fb054e8315300a1ae1f80c3a4fda862.html', custom.zhihui); | ||
42 | + | ||
39 | // 自定义频道 | 43 | // 自定义频道 |
40 | router.get('/channel/:id.html', custom.index); | 44 | router.get('/channel/:id.html', custom.index); |
41 | 45 |
@@ -2,73 +2,3 @@ | @@ -2,73 +2,3 @@ | ||
2 | <div class="resource-content"> | 2 | <div class="resource-content"> |
3 | {{> channel/content}} | 3 | {{> channel/content}} |
4 | </div> | 4 | </div> |
5 | - | ||
6 | -{{!-- 临时方案 | ||
7 | -<style> | ||
8 | - html,body { | ||
9 | - width: 100%; | ||
10 | - height: 100%; | ||
11 | - margin: 0; | ||
12 | - padding: 0; | ||
13 | - } | ||
14 | - div { | ||
15 | - margin: 0; | ||
16 | - padding: 0; | ||
17 | - } | ||
18 | - .wrapper { | ||
19 | - position: relative; | ||
20 | - width: 100%; | ||
21 | - | ||
22 | - } | ||
23 | - | ||
24 | - .container { | ||
25 | - position: relative; | ||
26 | - margin: 0 auto; | ||
27 | - } | ||
28 | - | ||
29 | - img { | ||
30 | - width:100%; | ||
31 | - float: left; | ||
32 | - } | ||
33 | - | ||
34 | - ul { | ||
35 | - list-style: none; | ||
36 | - overflow: hidden; | ||
37 | - margin: 0; | ||
38 | - padding: 0; | ||
39 | - } | ||
40 | - | ||
41 | - ul li { | ||
42 | - position: relative; | ||
43 | - width:100%; | ||
44 | - overflow: hidden; | ||
45 | - } | ||
46 | - | ||
47 | - #btn_download { | ||
48 | - position: absolute; | ||
49 | - width: 73%; | ||
50 | - height: 14%; | ||
51 | - top: 75.5%; | ||
52 | - left: 13%; | ||
53 | - } | ||
54 | -</style> | ||
55 | -<div class="wrapper"> | ||
56 | - <div class="container"> | ||
57 | - <ul> | ||
58 | - <li> | ||
59 | - <img src="https://feature.yoho.cn/0113/images/01ff33cffc05e280bd701b90801835ad51.jpg?imageView2/2/q/75/"> | ||
60 | - <a id="btn_download" href="{{downloadLink}}" target="_blank"></a> | ||
61 | - </li> | ||
62 | - <li> | ||
63 | - <img src="https://feature.yoho.cn/0113/images/015d6241108a4db156d4153a5645bd283e.jpg?imageView2/2/q/75/"> | ||
64 | - </li> | ||
65 | - <li> | ||
66 | - <img src="https://feature.yoho.cn/0113/images/01651b926f5f22f4b00b6809925e4388a3.jpg?imageView2/2/q/75/"> | ||
67 | - </li> | ||
68 | - <li> | ||
69 | - <img src="https://feature.yoho.cn/0113/images/0157ad8f797d97f10cc21bd30333c5a7c5.jpg?imageView2/2/q/75/"> | ||
70 | - </li> | ||
71 | - </ul> | ||
72 | - </div> | ||
73 | -</div> | ||
74 | - --}} |
apps/channel/views/action/zhihui.hbs
0 → 100644
1 | +<style> | ||
2 | + html,body { | ||
3 | + width: 100%; | ||
4 | + height: 100%; | ||
5 | + margin: 0; | ||
6 | + padding: 0; | ||
7 | + } | ||
8 | + div { | ||
9 | + margin: 0; | ||
10 | + padding: 0; | ||
11 | + } | ||
12 | + .wrapper { | ||
13 | + position: relative; | ||
14 | + width: 100%; | ||
15 | + | ||
16 | + } | ||
17 | + | ||
18 | + .container { | ||
19 | + position: relative; | ||
20 | + margin: 0 auto; | ||
21 | + } | ||
22 | + | ||
23 | + img { | ||
24 | + width:100%; | ||
25 | + float: left; | ||
26 | + } | ||
27 | + | ||
28 | + ul { | ||
29 | + list-style: none; | ||
30 | + overflow: hidden; | ||
31 | + margin: 0; | ||
32 | + padding: 0; | ||
33 | + } | ||
34 | + | ||
35 | + ul li { | ||
36 | + position: relative; | ||
37 | + width:100%; | ||
38 | + overflow: hidden; | ||
39 | + } | ||
40 | + | ||
41 | + #btn_download { | ||
42 | + position: absolute; | ||
43 | + width: 73%; | ||
44 | + height: 14%; | ||
45 | + top: 75.5%; | ||
46 | + left: 13%; | ||
47 | + } | ||
48 | +</style> | ||
49 | +<div class="wrapper"> | ||
50 | + <div class="container"> | ||
51 | + <ul> | ||
52 | + <li> | ||
53 | + <img src="https://feature.yoho.cn/0113/images/01ff33cffc05e280bd701b90801835ad51.jpg?imageView2/2/q/75/"> | ||
54 | + <a id="btn_download" href="{{downloadLink}}" target="_blank"></a> | ||
55 | + </li> | ||
56 | + <li> | ||
57 | + <img src="https://feature.yoho.cn/0113/images/015d6241108a4db156d4153a5645bd283e.jpg?imageView2/2/q/75/"> | ||
58 | + </li> | ||
59 | + <li> | ||
60 | + <img src="https://feature.yoho.cn/0113/images/01651b926f5f22f4b00b6809925e4388a3.jpg?imageView2/2/q/75/"> | ||
61 | + </li> | ||
62 | + <li> | ||
63 | + <img src="https://feature.yoho.cn/0113/images/0157ad8f797d97f10cc21bd30333c5a7c5.jpg?imageView2/2/q/75/"> | ||
64 | + </li> | ||
65 | + </ul> | ||
66 | + </div> | ||
67 | +</div> |
-
Please register or login to post a comment