...
|
...
|
@@ -12332,8 +12332,7 @@ require("js/life/coupon"); |
|
|
|
|
|
});
|
|
|
define("js/life/login", ["jquery"], function(require, exports, module){
|
|
|
var $ = require("jquery"),
|
|
|
tel = $('.btn-input').val();
|
|
|
var $ = require("jquery");
|
|
|
|
|
|
|
|
|
$('.notice').click(function() {
|
...
|
...
|
@@ -12345,26 +12344,31 @@ $('.close').click(function() { |
|
|
$('.mark').hide();
|
|
|
});
|
|
|
|
|
|
function get(tel) {
|
|
|
function get() {
|
|
|
$.ajax({
|
|
|
type: 'get',
|
|
|
url: '/index/life/sendCoupon',
|
|
|
dataType: 'json',
|
|
|
data: {
|
|
|
tel: tel
|
|
|
},
|
|
|
success: function(data) {
|
|
|
$('.statu').html(data.message);
|
|
|
$('.statu-mark').show();
|
|
|
$('.statu-box').show();
|
|
|
if (data.code === 200) {
|
|
|
$('.sure').click(function() {
|
|
|
location.href = '/life/coupon' + '?' + 'code' + '=' + data.data;
|
|
|
});
|
|
|
} else {
|
|
|
alert(data.message);
|
|
|
$('.sure').click(function() {
|
|
|
$('.statu-mark').hide();
|
|
|
$('.statu-box').hide();
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
$('.coupon-btn').click(function() {
|
|
|
get(tel);
|
|
|
get();
|
|
|
});
|
|
|
|
|
|
|
...
|
...
|
|