From 67119463170478bdb28d2873dbc42a2dd70c8550 Mon Sep 17 00:00:00 2001 From: hflllll Date: Tue, 13 May 2025 19:14:17 +0800 Subject: [PATCH] =?UTF-8?q?'=E8=B0=83=E8=AF=95=E5=80=92=E6=95=B0=E7=AC=AC?= =?UTF-8?q?=E4=BA=8C=E5=A4=A9'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/model/my.js | 7 +++ components/coupon/CouponItem.vue | 24 +++++----- pages/index/cart.vue | 2 +- pages/index/center.vue | 7 ++- pages_order/location/pickupPoint.vue | 43 ++++++++++-------- pages_order/mine/coupon.vue | 36 ++++++++------- pages_order/mine/myTeam.vue | 19 ++++---- pages_order/mine/team.vue | 21 ++++++--- pages_order/mine/unbindTeam.vue | 72 ++++++++++++++++++------------ pages_order/order/groupMealDetail.vue | 70 ++++++++++++++++++++++------- pages_order/order/newOrderDetail.vue | 83 ++++++++++++++++++++++++----------- store/store.js | 2 + utils/position.js | 14 +++++- 13 files changed, 266 insertions(+), 134 deletions(-) diff --git a/api/model/my.js b/api/model/my.js index eae248b..84db737 100644 --- a/api/model/my.js +++ b/api/model/my.js @@ -72,6 +72,13 @@ const api = { limit: 500 }, + // 我的-查询绑定团长信息(默认下单地址) + queryMyLeader: { + url: '/teambuy/leader/queryMyLeader', + method: 'GET', + limit: 500 + }, + // 钱包-充值回调 CashNotify: { url: '/teambuy/amount/CashNotify', diff --git a/components/coupon/CouponItem.vue b/components/coupon/CouponItem.vue index 44f3974..66c5dfc 100644 --- a/components/coupon/CouponItem.vue +++ b/components/coupon/CouponItem.vue @@ -1,29 +1,29 @@ @@ -76,7 +71,13 @@ export default { test1 () { this.$api('informOrderAll', { leaderOrderId: this.mealId }, res => { if (res.code === 200) { - this.$utils.showToast('通知成功') + uni.showToast({ + title: '通知成功', + icon: 'success' + }) + setTimeout(() => { + this.$utils.navigateBack() + }, 500) } }) }, @@ -84,7 +85,13 @@ export default { test2 () { this.$api('finishOrderAll', { leaderOrderId: this.mealId }, res => { if (res.code === 200) { - this.$utils.showToast('通知成功') + uni.showToast({ + title: '通知成功', + icon: 'success' + }) + setTimeout(() => { + this.$utils.navigateBack() + }, 500) } }) }, @@ -150,4 +157,35 @@ export default { .member-list { // 成员列表样式被移到组件中 } + +.top-btn-group { + display: flex; + flex-direction: row; + justify-content: space-between; + gap: 24rpx; + margin-bottom: 32rpx; + margin-top: 16rpx; + padding: 0 20rpx; +} + +.top-action-btn { + flex: 1; + background: linear-gradient(90deg, #01c97b 0%, #019245 100%); + color: #fff; + font-size: 32rpx; + font-weight: bold; + border: none; + border-radius: 16rpx; + box-shadow: 0 4rpx 12rpx rgba(1, 146, 69, 0.08); + padding: 24rpx 0; + margin: 0; + transition: background 0.2s; + letter-spacing: 2rpx; + outline: none; +} + +.top-action-btn:active { + background: linear-gradient(90deg, #019245 0%, #01c97b 100%); + opacity: 0.85; +} \ No newline at end of file diff --git a/pages_order/order/newOrderDetail.vue b/pages_order/order/newOrderDetail.vue index cf80c68..2bf3133 100644 --- a/pages_order/order/newOrderDetail.vue +++ b/pages_order/order/newOrderDetail.vue @@ -1,7 +1,7 @@