Authored by cailing

领券频道页面刷新线上bug修改

... ... @@ -9,7 +9,8 @@ var $ = require('yoho.jquery'),
var defaultOptions = {
mask: true,
closeIcon: true
closeIcon: true,
refreshOnClose: false
};
var tpl =
... ... @@ -90,6 +91,9 @@ function Dialog(options) {
//绑定x关闭事件
that.$el.find('.close').click(function() {
that.close();
if (options.refreshOnClose) {
window.location.reload();
}
});
//绑定btn关闭事件
... ...
... ... @@ -56,6 +56,7 @@ alertConfig = {
content: '恭喜您,成功领取优惠券',
subContents: ['特殊情况下到账有延时', '请耐心等待'],
className: 'subcontent-dialog',
refreshOnClose: true,
btns: [
{
id: 1,
... ...