cmy 3 سال پیش
والد
کامیت
85b6ee366e
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      app/admin/view/store/placeorder/index.php

+ 3 - 1
app/admin/view/store/placeorder/index.php

@@ -597,6 +597,7 @@
 							})
 						},
 						submit: async function() {
+							let confirmData,
 							let that = this;
 							// console.log(that.form.store_id, '当前门店id')
 							//当前门店
@@ -625,6 +626,7 @@
 								}
 
 								let res = await $eb.axios.post('{:Url("confirm")}', pushData);
+								confirmData = res.data
 								const orderKey = res.data.data.orderKey;
 								let money = await that.computedOrder(orderKey);
 								layer.confirm('订单总金额:¥' + that.allPayMoney.toFixed(2) + '<br/> vip优惠:¥' + ((
@@ -681,7 +683,7 @@
 								layer.msg(e.message, {
 									icon: 5
 								});
-								console.log(e)
+								layer.alert(`错误返回数据${JSON.stringify(confirmData)}`, {icon: 0});
 							}
 						},
 						weixinPay() {