Showing
9 changed files
with
24 additions
and
13 deletions
@@ -178,7 +178,7 @@ const _getBrandLogosData = (args, showNum) => { | @@ -178,7 +178,7 @@ const _getBrandLogosData = (args, showNum) => { | ||
178 | fillNum = showNum - (items.length % showNum); | 178 | fillNum = showNum - (items.length % showNum); |
179 | for (i = 0; i < fillNum; i++) { | 179 | for (i = 0; i < fillNum; i++) { |
180 | items.push({ | 180 | items.push({ |
181 | - href: 'javascript:;', | 181 | + href: 'javascript:;', // eslint-disable-line |
182 | img: '' | 182 | img: '' |
183 | }); | 183 | }); |
184 | } | 184 | } |
@@ -44,7 +44,7 @@ exports.gpager = function() { | @@ -44,7 +44,7 @@ exports.gpager = function() { | ||
44 | base = base.replace(clearSizeReg, ''); | 44 | base = base.replace(clearSizeReg, ''); |
45 | } | 45 | } |
46 | 46 | ||
47 | - base += (base.indexOf('?') < 0 ? '?' : (/(\?|&)$/.test(base) ? '' : '&')) + | 47 | + base += (base.indexOf('?') < 0 ? '?' : (/(\?|&)$/.test(base) ? '' : '&')) + // eslint-disable-line |
48 | (options.hash.pageSize ? (pageSizeVar + '=' + pageSize + '&') : '') + | 48 | (options.hash.pageSize ? (pageSizeVar + '=' + pageSize + '&') : '') + |
49 | pageVar + '='; | 49 | pageVar + '='; |
50 | 50 | ||
@@ -193,6 +193,8 @@ exports.gpager = function() { | @@ -193,6 +193,8 @@ exports.gpager = function() { | ||
193 | } | 193 | } |
194 | hasPage = true; | 194 | hasPage = true; |
195 | break; | 195 | break; |
196 | + default: | ||
197 | + break; | ||
196 | } | 198 | } |
197 | }); | 199 | }); |
198 | 200 |
@@ -152,6 +152,8 @@ const _formatArticle = (articleData, showTag, showAuthor, channel) => { | @@ -152,6 +152,8 @@ const _formatArticle = (articleData, showTag, showAuthor, channel) => { | ||
152 | case '19': // 专题 | 152 | case '19': // 专题 |
153 | result.isSpecialTopic = true; | 153 | result.isSpecialTopic = true; |
154 | break; | 154 | break; |
155 | + default: | ||
156 | + break; | ||
155 | } | 157 | } |
156 | } | 158 | } |
157 | 159 |
1 | 'use strict'; | 1 | 'use strict'; |
2 | - | 2 | +/* eslint-disable */ |
3 | var crypto = require('crypto'), | 3 | var crypto = require('crypto'), |
4 | request = require('request'), | 4 | request = require('request'), |
5 | pkg = require('../../../package.json'); | 5 | pkg = require('../../../package.json'); |
@@ -220,3 +220,4 @@ Geetest.prototype = { | @@ -220,3 +220,4 @@ Geetest.prototype = { | ||
220 | }; | 220 | }; |
221 | 221 | ||
222 | module.exports = Geetest; | 222 | module.exports = Geetest; |
223 | +/* eslint-enable */ |
@@ -26,16 +26,16 @@ var address = { | @@ -26,16 +26,16 @@ var address = { | ||
26 | initDomIds: function(domOptions) { | 26 | initDomIds: function(domOptions) { |
27 | var the = this; | 27 | var the = this; |
28 | 28 | ||
29 | - if (typeof domOptions.provinceDomId !== undefined) { | 29 | + if (domOptions.provinceDomId) { |
30 | the.provinceDomId = domOptions.provinceDomId; | 30 | the.provinceDomId = domOptions.provinceDomId; |
31 | } | 31 | } |
32 | - if (typeof domOptions.cityDomId !== undefined) { | 32 | + if (domOptions.cityDomId) { |
33 | the.cityDomId = domOptions.cityDomId; | 33 | the.cityDomId = domOptions.cityDomId; |
34 | } | 34 | } |
35 | - if (typeof domOptions.areaDomId !== undefined) { | 35 | + if (domOptions.areaDomId) { |
36 | the.areaDomId = domOptions.areaDomId; | 36 | the.areaDomId = domOptions.areaDomId; |
37 | } | 37 | } |
38 | - if (typeof domOptions.streetsDomId !== undefined) { | 38 | + if (domOptions.streetsDomId) { |
39 | the.streetsDomId = domOptions.streetsDomId; | 39 | the.streetsDomId = domOptions.streetsDomId; |
40 | } | 40 | } |
41 | }, | 41 | }, |
@@ -153,7 +153,7 @@ var address = { | @@ -153,7 +153,7 @@ var address = { | ||
153 | strCity = $('#' + the.cityDomId).find('option:selected').text(), | 153 | strCity = $('#' + the.cityDomId).find('option:selected').text(), |
154 | strArea = $('#' + the.areaDomId).find('option:selected').text(); | 154 | strArea = $('#' + the.areaDomId).find('option:selected').text(); |
155 | 155 | ||
156 | - if (typeof dispDomId !== undefined && dispDomId !== '') { | 156 | + if (typeof dispDomId !== 'undefined' && dispDomId !== '') { |
157 | if (strProvince.indexOf('选择') < 0) { | 157 | if (strProvince.indexOf('选择') < 0) { |
158 | strAddr = strProvince; | 158 | strAddr = strProvince; |
159 | } | 159 | } |
1 | +/* eslint-disable */ | ||
1 | var $ = require('yoho-jquery'); | 2 | var $ = require('yoho-jquery'); |
2 | const brand_tmp = require('hbs/material/brand.hbs'); | 3 | const brand_tmp = require('hbs/material/brand.hbs'); |
3 | 4 | ||
@@ -40,3 +41,4 @@ getBrandList(1, 1); | @@ -40,3 +41,4 @@ getBrandList(1, 1); | ||
40 | $.get('/material/getCategory', data => { | 41 | $.get('/material/getCategory', data => { |
41 | console.log(data); | 42 | console.log(data); |
42 | }); | 43 | }); |
44 | +/* eslint-enable */ |
1 | /** | 1 | /** |
2 | * Created by TaoHuang on 2016/12/12. | 2 | * Created by TaoHuang on 2016/12/12. |
3 | */ | 3 | */ |
4 | - | 4 | +/* eslint-disable */ |
5 | var $ = require('yoho-jquery'); | 5 | var $ = require('yoho-jquery'); |
6 | 6 | ||
7 | require('../common/promise'); | 7 | require('../common/promise'); |
@@ -88,9 +88,9 @@ GeeCaptcha.prototype = { | @@ -88,9 +88,9 @@ GeeCaptcha.prototype = { | ||
88 | return $.Deferred().reject().promise(); // eslint-disable-line | 88 | return $.Deferred().reject().promise(); // eslint-disable-line |
89 | } | 89 | } |
90 | 90 | ||
91 | - //return $.post('/passport/geetest/validate', { | 91 | + // return $.post('/passport/geetest/validate', { |
92 | // verifyCode: _this.getResults() | 92 | // verifyCode: _this.getResults() |
93 | - //}).then(function(result) { | 93 | + // }).then(function(result) { |
94 | // if (result.code === 200) { | 94 | // if (result.code === 200) { |
95 | // _this.hideTip(); | 95 | // _this.hideTip(); |
96 | // return $.Deferred().resolve().promise(); // eslint-disable-line | 96 | // return $.Deferred().resolve().promise(); // eslint-disable-line |
@@ -101,7 +101,7 @@ GeeCaptcha.prototype = { | @@ -101,7 +101,7 @@ GeeCaptcha.prototype = { | ||
101 | // _this.showTip(result.message); | 101 | // _this.showTip(result.message); |
102 | // return $.Deferred().reject().promise(); //eslint-disable-line | 102 | // return $.Deferred().reject().promise(); //eslint-disable-line |
103 | // } | 103 | // } |
104 | - //}); | 104 | + // }); |
105 | 105 | ||
106 | return $.Deferred().resolve().promise(); // eslint-disable-line | 106 | return $.Deferred().resolve().promise(); // eslint-disable-line |
107 | }, | 107 | }, |
@@ -141,5 +141,5 @@ GeeCaptcha.prototype = { | @@ -141,5 +141,5 @@ GeeCaptcha.prototype = { | ||
141 | 141 | ||
142 | GeeCaptcha.prototype.construct = GeeCaptcha; | 142 | GeeCaptcha.prototype.construct = GeeCaptcha; |
143 | 143 | ||
144 | - | ||
145 | module.exports = GeeCaptcha; | 144 | module.exports = GeeCaptcha; |
145 | +/* eslint-enable */ |
-
Please register or login to post a comment