feat(ui): 新增/优化界面样式、图标及交互组件
- 新增多个功能图标(箭头、盾牌、位置等) - 优化全局按钮、标签、输入框等组件样式 - 修复导航栏高度计算逻辑,适配微信小程序 - 优化消息页、订单页、个人中心等页面布局 - 修复微信支付配置及通知接口问题
这个提交包含在:
@@ -1,11 +1,10 @@
|
||||
<template>
|
||||
<view class="hall-view">
|
||||
<!-- 1. 顶部沉浸式师傅状态与听单控制台(标准 135deg 橙色渐变) -->
|
||||
<view class="hall-hero">
|
||||
<view class="hero-circle c1"></view>
|
||||
<view class="hero-circle c2"></view>
|
||||
<YjyfNavBar theme="transparent" title="抢单大厅" :fixed="false" />
|
||||
<!-- 1. 顶部统一固定吸顶导航栏(与其他页面 100% 统一,固定在手机顶部不随滚动划出) -->
|
||||
<YjyfNavBar theme="orange" title="抢单大厅" :fixed="true" :placeholder="true" />
|
||||
|
||||
<!-- 师傅状态与听单控制台(与顶部导航栏共享连续渐变零断层接壤) -->
|
||||
<view class="hall-hero" :style="{ marginTop: (-stickyTop) + 'px', paddingTop: stickyTop + 'px' }">
|
||||
<view class="hall-header-body">
|
||||
<view class="header-main">
|
||||
<view class="h-user">
|
||||
@@ -15,13 +14,11 @@
|
||||
<text class="level-txt">Lv{{ info.level }}</text>
|
||||
</view>
|
||||
<view class="city-badge" v-if="info && info.city">
|
||||
<image class="city-ico" src="/static/icons/location-pin.svg" mode="aspectFit" />
|
||||
<image class="city-ico" src="/static/icons/location-pin-white.svg" mode="aspectFit" />
|
||||
<text class="city-txt">{{ info.city }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<text class="h-stats" v-if="info">
|
||||
综合评分 {{ info.score }} 分 · 累计履约 {{ info.order_count }} 单
|
||||
</text>
|
||||
<text class="h-stats" v-if="info">综合评分 {{ info.score }} 分 · 累计履约 {{ info.order_count }} 单</text>
|
||||
</view>
|
||||
|
||||
<view class="work-toggle clickable-hover" :class="{ paused: info && info.work_status === 'off' }" @tap="toggleWork">
|
||||
@@ -58,7 +55,7 @@
|
||||
</view>
|
||||
|
||||
<!-- 3. 吸顶双层筛选与排序导航栏 -->
|
||||
<view class="filter-sticky">
|
||||
<view class="filter-sticky" :style="{ top: stickyTop + 'px' }">
|
||||
<view class="type-tabs">
|
||||
<view
|
||||
v-for="t in typeTabs"
|
||||
@@ -118,9 +115,7 @@
|
||||
<view class="card-hd">
|
||||
<view class="hd-left">
|
||||
<text class="tag-urgent" v-if="Number(o.urgent)">急单</text>
|
||||
<text class="tag-svc-type" :class="{ repair: o.service_type_tag === '维修' }">
|
||||
{{ o.service_type_tag || '安装' }}
|
||||
</text>
|
||||
<text class="tag-svc-type" :class="{ repair: o.service_type_tag === '维修' }">{{ o.service_type_tag || '安装' }}</text>
|
||||
<text class="svc-title">{{ o.service_name }}</text>
|
||||
</view>
|
||||
|
||||
@@ -130,9 +125,7 @@
|
||||
<text class="quote-label">师傅竞价</text>
|
||||
</template>
|
||||
<template v-else>
|
||||
<text class="price-mode-tag" :class="o.price_type">
|
||||
{{ o.price_type === 'custom' ? '用户定价' : '一口价' }}
|
||||
</text>
|
||||
<text class="price-mode-tag" :class="o.price_type">{{ o.price_type === 'custom' ? '用户定价' : '一口价' }}</text>
|
||||
<view class="amt-box">
|
||||
<text class="amt-symbol">¥</text>
|
||||
<text class="amt-val">{{ o.pay_amount }}</text>
|
||||
@@ -193,18 +186,14 @@
|
||||
<view class="card-ft" @tap.stop>
|
||||
<view class="ft-meta">
|
||||
<template v-if="o.price_type === 'quote'">
|
||||
<text class="quote-slot-txt">
|
||||
{{ o.quote_count > 0 ? (o.quote_count + ' 位师傅已报价 · ') : '' }}只剩
|
||||
</text>
|
||||
<text class="quote-slot-txt">{{ o.quote_count > 0 ? (o.quote_count + ' 位师傅已报价 · ') : '' }}只剩</text>
|
||||
<text class="quote-slot-num">{{ o.remaining_quote_slots ?? 4 }}</text>
|
||||
<text class="quote-slot-txt">个报价名额</text>
|
||||
</template>
|
||||
<template v-else>
|
||||
<image class="cd-ico" src="/static/icons/master/hall-countdown.svg" mode="aspectFit" />
|
||||
<text class="left-label">有效倒计时:</text>
|
||||
<text class="left-val" :class="{ urgent: o.left_seconds <= 1800 }">
|
||||
{{ countdown(o.left_seconds) }}
|
||||
</text>
|
||||
<text class="left-val" :class="{ urgent: o.left_seconds <= 1800 }">{{ countdown(o.left_seconds) }}</text>
|
||||
</template>
|
||||
</view>
|
||||
|
||||
@@ -240,9 +229,7 @@
|
||||
<text class="cd-addr">{{ selectedOrder.address }}</text>
|
||||
<text class="cd-price">工单报酬:¥{{ selectedOrder.pay_amount }}</text>
|
||||
</view>
|
||||
<text class="cd-content">
|
||||
请确认已了解订单服务要求、商品数量及服务地址。抢单成功后需在 2 小时内联系客户约定上门时间,无故弃单将影响您的派单优先级。
|
||||
</text>
|
||||
<text class="cd-content">请确认已了解订单服务要求、商品数量及服务地址。抢单成功后需在 2 小时内联系客户约定上门时间,无故弃单将影响您的派单优先级。</text>
|
||||
<view class="cd-actions">
|
||||
<view class="cd-btn cancel clickable-hover" @tap="selectedOrder = null">
|
||||
<text class="cd-btn-txt cancel">再看看</text>
|
||||
@@ -260,8 +247,11 @@
|
||||
import { ref, computed, onMounted } from 'vue';
|
||||
import api from '@/utils/api.js';
|
||||
import { isLogin, toLogin } from '@/utils/request.js';
|
||||
import { getNavBarMetrics } from '@/utils/system.js';
|
||||
import YjyfNavBar from '@/components/YjyfNavBar.vue';
|
||||
|
||||
const stickyTop = ref(getNavBarMetrics().totalNavHeight);
|
||||
|
||||
const list = ref([]);
|
||||
const info = ref(null);
|
||||
const skillsCount = ref(0);
|
||||
@@ -400,6 +390,7 @@
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
stickyTop.value = getNavBarMetrics().totalNavHeight;
|
||||
load();
|
||||
});
|
||||
|
||||
@@ -411,38 +402,26 @@
|
||||
<style scoped>
|
||||
.hall-view {
|
||||
min-height: 100vh;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
background: #F5F6F8;
|
||||
padding-bottom: 32rpx;
|
||||
}
|
||||
|
||||
/* 1. 顶部沉浸式师傅状态区(标准 135deg 橙色渐变) */
|
||||
/* 1. 顶部沉浸式师傅状态区(标准 135deg 橙色渐变,与 TopBar 共享连续渐变起点) */
|
||||
.hall-hero {
|
||||
background: linear-gradient(135deg, #FFA93F 0%, #F0710D 100%);
|
||||
background-color: #F0710D;
|
||||
background-image: linear-gradient(135deg, #FFA93F 0%, #F0710D 100%);
|
||||
background-size: 100% 600rpx;
|
||||
background-position: 0 0;
|
||||
background-repeat: no-repeat;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.hero-circle {
|
||||
position: absolute;
|
||||
border-radius: 50%;
|
||||
background: rgba(255, 255, 255, 0.12);
|
||||
pointer-events: none;
|
||||
}
|
||||
.c1 {
|
||||
width: 280rpx;
|
||||
height: 280rpx;
|
||||
right: -80rpx;
|
||||
top: -100rpx;
|
||||
}
|
||||
.c2 {
|
||||
width: 160rpx;
|
||||
height: 160rpx;
|
||||
left: -60rpx;
|
||||
bottom: -50rpx;
|
||||
}
|
||||
.hall-header-body {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
padding: 8rpx 24rpx 24rpx;
|
||||
padding: 16rpx 24rpx 24rpx;
|
||||
}
|
||||
.header-main {
|
||||
display: flex;
|
||||
@@ -465,21 +444,30 @@
|
||||
color: #FFFFFF;
|
||||
}
|
||||
.level-badge {
|
||||
padding: 2rpx 12rpx;
|
||||
height: 36rpx;
|
||||
padding: 0 12rpx;
|
||||
background: rgba(255, 255, 255, 0.24);
|
||||
border-radius: 8rpx;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
line-height: 1;
|
||||
}
|
||||
.level-txt {
|
||||
font-size: 22rpx;
|
||||
color: #FFFFFF;
|
||||
font-weight: 600;
|
||||
line-height: 1;
|
||||
}
|
||||
.city-badge {
|
||||
display: flex;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 2rpx 12rpx;
|
||||
justify-content: center;
|
||||
height: 36rpx;
|
||||
padding: 0 12rpx;
|
||||
background: rgba(0, 0, 0, 0.14);
|
||||
border-radius: 20rpx;
|
||||
border-radius: 18rpx;
|
||||
line-height: 1;
|
||||
}
|
||||
.city-ico {
|
||||
width: 22rpx;
|
||||
@@ -489,6 +477,7 @@
|
||||
.city-txt {
|
||||
font-size: 22rpx;
|
||||
color: #FFFFFF;
|
||||
line-height: 1;
|
||||
}
|
||||
.h-stats {
|
||||
display: block;
|
||||
@@ -497,14 +486,16 @@
|
||||
color: rgba(255, 255, 255, 0.92);
|
||||
}
|
||||
.work-toggle {
|
||||
display: flex;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: #FFFFFF;
|
||||
padding: 0 24rpx;
|
||||
height: 60rpx;
|
||||
border-radius: 30rpx;
|
||||
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
|
||||
flex-shrink: 0;
|
||||
line-height: 1;
|
||||
}
|
||||
.work-toggle.paused {
|
||||
background: rgba(255, 255, 255, 0.28);
|
||||
@@ -523,6 +514,7 @@
|
||||
font-size: 24rpx;
|
||||
font-weight: 700;
|
||||
color: #F0710D;
|
||||
line-height: 1;
|
||||
}
|
||||
.work-toggle.paused .toggle-txt {
|
||||
color: #FFFFFF;
|
||||
@@ -541,35 +533,42 @@
|
||||
.hq-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex: 1;
|
||||
justify-content: center;
|
||||
min-width: 0;
|
||||
}
|
||||
.hq-ico {
|
||||
width: 26rpx;
|
||||
height: 26rpx;
|
||||
width: 24rpx;
|
||||
height: 24rpx;
|
||||
margin-right: 8rpx;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.hq-txt {
|
||||
font-size: 22rpx;
|
||||
color: rgba(255, 255, 255, 0.95);
|
||||
white-space: nowrap;
|
||||
line-height: 1;
|
||||
}
|
||||
.hq-num {
|
||||
font-size: 26rpx;
|
||||
font-weight: 700;
|
||||
color: #FFFFFF;
|
||||
margin: 0 6rpx;
|
||||
margin: 0 8rpx 0 4rpx;
|
||||
white-space: nowrap;
|
||||
line-height: 1;
|
||||
}
|
||||
.hq-link {
|
||||
font-size: 22rpx;
|
||||
font-weight: 600;
|
||||
color: #FFFFFF;
|
||||
margin-left: 8rpx;
|
||||
white-space: nowrap;
|
||||
line-height: 1;
|
||||
}
|
||||
.hq-divider {
|
||||
width: 1rpx;
|
||||
height: 28rpx;
|
||||
background: rgba(255, 255, 255, 0.3);
|
||||
margin: 0 12rpx;
|
||||
margin: 0 8rpx;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
/* 2. 跑马灯广播条 */
|
||||
@@ -647,12 +646,13 @@
|
||||
.t-count {
|
||||
margin-left: 6rpx;
|
||||
padding: 0 10rpx;
|
||||
height: 30rpx;
|
||||
border-radius: 15rpx;
|
||||
height: 32rpx;
|
||||
border-radius: 16rpx;
|
||||
background: #F5F6F8;
|
||||
display: flex;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
line-height: 1;
|
||||
}
|
||||
.t-count.active {
|
||||
background: #FFF7F0;
|
||||
@@ -661,6 +661,7 @@
|
||||
font-size: 22rpx;
|
||||
color: #888888;
|
||||
font-weight: 600;
|
||||
line-height: 1;
|
||||
}
|
||||
.t-count.active .t-count-txt {
|
||||
color: #F0710D;
|
||||
@@ -675,16 +676,27 @@
|
||||
.sort-tabs {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16rpx;
|
||||
gap: 12rpx;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
.s-tab {
|
||||
padding: 8rpx 20rpx;
|
||||
height: 52rpx;
|
||||
padding: 0 18rpx;
|
||||
background: #F5F6F8;
|
||||
border-radius: 24rpx;
|
||||
border-radius: 26rpx;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
line-height: 1;
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.s-tab-txt {
|
||||
font-size: 24rpx;
|
||||
color: #444444;
|
||||
line-height: 1;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.s-tab.on {
|
||||
background: #FFF7F0;
|
||||
@@ -694,9 +706,13 @@
|
||||
font-weight: 600;
|
||||
}
|
||||
.refresh-pill {
|
||||
display: flex;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 8rpx 16rpx;
|
||||
justify-content: center;
|
||||
padding: 8rpx 8rpx;
|
||||
flex-shrink: 0;
|
||||
white-space: nowrap;
|
||||
line-height: 1;
|
||||
}
|
||||
.refresh-ico {
|
||||
width: 26rpx;
|
||||
@@ -782,17 +798,29 @@
|
||||
font-size: 22rpx;
|
||||
background: #E8331B;
|
||||
color: #FFFFFF;
|
||||
padding: 2rpx 12rpx;
|
||||
height: 38rpx;
|
||||
line-height: 38rpx;
|
||||
padding: 0 12rpx;
|
||||
border-radius: 8rpx;
|
||||
font-weight: 600;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
}
|
||||
.tag-svc-type {
|
||||
font-size: 22rpx;
|
||||
padding: 2rpx 12rpx;
|
||||
height: 38rpx;
|
||||
line-height: 38rpx;
|
||||
padding: 0 12rpx;
|
||||
border-radius: 8rpx;
|
||||
background: #FFF7F0;
|
||||
color: #F0710D;
|
||||
font-weight: 600;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
}
|
||||
.tag-svc-type.repair {
|
||||
background: #FFF7F0;
|
||||
@@ -823,11 +851,17 @@
|
||||
}
|
||||
.price-mode-tag {
|
||||
font-size: 22rpx;
|
||||
padding: 2rpx 10rpx;
|
||||
height: 36rpx;
|
||||
line-height: 36rpx;
|
||||
padding: 0 12rpx;
|
||||
border-radius: 6rpx;
|
||||
font-weight: 600;
|
||||
background: #FFF7F0;
|
||||
color: #F0710D;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
}
|
||||
.amt-box {
|
||||
display: flex;
|
||||
@@ -905,6 +939,8 @@
|
||||
font-size: 24rpx;
|
||||
}
|
||||
.goods-name {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
font-size: 26rpx;
|
||||
color: #444444;
|
||||
overflow: hidden;
|
||||
@@ -933,13 +969,16 @@
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.dist-pill {
|
||||
display: flex;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: #FFF7F0;
|
||||
padding: 2rpx 12rpx;
|
||||
border-radius: 16rpx;
|
||||
height: 36rpx;
|
||||
padding: 0 12rpx;
|
||||
border-radius: 18rpx;
|
||||
margin-left: 10rpx;
|
||||
flex-shrink: 0;
|
||||
line-height: 1;
|
||||
}
|
||||
.dist-ico {
|
||||
width: 22rpx;
|
||||
@@ -950,6 +989,7 @@
|
||||
font-size: 22rpx;
|
||||
color: #F0710D;
|
||||
font-weight: 600;
|
||||
line-height: 1;
|
||||
}
|
||||
.badge-row {
|
||||
display: flex;
|
||||
@@ -961,8 +1001,14 @@
|
||||
font-size: 22rpx;
|
||||
color: #888888;
|
||||
background: #F5F6F8;
|
||||
padding: 4rpx 14rpx;
|
||||
height: 40rpx;
|
||||
line-height: 40rpx;
|
||||
padding: 0 14rpx;
|
||||
border-radius: 8rpx;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
}
|
||||
.cond-badge.addon {
|
||||
color: #F0710D;
|
||||
@@ -1063,6 +1109,7 @@
|
||||
color: #FFFFFF;
|
||||
font-size: 26rpx;
|
||||
font-weight: 600;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
/* 6. 空状态 */
|
||||
@@ -1100,7 +1147,10 @@
|
||||
font-weight: 600;
|
||||
padding: 0 36rpx;
|
||||
height: 72rpx;
|
||||
line-height: 72rpx;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
line-height: 1;
|
||||
border-radius: 36rpx;
|
||||
}
|
||||
.skill-cta {
|
||||
@@ -1110,7 +1160,10 @@
|
||||
font-weight: 600;
|
||||
padding: 0 36rpx;
|
||||
height: 72rpx;
|
||||
line-height: 72rpx;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
line-height: 1;
|
||||
border-radius: 36rpx;
|
||||
border: 1rpx solid #F0710D;
|
||||
}
|
||||
|
||||
在新工单中引用
屏蔽一个用户