Authored by 郭成尧

'mg-master'

@@ -129,7 +129,7 @@ const index = (req, res) => { @@ -129,7 +129,7 @@ const index = (req, res) => {
129 res.cookie('udid', req.query.udid); 129 res.cookie('udid', req.query.udid);
130 res.cookie('clientType', req.query.client_type); 130 res.cookie('clientType', req.query.client_type);
131 res.cookie('appVersion', req.query.app_version); 131 res.cookie('appVersion', req.query.app_version);
132 - 132 +
133 res.render('installment/open-index', _.assign({ 133 res.render('installment/open-index', _.assign({
134 module: 'home', 134 module: 'home',
135 page: 'installment', 135 page: 'installment',
@@ -18,6 +18,7 @@ const cachePage = { @@ -18,6 +18,7 @@ const cachePage = {
18 // 商品详情页 18 // 商品详情页
19 '/product/\\/pro_([\\d]+)_([\\d]+)\\/(.*)/': 30 * MINUTE, 19 '/product/\\/pro_([\\d]+)_([\\d]+)\\/(.*)/': 30 * MINUTE,
20 '/product/\\/show_([\\d]+)/': 30 * MINUTE, 20 '/product/\\/show_([\\d]+)/': 30 * MINUTE,
  21 +
21 // 商品详情ajax 22 // 商品详情ajax
22 23
23 // 逛 24 // 逛
@@ -3,8 +3,8 @@ @@ -3,8 +3,8 @@
3 * @author: liangzhifeng<zhifeng.liang@yoho.cn> 3 * @author: liangzhifeng<zhifeng.liang@yoho.cn>
4 * @date: 2015/10/12 4 * @date: 2015/10/12
5 */ 5 */
6 -//加载css  
7 -require("channel/home.page.css") 6 +// 加载css
  7 +require('channel/home.page.css');
8 8
9 9
10 var $ = require('yoho-jquery'), 10 var $ = require('yoho-jquery'),
1 -module.exports = function (url, opts) { 1 +module.exports = function(url, opts) {
2 if (url) { 2 if (url) {
3 let params = opts.hash; 3 let params = opts.hash;
4 let urls = url.split('?'); 4 let urls = url.split('?');
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 * @author: xuqi<qi.xu@yoho.cn> 3 * @author: xuqi<qi.xu@yoho.cn>
4 * @date: 2015/10/10 4 * @date: 2015/10/10
5 */ 5 */
6 -require("guang/index-editor.page.css") 6 +require('guang/index-editor.page.css');
7 7
8 8
9 var $ = require('yoho-jquery'); 9 var $ = require('yoho-jquery');
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 * @author: xuqi<qi.xu@yoho.cn> 3 * @author: xuqi<qi.xu@yoho.cn>
4 * @date: 2015/10/10 4 * @date: 2015/10/10
5 */ 5 */
6 -require("guang/index.page.css") 6 +require('guang/index.page.css');
7 7
8 8
9 9
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 * @author: xuqi<qi.xu@yoho.cn> 3 * @author: xuqi<qi.xu@yoho.cn>
4 * @date: 2015/10/13 4 * @date: 2015/10/13
5 */ 5 */
6 -require("guang/info-index.page.css") 6 +require('guang/info-index.page.css');
7 7
8 var $ = require('yoho-jquery'), 8 var $ = require('yoho-jquery'),
9 ellipsis = require('yoho-mlellipsis'), 9 ellipsis = require('yoho-mlellipsis'),
@@ -175,4 +175,4 @@ $disLikeBtn.bind('click', function() { @@ -175,4 +175,4 @@ $disLikeBtn.bind('click', function() {
175 dialogText: '网络错误~' 175 dialogText: '网络错误~'
176 }); 176 });
177 }); 177 });
178 -});  
  178 +});
@@ -48,7 +48,7 @@ module.exports = { @@ -48,7 +48,7 @@ module.exports = {
48 var opt = args[args.length - 1]; 48 var opt = args[args.length - 1];
49 var isTrue = false; 49 var isTrue = false;
50 50
51 - for (var i = 0; i < args.length - 1; i ++ ) { 51 + for (var i = 0; i < args.length - 1; i++) {
52 if (args[i]) { 52 if (args[i]) {
53 isTrue = true; 53 isTrue = true;
54 break; 54 break;