...
|
...
|
@@ -307,6 +307,7 @@ meGift = { |
|
|
if (res.code === 200) {
|
|
|
dg.close();
|
|
|
that.meAlert('<p>您的礼品卡激活成功</p><p>请尽情享用</p>', false);
|
|
|
location.reload();
|
|
|
}
|
|
|
});
|
|
|
}
|
...
|
...
|
@@ -329,15 +330,22 @@ meGift = { |
|
|
|
|
|
// 我的弹框
|
|
|
meAlert: function(content, mask) {
|
|
|
var dg = new dialog.Dialog({
|
|
|
var dg;
|
|
|
var meAlertDialog = $('.me-gift-confirm');
|
|
|
|
|
|
meAlertDialog.addClass('hide');
|
|
|
|
|
|
dg = new dialog.Dialog({
|
|
|
content: content,
|
|
|
className: 'me-gift-alert',
|
|
|
mask: mask || true,
|
|
|
btns: [{
|
|
|
name: '我知道了',
|
|
|
btnClass: ['btn-close', 'alert-sure'],
|
|
|
id: 'alert-gift-cancel',
|
|
|
btnClass: ['alert-sure'],
|
|
|
cb: function() {
|
|
|
dg.close();
|
|
|
meAlertDialog.removeClass('hide');
|
|
|
}
|
|
|
}]
|
|
|
}).show();
|
...
|
...
|
|