chore: 优化上传分类规则并新增分享功能
- 新增上传分类归一化处理,统一白名单校验规则 - 新增COS存储记录同步逻辑 - 新增分享功能支持,配置多页面分享参数 - 新增订单案例分享按钮 - 新增订单自动校验和回收命令 - 新增测试脚本和图片同步脚本 - 优化后台上传分类配置,统一分类映射
这个提交包含在:
@@ -160,7 +160,8 @@
|
||||
@tap="onHotService(item)"
|
||||
>
|
||||
<view class="service-media">
|
||||
<image class="service-img" :src="item.image_url" mode="aspectFit" />
|
||||
<image class="service-img" :src="item.image_url" mode="aspectFill" />
|
||||
<view class="media-top-gradient"></view>
|
||||
<text class="service-cat-badge">{{ item.cat_name }}</text>
|
||||
<text class="service-recommend-tag" v-if="item.tag">{{ item.tag }}</text>
|
||||
</view>
|
||||
@@ -195,9 +196,11 @@
|
||||
v-if="order.image_url"
|
||||
class="flow-card-img"
|
||||
:src="order.image_url"
|
||||
mode="aspectFit"
|
||||
mode="aspectFill"
|
||||
/>
|
||||
<view class="media-top-gradient"></view>
|
||||
<view class="flow-status-badge badge-done">
|
||||
<view class="status-dot-green"></view>
|
||||
<text class="badge-status-txt">已完工</text>
|
||||
</view>
|
||||
</view>
|
||||
@@ -205,7 +208,10 @@
|
||||
<!-- 卡片下半部详情(服务名称、脱敏地点与完工时间、价格与看实况按钮) -->
|
||||
<view class="flow-card-content">
|
||||
<text class="flow-card-title">{{ order.service_name }}</text>
|
||||
<text class="flow-card-loc">{{ order.location }} · {{ order.time_ago }}</text>
|
||||
<view class="flow-card-meta">
|
||||
<image class="meta-pin-icon" src="/static/icons/location-pin.svg" mode="aspectFit" />
|
||||
<text class="flow-card-loc">{{ order.location }} · {{ order.time_ago }}</text>
|
||||
</view>
|
||||
|
||||
<view class="flow-card-bottom">
|
||||
<view class="flow-price-box">
|
||||
@@ -220,6 +226,12 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 空状态缺省兜底(覆盖无热门推荐或无完工工单动态场景) -->
|
||||
<view class="empty-state-box" v-else>
|
||||
<image class="empty-state-icon" src="/static/icons/empty.svg" mode="aspectFit" />
|
||||
<text class="empty-state-text">{{ activeContentTab === 'hot' ? '暂无热门服务推荐' : '暂无完工工单动态' }}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 页面底部安全呼吸留白 (彻底避让悬浮立即下单大圆球,杜绝遮挡) -->
|
||||
@@ -856,18 +868,18 @@
|
||||
.services-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 18rpx;
|
||||
gap: 20rpx;
|
||||
}
|
||||
.service-card {
|
||||
background: #FFFFFF;
|
||||
border-radius: 20rpx;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.03);
|
||||
border: 1rpx solid #EDF2F7;
|
||||
box-shadow: 0 4rpx 16rpx rgba(15, 23, 42, 0.05);
|
||||
border: 1rpx solid #F0F0F2;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
box-sizing: border-box;
|
||||
transition: transform 0.16s ease;
|
||||
transition: transform 0.16s ease, box-shadow 0.16s ease;
|
||||
}
|
||||
.service-card:active {
|
||||
transform: scale(0.98);
|
||||
@@ -875,39 +887,48 @@
|
||||
.service-media {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 180rpx;
|
||||
background: #FFF8F3;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-bottom: 1rpx solid #FDF0E6;
|
||||
height: 220rpx;
|
||||
background: #F8FAFC;
|
||||
overflow: hidden;
|
||||
}
|
||||
.service-img {
|
||||
width: 96rpx;
|
||||
height: 96rpx;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
}
|
||||
.media-top-gradient {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
height: 60rpx;
|
||||
background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0) 100%);
|
||||
pointer-events: none;
|
||||
}
|
||||
.service-cat-badge {
|
||||
position: absolute;
|
||||
left: 12rpx;
|
||||
top: 12rpx;
|
||||
padding: 3rpx 12rpx;
|
||||
border-radius: 8rpx;
|
||||
background: #FFF7ED;
|
||||
color: #EA580C;
|
||||
font-size: 18rpx;
|
||||
font-weight: 700;
|
||||
padding: 4rpx 14rpx;
|
||||
border-radius: 12rpx;
|
||||
background: rgba(0, 0, 0, 0.45);
|
||||
backdrop-filter: blur(8rpx);
|
||||
color: #FFFFFF;
|
||||
font-size: 20rpx;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.5rpx;
|
||||
}
|
||||
.service-recommend-tag {
|
||||
position: absolute;
|
||||
right: 12rpx;
|
||||
top: 12rpx;
|
||||
padding: 3rpx 10rpx;
|
||||
border-radius: 6rpx;
|
||||
background: linear-gradient(135deg, #FF6B00 0%, #EA580C 100%);
|
||||
padding: 4rpx 14rpx;
|
||||
border-radius: 12rpx;
|
||||
background: linear-gradient(135deg, #FFA93F 0%, #F0710D 100%);
|
||||
color: #FFFFFF;
|
||||
font-size: 18rpx;
|
||||
font-size: 20rpx;
|
||||
font-weight: 700;
|
||||
box-shadow: 0 2rpx 6rpx rgba(234, 88, 12, 0.25);
|
||||
box-shadow: 0 2rpx 8rpx rgba(240, 113, 13, 0.35);
|
||||
}
|
||||
.service-info {
|
||||
padding: 16rpx 16rpx 18rpx;
|
||||
@@ -923,6 +944,7 @@
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
line-height: 1.4;
|
||||
margin-bottom: 14rpx;
|
||||
}
|
||||
.service-bottom {
|
||||
@@ -935,31 +957,36 @@
|
||||
align-items: baseline;
|
||||
}
|
||||
.service-price .price-symbol {
|
||||
font-size: 22rpx;
|
||||
font-size: 24rpx;
|
||||
font-weight: 800;
|
||||
color: #F0710D;
|
||||
}
|
||||
.service-price .price-num {
|
||||
font-size: 34rpx;
|
||||
font-size: 38rpx;
|
||||
font-weight: 900;
|
||||
color: #F0710D;
|
||||
margin-left: 2rpx;
|
||||
line-height: 1;
|
||||
}
|
||||
.service-price .price-unit {
|
||||
font-size: 20rpx;
|
||||
color: #9CA3AF;
|
||||
margin-left: 2rpx;
|
||||
color: #888888;
|
||||
margin-left: 4rpx;
|
||||
}
|
||||
.service-book-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 6rpx 16rpx;
|
||||
border-radius: 20rpx;
|
||||
padding: 8rpx 18rpx;
|
||||
border-radius: 22rpx;
|
||||
background: #FFF7F0;
|
||||
border: 1rpx solid #FDE4D0;
|
||||
transition: background 0.15s ease;
|
||||
}
|
||||
.service-book-btn:active {
|
||||
background: #FEE8D8;
|
||||
}
|
||||
.book-btn-txt {
|
||||
font-size: 20rpx;
|
||||
font-size: 22rpx;
|
||||
font-weight: 700;
|
||||
color: #F0710D;
|
||||
}
|
||||
@@ -973,18 +1000,18 @@
|
||||
.order-flow-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 18rpx;
|
||||
gap: 20rpx;
|
||||
}
|
||||
.order-flow-card {
|
||||
background: #FFFFFF;
|
||||
border-radius: 20rpx;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.03);
|
||||
border: 1rpx solid #EDF2F7;
|
||||
box-shadow: 0 4rpx 16rpx rgba(15, 23, 42, 0.05);
|
||||
border: 1rpx solid #F0F0F2;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
box-sizing: border-box;
|
||||
transition: transform 0.16s ease;
|
||||
transition: transform 0.16s ease, box-shadow 0.16s ease;
|
||||
}
|
||||
.order-flow-card:active {
|
||||
transform: scale(0.98);
|
||||
@@ -992,39 +1019,39 @@
|
||||
.flow-card-media {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 180rpx;
|
||||
background: #FFF8F3;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-bottom: 1rpx solid #FDF0E6;
|
||||
height: 220rpx;
|
||||
background: #F8FAFC;
|
||||
overflow: hidden;
|
||||
}
|
||||
.flow-card-img {
|
||||
width: 96rpx;
|
||||
height: 96rpx;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
}
|
||||
.flow-status-badge {
|
||||
position: absolute;
|
||||
left: 12rpx;
|
||||
top: 12rpx;
|
||||
padding: 3rpx 12rpx;
|
||||
border-radius: 8rpx;
|
||||
line-height: 1.2;
|
||||
padding: 4rpx 14rpx;
|
||||
border-radius: 12rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6rpx;
|
||||
}
|
||||
.badge-done {
|
||||
background: #ECFDF5;
|
||||
background: rgba(16, 185, 129, 0.90);
|
||||
backdrop-filter: blur(8rpx);
|
||||
box-shadow: 0 2rpx 6rpx rgba(5, 150, 105, 0.25);
|
||||
}
|
||||
.status-dot-green {
|
||||
width: 10rpx;
|
||||
height: 10rpx;
|
||||
border-radius: 50%;
|
||||
background: #FFFFFF;
|
||||
}
|
||||
.badge-done .badge-status-txt {
|
||||
color: #059669;
|
||||
}
|
||||
.badge-working {
|
||||
background: #FFF7ED;
|
||||
}
|
||||
.badge-working .badge-status-txt {
|
||||
color: #D97706;
|
||||
}
|
||||
.badge-status-txt {
|
||||
font-size: 18rpx;
|
||||
color: #FFFFFF;
|
||||
font-size: 20rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
@@ -1042,15 +1069,28 @@
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
margin-bottom: 6rpx;
|
||||
line-height: 1.4;
|
||||
margin-bottom: 8rpx;
|
||||
}
|
||||
.flow-card-meta {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 14rpx;
|
||||
}
|
||||
.meta-pin-icon {
|
||||
width: 20rpx;
|
||||
height: 20rpx;
|
||||
flex-shrink: 0;
|
||||
margin-right: 6rpx;
|
||||
opacity: 0.6;
|
||||
}
|
||||
.flow-card-loc {
|
||||
font-size: 21rpx;
|
||||
font-size: 22rpx;
|
||||
color: #888888;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
margin-bottom: 14rpx;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.flow-card-bottom {
|
||||
@@ -1062,22 +1102,11 @@
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
}
|
||||
.price-symbol {
|
||||
font-size: 22rpx;
|
||||
font-weight: 800;
|
||||
color: #F0710D;
|
||||
}
|
||||
.price-num {
|
||||
font-size: 34rpx;
|
||||
font-weight: 900;
|
||||
color: #F0710D;
|
||||
margin-left: 2rpx;
|
||||
}
|
||||
.flow-action-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 6rpx 16rpx;
|
||||
border-radius: 20rpx;
|
||||
padding: 8rpx 18rpx;
|
||||
border-radius: 22rpx;
|
||||
background: #FFF7F0;
|
||||
border: 1rpx solid #FDE4D0;
|
||||
transition: background 0.15s ease;
|
||||
@@ -1086,7 +1115,7 @@
|
||||
background: #FEE8D8;
|
||||
}
|
||||
.flow-action-txt {
|
||||
font-size: 20rpx;
|
||||
font-size: 22rpx;
|
||||
font-weight: 700;
|
||||
color: #F0710D;
|
||||
}
|
||||
@@ -1101,6 +1130,28 @@
|
||||
height: 220rpx;
|
||||
}
|
||||
|
||||
/* ---------- 空状态缺省兜底 ---------- */
|
||||
.empty-state-box {
|
||||
padding: 70rpx 0 90rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: #FFFFFF;
|
||||
border-radius: 20rpx;
|
||||
border: 1rpx solid #F0F0F2;
|
||||
}
|
||||
.empty-state-icon {
|
||||
width: 100rpx;
|
||||
height: 100rpx;
|
||||
opacity: 0.75;
|
||||
}
|
||||
.empty-state-text {
|
||||
font-size: 26rpx;
|
||||
color: #888888;
|
||||
margin-top: 18rpx;
|
||||
}
|
||||
|
||||
.clickable-hover:active {
|
||||
opacity: 0.85;
|
||||
transform: scale(0.98);
|
||||
|
||||
在新工单中引用
屏蔽一个用户