From 8e62a471250505ab1d7e64695b3839ce7465f860 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=AF=85?= <1335909236@qq.com> Date: Sat, 27 Sep 2025 17:19:59 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E5=86=99=E6=B4=BB=E5=8A=A8=E5=95=86?= =?UTF-8?q?=E5=93=81=E7=9A=84=E8=B4=AD=E7=89=A9=E8=BD=A6=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=20=E4=BF=AE=E6=94=B9=E6=95=B0=E6=8D=AE=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/advertising/index/index.css | 3 + packages/advertising/index/index.vue | 12 +- packages/advertising/shopCar/index.css | 258 +++++++++ packages/advertising/shopCar/index.vue | 757 +++++++++++++++++++++++++ pages.json | 21 + 5 files changed, 1045 insertions(+), 6 deletions(-) create mode 100644 packages/advertising/shopCar/index.css create mode 100644 packages/advertising/shopCar/index.vue diff --git a/packages/advertising/index/index.css b/packages/advertising/index/index.css index 0da7eba2..c45833b0 100644 --- a/packages/advertising/index/index.css +++ b/packages/advertising/index/index.css @@ -116,6 +116,9 @@ color: #ffffff; background-color: #fc5d15; border-radius: 15rpx 0 0 15rpx; + display: flex; + align-items: center; + justify-content: center; } .group-price2{ diff --git a/packages/advertising/index/index.vue b/packages/advertising/index/index.vue index 69b28f83..33fe0878 100644 --- a/packages/advertising/index/index.vue +++ b/packages/advertising/index/index.vue @@ -137,11 +137,11 @@ export default { }); }, toDetail(itemObj) { - // const item = { - // ...itemObj, - // groupById: itemObj.group_buy_activity_info ? itemObj.group_buy_activity_info.id : '' - // }; - // NavgateTo(`/packages/shop/groupPurchaseDetail/index?item=${JSON.stringify(item)}`) + const item = { + ...itemObj, + groupById: itemObj.group_buy_activity_info ? itemObj.group_buy_activity_info.id : '' + }; + NavgateTo(`/packages/advertising/goodsDetail/index?item=${JSON.stringify(item)}`) }, // 增加商品数量 increaseQuantity(index) { @@ -222,7 +222,7 @@ export default { const item = { is_adver: 1, } - NavgateTo("/packages/shop/shopCar/index?item=" + JSON.stringify(item)); + NavgateTo("/packages/advertising/shopCar/index?item=" + JSON.stringify(item)); }, // 计算距离结束日期的剩余时间 getEndTheCountdown(endTime) { diff --git a/packages/advertising/shopCar/index.css b/packages/advertising/shopCar/index.css new file mode 100644 index 00000000..ae5d86e2 --- /dev/null +++ b/packages/advertising/shopCar/index.css @@ -0,0 +1,258 @@ +.main { + height: 77vh; + overflow-y: auto; +} + +.searchBox { + display: flex; + align-items: center; + z-index: 2; + padding-bottom: 30rpx; +} + +.searchBox_mid { + font-size: 40rpx; + color: #222222; + flex: 1; + text-align: center; +} + +.searchBox_left { + box-sizing: border-box; + padding-left: 20rpx; + flex: 1; +} + +.searchBox_right { + opacity: 0; + flex: 1; +} + +.isDay { + position: absolute; + +} + +.tag { + background-color: #ff7d00; + color: white; + font-size: 22rpx; + padding: 5rpx 10rpx; + border-radius: 20rpx 0 20rpx 20rpx; +} + +.tag-img { + position: absolute; + /* top: 1; */ + bottom: 1; + left: 10; + z-index: 1; +} + +.is_day { + margin-left: 20rpx; +} + +.empty { + display: flex; + align-items: center; + justify-content: center; + flex-direction: column; + margin-top: 160rpx; +} + +.empty image { + width: 500rpx; + height: 500rpx; +} + +.empty div { + font-size: 26rpx; + color: #999999; + margin-top: -40rpx; + text-align: center; +} + +.deleteIcon { + margin: 0 40rpx; + box-sizing: border-box; + margin-top: 36rpx; + display: flex; + justify-content: flex-end; +} + +.goodsItem_supplier { + display: flex; + align-items: center; + margin: 20rpx; +} + +.goodsItem_tit { + font-size: 35rpx; + font-weight: bold; +} + +.goodsItem { + display: flex; + align-items: center; + margin: 0 20rpx; + padding: 30rpx 0; + box-sizing: border-box; + border-bottom: 1rpx solid #EBEBEB; +} + +.goodsItem_left { + width: 32rpx; + height: 32rpx; + margin-right: 32rpx; +} + +.goodsItem_right { + flex: 1; +} + +.goodsItem_msg { + display: flex; + align-items: center; +} + +.goodsItem_msg_right { + flex: 1; +} + +.goodsItem_msg_img { + width: 140rpx; + height: 140rpx; + border-radius: 20rpx 20rpx 20rpx 20rpx; + margin-right: 20rpx; +} + +.goodsItem_msg_right { + flex: 1; +} + +.goodsItem_msg_right_msg_left { + display: flex; + align-items: center; + font-size: 34rpx; + color: #FF370B; + margin-top: 26rpx; +} + +.goodsItem_msg_right_tit { + font-size: 30rpx; + color: #000000; + font-weight: 700; +} + +.goodsItem_msg_right_subTit { + font-size: 26rpx; + color: #999999; + margin-top: 10rpx; +} + +.goodsItem_msg_right_msg { + display: flex; + align-items: center; + justify-content: space-between; +} + +.goodsItem_msg_right_msg_left span { + font-size: 28rpx; +} + + +.goodsItem_msg_right_msg_right { + display: flex; + align-items: center; +} + +.minus { + width: 22px; + height: 22px; + border-width: 1px; + border-color: #E6E6E6; + border-style: solid; + border-top-left-radius: 100px; + border-top-right-radius: 100px; + border-bottom-left-radius: 100px; + border-bottom-right-radius: 100px; + display: flex; + justify-content: center; + align-items: center; +} + +.input { + padding: 0 10px; +} + +.plus { + width: 22px; + height: 22px; + background-color: #FF0000; + border-radius: 50%; + display: flex; + justify-content: center; + align-items: center; +} + + +.footer { + width: 750rpx; + background: #FFFFFF; + box-shadow: 3rpx -3rpx 15rpx 0rpx rgba(255, 27, 27, 0.05); + display: flex; + align-items: center; + justify-content: space-between; + box-sizing: border-box; + padding: 40rpx 20rpx; + position: fixed; + left: 0; + right: 0; + bottom: 0; + justify-content: space-between; +} + +.footer_left { + display: flex; + align-items: center; +} + +.footer_all { + font-size: 28rpx; + color: #000000; + display: flex; + align-items: center; +} + +.footer_all image { + width: 28rpx; + height: 28rpx; + margin-right: 16rpx; +} + +.footer_total { + font-weight: bold; + font-size: 40rpx; + color: #FF370B; + margin-left: 90rpx; +} + +.footer_total span { + font-size: 32rpx; + color: #222222; + font-weight: 400; +} + +.footer_right { + font-size: 36rpx; + color: #FFFFFF; + font-weight: 700; + width: 230rpx; + height: 70rpx; + background: linear-gradient(91deg, #FF7658 0%, #FF370B 100%); + border-radius: 100rpx 100rpx 100rpx 100rpx; + display: flex; + align-items: center; + justify-content: center; +} \ No newline at end of file diff --git a/packages/advertising/shopCar/index.vue b/packages/advertising/shopCar/index.vue new file mode 100644 index 00000000..b0c822e3 --- /dev/null +++ b/packages/advertising/shopCar/index.vue @@ -0,0 +1,757 @@ + + + + + \ No newline at end of file diff --git a/pages.json b/pages.json index 8bdb7ecf..ea2deaa4 100644 --- a/pages.json +++ b/pages.json @@ -1012,6 +1012,27 @@ "navigationBarTitleText": "推荐商品", "navigationBarBackgroundColor": "#ffffff" } + }, + { + "path": "shopCar/index", + "style": { + "navigationBarBackgroundColor": "#fff", + "navigationStyle": "custom" + } + }, + { + "path": "goodsSubmit/index", + "style": { + "navigationBarBackgroundColor": "#fff", + "navigationBarTitleText": "提交团单" + } + }, + { + "path": "goodsDetail/index", + "style": { + "navigationBarBackgroundColor": "#fff", + "navigationStyle": "custom" + } } ] }