From 84c73e4bdf0c8e8eb880555898ef2737fd399ee8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=AF=85?= <1335909236@qq.com> Date: Thu, 21 Aug 2025 18:13:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E6=8E=A5=E5=8F=A3=20-=20?= =?UTF-8?q?=E5=9B=A2=E8=B4=AD=E5=88=97=E8=A1=A8=20=E5=9B=A2=E8=B4=AD?= =?UTF-8?q?=E6=A0=B8=E9=94=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/groupPurchase.js | 7 + packages/shop/groupPurchase/index.css | 110 ++++++++- packages/shop/groupPurchase/index.vue | 228 ++++++++++++++---- .../orderVerification/index.vue | 34 ++- 4 files changed, 315 insertions(+), 64 deletions(-) create mode 100644 api/groupPurchase.js diff --git a/api/groupPurchase.js b/api/groupPurchase.js new file mode 100644 index 00000000..03ec9d0b --- /dev/null +++ b/api/groupPurchase.js @@ -0,0 +1,7 @@ +export const apiArr = { + groupBuyList: "/api/v2/wechat/commodity/group-buy/list", //团购列表 + groupGoodsList: "/api/v2/wechat/commodity/group-goods/list", //团购商品列表 + groupBuyAddress: "/api/v2/wechat/commodity/group-buy/address", //团购自提地址 + groupBuyRecord: "/api/v2/wechat/commodity/group-buy/buy-record", //团购购买记录 + groupBuyWriteOff: "/api/v2/wechat/commodity/group-buy/write-off", //团购核销 +}; diff --git a/packages/shop/groupPurchase/index.css b/packages/shop/groupPurchase/index.css index 3bff853f..4c53001f 100644 --- a/packages/shop/groupPurchase/index.css +++ b/packages/shop/groupPurchase/index.css @@ -3,7 +3,6 @@ max-width: 750rpx; margin: 0 auto; background-color: #ffffff; - min-height: 100vh; } /* 顶部横幅 */ @@ -63,6 +62,13 @@ display: flex; } +.goods-item2 { + border-radius: 10rpx; + padding: 15rpx; + margin-bottom: 25rpx; + display: flex; +} + .goods-image { width: 140rpx; height: 140rpx; @@ -101,6 +107,12 @@ margin-bottom: 10rpx; } +.goods-price { + font-size: 28rpx; + color: #e63946; + margin-bottom: 10rpx; +} + .price-container { display: flex; align-items: center; @@ -112,7 +124,6 @@ font-size: 28rpx; color: #e63946; margin-right: 10rpx; - padding: 3rpx 8rpx; border-radius: 4rpx; display: flex; } @@ -130,7 +141,6 @@ padding: 10rpx 15rpx; background: linear-gradient(to bottom, #fef6d6, #fee8a9); border-radius: 0 15rpx 15rpx 0; - } .original-price { @@ -139,15 +149,15 @@ } .countdown { - width: 250rpx; + width: auto; font-size: 22rpx; - padding: 10rpx 15rpx; + padding: 10rpx 20rpx; color: #ffffff; margin-bottom: 15rpx; border-radius: 50rpx; background-color: #fe2f01; position: absolute; - top: 150rpx; + top: 120rpx; right: 0; } @@ -206,4 +216,92 @@ position: absolute; right: 0; top: -10rpx; +} + +/* 规格标签样式 */ +.specification-tag { + width: 130rpx; + display: flex; + align-items: center; + justify-content: center; + background-color: #feeceb; + padding: 10rpx 20rpx; + border-radius: 40rpx; + margin: 15rpx 0; + font-size: 26rpx; + color: #dd4020; +} + +.specification-tag text { + margin-right: 5rpx; +} + +/* 货品列表样式 */ +.sku-list { + margin-top: 10rpx; + padding: 15rpx; + background-color: #f9f9f9; + border-radius: 10rpx; +} + +.sku-item{ + position: relative; +} + +.sku-info{ + display: flex; + align-items: center; + justify-content: center; +} + +.sku-image{ + width: 100rpx; + height: 100rpx; + border-radius: 15rpx; + overflow: hidden; + margin-right: 15rpx; +} + +.sku-price { + font-size: 26rpx; + color: #e63946; + margin-right: 10rpx; + border-radius: 4rpx; + display: flex; + margin-top: 15rpx; +} + +.sku-price1{ + width: auto; + padding: 10rpx 15rpx; + color: #ffffff; + background-color: #fc5d15; + border-radius: 15rpx 0 0 15rpx; +} + +.sku-price2{ + width: auto; + padding: 10rpx 15rpx; + background: linear-gradient(to bottom, #fef6d6, #fee8a9); + border-radius: 0 15rpx 15rpx 0; +} + +.sku-control { + display: flex; + align-items: center; + justify-content: flex-end; + margin-top: 15rpx; +} + +.sku-countdown { + width: auto; + font-size: 22rpx; + padding: 5rpx 20rpx; + color: #ffffff; + margin-bottom: 15rpx; + border-radius: 50rpx; + background-color: #fe2f01; + position: absolute; + top: 170rpx; + right: 0; } \ No newline at end of file diff --git a/packages/shop/groupPurchase/index.vue b/packages/shop/groupPurchase/index.vue index 26fd29f6..8d993a6b 100644 --- a/packages/shop/groupPurchase/index.vue +++ b/packages/shop/groupPurchase/index.vue @@ -1,4 +1,4 @@ -