Revert "feat: 新增商品详情搭配优惠组件和客服弹窗"

This reverts commit 95eed74b96.
This commit is contained in:
2026-01-03 16:39:19 +08:00
parent 95eed74b96
commit ad4e2228a6
68 changed files with 2037 additions and 1198 deletions

View File

@@ -1,75 +1,12 @@
<view class="container">
<head-swiper banner="{{banner}}"></head-swiper>
<view class="title-tips">请选择单次洗车金额</view>
<view class="list">
<!-- 推荐 -->
<view bindtap="selectItem" class="item select" data-id="{{item.id}}">
<view class="g">3元<view class="u">购</view></view>
<view class="j">5<view class="p">洗车金</view></view>
<view class="t">
<text>1、洗车金用完机器自动停止。\n 2、洗车金没用完到达[ <text class="b">10分钟</text> ]机器自动停止。</text>
</view>
</view>
<!-- 常态 选中 -->
<view bindtap="selectItem" class="item active" data-id="{{item.id}}">
<view class="g">6元<view class="u">购</view></view>
<view class="j">10<view class="p">洗车金</view></view>
<view class="t">
<text>1、洗车金用完机器自动停止。\n 2、洗车金没用完到达[ <text class="b">20分钟</text> ]机器自动停止。</text>
</view>
</view>
<!-- 常态 -->
<view bindtap="selectItem" class="item" data-id="{{item.id}}">
<view class="g">10元<view class="u">购</view></view>
<view class="j">15<view class="p">洗车金</view></view>
<view class="t">
<text>1、洗车金用完机器自动停止。\n 2、洗车金没用完到达[ <text class="b">30分钟</text> ]机器自动停止。</text>
</view>
</view>
<!-- 推荐 选中 -->
<view bindtap="selectItem" class="item active select" data-id="{{item.id}}">
<view class="g">10元<view class="u">购</view></view>
<view class="j">15<view class="p">洗车金</view></view>
<view class="t">
<text>1、洗车金用完机器自动停止。\n 2、洗车金没用完到达[ <text class="b">30分钟</text> ]机器自动停止。</text>
</view>
</view>
<view bindtap="selectItem" class="{{selectIndex==index?'active item':'item'}}" data-index="{{index}}" wx:for="{{5}}" wx:key="index"> 6.00元 </view>
</view>
<view class="no-content" wx:if="{{false}}">
<image src="/img/nocontent.png"></image>
<view>暂无相关数据</view>
</view>
<view class="no-content" wx:if="{{list.length==0&&!loading}}">
<image src="/img/nocontent.png"></image>
<view>暂无相关数据</view>
</view>
<view bindtap="tobuyNow" class="tobuy-btn {{approve?'':'disabled'}}">立即启动·单次洗车</view>
<checkbox-group bindchange="change">
<label class="provision">
<checkbox checked value="{{approve}}"></checkbox> 启动单次洗车表示同意 <navigator class="text" url="/pages/webview/webview?url={{protocol.url}}">《聚美汽服购买协议》</navigator>
</label>
</checkbox-group>
<view class="warm-prompt">
<view class="title">注意事项:</view>
<view class="content">
<view>1、<b>没有完成洗车,请勿按红色“结束”按钮</b></view>
<view>2、单次洗车不支持余额支付</view>
<view>3、单次洗车仅限1次洗车不得分开多次使用</view>
<view>4、购买单次洗车后将获得相应的洗车金和洗车时长</view>
<view>5、购买单次洗车后洗车机将立即启动请确保你在洗车机前</view>
<view>6、洗车金为本次最多可用金额按量扣费</view>
<view>7、洗车时长为本次最长可用时间洗车机启动后开始计时</view>
<view>8、当洗车金为0或达到洗车时长洗车机将自动结束洗车</view>
</view>
</view>
<service-tel tel="{{servicetel}}"></service-tel>
<view class="footer-btn-box">
<view class="btn yellow">余额洗车</view>
<view class="btn">单次启动</view>
</view>
</view>

