diff --git a/package1/buyFood/buyFood.vue b/package1/buyFood/buyFood.vue index 276674d..15263ca 100644 --- a/package1/buyFood/buyFood.vue +++ b/package1/buyFood/buyFood.vue @@ -179,7 +179,7 @@ - X2 + X1 { - that.handlePaymentSuccess(); - }, 1500); + uni.showToast({ title: '支付成功', icon: 'success' }); + that.tui.request("/api/wechat/pay/paySuccess", "POST", { + outTradeNo: that.currentOrderId + }, false, false).then((res3) => { + if(res3.code == 200){ + that.handlePaymentSuccess(); + }else{ + that.tui.toast("订单创建失败,请联系客服处理"); + } + }) + }, fail: function(err) { that.tui.toast("支付失败或取消"); @@ -717,19 +720,15 @@ this.$refs.pintuanPopup.open('center'); } else if (isJoining) { uni.redirectTo({ - url: '/package1/order/pendGroup?groupId=' + this.groupItem.groupId + url: '/package1/order/orderDetail?id=' + this.currentOrderId }); } } }, onPintuanPopupChange(e) { - if (!e.show && this.isPaymentSuccessGroupInitiate) { - // 跳转到 pendGroup - let groupId = this.createdOrderInfo?.groupId || this.createdOrderInfo?.groupDeliveryOrderId || this.createdOrderInfo?.id || this.currentOrderId; - uni.redirectTo({ - url: `/package1/order/pendGroup?groupId=${groupId}` - }); - } + uni.redirectTo({ + url: '/package1/order/orderDetail?id=' + this.currentOrderId + }); }, getMustFinishTime() { if (!this.formData.deliveryTime || this.formData.deliveryTime === '自动送达' || this.formData.deliveryTime === diff --git a/package1/group/groupBuySingle.vue b/package1/group/groupBuySingle.vue index 6b3da06..21ad1fd 100644 --- a/package1/group/groupBuySingle.vue +++ b/package1/group/groupBuySingle.vue @@ -56,36 +56,37 @@ 公告:{{shopItem.remark}} - + - - - + + + + + + + + {{item.productName}} + + + 拼团¥{{item.groupPrice}} + + - - - {{item.productName}} + + + + + - - 拼团¥{{item.groupPrice}} + + 差{{item.targetMembers - item.currentMembers}}人拼成 - - - - - + - - - 差{{item.targetMembers - item.currentMembers}}人拼成 - - @@ -117,14 +118,14 @@ 月售 100+ - + + - 差12人拼成 + 差{{item.minGroupCount}}人拼成 @@ -268,10 +269,6 @@ ¥{{currentItem.attributeListPrice | sliceMsg}} - - 拼团¥{{currentItem.productGroupBuyPrices | slicePrice}} - @@ -337,20 +334,20 @@ @@ -369,6 +366,9 @@ 快来加入一起成团吧! + + 可以选取任意拼团商品下单! +