Authored by yyq

Merge branch 'release/4.6' of git.yoho.cn:fe/yohobuy-node into release/4.6

... ... @@ -177,8 +177,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,
... ... @@ -186,10 +186,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
};
})($);
}($));
... ...