View File

@@ -11,163 +11,42 @@
padding: 0;
}
.list .item {
position: relative;
padding-left: 286rpx;
background: #fff;
border: 5rpx solid #0281db;
border-radius: 26rpx;
box-sizing: border-box;
color: #0281db;
flex-direction: column;
height: 158rpx;
justify-content: center;
margin: 0 0 28rpx;
width: 100%;
overflow: hidden;
.item {
background-color: #fff;
border-radius: 18rpx;
box-shadow: 0 0rpx 9rpx 4rpx hsla(0,0%,40%,.3);
color: #333;
font-size: 87rpx;
height: 180rpx;
line-height: 180rpx;
margin-bottom: 32rpx;
text-align: center;
}
.list .item .g, .list .item .j {
position: absolute;
}
.list .item .g {
left: 0;
top: 0;
height: 153rpx;
width: 158rpx;
line-height: 153rpx;
text-align: center;
background-color: #0281db;
color: #fff;
font-size: 50rpx;
.item.active {
box-shadow: 0 0rpx 9rpx 4rpx rgba(255,102,0,.3);
color: #f60;
}
.list .item .g .u {
position: absolute;
right: -25rpx;
top: 55rpx;
width: 40rpx;
height: 40rpx;
font-size: 26rpx;
line-height: 40rpx;
border-radius: 100rpx;
border: 5rpx solid #0281db;
color: #0281db;
background-color: #fff;
.footer-btn-box {
bottom: 0;
color: #fff;
display: flex;
font-size: 44rpx;
left: 0;
position: fixed;
width: 100vw;
}
.list .item .j {
left: 158rpx;
top: 0;
height: 153rpx;
width: 138rpx;
font-size: 66rpx;
line-height: 108rpx;
text-align: center;
.footer-btn-box .btn {
align-items: center;
background: #4cadf1;
display: inline-flex;
flex: 1;
height: 104rpx;
justify-content: center;
}
.list .item .j .p {
font-size: 26rpx;
line-height: 1;
}
.list .item .t {
font-size: 25rpx;
height: 153rpx;
display: flex;
align-items: center;
justify-content: center;
padding: 0 20rpx;
background-color: #eee;
}
.list .item .t .b {
font-weight: 700;
color: #1baa1c;
}
.list .item.select, .list .item.select .g .u {
border-color: #f50;
color: #f50;
}
.list .item.select .g {
background-color: #f50;
}
.list .item.active, .list .item.active .g .u {
border-color: #4cadf1;
color: #4cadf1;
}
.list .item.active .g {
background-color: #4cadf1;
}
.list .item.active.select, .list .item.active.select .g .u {
border-color: #f90;
color: #f90;
}
.list .item.active.select .g {
background-color: #f90;
}
.tobuy-btn {
align-items: center;
background: #1baa1c;
border: 2rpx solid #218721;
border-radius: 18rpx;
color: #fff;
display: flex;
font-size: 33rpx;
height: 91rpx;
justify-content: center;
margin-top: 3rpx;
}
.tobuy-btn.disabled {
opacity: .7;
}
.provision {
display: block;
margin: 40rpx 0 0;
font-size: 26rpx;
}
.provision .text {
color: #0281db;
display: inline-block;
}
.warm-prompt {
padding: 60rpx 0;
}
.warm-prompt .title {
color: #f30;
font-size: 32rpx;
font-weight: 600;
margin-bottom: 16rpx;
}
.warm-prompt .content {
color: #666;
font-size: 26rpx;
line-height: 1.8;
}
.warm-prompt .content .view {
margin-bottom: 10rpx;
}
.warm-prompt .content view b {
font-weight: 700;
color: red;
}
.scan-btn {
background-color: #218721;
.btn.yellow {
background: #fccaa9;
}