Authored by 王水玲

修改dialog 插件

... ... @@ -74,7 +74,7 @@ const index = (req, res, next) => {
content: data[0],
notice: data[1],
notOpen: true,
goHomePath: req.yoho.isApp ? `yohobuy://yohobuy.com/goapp?openby:yohobuy={"action":"go.home","params":{"channel":"1"}}` : '//m.yohobuy.com/boys'
goHomePath: req.yoho.isApp ? 'yohobuy://yohobuy.com/goapp?openby:yohobuy={"action":"go.home","params":{"channel":"1"}}' : '//m.yohobuy.com/boys'
};
});
} else if (openStatus === '2') {
... ...
... ... @@ -71,6 +71,12 @@ exports.showDialog = function(data, callback, callbackForLeft, fullWithBtn) {
$dialogWrapper.fadeOut();
} else if ($(event.target).hasClass('dialog-right-btn')) {
return callback();
} else if ($(event.target).hasClass('dialog-center-btn')) {
$('.dialog-wrapper').remove();
$('body').css({
overflow: '',
position: '',
});
} else if ($(event.target).closest('.dialog-box').length) {
return true;
} else {
... ...
... ... @@ -82,7 +82,7 @@ module.exports = (list) => {
imageHeight: floor.data.imageHeight,
src: floor.data.list[0].src,
url: floor.data.list[0].url
}
};
}
// 处理价格两位小数
... ...