diff --git a/package1/group/groupBuySingle.vue b/package1/group/groupBuySingle.vue index 58062ee..594e463 100644 --- a/package1/group/groupBuySingle.vue +++ b/package1/group/groupBuySingle.vue @@ -101,7 +101,11 @@ + + + { that.loadStatus = 'nomore'; if (res.code == 200) { - that.productItem = res.result.records; - that.productItem = [...that.shopRecommend, ...that.productItem]; + if (that.searchForm.pageNum == 1) { + that.productItem = res.result.records; + } else { + that.productItem = [...that.productItem, ...res.result.records]; + } for(let i = 0;i { + const [hours, minutes] = timeStr.split(':').map(Number); + return hours * 60 + minutes; + }; + + const startMinutes = parseTime(begin); + const endMinutes = parseTime(end); + console.log(currentMinutes +','+startMinutes +','+endMinutes) + + // 判断是否在区间内(包含端点) + return currentMinutes >= startMinutes && currentMinutes <= endMinutes; + }, adjustCart(cartId, delta) { let index = this.cartItems.findIndex(c => c.cartId === cartId); if (index !== -1) { @@ -1296,6 +1327,12 @@ }) } }, + buyingye() { + uni.showToast({ + title: '商品不在售卖时间!', + icon: 'none' + }); + }, getGroupPrice(item) { if (!this.groupId) { return this.$options.filters.slicePrice(item.productGroupBuyPrices); @@ -1729,6 +1766,7 @@ padding-bottom: 20rpx; margin: 0 0 20rpx; background: #fff; + position: relative; } .goods-list { diff --git a/package1/order/orderDetail.vue b/package1/order/orderDetail.vue index 4d2d50f..9f08bd7 100644 --- a/package1/order/orderDetail.vue +++ b/package1/order/orderDetail.vue @@ -92,7 +92,7 @@ - + @@ -147,10 +147,10 @@ - - 核销取餐码 需要画二维码 + + 核销取餐码 - + 立即备餐 @@ -670,6 +670,30 @@ } }); }, + //立即备餐 + makeMeal(){ + let that = this; + uni.showModal({ + title: '提示', + content: "是否立刻通知商家备餐?", + success: function(res) { + if (res.confirm) { + that.tui.request("/mall/order/userRequireMake", "POST", { + orderId:that.orderDetail.id, + }, false, true).then((res) => { + if (res.code == 200) { + that.tui.toast('通知成功!'); + that.getOrderDetail(that.orderId) + } else { + that.tui.toast(res.message); + return; + } + uni.hideLoading(); + }).catch((res) => {}); + } + } + }); + }, checkSellTime(type){ this.sellTime = type; if(this.sellTime == 2){ @@ -1068,9 +1092,8 @@ .content{ position: absolute; - top: 200rpx; - width: 95%; - margin-left: 2.5%; + top: 220rpx; + width: 100%; } .title-sreach{