Authored by zhangxiaoru

index

  1 +'use strict';
  2 +
  3 +//const headerModel = require('../../../doraemon/models/header'); // 头部model
  4 +// const family = require('../models/family');
  5 +
  6 +exports.familyIndex = (req, res) => {
  7 + //let uid = req.user.uid;
  8 +
  9 + res.render('family/index', {
  10 + page: 'family',
  11 + title: 'family',
  12 + width750: true,
  13 + localCss: true
  14 + });
  15 +};
@@ -31,6 +31,7 @@ const gradeNew = require(`${cRoot}/grade-new`); @@ -31,6 +31,7 @@ const gradeNew = require(`${cRoot}/grade-new`);
31 const refund = require(`${cRoot}/refund`); 31 const refund = require(`${cRoot}/refund`);
32 const exchange = require(`${cRoot}/exchange`); 32 const exchange = require(`${cRoot}/exchange`);
33 const tideCommand = require(`${cRoot}/tide-command`); 33 const tideCommand = require(`${cRoot}/tide-command`);
  34 +const family = require(`${cRoot}/family`);
34 35
35 // const myDetail = require(`${cRoot}/myDetail); 36 // const myDetail = require(`${cRoot}/myDetail);
36 37
@@ -175,4 +176,6 @@ router.post('/return/exchange/submit', auth, exchange.submit); // AJAX 提交换 @@ -175,4 +176,6 @@ router.post('/return/exchange/submit', auth, exchange.submit); // AJAX 提交换
175 router.post('/return/exchange/cancel-apply', auth, exchange.cancelApply); // AJAX 取消换货申请 176 router.post('/return/exchange/cancel-apply', auth, exchange.cancelApply); // AJAX 取消换货申请
176 177
177 router.get('/tide-command', auth, tideCommand.tideCommand); // 设置潮流口令 178 router.get('/tide-command', auth, tideCommand.tideCommand); // 设置潮流口令
  179 +
  180 +router.get('/family', auth, family.familyIndex); // family首页
178 module.exports = router; 181 module.exports = router;
  1 +<div class="yoho-family-page yoho-page">
  2 + <div class="family-heade">
  3 + <div class="header-top">
  4 + <button class="back iconfont" onclick="javascript:history.go(-1);">&#xe72e;</button>
  5 + <span>111</span>
  6 + </div>
  7 + </div>
  8 +</div>
  1 +require('home/family.page.css');
  1 +.yoho-family-page {
  2 + .family-heade {
  3 + background: linear-gradient(#46ba8e, #67c7c0);
  4 + }
  5 +}