|
@@ -90,21 +90,27 @@ downCount($countDownHours.text()); |
|
@@ -90,21 +90,27 @@ downCount($countDownHours.text()); |
90
|
* 确认收货
|
90
|
* 确认收货
|
91
|
*/
|
91
|
*/
|
92
|
function sureOrder() {
|
92
|
function sureOrder() {
|
93
|
- $.ajax({
|
|
|
94
|
- type: 'POST',
|
|
|
95
|
- url: '//m.yohobuy.com/home/orders/sure',
|
|
|
96
|
- data: {
|
|
|
97
|
- orderCode: orderId
|
|
|
98
|
- },
|
|
|
99
|
- success: function(result) {
|
|
|
100
|
- tip.show(result.message);
|
|
|
101
|
-
|
|
|
102
|
- if (result.code === 200) {
|
|
|
103
|
- setTimeout(function() {
|
|
|
104
|
- window.location.href = '/home/orders';
|
|
|
105
|
- }, 2000);
|
|
|
106
|
- }
|
93
|
+ dialog.showDialog({
|
|
|
94
|
+ dialogText: '请确认是否已经收到货品',
|
|
|
95
|
+ hasFooter: {
|
|
|
96
|
+ leftBtnText: '取消',
|
|
|
97
|
+ rightBtnText: '确定'
|
107
|
}
|
98
|
}
|
|
|
99
|
+ }, function() {
|
|
|
100
|
+ $.ajax({
|
|
|
101
|
+ type: 'POST',
|
|
|
102
|
+ url: '//m.yohobuy.com/home/orders/sure',
|
|
|
103
|
+ data: {
|
|
|
104
|
+ orderCode: orderId
|
|
|
105
|
+ },
|
|
|
106
|
+ success: function(result) {
|
|
|
107
|
+ if (result.code === 200) {
|
|
|
108
|
+ setTimeout(function() {
|
|
|
109
|
+ window.location.href = '/home/orders';
|
|
|
110
|
+ }, 2000);
|
|
|
111
|
+ }
|
|
|
112
|
+ }
|
|
|
113
|
+ });
|
108
|
});
|
114
|
});
|
109
|
}
|
115
|
}
|
110
|
|
116
|
|
|
@@ -186,8 +192,8 @@ optHammer.on('tap', function(e) { |
|
@@ -186,8 +192,8 @@ optHammer.on('tap', function(e) { |
186
|
} else if ($cur.closest('.after-sales').length) {
|
192
|
} else if ($cur.closest('.after-sales').length) {
|
187
|
if ($cur.hasClass('is-mars-app')) {
|
193
|
if ($cur.hasClass('is-mars-app')) {
|
188
|
setTimeout(function() {
|
194
|
setTimeout(function() {
|
189
|
- $refundChangeMask.fadeIn();
|
|
|
190
|
- }, 4);
|
195
|
+ $refundChangeMask.show();
|
|
|
196
|
+ }, 500);
|
191
|
} else {
|
197
|
} else {
|
192
|
dialog.showDialog({
|
198
|
dialog.showDialog({
|
193
|
dialogText: 'WAP端暂不支持该功能,请至有货APP进行操作',
|
199
|
dialogText: 'WAP端暂不支持该功能,请至有货APP进行操作',
|