Authored by 陈轩

merge master

@@ -9,7 +9,7 @@ const co = require('bluebird').coroutine; @@ -9,7 +9,7 @@ const co = require('bluebird').coroutine;
9 9
10 function humanNum_wan(num) { 10 function humanNum_wan(num) {
11 if (num > 9999) { 11 if (num > 9999) {
12 - num = (num / 10000).toFixed(2) + '万' 12 + num = (num / 10000).toFixed(2) + '万';
13 } 13 }
14 14
15 return num; 15 return num;
@@ -87,7 +87,7 @@ exports.crazyWheel = (req, res, next) => { @@ -87,7 +87,7 @@ exports.crazyWheel = (req, res, next) => {
87 } 87 }
88 88
89 vipDayModel.getJoinNum(1).then(result => { 89 vipDayModel.getJoinNum(1).then(result => {
90 - let joins = result && result.data || 0; 90 + let joins = result && result.data || 0;
91 91
92 res.render('vip_day/crazy_wheel', { 92 res.render('vip_day/crazy_wheel', {
93 title: '疯狂大转盘', 93 title: '疯狂大转盘',
@@ -111,7 +111,7 @@ exports.crazyLuck = (req, res, next) => { @@ -111,7 +111,7 @@ exports.crazyLuck = (req, res, next) => {
111 let joinNum = yield vipDayModel.getJoinNum(2); 111 let joinNum = yield vipDayModel.getJoinNum(2);
112 112
113 coins = (coins && coins.data && coins.data.total) || 0; 113 coins = (coins && coins.data && coins.data.total) || 0;
114 - joinNum = (joinNum && joinNum.data) || 0 114 + joinNum = (joinNum && joinNum.data) || 0;
115 115
116 res.render('vip_day/crazy_luck', { 116 res.render('vip_day/crazy_luck', {
117 title: '拼手气', 117 title: '拼手气',
@@ -105,7 +105,7 @@ exports.getGoods = cate => { @@ -105,7 +105,7 @@ exports.getGoods = cate => {
105 let skn = product.productSkn; 105 let skn = product.productSkn;
106 let imgSrc = url.parse(product.defaultImages); 106 let imgSrc = url.parse(product.defaultImages);
107 107
108 - product.defaultImages = ['//', imgSrc.hostname, imgSrc.pathname].join(''); 108 + product.defaultImages = ['//', imgSrc.hostname, imgSrc.pathname].join('');
109 109
110 product.url = helpers.appUrlFormat(product.url, 'go.productDetail', { 110 product.url = helpers.appUrlFormat(product.url, 'go.productDetail', {
111 product_skn: skn 111 product_skn: skn
@@ -921,7 +921,7 @@ const _detailDataPkg = (origin, uid, vipLevel, ua) => { @@ -921,7 +921,7 @@ const _detailDataPkg = (origin, uid, vipLevel, ua) => {
921 }; 921 };
922 922
923 let _getShopsInfo = (brandId) => { 923 let _getShopsInfo = (brandId) => {
924 - if(!brandId) { 924 + if (!brandId) {
925 return Promise.resolve([]); 925 return Promise.resolve([]);
926 } 926 }
927 return api.get('', { 927 return api.get('', {
@@ -64,4 +64,4 @@ module.exports = { @@ -64,4 +64,4 @@ module.exports = {
64 'window.jQuery': 'yoho-jquery' 64 'window.jQuery': 'yoho-jquery'
65 }) 65 })
66 ] 66 ]
67 -};  
  67 +};