save
Signed-off-by: 陈轩 <xuan.chen@yoho.cn>
Showing
4 changed files
with
15 additions
and
3 deletions
@@ -6,7 +6,8 @@ | @@ -6,7 +6,8 @@ | ||
6 | 6 | ||
7 | var express = require('express'), | 7 | var express = require('express'), |
8 | path = require('path'), | 8 | path = require('path'), |
9 | - hbs = require('express-handlebars'); | 9 | + hbs = require('express-handlebars'), |
10 | + helpers = require(path.join(global.utils, 'helpers')); | ||
10 | 11 | ||
11 | var app = express(); | 12 | var app = express(); |
12 | 13 | ||
@@ -23,7 +24,7 @@ app.engine('.hbs', hbs({ | @@ -23,7 +24,7 @@ app.engine('.hbs', hbs({ | ||
23 | defaultLayout: 'layout', | 24 | defaultLayout: 'layout', |
24 | layoutsDir: doraemon, | 25 | layoutsDir: doraemon, |
25 | partialsDir: [path.join(__dirname, 'views/partial'), `${doraemon}/partial`], | 26 | partialsDir: [path.join(__dirname, 'views/partial'), `${doraemon}/partial`], |
26 | - helpers: global.yoho.helpers | 27 | + helpers: Object.assign({}, global.yoho.helpers, helpers) |
27 | })); | 28 | })); |
28 | 29 | ||
29 | // router | 30 | // router |
1 | <div class="invite-page invite-page-bg"> | 1 | <div class="invite-page invite-page-bg"> |
2 | <div class="invite-content-page"> | 2 | <div class="invite-content-page"> |
3 | - <img src="//cdn.yoho.cn/m-yohobuy-node/assets/img/activity/invite/title_new.png" /> | 3 | + {{img '/img/activity/invite/title_new.png'}} |
4 | <h2 class="bold fz16">YoHo!Buy有货福利来袭,即领即用!</h2> | 4 | <h2 class="bold fz16">YoHo!Buy有货福利来袭,即领即用!</h2> |
5 | <p>全球1000+潮流品牌每日上新!</p> | 5 | <p>全球1000+潮流品牌每日上新!</p> |
6 | <div class='invite-group relative'> | 6 | <div class='invite-group relative'> |
@@ -13,6 +13,7 @@ module.exports = { | @@ -13,6 +13,7 @@ module.exports = { | ||
13 | app: 'h5', | 13 | app: 'h5', |
14 | port: 6001, | 14 | port: 6001, |
15 | siteUrl: '//m.yohobuy.com', | 15 | siteUrl: '//m.yohobuy.com', |
16 | + assetUrl: '//localhost:5001', | ||
16 | domains: { | 17 | domains: { |
17 | // api: 'http://devapi.yoho.cn:58078/', | 18 | // api: 'http://devapi.yoho.cn:58078/', |
18 | // service: 'http://devservice.yoho.cn:58077/' | 19 | // service: 'http://devservice.yoho.cn:58077/' |
@@ -78,6 +79,7 @@ module.exports = { | @@ -78,6 +79,7 @@ module.exports = { | ||
78 | if (isProduction) { | 79 | if (isProduction) { |
79 | Object.assign(module.exports, { | 80 | Object.assign(module.exports, { |
80 | appName: 'm.yohobuy.com', | 81 | appName: 'm.yohobuy.com', |
82 | + assetUrl: '//cdn.yoho.cn/m-yohobuy-node/assets', | ||
81 | domains: { | 83 | domains: { |
82 | api: 'http://api.yoho.yohoops.org/', | 84 | api: 'http://api.yoho.yohoops.org/', |
83 | service: 'http://service.yoho.yohoops.org/', | 85 | service: 'http://service.yoho.yohoops.org/', |
-
Please register or login to post a comment