Authored by yyq

format js

... ... @@ -178,7 +178,7 @@ const _getBrandLogosData = (args, showNum) => {
fillNum = showNum - (items.length % showNum);
for (i = 0; i < fillNum; i++) {
items.push({
href: 'javascript:;',
href: 'javascript:;', // eslint-disable-line
img: ''
});
}
... ...
... ... @@ -193,6 +193,8 @@ exports.spager = function() {
}
hasPage = true;
break;
default:
break;
}
});
... ...
... ... @@ -44,7 +44,7 @@ exports.gpager = function() {
base = base.replace(clearSizeReg, '');
}
base += (base.indexOf('?') < 0 ? '?' : (/(\?|&)$/.test(base) ? '' : '&')) +
base += (base.indexOf('?') < 0 ? '?' : (/(\?|&)$/.test(base) ? '' : '&')) + // eslint-disable-line
(options.hash.pageSize ? (pageSizeVar + '=' + pageSize + '&') : '') +
pageVar + '=';
... ... @@ -193,6 +193,8 @@ exports.gpager = function() {
}
hasPage = true;
break;
default:
break;
}
});
... ...
... ... @@ -152,6 +152,8 @@ const _formatArticle = (articleData, showTag, showAuthor, channel) => {
case '19': // 专题
result.isSpecialTopic = true;
break;
default:
break;
}
}
... ...
'use strict';
/* eslint-disable */
var crypto = require('crypto'),
request = require('request'),
pkg = require('../../../package.json');
... ... @@ -220,3 +220,4 @@ Geetest.prototype = {
};
module.exports = Geetest;
/* eslint-enable */
... ...
... ... @@ -84,6 +84,8 @@ exports.basisTemplateAsync = shopId => {
data[resourceHandlerName] = resourceData;
break;
}
default:
break;
}
});
... ...
... ... @@ -26,16 +26,16 @@ var address = {
initDomIds: function(domOptions) {
var the = this;
if (typeof domOptions.provinceDomId !== undefined) {
if (domOptions.provinceDomId) {
the.provinceDomId = domOptions.provinceDomId;
}
if (typeof domOptions.cityDomId !== undefined) {
if (domOptions.cityDomId) {
the.cityDomId = domOptions.cityDomId;
}
if (typeof domOptions.areaDomId !== undefined) {
if (domOptions.areaDomId) {
the.areaDomId = domOptions.areaDomId;
}
if (typeof domOptions.streetsDomId !== undefined) {
if (domOptions.streetsDomId) {
the.streetsDomId = domOptions.streetsDomId;
}
},
... ... @@ -153,7 +153,7 @@ var address = {
strCity = $('#' + the.cityDomId).find('option:selected').text(),
strArea = $('#' + the.areaDomId).find('option:selected').text();
if (typeof dispDomId !== undefined && dispDomId !== '') {
if (typeof dispDomId !== 'undefined' && dispDomId !== '') {
if (strProvince.indexOf('选择') < 0) {
strAddr = strProvince;
}
... ...
/* eslint-disable */
var $ = require('yoho-jquery');
const brand_tmp = require('hbs/material/brand.hbs');
... ... @@ -40,3 +41,4 @@ getBrandList(1, 1);
$.get('/material/getCategory', data => {
console.log(data);
});
/* eslint-enable */
... ...
/**
* Created by TaoHuang on 2016/12/12.
*/
/* eslint-disable */
var $ = require('yoho-jquery');
require('../common/promise');
... ... @@ -88,9 +88,9 @@ GeeCaptcha.prototype = {
return $.Deferred().reject().promise(); // eslint-disable-line
}
//return $.post('/passport/geetest/validate', {
// return $.post('/passport/geetest/validate', {
// verifyCode: _this.getResults()
//}).then(function(result) {
// }).then(function(result) {
// if (result.code === 200) {
// _this.hideTip();
// return $.Deferred().resolve().promise(); // eslint-disable-line
... ... @@ -101,7 +101,7 @@ GeeCaptcha.prototype = {
// _this.showTip(result.message);
// return $.Deferred().reject().promise(); //eslint-disable-line
// }
//});
// });
return $.Deferred().resolve().promise(); // eslint-disable-line
},
... ... @@ -141,5 +141,5 @@ GeeCaptcha.prototype = {
GeeCaptcha.prototype.construct = GeeCaptcha;
module.exports = GeeCaptcha;
/* eslint-enable */
... ...