Showing
5 changed files
with
10 additions
and
19 deletions
@@ -9,6 +9,7 @@ | @@ -9,6 +9,7 @@ | ||
9 | // const channelModel = require('../models/channel'); | 9 | // const channelModel = require('../models/channel'); |
10 | const mRoot = '../models'; | 10 | const mRoot = '../models'; |
11 | const _ = require('lodash'); | 11 | const _ = require('lodash'); |
12 | + | ||
12 | // const helpers = require(`${library}/helpers`); | 13 | // const helpers = require(`${library}/helpers`); |
13 | // const log = require(`${library}/logger`); | 14 | // const log = require(`${library}/logger`); |
14 | const headerModel = require('../../../doraemon/models/header'); | 15 | const headerModel = require('../../../doraemon/models/header'); |
@@ -30,7 +31,7 @@ exports.index = (req, res) => { | @@ -30,7 +31,7 @@ exports.index = (req, res) => { | ||
30 | pageFooter: true | 31 | pageFooter: true |
31 | }; | 32 | }; |
32 | 33 | ||
33 | - starModel.getIndexData().then((result) => { | 34 | + starModel.getIndexData().then(() => { |
34 | res.render('star/index', _.assign(headerData, renderData, { | 35 | res.render('star/index', _.assign(headerData, renderData, { |
35 | content: '', | 36 | content: '', |
36 | headTab: [ | 37 | headTab: [ |
@@ -10,6 +10,7 @@ const resourcesProcess = require(`${utils}/resources-process`); | @@ -10,6 +10,7 @@ const resourcesProcess = require(`${utils}/resources-process`); | ||
10 | const ServiceAPI = require(`${library}/api`).ServiceAPI; | 10 | const ServiceAPI = require(`${library}/api`).ServiceAPI; |
11 | const sign = require(`${library}/sign`); | 11 | const sign = require(`${library}/sign`); |
12 | const logger = require(`${library}/logger`); | 12 | const logger = require(`${library}/logger`); |
13 | +const serviceAPI = new ServiceAPI(); | ||
13 | 14 | ||
14 | /** | 15 | /** |
15 | * 获取资源位数据 | 16 | * 获取资源位数据 |
@@ -40,5 +41,5 @@ const getResources = (page) => { | @@ -40,5 +41,5 @@ const getResources = (page) => { | ||
40 | * 星潮首页 | 41 | * 星潮首页 |
41 | */ | 42 | */ |
42 | exports.getIndexData = () => { | 43 | exports.getIndexData = () => { |
43 | - | ||
44 | -}; | ||
44 | + getResources('index'); | ||
45 | +}; |
@@ -35,11 +35,11 @@ | @@ -35,11 +35,11 @@ | ||
35 | font-size: 30px; | 35 | font-size: 30px; |
36 | 36 | ||
37 | a { | 37 | a { |
38 | - color: #b0b0b0; | ||
39 | - display: inline-block; | 38 | + color: #b0b0b0; |
39 | + display: inline-block; | ||
40 | } | 40 | } |
41 | 41 | ||
42 | - &.cur a{ | 42 | + &.cur a { |
43 | color: #fff; | 43 | color: #fff; |
44 | } | 44 | } |
45 | } | 45 | } |
@@ -104,14 +104,3 @@ | @@ -104,14 +104,3 @@ | ||
104 | } | 104 | } |
105 | } | 105 | } |
106 | 106 | ||
107 | - | ||
108 | -/*.yoho-header .nav-title { | ||
109 | - font-weight: normal; | ||
110 | -} | ||
111 | - | ||
112 | -.star-class-body { | ||
113 | - background: #333; | ||
114 | - width: 100%; | ||
115 | - font: 12px/1.5 Arial,'黑体'; | ||
116 | - float: left; | ||
117 | -}*/ |
-
Please register or login to post a comment