瀏覽代碼

修复退款失败bug

soobin 2 年之前
父節點
當前提交
3b93845ca7
共有 1 個文件被更改,包括 8 次插入8 次删除
  1. 8 8
      packageA/pages/user/orderEit.vue

+ 8 - 8
packageA/pages/user/orderEit.vue

@@ -140,15 +140,15 @@
 							var refundAmount = this.refundAmount;
 							var refundReason = this.refundReason;
 							var token = uni.getStorageSync("token");
-							if(refundReason == null || refundAmount == "") {
-								uni.showToast({
-								    title: '请输入退款原因',
-								    duration: 3000,
-									icon: 'error'
-								});
-								return;
-							}
 							if(order.payPlatform != null && order.payPlatform == '3') {
+								if(refundReason == null || refundAmount == "") {
+									uni.showToast({
+										title: '请输入退款原因',
+										duration: 3000,
+										icon: 'error'
+									});
+									return;
+								}
 								//如果为直接对接微信支付
 								uni.request({
 									url: this.serverurl + '/tWeixinPay/refund',