From 2acd41ec43a6c9170a708ff302e553f8292ebcd5 Mon Sep 17 00:00:00 2001 From: hflllll Date: Mon, 26 May 2025 14:21:01 +0800 Subject: [PATCH] =?UTF-8?q?'test=E5=88=B0=E4=BA=86=E6=9C=80=E5=90=8E?= =?UTF-8?q?=E5=87=A0=E4=B8=AA=E9=98=B6=E6=AE=B5'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/model/order.js | 16 +-- components/couponPopup/couponPopup.vue | 12 +- components/couponPopup/newCouponPopup.vue | 212 +++++++++++++++++++++------ mixins/order.js | 11 +- pages/index/cart.vue | 42 +++--- pages/index/index.vue | 10 +- pages/index/order.vue | 216 +++++----------------------- pages_order/components/order/placeOrder.vue | 122 ++++++++-------- pages_order/mine/coupon.vue | 18 ++- pages_order/mine/wallet.vue | 6 +- pages_order/order/cartOrder.vue | 54 +------ pages_order/order/groupMealDetail.vue | 50 +++---- pages_order/order/orderDetail.vue | 38 +---- pages_order/product/productDetail.vue | 3 - 14 files changed, 364 insertions(+), 446 deletions(-) diff --git a/api/model/order.js b/api/model/order.js index 7b81393..79f7ba7 100644 --- a/api/model/order.js +++ b/api/model/order.js @@ -5,14 +5,14 @@ const api = { queryLeaderOrderList: { url: '/teambuy/order/queryLeaderOrderList', method: 'GET', - limit: 500, + limit: 200, }, // 订单-查看优惠券列表-详情 queryCouponList: { url: '/teambuy/coupon/queryCouponList', method: 'GET', - limit: 500 + limit: 200 }, // 优惠券-领取优惠券 @@ -37,11 +37,11 @@ const api = { // }, // 订单- 查询团餐订单列表 - 详情 - queryLeaderOrderList: { - url: '/teambuy/order/queryLeaderOrderList', - method: 'GET', - limit: 500 - }, + // queryLeaderOrderList: { + // url: '/teambuy/order/queryLeaderOrderList', + // method: 'GET', + // limit: 500 + // }, // 订单-查看团员订单列表-详情 queryMemberOrderList: { @@ -54,7 +54,7 @@ const api = { queryShopcarList: { url: '/teambuy/shopcar/queryShopcarList', method: 'GET', - limit: 500 + limit: 500 }, // 订单-购物车-添加购物车 diff --git a/components/couponPopup/couponPopup.vue b/components/couponPopup/couponPopup.vue index 19115f0..1f15518 100644 --- a/components/couponPopup/couponPopup.vue +++ b/components/couponPopup/couponPopup.vue @@ -19,11 +19,11 @@ - (购物即可抵扣!) + (下单即可抵扣!) + class="examine" /> @@ -41,6 +41,11 @@ }, mounted() { this.$refs.couponPopup.open() + this.$api('queryFetchCouponList', res => { + if(res.code == 200){ + this.couponList = res.result.records + } + }) }, computed: { ...mapState(['riceInfo']) @@ -74,9 +79,10 @@ align-items: center; .main-container { + // background-color: red; .body { position: relative; - + background-color: red; .coupon-bg { } diff --git a/components/couponPopup/newCouponPopup.vue b/components/couponPopup/newCouponPopup.vue index c1eff77..d7d04bb 100644 --- a/components/couponPopup/newCouponPopup.vue +++ b/components/couponPopup/newCouponPopup.vue @@ -1,20 +1,27 @@ @@ -105,11 +106,13 @@ import navbar from '@/components/base/navbar.vue' import tabbar from '@/components/base/tabbar.vue' import { homeData } from '@/static/js/mockHomeData.js' +import NewCouponPopup from '@/components/couponPopup/newCouponPopup.vue' export default { components: { navbar, - tabbar + tabbar, + NewCouponPopup }, data() { return { @@ -182,7 +185,10 @@ export default { }) }, getGoodsList() { - this.$api('queryGoodsList', { }, res => { + this.$api('queryGoodsList', { + pageNo: 1, + pageSize: 5 + }, res => { if (res.code == 200) { this.$set(this.homeData, 'goodsList', res.result.records) } diff --git a/pages/index/order.vue b/pages/index/order.vue index 7c28d12..8b54a79 100644 --- a/pages/index/order.vue +++ b/pages/index/order.vue @@ -13,138 +13,59 @@ - + {{ meal.title }} - 本单佣金合计: ¥{{ levelInfo.amount || '0.00' }} + 本单佣金合计: ¥{{ (meal.commission || 0).toFixed(2) || 0.00 }} - + - - + - - - - @@ -372,8 +359,23 @@ export default { align-items: center; justify-content: center; } + .total-section{ + width: 30%; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + text{ + font-size: 28rpx; + &.total-price{ + color: #ff0000; + font-size: 32rpx; + font-weight: 500; + } + } + } .pay{ - width: 70%; + width: 40%; background-color: $uni-color; color: #fff; text-align: center; diff --git a/pages_order/mine/coupon.vue b/pages_order/mine/coupon.vue index 0c64763..182e50e 100644 --- a/pages_order/mine/coupon.vue +++ b/pages_order/mine/coupon.vue @@ -14,21 +14,27 @@ diff --git a/pages_order/mine/wallet.vue b/pages_order/mine/wallet.vue index e4e5c21..0ff6241 100644 --- a/pages_order/mine/wallet.vue +++ b/pages_order/mine/wallet.vue @@ -67,7 +67,7 @@