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;
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<YjyfNavBar theme="orange" title="接单管理" />
|
||||
|
||||
<!-- 顶部状态漏斗看板(对标工奇兵 4 态流转漏斗) -->
|
||||
<view class="funnel-card">
|
||||
<view class="funnel-card" :style="{ top: stickyTop + 'px' }">
|
||||
<view class="funnel-row">
|
||||
<view class="f-item clickable-hover" :class="{ on: cur === 'active' }" @tap="switchTab('active')">
|
||||
<text class="f-num">{{ activeCount }}</text>
|
||||
@@ -105,8 +105,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 emit = defineEmits(['switch-tab']);
|
||||
|
||||
const cur = ref('active');
|
||||
@@ -369,6 +372,7 @@
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
stickyTop.value = getNavBarMetrics().totalNavHeight;
|
||||
load();
|
||||
loadCounts();
|
||||
});
|
||||
@@ -380,7 +384,7 @@
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.orders-view { min-height: 100vh; background: #F5F6F8; padding-bottom: 30rpx; }
|
||||
.orders-view { min-height: calc(100vh - 104rpx - env(safe-area-inset-bottom)); width: 100%; box-sizing: border-box; background: #F5F6F8; padding-bottom: 30rpx; }
|
||||
|
||||
/* 顶部工奇兵风格数据漏斗看板 */
|
||||
.funnel-card {
|
||||
@@ -415,14 +419,14 @@
|
||||
.svc-box { display: flex; align-items: center; }
|
||||
.svc { font-size: 30rpx; font-weight: 700; color: #1F1F1F; }
|
||||
.time-urgent-pill {
|
||||
display: inline-flex; align-items: center;
|
||||
margin-left: 14rpx; padding: 2rpx 12rpx; border-radius: 16rpx;
|
||||
background: #FFF1F0; border: 1rpx solid #FFA39E;
|
||||
display: inline-flex; align-items: center; justify-content: center;
|
||||
margin-left: 14rpx; height: 38rpx; padding: 0 12rpx; border-radius: 19rpx;
|
||||
background: #FFF1F0; border: 1rpx solid #FFA39E; line-height: 1;
|
||||
}
|
||||
.time-urgent-ico { width: 22rpx; height: 22rpx; margin-right: 6rpx; }
|
||||
.time-urgent-txt { font-size: 20rpx; color: #CF1322; font-weight: 600; }
|
||||
.status-badge { padding: 4rpx 16rpx; border-radius: 20rpx; background: #FFF3E6; }
|
||||
.status-txt { font-size: 22rpx; font-weight: 600; color: #E36B0C; }
|
||||
.time-urgent-txt { font-size: 22rpx; color: #CF1322; font-weight: 600; line-height: 1; }
|
||||
.status-badge { display: inline-flex; align-items: center; justify-content: center; height: 42rpx; padding: 0 16rpx; border-radius: 21rpx; background: #FFF3E6; line-height: 1; }
|
||||
.status-txt { font-size: 22rpx; font-weight: 600; color: #E36B0C; line-height: 1; }
|
||||
.status-badge.st-7 { background: #FDEEEB; }
|
||||
.status-badge.st-7 .status-txt { color: #E8331B; }
|
||||
.status-badge.st-8 { background: #E9F7EE; }
|
||||
@@ -434,7 +438,7 @@
|
||||
.addr-txt { font-size: 26rpx; color: #222; font-weight: 500; line-height: 36rpx; }
|
||||
.meta-txt { font-size: 24rpx; color: #666; line-height: 36rpx; }
|
||||
.meta-tags { display: flex; flex-wrap: wrap; margin-top: 6rpx; }
|
||||
.tag { padding: 4rpx 14rpx; background: #F5F6F8; color: #777; font-size: 20rpx; border-radius: 8rpx; margin-right: 10rpx; margin-bottom: 6rpx; }
|
||||
.tag { display: inline-flex; align-items: center; justify-content: center; height: 40rpx; line-height: 40rpx; text-align: center; padding: 0 14rpx; background: #F5F6F8; color: #777; font-size: 22rpx; border-radius: 8rpx; margin-right: 10rpx; margin-bottom: 6rpx; }
|
||||
|
||||
.customer-row {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
@@ -449,7 +453,8 @@
|
||||
|
||||
.ops { display: flex; flex-wrap: wrap; justify-content: flex-end; padding-top: 16rpx; border-top: 1rpx solid #F4F4F4; }
|
||||
.op {
|
||||
margin: 8rpx 0 0 14rpx; padding: 0 26rpx; height: 60rpx; line-height: 58rpx;
|
||||
margin: 8rpx 0 0 14rpx; padding: 0 26rpx; height: 60rpx;
|
||||
display: inline-flex; align-items: center; justify-content: center; line-height: 1;
|
||||
border-radius: 30rpx; border: 1.5rpx solid #DDD; font-size: 24rpx; color: #555;
|
||||
}
|
||||
.op.primary {
|
||||
@@ -464,7 +469,8 @@
|
||||
.empty-title { font-size: 28rpx; font-weight: 600; color: #333; margin-bottom: 8rpx; }
|
||||
.empty-sub { font-size: 22rpx; color: #9A9A9A; text-align: center; margin-bottom: 32rpx; }
|
||||
.empty-cta {
|
||||
padding: 0 48rpx; height: 74rpx; line-height: 74rpx; border-radius: 37rpx;
|
||||
padding: 0 48rpx; height: 74rpx; border-radius: 37rpx;
|
||||
display: inline-flex; align-items: center; justify-content: center; line-height: 1;
|
||||
background: linear-gradient(135deg,#FFA93F 0%,#F0710D 100%);
|
||||
color: #fff; font-size: 26rpx; font-weight: 600;
|
||||
box-shadow: 0 6rpx 16rpx rgba(240,113,13,0.25);
|
||||
|
||||
@@ -1,13 +1,10 @@
|
||||
<template>
|
||||
<view class="workbench-view">
|
||||
<!-- 1. 师傅顶部一体化沉浸名片区(单一大背景贯穿,彻底消除分层断层) -->
|
||||
<view class="profile-hero">
|
||||
<view class="hero-deco d1"></view>
|
||||
<view class="hero-deco d2"></view>
|
||||
|
||||
<!-- 沉浸式透明导航栏 -->
|
||||
<YjyfNavBar theme="transparent" title="师傅工作台" :fixed="false" />
|
||||
<!-- 1. 顶部统一固定吸顶导航栏(与其他页面 100% 统一,固定在手机顶部不随滚动划出) -->
|
||||
<YjyfNavBar theme="orange" title="师傅工作台" :fixed="true" :placeholder="true" />
|
||||
|
||||
<!-- 师傅顶部名片区(与顶部导航栏共享连续渐变零断层接壤) -->
|
||||
<view class="profile-hero" :style="{ marginTop: (-navHeight) + 'px', paddingTop: navHeight + 'px' }">
|
||||
<view class="hero-body">
|
||||
<view class="user-block">
|
||||
<view class="avatar-wrap">
|
||||
@@ -17,13 +14,11 @@
|
||||
<view class="name-row">
|
||||
<text class="user-name">{{ info ? info.realname : '师傅' }}</text>
|
||||
<view class="auth-tag">
|
||||
<image class="auth-ico" src="/static/icons/shield.svg" mode="aspectFit" />
|
||||
<image class="auth-ico" src="/static/icons/shield-white.svg" mode="aspectFit" />
|
||||
<text class="auth-txt">实名认证师傅</text>
|
||||
</view>
|
||||
</view>
|
||||
<text class="user-level" v-if="info">
|
||||
等级 Lv{{ info.level }} · 综合评分 {{ info.score }} 分 · 履约 {{ info.order_count }} 单
|
||||
</text>
|
||||
<text class="user-level" v-if="info">等级 Lv{{ info.level }} · 综合评分 {{ info.score }} 分 · 履约 {{ info.order_count }} 单</text>
|
||||
</view>
|
||||
<view class="status-pill clickable-hover" :class="{ off: info && info.work_status === 'off' }" @tap="toggleWork">
|
||||
<view class="status-dot"></view>
|
||||
@@ -37,7 +32,7 @@
|
||||
<text class="asset-title">可提现工钱(元)</text>
|
||||
<view class="bill-link clickable-hover" @tap="go('/pages/master/wallet')">
|
||||
<text class="bill-txt">账单明细</text>
|
||||
<image class="arrow-ico" src="/static/icons/arrow-right.svg" mode="aspectFit" />
|
||||
<image class="arrow-ico" src="/static/icons/arrow-right-white.svg" mode="aspectFit" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="asset-main">
|
||||
@@ -120,7 +115,7 @@
|
||||
<!-- 5. 身份切换通道(对标工奇兵我要下单找师傅) -->
|
||||
<view class="switch-role-card clickable-hover" @tap="backToUser">
|
||||
<view class="src-left">
|
||||
<image class="src-ico" src="/static/icons/role-switch.svg" mode="aspectFit" />
|
||||
<image class="src-ico" src="/static/icons/master/role-switch-orange.svg" mode="aspectFit" />
|
||||
<view class="src-text">
|
||||
<text class="src-title">我要下单找师傅</text>
|
||||
<text class="src-desc">切换至业主身份发布安装维修需求</text>
|
||||
@@ -136,9 +131,11 @@
|
||||
import api from '@/utils/api.js';
|
||||
import { isLogin, toLogin } from '@/utils/request.js';
|
||||
import { setRole } from '@/utils/role.js';
|
||||
import { getNavBarMetrics } from '@/utils/system.js';
|
||||
import YjyfNavBar from '@/components/YjyfNavBar.vue';
|
||||
|
||||
const emit = defineEmits(['switch-tab']);
|
||||
const navHeight = ref(getNavBarMetrics().totalNavHeight);
|
||||
|
||||
const info = ref(null);
|
||||
const credit = ref(null);
|
||||
@@ -208,6 +205,7 @@
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
navHeight.value = getNavBarMetrics().totalNavHeight;
|
||||
load();
|
||||
});
|
||||
|
||||
@@ -217,19 +215,27 @@
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.workbench-view { min-height: 100vh; background: #F5F6F8; padding-bottom: 40rpx; }
|
||||
.workbench-view {
|
||||
min-height: calc(100vh - 104rpx - env(safe-area-inset-bottom));
|
||||
width: 100%;
|
||||
overflow-x: hidden;
|
||||
box-sizing: border-box;
|
||||
background: #F5F6F8;
|
||||
padding-bottom: 40rpx;
|
||||
}
|
||||
|
||||
/* 顶部名片(单一连续大渐变) */
|
||||
/* 顶部名片(单一连续大渐变,与 TopBar 共享连续渐变起点) */
|
||||
.profile-hero {
|
||||
position: relative; overflow: hidden; padding-bottom: 30rpx;
|
||||
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;
|
||||
}
|
||||
.hero-body {
|
||||
position: relative; z-index: 2; padding: 10rpx 28rpx 0;
|
||||
position: relative; z-index: 2; padding: 16rpx 24rpx 0;
|
||||
}
|
||||
.hero-deco { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.13); }
|
||||
.d1 { width: 320rpx; height: 320rpx; right: -120rpx; top: -130rpx; }
|
||||
.d2 { width: 180rpx; height: 180rpx; left: -80rpx; bottom: -60rpx; }
|
||||
|
||||
.user-block { position: relative; display: flex; align-items: center; justify-content: space-between; }
|
||||
.avatar-wrap {
|
||||
@@ -242,21 +248,21 @@
|
||||
.name-row { display: flex; align-items: center; }
|
||||
.user-name { font-size: 36rpx; font-weight: 700; color: #fff; }
|
||||
.auth-tag {
|
||||
margin-left: 12rpx; display: flex; align-items: center; padding: 2rpx 12rpx;
|
||||
border-radius: 8rpx; background: rgba(255,255,255,0.22);
|
||||
margin-left: 12rpx; display: inline-flex; align-items: center; justify-content: center; height: 36rpx; padding: 0 12rpx;
|
||||
border-radius: 8rpx; background: rgba(255,255,255,0.22); line-height: 1;
|
||||
}
|
||||
.auth-ico { width: 20rpx; height: 20rpx; margin-right: 6rpx; }
|
||||
.auth-txt { font-size: 18rpx; color: #fff; font-weight: 600; }
|
||||
.auth-txt { font-size: 22rpx; color: #fff; font-weight: 600; line-height: 1; }
|
||||
.user-level { margin-top: 8rpx; font-size: 22rpx; color: rgba(255,255,255,0.92); }
|
||||
|
||||
.status-pill {
|
||||
display: flex; align-items: center; padding: 0 22rpx; height: 54rpx;
|
||||
border-radius: 27rpx; background: #fff; box-shadow: 0 4rpx 12rpx rgba(0,0,0,0.08);
|
||||
display: inline-flex; align-items: center; justify-content: center; padding: 0 22rpx; height: 54rpx;
|
||||
border-radius: 27rpx; background: #fff; box-shadow: 0 4rpx 12rpx rgba(0,0,0,0.08); line-height: 1;
|
||||
}
|
||||
.status-pill.off { background: rgba(255,255,255,0.35); }
|
||||
.status-dot { width: 12rpx; height: 12rpx; border-radius: 50%; background: #2FA84F; margin-right: 8rpx; }
|
||||
.status-pill.off .status-dot { background: #E8331B; }
|
||||
.status-txt { font-size: 22rpx; font-weight: 600; color: #E36B0C; }
|
||||
.status-txt { font-size: 22rpx; font-weight: 600; color: #E36B0C; line-height: 1; }
|
||||
.status-pill.off .status-txt { color: #fff; }
|
||||
|
||||
/* 资产大卡 */
|
||||
@@ -271,16 +277,16 @@
|
||||
.bill-txt { font-size: 22rpx; color: #fff; font-weight: 500; }
|
||||
.arrow-ico { width: 22rpx; height: 22rpx; margin-left: 4rpx; }
|
||||
|
||||
.asset-main { display: flex; align-items: baseline; justify-content: space-between; margin-top: 10rpx; }
|
||||
.asset-main { display: flex; align-items: center; justify-content: space-between; margin-top: 10rpx; }
|
||||
.asset-val { font-size: 56rpx; font-weight: 700; color: #fff; line-height: 1.1; }
|
||||
.withdraw-btn {
|
||||
padding: 0 32rpx; height: 56rpx; line-height: 56rpx; border-radius: 28rpx;
|
||||
padding: 0 32rpx; height: 56rpx; display: inline-flex; align-items: center; justify-content: center; line-height: 1; border-radius: 28rpx;
|
||||
background: #fff; color: #E36B0C; font-size: 24rpx; font-weight: 700;
|
||||
box-shadow: 0 4rpx 12rpx rgba(0,0,0,0.08);
|
||||
}
|
||||
.asset-sub { display: flex; align-items: center; margin-top: 14rpx; padding-top: 14rpx; border-top: 1rpx solid rgba(255,255,255,0.22); }
|
||||
.sub-item { font-size: 22rpx; color: rgba(255,255,255,0.9); }
|
||||
.sub-divider { margin: 0 16rpx; font-size: 18rpx; color: rgba(255,255,255,0.5); }
|
||||
.sub-divider { margin: 0 16rpx; font-size: 22rpx; color: rgba(255,255,255,0.5); }
|
||||
|
||||
/* 菜单组 */
|
||||
.menu-card {
|
||||
@@ -297,8 +303,9 @@
|
||||
.mi-title { font-size: 28rpx; font-weight: 600; color: #2C2C2E; }
|
||||
.mi-right { display: flex; align-items: center; }
|
||||
.mi-badge {
|
||||
padding: 2rpx 14rpx; border-radius: 14rpx; background: #FDEEEB;
|
||||
color: #E8331B; font-size: 20rpx; font-weight: 600; margin-right: 8rpx;
|
||||
height: 38rpx; line-height: 38rpx; text-align: center; padding: 0 14rpx; border-radius: 19rpx; background: #FDEEEB;
|
||||
display: inline-flex; align-items: center; justify-content: center;
|
||||
color: #E8331B; font-size: 22rpx; font-weight: 600; margin-right: 8rpx;
|
||||
}
|
||||
.mi-tip { font-size: 24rpx; color: #9A9A9A; margin-right: 8rpx; }
|
||||
.mi-arrow { width: 24rpx; height: 24rpx; }
|
||||
@@ -313,7 +320,7 @@
|
||||
.card-tip { font-size: 22rpx; color: #9A9A9A; }
|
||||
.skills-box { display: flex; flex-wrap: wrap; }
|
||||
.skill-tag {
|
||||
padding: 0 22rpx; line-height: 52rpx; margin: 0 12rpx 12rpx 0;
|
||||
padding: 0 22rpx; height: 52rpx; line-height: 52rpx; text-align: center; display: inline-flex; align-items: center; justify-content: center; margin: 0 12rpx 12rpx 0;
|
||||
border-radius: 26rpx; background: #FFF3E6; color: #C4580A; font-size: 22rpx; font-weight: 500;
|
||||
}
|
||||
.skill-tag.empty { background: #F5F5F5; color: #9A9A9A; }
|
||||
|
||||
在新工单中引用
屏蔽一个用户