Showing
1 changed file
with
10 additions
and
2 deletions
@@ -307,6 +307,7 @@ meGift = { | @@ -307,6 +307,7 @@ meGift = { | ||
307 | if (res.code === 200) { | 307 | if (res.code === 200) { |
308 | dg.close(); | 308 | dg.close(); |
309 | that.meAlert('<p>您的礼品卡激活成功</p><p>请尽情享用</p>', false); | 309 | that.meAlert('<p>您的礼品卡激活成功</p><p>请尽情享用</p>', false); |
310 | + location.reload(); | ||
310 | } | 311 | } |
311 | }); | 312 | }); |
312 | } | 313 | } |
@@ -329,15 +330,22 @@ meGift = { | @@ -329,15 +330,22 @@ meGift = { | ||
329 | 330 | ||
330 | // 我的弹框 | 331 | // 我的弹框 |
331 | meAlert: function(content, mask) { | 332 | meAlert: function(content, mask) { |
332 | - var dg = new dialog.Dialog({ | 333 | + var dg; |
334 | + var meAlertDialog = $('.me-gift-confirm'); | ||
335 | + | ||
336 | + meAlertDialog.addClass('hide'); | ||
337 | + | ||
338 | + dg = new dialog.Dialog({ | ||
333 | content: content, | 339 | content: content, |
334 | className: 'me-gift-alert', | 340 | className: 'me-gift-alert', |
335 | mask: mask || true, | 341 | mask: mask || true, |
336 | btns: [{ | 342 | btns: [{ |
337 | name: '我知道了', | 343 | name: '我知道了', |
338 | - btnClass: ['btn-close', 'alert-sure'], | 344 | + id: 'alert-gift-cancel', |
345 | + btnClass: ['alert-sure'], | ||
339 | cb: function() { | 346 | cb: function() { |
340 | dg.close(); | 347 | dg.close(); |
348 | + meAlertDialog.removeClass('hide'); | ||
341 | } | 349 | } |
342 | }] | 350 | }] |
343 | }).show(); | 351 | }).show(); |
-
Please register or login to post a comment