...
|
...
|
@@ -16,12 +16,18 @@ function get() { |
|
|
url: '/index/life/sendCoupon',
|
|
|
dataType: 'json',
|
|
|
success: function(data) {
|
|
|
$('.statu').html(data.message);
|
|
|
$('.statu-mark').show();
|
|
|
$('.statu-box').show();
|
|
|
if (data.code === 200) {
|
|
|
location.href = '/life/coupon' + '?' + 'code' + '=' + data.data;
|
|
|
$('.sure').click(function() {
|
|
|
location.href = '/life/coupon' + '?' + 'code' + '=' + data.data;
|
|
|
});
|
|
|
} else {
|
|
|
$('.statu').html(data.message);
|
|
|
$('.statu-mark').show();
|
|
|
$('.statu-box').show();
|
|
|
$('.sure').click(function() {
|
|
|
$('.statu-mark').hide();
|
|
|
$('.statu-box').hide();
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
});
|
...
|
...
|
@@ -30,7 +36,4 @@ function get() { |
|
|
$('.coupon-btn').click(function() {
|
|
|
get();
|
|
|
});
|
|
|
$('.sure').click(function() {
|
|
|
$('.statu-mark').hide();
|
|
|
$('.statu-box').hide();
|
|
|
}); |
|
|
|
...
|
...
|
|