wangfukang 3 weeks ago
parent
commit
2fb554bb36
  1. 11
      package1/buyFood/buyFood.vue
  2. 3
      package1/group/groupBuySingle.vue

11
package1/buyFood/buyFood.vue

@ -434,6 +434,7 @@
} }
if (option.item) { if (option.item) {
this.groupItem = JSON.parse(decodeURIComponent(option.item)); this.groupItem = JSON.parse(decodeURIComponent(option.item));
console.log("1111111",this.groupItem)
this.isGroupBuy = this.groupItem.orderType === 2; this.isGroupBuy = this.groupItem.orderType === 2;
this.isFaceToFace = this.groupItem.isFaceToFace || false; this.isFaceToFace = this.groupItem.isFaceToFace || false;
} }
@ -714,10 +715,10 @@
} else { } else {
let isInitiating = !this.groupItem.groupId; let isInitiating = !this.groupItem.groupId;
let isJoining = !!this.groupItem.groupId; let isJoining = !!this.groupItem.groupId;
if (isInitiating) { if (isInitiating) {
this.isPaymentSuccessGroupInitiate = true; this.isPaymentSuccessGroupInitiate = true;
this.$refs.pintuanPopup.open('center'); this.$refs.pintuanPopup.open('center');
return;
} else if (isJoining) { } else if (isJoining) {
uni.redirectTo({ uni.redirectTo({
url: '/package1/order/orderDetail?id=' + this.currentOrderId url: '/package1/order/orderDetail?id=' + this.currentOrderId
@ -726,9 +727,11 @@
} }
}, },
onPintuanPopupChange(e) { onPintuanPopupChange(e) {
uni.redirectTo({ if(!e.show){
url: '/package1/order/orderDetail?id=' + this.currentOrderId uni.redirectTo({
}); url: '/package1/order/orderDetail?id=' + this.currentOrderId
});
}
}, },
getMustFinishTime() { getMustFinishTime() {
if (!this.formData.deliveryTime || this.formData.deliveryTime === '自动送达' || this.formData.deliveryTime === if (!this.formData.deliveryTime || this.formData.deliveryTime === '自动送达' || this.formData.deliveryTime ===

3
package1/group/groupBuySingle.vue

@ -513,7 +513,7 @@
menuButtonInfo: {}, menuButtonInfo: {},
groupdeliveryType:'', groupdeliveryType:'',
isPintuan: true, isPintuan: true,
groupId: '', groupId: null,
isFaceToFaceGroup: false, isFaceToFaceGroup: false,
targetMembers: 2, targetMembers: 2,
backendTotalAmount: 0, backendTotalAmount: 0,
@ -966,7 +966,6 @@
this.currentItem.moreBuyData.push(this.moreBuyData[i]) this.currentItem.moreBuyData.push(this.moreBuyData[i])
} }
} }
let goData = { let goData = {
item: this.currentItem, item: this.currentItem,
groupRule: this.selectedGroupRule, groupRule: this.selectedGroupRule,

Loading…
Cancel
Save