Authored by rqq

Merge branch 'hotfix/life' of http://git.dev.yoho.cn/web/yohobuywap into hotfix/life

... ... @@ -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();
});
... ...
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.

21.7 KB | W: | H:

21.3 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

27.1 KB | W: | H:

27.4 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin