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 @@
-
+
¥
- {{ coupon.amount }}
+ {{ Number(coupon.discount) }}
- {{ coupon.title }}
- {{ coupon.validTime }} 前有效
+ {{ coupon.couponId_dictText }}
+ {{ coupon.validDate }} 前有效
-
+
立即
使用
-
+
已使用
-
+
已过期
@@ -44,11 +44,11 @@ export default {
coupon: {
type: Object,
default: () => ({
- id: '',
- amount: 0,
- title: '新人专享优惠券',
- validTime: '2025/4/12 23:59',
- status: 0 // 0-未使用 1-已使用 2-已过期
+ couponId: '',
+ discount: 0,
+ couponId_dictText: '新人专享优惠券',
+ validDate: '2025/4/12 23:59',
+ status: "0" // 0-未使用 1-已使用 2-已过期
})
}
},
diff --git a/pages/index/cart.vue b/pages/index/cart.vue
index ae70ad3..51ccd10 100644
--- a/pages/index/cart.vue
+++ b/pages/index/cart.vue
@@ -154,7 +154,7 @@ export default {
}
const sendData = this.cartData.records.filter(item => this.checkboxValue.includes(item.id))
- this.$store.commit('setCartData', sendData )
+ this.$store.commit('setCartData', { sendData, priceAll: this.totalPrice } )
// 跳转到创建订单页面
this.$utils.navigateTo({
diff --git a/pages/index/center.vue b/pages/index/center.vue
index e331fdd..f4fca88 100644
--- a/pages/index/center.vue
+++ b/pages/index/center.vue
@@ -1,7 +1,7 @@
-
diff --git a/pages_order/mine/coupon.vue b/pages_order/mine/coupon.vue
index 89bc03e..c259f6a 100644
--- a/pages_order/mine/coupon.vue
+++ b/pages_order/mine/coupon.vue
@@ -15,20 +15,20 @@
+ style="padding-top: 200rpx;" icon="list" />
+ style="padding-top: 200rpx;" icon="list" />
+ style="padding-top: 200rpx;" icon="list" />
@@ -37,7 +37,6 @@
diff --git a/pages_order/order/groupMealDetail.vue b/pages_order/order/groupMealDetail.vue
index 1cda57c..833443e 100644
--- a/pages_order/order/groupMealDetail.vue
+++ b/pages_order/order/groupMealDetail.vue
@@ -5,26 +5,21 @@
bgColor="#019245" color="#fff" />
-
-
-
+
+
+
+
+
-
+
-
+
@@ -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 @@
-
@@ -56,11 +56,11 @@
合计:
¥{{ orderDetail.priceAll }}
-
+
创建时间:
{{ orderDetail.createTime }}
-
+
订单编号:
{{orderDetail.id}}
@@ -68,7 +68,7 @@
-
+
@@ -77,7 +77,7 @@
新用户立减
- -¥{{ orderDetail.pricePreferential }}
+ -¥{{ orderDetail.pricePreferential || 0 }}
@@ -114,7 +114,7 @@
共{{ orderDetail.goodsList.length || 0 }}个,合计
- ¥{{ orderDetail.pricePay }}
+ ¥{{ orderDetail.pricePay || cartPay }}
立即下单
立即取餐
@@ -124,7 +124,8 @@