Merge branch 'develop/wap' into beta/wap
Conflicts: static/dist/myohobuy/1.3.17/index-debug.js static/dist/myohobuy/1.3.17/index.css static/dist/myohobuy/1.3.17/index.js yohobuy/m.yohobuy.com/application/controllers/Coupon.php
Showing
6 changed files
with
12 additions
and
6 deletions
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
static/dist/myohobuy/1.3.17/index.js
deleted
100644 → 0
This diff could not be displayed because it is too large.
@@ -39,10 +39,12 @@ $receive.on('click', function() { | @@ -39,10 +39,12 @@ $receive.on('click', function() { | ||
39 | dataType: 'json', | 39 | dataType: 'json', |
40 | success: function(data) { | 40 | success: function(data) { |
41 | var msg = data.msg, | 41 | var msg = data.msg, |
42 | - status = data.status; | 42 | + status = data.status, |
43 | + newUrl; | ||
43 | 44 | ||
44 | if (data.noLogin === true) { | 45 | if (data.noLogin === true) { |
45 | - var newUrl = data.url + '?code=' + getUrlParam('code'); | 46 | + newUrl = data.url + '?code=' + getUrlParam('code'); |
47 | + | ||
46 | if ($('#intimacy-link').length <= 0) { | 48 | if ($('#intimacy-link').length <= 0) { |
47 | $('body').append('<a href=\'' + newUrl + '\' style="display:none;" id="intimacy-link">' + | 49 | $('body').append('<a href=\'' + newUrl + '\' style="display:none;" id="intimacy-link">' + |
48 | '<span class="intimacy-link"></span></a>'); | 50 | '<span class="intimacy-link"></span></a>'); |
@@ -65,7 +67,7 @@ $receive.on('click', function() { | @@ -65,7 +67,7 @@ $receive.on('click', function() { | ||
65 | } | 67 | } |
66 | } | 68 | } |
67 | }, | 69 | }, |
68 | - error:function() { | 70 | + error: function() { |
69 | tip.show('网络异常!'); | 71 | tip.show('网络异常!'); |
70 | } | 72 | } |
71 | }); | 73 | }); |
@@ -90,7 +92,6 @@ if ($('.banner-swiper').find('li').size() > 1) { | @@ -90,7 +92,6 @@ if ($('.banner-swiper').find('li').size() > 1) { | ||
90 | }); | 92 | }); |
91 | } | 93 | } |
92 | 94 | ||
93 | -$('.coupon-message-op-rel').on('click',function(){ | 95 | +$('.coupon-message-op-rel').on('click', function() { |
94 | location.reload(); | 96 | location.reload(); |
95 | }); | 97 | }); |
96 | - |
@@ -70,6 +70,12 @@ $page.on('touchstart', '.del', function() { | @@ -70,6 +70,12 @@ $page.on('touchstart', '.del', function() { | ||
70 | setTimeout(function() { | 70 | setTimeout(function() { |
71 | window.history.go(0); | 71 | window.history.go(0); |
72 | }, 1200); | 72 | }, 1200); |
73 | + } else { | ||
74 | + dialog.showDialog({ | ||
75 | + dialogText: data.message, | ||
76 | + autoHide: 2000, | ||
77 | + fast: true | ||
78 | + }); | ||
73 | } | 79 | } |
74 | } | 80 | } |
75 | }); | 81 | }); |
@@ -153,5 +153,4 @@ class CouponController extends AbstractAction | @@ -153,5 +153,4 @@ class CouponController extends AbstractAction | ||
153 | 153 | ||
154 | $this->helpJsonCallbackResult($callback, $result['code'], $result['message'], $result['data']); | 154 | $this->helpJsonCallbackResult($callback, $result['code'], $result['message'], $result['data']); |
155 | } | 155 | } |
156 | - | ||
157 | } | 156 | } |
-
Please register or login to post a comment