Showing
1 changed file
with
3 additions
and
7 deletions
1 | -var $ = require('jquery'), | ||
2 | - tel = $('.btn-input').val(); | 1 | +var $ = require('jquery'); |
3 | 2 | ||
4 | 3 | ||
5 | $('.notice').click(function() { | 4 | $('.notice').click(function() { |
@@ -11,14 +10,11 @@ $('.close').click(function() { | @@ -11,14 +10,11 @@ $('.close').click(function() { | ||
11 | $('.mark').hide(); | 10 | $('.mark').hide(); |
12 | }); | 11 | }); |
13 | 12 | ||
14 | -function get(tel) { | 13 | +function get() { |
15 | $.ajax({ | 14 | $.ajax({ |
16 | type: 'get', | 15 | type: 'get', |
17 | url: '/index/life/sendCoupon', | 16 | url: '/index/life/sendCoupon', |
18 | dataType: 'json', | 17 | dataType: 'json', |
19 | - data: { | ||
20 | - tel: tel | ||
21 | - }, | ||
22 | success: function(data) { | 18 | success: function(data) { |
23 | if (data.code === 200) { | 19 | if (data.code === 200) { |
24 | location.href = '/life/coupon' + '?' + 'code' + '=' + data.data; | 20 | location.href = '/life/coupon' + '?' + 'code' + '=' + data.data; |
@@ -30,6 +26,6 @@ function get(tel) { | @@ -30,6 +26,6 @@ function get(tel) { | ||
30 | } | 26 | } |
31 | 27 | ||
32 | $('.coupon-btn').click(function() { | 28 | $('.coupon-btn').click(function() { |
33 | - get(tel); | 29 | + get(); |
34 | }); | 30 | }); |
35 | 31 |
-
Please register or login to post a comment