From dd6530a4607cc46552760b1a4a93a3249e18189d Mon Sep 17 00:00:00 2001 From: tianyi <13521030702@163.com> Date: Thu, 23 Apr 2026 15:46:18 +0800 Subject: [PATCH] 11 --- components/tab-bar/delivery.vue | 141 ++++++++++++++++++++++++++++++-- 1 file changed, 134 insertions(+), 7 deletions(-) diff --git a/components/tab-bar/delivery.vue b/components/tab-bar/delivery.vue index c9c2ac3..47e51f7 100644 --- a/components/tab-bar/delivery.vue +++ b/components/tab-bar/delivery.vue @@ -19,7 +19,7 @@ - + @@ -49,15 +49,86 @@ - + + + {{item.deliveryType == 1?'配送':'自取'}} + + + 拼 + - + 已出餐 - + + + + + + 订单{{index + 1}} + + + + + 配送信息 + + + + 配送编号: + + + {{item.numberCode}} + + + + + 订单号: + + + {{item.id}} + + + + + + 订单时间: + + + {{item.createTime | formatISOTime}} + + + + + + 商品信息 + + + + 商品名:{{item1.productName}} + + + X{{item1.quantity}} + + + ¥{{item1.price}} + + + + + + 餐盒费:¥{{item.packageFee}} 配送费:¥{{item.deliveryFee}} + + + 总计:¥{{item.totalAmount}} + + + + + + @@ -65,6 +136,7 @@ export default { data() { return { + tuanzhangOrder:[], searchForm:{ pageNum:1, pageSize:10, @@ -164,9 +236,9 @@ }else if(item.deliveryType == 1){ //外卖单 url = '/mall/order/shopMakeTime' } - that.tui.request(url, "post", { + that.NB.sendRequest(url, { orderId:item.id - }, false, true).then((res) => { + }, true, 'post', 'application/json').then((res) => { if (res.code == 200) { that.getList() } else { @@ -179,6 +251,27 @@ } }); }, + getGroupOrders(id){ + this.NB.sendRequest("/mall/order/selectAllOrderByOrderId/"+id, {}, true, 'GET', 'application/json').then((res) => { + if (res.code == 200) { + this.tuanzhangOrder = res.result; + this.$refs.pintuanPopup.open() + } else { + uni.showToast({ + title: res.message, + icon: 'none' + }); + return + } + uni.hideLoading() + }).catch((res) => {}); + }, + tanchuang(v){ + uni.showToast({ + title: '该订单为'+(v==1?'配送':'自取')+'单', + icon: 'none' + }); + }, getList(){ let that = this let url = '' @@ -339,7 +432,41 @@ margin: 20rpx auto; background: #fff; border-radius: 20rpx; + padding: 20rpx 20rpx 0; + } + .pinzi{ + margin: 20rpx 0; + background: linear-gradient(90deg, #FF4500, #FFA07A); + width: 40rpx; + height: 40rpx; + line-height: 40rpx; + text-align: center; + border-radius: 10rpx; + color: #fff; + } + .guize-list { + width: 100%; padding: 20rpx; - height: 100px; + overflow: scroll; + background: #fff; + max-height: 1000rpx; + line-height: 50rpx; + } + .pt-title{ + font-size: 28rpx; + font-weight: 700; + color: #777; + } + .dingdan{ + border-top: 1px solid #eee; + } + .uni-popup__wrapper{ + border-radius: 20rpx !important; + } + .pituan-text{ + flex:1; + text-align:right; + padding-right:20rpx; + font-weight: 700; } \ No newline at end of file