Showing
8 changed files
with
83 additions
and
0 deletions
apps/home/controllers/tide-command.js
0 → 100644
1 | +'use strict'; | ||
2 | + | ||
3 | +// const mRoot = '../models'; | ||
4 | +const headerModel = require('../../../doraemon/models/header'); // 头部model | ||
5 | +// const tideCommandModel = require(`${mRoot}/tideCommandModel`); | ||
6 | + | ||
7 | +exports.tideCommand = (req, res) => { | ||
8 | + res.render('tide-command', { | ||
9 | + page: 'tide-command', | ||
10 | + pageHeader: headerModel.setNav({ | ||
11 | + navTitle: '我的潮流口令', | ||
12 | + navBtn: false, | ||
13 | + save: true | ||
14 | + }), | ||
15 | + title: '我的潮流口令', | ||
16 | + width750: true, | ||
17 | + localCss: true | ||
18 | + }); | ||
19 | +}; |
apps/home/models/tide-command.js
0 → 100644
@@ -29,6 +29,7 @@ const suggest = require(`${cRoot}/suggest`); | @@ -29,6 +29,7 @@ const suggest = require(`${cRoot}/suggest`); | ||
29 | const message = require(`${cRoot}/message`); | 29 | const message = require(`${cRoot}/message`); |
30 | const onlineService = require(`${cRoot}/onlineService`); | 30 | const onlineService = require(`${cRoot}/onlineService`); |
31 | const gradeNew = require(`${cRoot}/grade-new`); | 31 | const gradeNew = require(`${cRoot}/grade-new`); |
32 | +const tideCommand = require(`${cRoot}/tide-command`); | ||
32 | 33 | ||
33 | // const myDetail = require(`${cRoot}/myDetail); | 34 | // const myDetail = require(`${cRoot}/myDetail); |
34 | 35 | ||
@@ -151,4 +152,5 @@ router.get('/gradeNew/content', auth, gradeNew.content); // app要提供我的 | @@ -151,4 +152,5 @@ router.get('/gradeNew/content', auth, gradeNew.content); // app要提供我的 | ||
151 | router.get('/gradeNew/grow', auth, gradeNew.grow); // 成长记录 | 152 | router.get('/gradeNew/grow', auth, gradeNew.grow); // 成长记录 |
152 | router.get('/gradeNew/getHis', gradeNew.getHis); // 成长记录 | 153 | router.get('/gradeNew/getHis', gradeNew.getHis); // 成长记录 |
153 | 154 | ||
155 | +router.get('/tide-command', tideCommand.tideCommand); // 设置潮流口令 | ||
154 | module.exports = router; | 156 | module.exports = router; |
apps/home/views/action/tide-command.hbs
0 → 100644
@@ -47,6 +47,11 @@ | @@ -47,6 +47,11 @@ | ||
47 | {{#myReward}} | 47 | {{#myReward}} |
48 | <a href="/activity/my-reward" class="nav-home my-reward">我的奖励</a> | 48 | <a href="/activity/my-reward" class="nav-home my-reward">我的奖励</a> |
49 | {{/myReward}} | 49 | {{/myReward}} |
50 | + | ||
51 | + {{#save}} | ||
52 | + <span class="nav-home save">保存</span> | ||
53 | + {{/save}} | ||
54 | + | ||
50 | {{#invoiceNotice}} | 55 | {{#invoiceNotice}} |
51 | <span class="invoice-btn">{{.}}</span> | 56 | <span class="invoice-btn">{{.}}</span> |
52 | {{/invoiceNotice}} | 57 | {{/invoiceNotice}} |
public/js/home/tide-command.page.js
0 → 100644
public/scss/home/tide-command.page.css
0 → 100644
1 | +.tide-command-page { | ||
2 | + width: 100%; | ||
3 | + height: 100%; | ||
4 | + position: relative; | ||
5 | + background-color: #f2f2f2; | ||
6 | + | ||
7 | + .command-textarea { | ||
8 | + height: 94px; | ||
9 | + width: 100%; | ||
10 | + font-size: 28px; | ||
11 | + line-height: 94px; | ||
12 | + color: #b0b0b0; | ||
13 | + border: none; | ||
14 | + resize: none; | ||
15 | + background-color: #fff; | ||
16 | + padding-left: 30px; | ||
17 | + } | ||
18 | + | ||
19 | + .close { | ||
20 | + display: inline-block; | ||
21 | + width: 30px; | ||
22 | + height: 30px; | ||
23 | + border-radius: 30px; | ||
24 | + background-color: #c0c0c0; | ||
25 | + color: #fff; | ||
26 | + text-align: center; | ||
27 | + line-height: 30px; | ||
28 | + position: absolute; | ||
29 | + right: 30px; | ||
30 | + top: 32px; | ||
31 | + } | ||
32 | + | ||
33 | + .rules { | ||
34 | + padding: 30px; | ||
35 | + | ||
36 | + span { | ||
37 | + line-height: 40px; | ||
38 | + font-size: 28px; | ||
39 | + } | ||
40 | + } | ||
41 | +} |
-
Please register or login to post a comment