Authored by 郭成尧

show

@@ -197,21 +197,27 @@ loading.init($('body')); // 满屏loading @@ -197,21 +197,27 @@ loading.init($('body')); // 满屏loading
197 * 确认收货 197 * 确认收货
198 */ 198 */
199 function sureOrder(orderId) { 199 function sureOrder(orderId) {
200 - $.ajax({  
201 - type: 'POST',  
202 - url: '//m.yohobuy.com/home/orders/sure',  
203 - data: {  
204 - orderCode: orderId  
205 - },  
206 - success: function(result) {  
207 - tip.show(result.message);  
208 -  
209 - if (result.code === 200) {  
210 - setTimeout(function() {  
211 - location.reload();  
212 - }, 2000);  
213 - } 200 + dialog.showDialog({
  201 + dialogText: '请确认是否已经收到货品',
  202 + hasFooter: {
  203 + leftBtnText: '取消',
  204 + rightBtnText: '确定'
214 } 205 }
  206 + }, function() {
  207 + $.ajax({
  208 + type: 'POST',
  209 + url: '//m.yohobuy.com/home/orders/sure',
  210 + data: {
  211 + orderCode: orderId
  212 + },
  213 + success: function(result) {
  214 + if (result.code === 200) {
  215 + setTimeout(function() {
  216 + location.reload();
  217 + }, 2000);
  218 + }
  219 + }
  220 + });
215 }); 221 });
216 } 222 }
217 223
@@ -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进行操作',