From 2396819644e6f02e3979879da49bc320537f96e6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=B2=B3=E7=90=B3=E7=BA=A2?= <1921957171@qq.com>
Date: Wed, 28 Aug 2024 18:00:17 +0800
Subject: [PATCH] =?UTF-8?q?=E7=A0=8D=E4=BB=B7=E6=9C=AA=E5=AE=8C=E6=88=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/bargain/details/details.vue | 235 ++++++++++++++++++++++++++++--
pages/bargain/index.vue | 3 +-
sheep/api/promotion/bargain.js | 24 +++
static/bargain/arrow.png | Bin 0 -> 261 bytes
4 files changed, 250 insertions(+), 12 deletions(-)
create mode 100644 static/bargain/arrow.png
diff --git a/pages/bargain/details/details.vue b/pages/bargain/details/details.vue
index f11bdb7b..5ec34caa 100644
--- a/pages/bargain/details/details.vue
+++ b/pages/bargain/details/details.vue
@@ -3,23 +3,136 @@
-
+
+
+
+
+
+ {{bargainInfo.name}}
+
+
+ 最低价:¥{{fen2yuan(bargainInfo.bargainMinPrice)}}
+
+
+ 剩余:{{ bargainInfo.stock }} {{bargainInfo.unitName}}
+
+
+ 当前:¥{{fen2yuan(bargainInfo.marketPrice)}}
+
+
+
+
+
+
+
+
+
+ 后结束
+
+
+ 已结束
+
+
+ 已售罄
+
-
+
+
+
+
+ 砍价记录
+
+
+
+
+ 暂无砍价记录
+
+
+
+
+
+
@@ -36,24 +149,124 @@
position: absolute;
top: 0;
}
- .cont{
+
+ .cont {
width: 650rpx;
- height: 300rpx;
- background-color: rebeccapurple;
+ height: 360rpx;
+ // background-color: rebeccapurple;
position: absolute;
top: 300rpx;
left: 50rpx;
}
- .box{
- width:750rpx;
- height:66.2vh;
+
+ .contTime {
+ width: 100%;
+ height: 60rpx;
+ // background-color: #999999;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ }
+
+ .box {
+ width: 750rpx;
+ height: 66.2vh;
margin-top: -1rpx;
background-color: #E93323;
}
- .boxCont{
+
+ .boxCont {
width: 691rpx;
height: 300rpx;
margin: 0 auto;
background-color: white;
+ border-bottom-left-radius: 10rpx;
+ border-bottom-right-radius: 10rpx;
+ }
+
+ .contInfo {
+ width: 600rpx;
+ height: 220rpx;
+ // background-color: red;
+ margin: 25rpx auto;
+ display: flex;
+ justify-content: space-between;
+ }
+
+ .infoImg {
+ width: 220rpx;
+ height: 220rpx;
+ }
+
+ .goods {
+ width: 350rpx;
+ height: 220rpx;
+ // background-color: gold;
+ display: flex;
+ justify-content: space-between;
+ }
+
+ .goodsInfo {
+ width: 300rpx;
+ height: 220rpx;
+ // background-color: green;
+ }
+
+ .info1 {
+ width: 300rpx;
+ height: 50rpx;
+ line-height: 50rpx;
+ font-size: 22rpx;
+ color: #999999;
+ overflow: hidden;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+ -o-text-overflow: ellipsis;
+ }
+
+ .jiantou {
+ width: 40rpx;
+ height: 220rpx;
+ }
+
+ .jiantou image {
+ width: 20rpx;
+ height: 40rpx;
+ margin: 100rpx 10rpx;
+ }
+
+ .title {
+ width: 320rpx;
+ height: 100rpx;
+ font-size: 40rpx;
+ font-weight: 600;
+ color: #fff;
+ // background-color: white;
+ margin: 20rpx auto;
+ display: flex;
+ justify-content: space-between;
+ }
+
+ .titleText {
+ width: 180rpx;
+ height: 100rpx;
+ line-height: 100rpx;
+ text-align: center;
+ }
+
+ .titImg {
+ width: 60rpx;
+ height: 60rpx;
+ }
+
+ .titInfo {
+ width: 691rpx;
+ height: 500rpx;
+ background-color: white;
+ border-radius: 10rpx;
+ margin: 10rpx auto;
+ text-align: center;
+ font-size: 26rpx;
+ color: #AAAAAA;
}
\ No newline at end of file
diff --git a/pages/bargain/index.vue b/pages/bargain/index.vue
index 3cec3aee..ff3c75de 100644
--- a/pages/bargain/index.vue
+++ b/pages/bargain/index.vue
@@ -34,7 +34,7 @@
后结束
- 最低:¥{{item.bargainMinPrice}}
+ 最低:¥{{fen2yuan(item.bargainMinPrice)}}
参与砍价
@@ -51,6 +51,7 @@
ref
} from 'vue';
import countDown from '@/sheep/components/countDown/index.vue'
+ import { fen2yuan } from '@/sheep/hooks/useGoods';
import BargainApi from "@/sheep/api/promotion/bargain.js";
import sheep from '@/sheep';
import {
diff --git a/sheep/api/promotion/bargain.js b/sheep/api/promotion/bargain.js
index 108f40f0..74c14406 100644
--- a/sheep/api/promotion/bargain.js
+++ b/sheep/api/promotion/bargain.js
@@ -9,6 +9,22 @@ const BargainApi = {
params,
});
},
+ // 活动砍价活动详情
+ getActivityDetail: (params) => {
+ return request({
+ url: '/promotion/bargain-activity/get-detail',
+ method: 'GET',
+ params,
+ });
+ },
+ //获得砍价记录分页
+ getBargainRecordPage: (params) => {
+ return request({
+ url: '/promotion/bargain-record/page',
+ method: 'GET',
+ params,
+ });
+ },
// 活动砍价记录概要
getActivitySuccess: () => {
return request({
@@ -16,5 +32,13 @@ const BargainApi = {
method: 'GET',
});
},
+ // 砍价记录明细
+ getActivityRecord: (params) => {
+ return request({
+ url: '/promotion/bargain-record/get-detail',
+ method: 'GET',
+ params,
+ });
+ },
};
export default BargainApi;
\ No newline at end of file
diff --git a/static/bargain/arrow.png b/static/bargain/arrow.png
new file mode 100644
index 0000000000000000000000000000000000000000..fded4c4f043499d647e24c5cdfcb0926185ba6ed
GIT binary patch
literal 261
zcmV+g0s8)lP)Px#zez+vR5(wK(!CABFc5~}?_9Y;8G#K56CfsF1Q-BE9wl-XfJtBjG71H43_8n+
z0ROsv-aE-UQc8_P^cF(w`@Vl7^GGRmC!!sIu@sQjx|yblgH0(Q-dYpBjOu^_-4rGh9<1xfrL7-P0sthH{fwGR%Zl&d86@CKj(a5cu9qL}~PPh8KC
zrw7