Authored by zhangxiaoru

设置潮流口令页

  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 +};
@@ -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;
  1 +<div class="tide-command-page yoho-page">
  2 + <textarea name="" class="command-textarea" placeholder="请设置您的潮流口令"></textarea>
  3 + <span class="close">×</span>
  4 + <div class="rules">
  5 + <span>您的潮流口令需要是15位以内的字符,使用潮流口令标榜自己的个性与独一无二。</span>
  6 + </div>
  7 +</div>
@@ -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}}
  1 +require('home/tide-command.page.css');
  2 +
  3 +$('.tide-command-page').css('min-height', function() {
  4 + return $(window).height();
  5 +});
  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 +}
@@ -56,6 +56,10 @@ @@ -56,6 +56,10 @@
56 font-size: 28px; 56 font-size: 28px;
57 width: auto; 57 width: auto;
58 } 58 }
  59 +
  60 + .save {
  61 + font-size: 28px;
  62 + }
59 } 63 }
60 } 64 }
61 65