Explorar o código

Merge branch 'master' of http://git.cc-lotus.info/pointToNetwork/point-app

guhongwei %!s(int64=2) %!d(string=hai) anos
pai
achega
2cba4a1429
Modificáronse 2 ficheiros con 536 adicións e 502 borrados
  1. 528 498
      pagesHome/order/order.vue
  2. 8 4
      pagesMy/order/index.vue

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 528 - 498
pagesHome/order/order.vue


+ 8 - 4
pagesMy/order/index.vue

@@ -242,8 +242,8 @@
 					content: '确定取消订单吗?',
 					success: async function(res) {
 						if (res.confirm) {
-							const arr = await that.$api(`/order/${e._id}`, 'POST', {
-								status: '-1'
+							const arr = await that.$api(`/order/cancel`, 'POST', {
+								order_id: e._id
 							});
 							if (arr.errcode == '0') {
 								uni.showToast({
@@ -279,8 +279,12 @@
 								"provider": "wxpay",
 								...res.data,
 								success(res) {
-									console.log('in success');
-									console.log(res)
+									uni.showToast({
+										title: '支付成功',
+										icon: 'none'
+									})
+									that.clearPage();
+									that.search();
 								},
 								fail(e) {
 									console.log('in fail');