Authored by 徐祁xuqi

remend things of code-norm

... ... @@ -176,8 +176,8 @@ const getSubNav = (data, type) => {
* @param {String} 指定页面类型为boys,girls,kids,lifestyle
* @return {object} 头部数据
*/
const setHeaderData = (resData, type) => {
let data = {
const setHeaderData = (resData, type) => (
{
headerData: {
header: true,
headType: type,
... ... @@ -185,9 +185,8 @@ const setHeaderData = (resData, type) => {
navbars: resData ? getNavBar(resData, type) : [],
subNav: resData ? getSubNav(resData, type) : []
}
};
return data;
};
}
);
... ...
... ... @@ -78,7 +78,7 @@ function Dialog(options) {
}
// 绑定按钮事件
if (!!opt.btns) {
if (opt.btns) {
for (i = 0; i < opt.btns.length; i++) {
bindBtnEvt(i);
}
... ...
... ... @@ -29,7 +29,7 @@ var $ = require('yoho-jquery'),
lazyLoad(this.$element.find('img.lazy'));
return;
}
if (!!this.options.pagination) {
if (this.options.pagination) {
this.smallItem = $(this.options.pagination).find('li');
} else {
this._createPage();
... ... @@ -170,4 +170,4 @@ var $ = require('yoho-jquery'),
orient: true, // 左右切换箭头的显示
pagination: null
};
})($);
}($));
... ...