- 新增 back-white.svg 和 home.svg 图标文件 - 重构 YjyfNavBar 组件,默认主题改为橙色,使用 SVG 图标 - 统一各页面导航栏为自定义组件,替换原生导航栏 - 调整所有页面背景色为 #F5F6F8,统一视觉风格 - 优化渐变背景为 135deg 线性渐变,消除分层断层 - 更新 pages.json 配置,所有页面使用自定义导航样式
741 行
18 KiB
Vue
741 行
18 KiB
Vue
<template>
|
||
<view class="page">
|
||
<!-- 顶部一体化沉浸式头部(单一连续背景渐变,彻底消除分层割裂) -->
|
||
<view class="hall-hero">
|
||
<YjyfNavBar theme="transparent" title="接单大厅" :fixed="false" />
|
||
<view class="hall-header-body">
|
||
<view class="header-main">
|
||
<view class="h-user">
|
||
<view class="name-line">
|
||
<text class="h-name">{{ info ? info.realname : '优匠师傅' }}</text>
|
||
<view class="level-badge" v-if="info">
|
||
<text class="level-txt">Lv{{ info.level }}</text>
|
||
</view>
|
||
</view>
|
||
<text class="h-stats">{{ info ? ('综合评分 ' + info.score + ' · 累计完成 ' + info.order_count + ' 单') : '优匠优服师傅工作端' }}</text>
|
||
</view>
|
||
<view class="work-toggle clickable-hover" :class="{ paused: info && info.work_status === 'off' }" @tap="toggleWork">
|
||
<view class="dot"></view>
|
||
<text class="toggle-txt">{{ info && info.work_status === 'off' ? '已暂停' : '听单中' }}</text>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<!-- 跑马灯动态通知广播(对标工奇兵广播条) -->
|
||
<view class="broadcast-bar" v-if="list.length">
|
||
<image class="broadcast-ico" src="/static/icons/nav-bell.svg" mode="aspectFit" />
|
||
<swiper class="broadcast-swiper" :vertical="true" :autoplay="true" :interval="3500" :circular="true">
|
||
<swiper-item class="swiper-item" v-for="(item, idx) in broadcastList" :key="idx">
|
||
<text class="broadcast-txt">{{ item }}</text>
|
||
</swiper-item>
|
||
</swiper>
|
||
</view>
|
||
|
||
<!-- 工奇兵风格筛选导航栏:全部 / 一口价 / 师傅竞价 / 用户定价 -->
|
||
<view class="filter-sticky">
|
||
<view class="type-tabs">
|
||
<view v-for="t in typeTabs" :key="t.key" class="t-tab clickable-hover" :class="{ on: type === t.key }" @tap="type = t.key">
|
||
<text class="t-txt">{{ t.name }}</text>
|
||
<view class="t-dot" v-if="t.badge && list.length"></view>
|
||
</view>
|
||
</view>
|
||
<view class="sort-tabs">
|
||
<view v-for="s in sortTabs" :key="s.key" class="s-tab clickable-hover" :class="{ on: sort === s.key }" @tap="sort = s.key">
|
||
{{ s.name }}
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<!-- 订单列表(工奇兵高密度信息流卡片,点击卡片进详情) -->
|
||
<view class="list">
|
||
<view class="item clickable-hover" v-for="o in list" :key="o.id" @tap="goDetail(o)">
|
||
<view class="hd">
|
||
<view class="hd-left">
|
||
<text class="tag-urgent" v-if="Number(o.urgent)">急单</text>
|
||
<text class="tag-mode quote" v-if="o.price_type === 'quote'">师傅竞价</text>
|
||
<text class="tag-mode custom" v-if="o.price_type === 'custom'">用户定价</text>
|
||
<text class="tag-mode fixed" v-if="o.price_type === 'fixed'">一口价</text>
|
||
<text class="svc">{{ o.service_name }}</text>
|
||
</view>
|
||
<view class="amt-box">
|
||
<text class="amt-symbol" v-if="o.price_type !== 'quote'">¥</text>
|
||
<text class="amt">{{ o.price_type === 'quote' ? '竞价中' : o.pay_amount }}</text>
|
||
</view>
|
||
</view>
|
||
|
||
<view class="bd">
|
||
<!-- 地址与距离 -->
|
||
<view class="info-row">
|
||
<image class="row-icon" src="/static/icons/master/order-loc.svg" mode="aspectFit" />
|
||
<text class="row-txt addr-txt">{{ o.address }}</text>
|
||
<text class="distance-txt" v-if="o.distance_text">{{ o.distance_text }}</text>
|
||
</view>
|
||
|
||
<!-- 预约上门时间 -->
|
||
<view class="info-row">
|
||
<image class="row-icon" src="/static/icons/master/order-time.svg" mode="aspectFit" />
|
||
<text class="row-txt">期望上门:{{ o.appoint_text }}</text>
|
||
</view>
|
||
|
||
<!-- 服务规格与条件微徽标 -->
|
||
<view class="badge-row">
|
||
<text class="badge">楼层 {{ o.floor }} 层</text>
|
||
<text class="badge">{{ Number(o.has_elevator) ? '有电梯' : '步梯无电梯' }}</text>
|
||
<text class="badge" v-if="o.goods_model">型号:{{ o.goods_model }}</text>
|
||
</view>
|
||
|
||
<!-- 客户工单要求备注 -->
|
||
<view class="remark-row" v-if="o.remark">
|
||
<text class="remark-tag">工单要求</text>
|
||
<text class="remark-txt">{{ o.remark }}</text>
|
||
</view>
|
||
</view>
|
||
|
||
<view class="ft" @tap.stop>
|
||
<view class="time-left">
|
||
<text class="left-label">有效倒计时:</text>
|
||
<text class="left-val" :class="{ urgent: o.left_seconds <= 1800 }">
|
||
{{ o.left_seconds > 0 ? countdown(o.left_seconds) : '即将超时' }}
|
||
</text>
|
||
</view>
|
||
<view class="ft-btns">
|
||
<view class="quote-btn clickable-hover" v-if="o.price_type === 'quote'" @tap="goDetail(o)">
|
||
立即报价({{ o.quote_count }})
|
||
</view>
|
||
<view class="grab-btn clickable-hover" v-else @tap="openGrabConfirm(o)">
|
||
{{ o.price_type === 'custom' ? '按此价接单' : '立即抢单' }}
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<!-- 空状态 -->
|
||
<view class="empty-state" v-if="!loading && !list.length">
|
||
<image class="empty-img" src="/static/icons/master/empty-orders.svg" mode="aspectFit" />
|
||
<text class="empty-title">当前大厅暂无待接工单</text>
|
||
<text class="empty-sub">保持听单中状态,有新订单将第一时间呈现</text>
|
||
<view class="refresh-cta clickable-hover" @tap="load">立即刷新大厅</view>
|
||
</view>
|
||
|
||
<!-- 抢单防误点二次确认弹窗(100% 对标工奇兵实机图3) -->
|
||
<view class="confirm-mask" v-if="selectedOrder" @tap="selectedOrder = null">
|
||
<view class="confirm-dialog" @tap.stop>
|
||
<text class="cd-title">提示</text>
|
||
<text class="cd-content">请确定已经了解清楚订单服务要求、商品数量、服务地址等信息。您确定可以承揽,并能完成工作,如随意抢单,将影响您的订单推送优先级。</text>
|
||
<view class="cd-actions">
|
||
<view class="cd-btn cancel clickable-hover" @tap="selectedOrder = null">
|
||
<text class="cd-btn-txt cancel">再看看</text>
|
||
</view>
|
||
<view class="cd-btn ok clickable-hover" :class="{ disabled: grabbing }" @tap="confirmGrab">
|
||
<text class="cd-btn-txt ok">{{ grabbing ? '抢单中...' : '确定' }}</text>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<!-- 师傅端专属底部导航 (当前 Tab 0: 首页) -->
|
||
<YjyfMasterTabBar :current="0" />
|
||
</view>
|
||
</template>
|
||
|
||
<script setup>
|
||
import { ref, computed, watch } from 'vue';
|
||
import { onShow, onPullDownRefresh } from '@dcloudio/uni-app';
|
||
import api from '@/utils/api.js';
|
||
import { isLogin, toLogin } from '@/utils/request.js';
|
||
import YjyfMasterTabBar from '@/components/YjyfMasterTabBar.vue';
|
||
|
||
const list = ref([]);
|
||
const info = ref(null);
|
||
const loading = ref(false);
|
||
const type = ref('all');
|
||
const sort = ref('new');
|
||
const selectedOrder = ref(null);
|
||
const grabbing = ref(false);
|
||
|
||
const typeTabs = [
|
||
{ key: 'all', name: '全部订单', badge: true },
|
||
{ key: 'fixed', name: '一口价' },
|
||
{ key: 'quote', name: '师傅竞价' },
|
||
{ key: 'custom', name: '用户定价' }
|
||
];
|
||
const sortTabs = [
|
||
{ key: 'new', name: '最新发布' },
|
||
{ key: 'amount', name: '报酬最高' },
|
||
{ key: 'urgent', name: '急单优先' },
|
||
{ key: 'time', name: '时效最近' }
|
||
];
|
||
|
||
// 根据真实订单列表动态生成走马灯播报(拒绝假数据)
|
||
const broadcastList = computed(() => {
|
||
if (!list.value.length) return [];
|
||
return list.value.slice(0, 5).map((o) => {
|
||
const addrPart = (o.address || '本地').slice(0, 6);
|
||
const priceDesc = o.price_type === 'quote' ? '需师傅竞价' : `报酬 ¥${o.pay_amount}`;
|
||
return `${addrPart}发布【${o.service_name}】工单,${priceDesc} · 开放接单`;
|
||
});
|
||
});
|
||
|
||
watch([type, sort], () => load());
|
||
|
||
function countdown(sec) {
|
||
const s = Number(sec) || 0;
|
||
if (s <= 0) return '已结束';
|
||
const h = Math.floor(s / 3600);
|
||
const m = Math.floor((s % 3600) / 60);
|
||
if (h > 0) {
|
||
return `${h}小时${m}分`;
|
||
}
|
||
return `${m}分钟`;
|
||
}
|
||
|
||
function goDetail(o) {
|
||
uni.navigateTo({ url: '/pages/master/detail?id=' + o.id });
|
||
}
|
||
|
||
function openGrabConfirm(o) {
|
||
selectedOrder.value = o;
|
||
}
|
||
|
||
async function confirmGrab() {
|
||
if (grabbing.value || !selectedOrder.value) return;
|
||
grabbing.value = true;
|
||
const o = selectedOrder.value;
|
||
try {
|
||
const res = await api.masterGrab({ order_id: o.id });
|
||
selectedOrder.value = null;
|
||
uni.showToast({ title: '抢单成功!', icon: 'success' });
|
||
setTimeout(() => {
|
||
uni.navigateTo({
|
||
url: `/pages/master/success?order_id=${o.id}&mobile=${res.user_mobile || ''}`
|
||
});
|
||
}, 500);
|
||
} catch (e) {
|
||
uni.showToast({ title: e.msg || '手慢了,该订单已被抢', icon: 'none' });
|
||
} finally {
|
||
grabbing.value = false;
|
||
}
|
||
}
|
||
|
||
async function load() {
|
||
if (!isLogin()) { toLogin(); return; }
|
||
loading.value = true;
|
||
try {
|
||
const res = await api.masterHall({ limit: 20, type: type.value, sort: sort.value });
|
||
list.value = res.list || [];
|
||
} catch (e) {
|
||
}
|
||
try {
|
||
const me = await api.masterInfo();
|
||
info.value = me.applied ? me.master : null;
|
||
} catch (e) {}
|
||
loading.value = false;
|
||
}
|
||
|
||
async function toggleWork() {
|
||
if (!info.value) return;
|
||
const next = info.value.work_status === 'off' ? 'on' : 'off';
|
||
try {
|
||
await api.masterToggle({ work_status: next });
|
||
info.value.work_status = next;
|
||
uni.showToast({ title: next === 'on' ? '已开启接单听单' : '已暂停接单', icon: 'none' });
|
||
} catch (e) {}
|
||
}
|
||
|
||
onShow(() => {
|
||
load();
|
||
});
|
||
|
||
onPullDownRefresh(() => {
|
||
load().then(() => uni.stopPullDownRefresh());
|
||
});
|
||
</script>
|
||
|
||
<style scoped>
|
||
.page {
|
||
min-height: 100vh;
|
||
background: #F5F6F8;
|
||
padding-bottom: 20rpx;
|
||
}
|
||
|
||
/* 顶部一体化沉浸师傅状态区(单一连续渐变) */
|
||
.hall-hero {
|
||
background: linear-gradient(135deg, #FFA93F 0%, #F0710D 100%);
|
||
position: relative;
|
||
overflow: hidden;
|
||
}
|
||
.hall-header-body {
|
||
padding: 6rpx 28rpx 24rpx;
|
||
}
|
||
.header-main {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
}
|
||
.h-user {
|
||
flex: 1;
|
||
min-width: 0;
|
||
}
|
||
.name-line {
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
.h-name {
|
||
font-size: 34rpx;
|
||
font-weight: 700;
|
||
color: #FFFFFF;
|
||
}
|
||
.level-badge {
|
||
margin-left: 12rpx;
|
||
padding: 2rpx 12rpx;
|
||
background: rgba(255, 255, 255, 0.25);
|
||
border-radius: 8rpx;
|
||
}
|
||
.level-txt {
|
||
font-size: 20rpx;
|
||
color: #FFFFFF;
|
||
font-weight: 600;
|
||
}
|
||
.h-stats {
|
||
display: block;
|
||
margin-top: 6rpx;
|
||
font-size: 22rpx;
|
||
color: rgba(255, 255, 255, 0.9);
|
||
}
|
||
.work-toggle {
|
||
display: flex;
|
||
align-items: center;
|
||
background: #FFFFFF;
|
||
padding: 0 20rpx;
|
||
height: 52rpx;
|
||
border-radius: 26rpx;
|
||
box-shadow: 0 4rpx 10rpx rgba(0, 0, 0, 0.08);
|
||
}
|
||
.work-toggle.paused {
|
||
background: rgba(255, 255, 255, 0.35);
|
||
}
|
||
.dot {
|
||
width: 12rpx;
|
||
height: 12rpx;
|
||
border-radius: 50%;
|
||
background: #2FA84F;
|
||
margin-right: 8rpx;
|
||
}
|
||
.work-toggle.paused .dot {
|
||
background: #E8331B;
|
||
}
|
||
.toggle-txt {
|
||
font-size: 22rpx;
|
||
font-weight: 600;
|
||
color: #E36B0C;
|
||
}
|
||
.work-toggle.paused .toggle-txt {
|
||
color: #FFFFFF;
|
||
}
|
||
|
||
/* 跑马灯动态通知 */
|
||
.broadcast-bar {
|
||
background: #FFF7ED;
|
||
border-bottom: 1rpx solid #FFEDD5;
|
||
padding: 12rpx 28rpx;
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
.broadcast-ico {
|
||
width: 28rpx;
|
||
height: 28rpx;
|
||
margin-right: 12rpx;
|
||
flex-shrink: 0;
|
||
}
|
||
.broadcast-swiper {
|
||
flex: 1;
|
||
height: 36rpx;
|
||
}
|
||
.swiper-item {
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
.broadcast-txt {
|
||
font-size: 22rpx;
|
||
color: #9A3412;
|
||
overflow: hidden;
|
||
white-space: nowrap;
|
||
text-overflow: ellipsis;
|
||
}
|
||
|
||
/* 筛选标签栏 */
|
||
.filter-sticky {
|
||
position: sticky;
|
||
top: 0;
|
||
z-index: 10;
|
||
background: #FFFFFF;
|
||
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.04);
|
||
}
|
||
.type-tabs {
|
||
display: flex;
|
||
padding: 0 12rpx;
|
||
border-bottom: 1rpx solid #F0F0F0;
|
||
}
|
||
.t-tab {
|
||
position: relative;
|
||
padding: 22rpx 20rpx 18rpx;
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
.t-txt {
|
||
font-size: 28rpx;
|
||
color: #666666;
|
||
transition: all 0.15s ease;
|
||
}
|
||
.t-tab.on .t-txt {
|
||
font-size: 30rpx;
|
||
font-weight: 700;
|
||
color: #1F1F1F;
|
||
}
|
||
.t-tab.on::after {
|
||
content: '';
|
||
position: absolute;
|
||
bottom: 0;
|
||
left: 20rpx;
|
||
right: 20rpx;
|
||
height: 4rpx;
|
||
border-radius: 2rpx;
|
||
background: #F0710D;
|
||
}
|
||
.t-dot {
|
||
width: 10rpx;
|
||
height: 10rpx;
|
||
border-radius: 50%;
|
||
background: #EF4444;
|
||
margin-left: 6rpx;
|
||
margin-top: -14rpx;
|
||
}
|
||
|
||
.sort-tabs {
|
||
display: flex;
|
||
padding: 14rpx 24rpx;
|
||
background: #FAFAFA;
|
||
}
|
||
.s-tab {
|
||
margin-right: 16rpx;
|
||
padding: 6rpx 18rpx;
|
||
border-radius: 20rpx;
|
||
font-size: 22rpx;
|
||
color: #666666;
|
||
background: #FFFFFF;
|
||
border: 1rpx solid #E5E7EB;
|
||
}
|
||
.s-tab.on {
|
||
color: #F0710D;
|
||
background: #FFF7ED;
|
||
border-color: #F0710D;
|
||
font-weight: 600;
|
||
}
|
||
|
||
/* 订单列表 */
|
||
.list {
|
||
padding: 16rpx 20rpx;
|
||
}
|
||
.item {
|
||
background: #FFFFFF;
|
||
border-radius: 20rpx;
|
||
padding: 24rpx;
|
||
margin-bottom: 16rpx;
|
||
box-shadow: 0 4rpx 14rpx rgba(0, 0, 0, 0.04);
|
||
}
|
||
.hd {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
padding-bottom: 16rpx;
|
||
border-bottom: 1rpx solid #F5F5F5;
|
||
}
|
||
.hd-left {
|
||
display: flex;
|
||
align-items: center;
|
||
flex-wrap: wrap;
|
||
flex: 1;
|
||
min-width: 0;
|
||
}
|
||
.tag-urgent {
|
||
font-size: 20rpx;
|
||
color: #FFFFFF;
|
||
background: #EF4444;
|
||
padding: 2rpx 10rpx;
|
||
border-radius: 6rpx;
|
||
margin-right: 10rpx;
|
||
font-weight: 700;
|
||
}
|
||
.tag-mode {
|
||
font-size: 20rpx;
|
||
padding: 2rpx 10rpx;
|
||
border-radius: 6rpx;
|
||
margin-right: 10rpx;
|
||
font-weight: 600;
|
||
}
|
||
.tag-mode.fixed {
|
||
background: #FFF7ED;
|
||
color: #EA580C;
|
||
border: 1rpx solid #FFEDD5;
|
||
}
|
||
.tag-mode.quote {
|
||
background: #EFF6FF;
|
||
color: #2563EB;
|
||
border: 1rpx solid #DBEAFE;
|
||
}
|
||
.tag-mode.custom {
|
||
background: #ECFDF5;
|
||
color: #059669;
|
||
border: 1rpx solid #D1FAE5;
|
||
}
|
||
.svc {
|
||
font-size: 30rpx;
|
||
font-weight: 700;
|
||
color: #1F1F1F;
|
||
}
|
||
.amt-box {
|
||
display: flex;
|
||
align-items: baseline;
|
||
margin-left: 16rpx;
|
||
}
|
||
.amt-symbol {
|
||
font-size: 24rpx;
|
||
font-weight: 700;
|
||
color: #EA580C;
|
||
}
|
||
.amt {
|
||
font-size: 40rpx;
|
||
font-weight: 800;
|
||
color: #EA580C;
|
||
line-height: 1;
|
||
}
|
||
|
||
.bd {
|
||
padding: 18rpx 0;
|
||
}
|
||
.info-row {
|
||
display: flex;
|
||
align-items: center;
|
||
margin-bottom: 12rpx;
|
||
}
|
||
.row-icon {
|
||
width: 26rpx;
|
||
height: 26rpx;
|
||
margin-right: 10rpx;
|
||
flex-shrink: 0;
|
||
}
|
||
.row-txt {
|
||
font-size: 26rpx;
|
||
color: #4B5563;
|
||
line-height: 36rpx;
|
||
}
|
||
.addr-txt {
|
||
flex: 1;
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
white-space: nowrap;
|
||
text-overflow: ellipsis;
|
||
}
|
||
.distance-txt {
|
||
font-size: 22rpx;
|
||
color: #EA580C;
|
||
background: #FFF7ED;
|
||
padding: 2rpx 10rpx;
|
||
border-radius: 6rpx;
|
||
margin-left: 12rpx;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.badge-row {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 10rpx;
|
||
margin-top: 10rpx;
|
||
}
|
||
.badge {
|
||
font-size: 22rpx;
|
||
color: #6B7280;
|
||
background: #F3F4F6;
|
||
padding: 4rpx 12rpx;
|
||
border-radius: 8rpx;
|
||
}
|
||
|
||
.remark-row {
|
||
margin-top: 14rpx;
|
||
padding: 10rpx 16rpx;
|
||
background: #FFFBEB;
|
||
border-radius: 10rpx;
|
||
display: flex;
|
||
align-items: baseline;
|
||
}
|
||
.remark-tag {
|
||
font-size: 20rpx;
|
||
color: #B45309;
|
||
font-weight: 700;
|
||
margin-right: 8rpx;
|
||
flex-shrink: 0;
|
||
}
|
||
.remark-txt {
|
||
font-size: 22rpx;
|
||
color: #92400E;
|
||
line-height: 32rpx;
|
||
}
|
||
|
||
.ft {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
padding-top: 16rpx;
|
||
border-top: 1rpx solid #F5F5F5;
|
||
}
|
||
.time-left {
|
||
display: flex;
|
||
align-items: baseline;
|
||
}
|
||
.left-label {
|
||
font-size: 22rpx;
|
||
color: #9CA3AF;
|
||
}
|
||
.left-val {
|
||
font-size: 22rpx;
|
||
color: #6B7280;
|
||
font-weight: 600;
|
||
}
|
||
.left-val.urgent {
|
||
color: #EF4444;
|
||
}
|
||
|
||
.ft-btns {
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
.quote-btn {
|
||
height: 64rpx;
|
||
padding: 0 28rpx;
|
||
border-radius: 32rpx;
|
||
background: #EFF6FF;
|
||
border: 1rpx solid #BFDBFE;
|
||
color: #2563EB;
|
||
font-size: 26rpx;
|
||
font-weight: 600;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
.grab-btn {
|
||
height: 64rpx;
|
||
padding: 0 32rpx;
|
||
border-radius: 32rpx;
|
||
background: linear-gradient(135deg, #F98D25 0%, #ED6F0E 100%);
|
||
color: #FFFFFF;
|
||
font-size: 26rpx;
|
||
font-weight: 700;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
box-shadow: 0 4rpx 14rpx rgba(237, 111, 14, 0.3);
|
||
}
|
||
|
||
.empty-state {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
padding: 100rpx 40rpx;
|
||
}
|
||
.empty-img {
|
||
width: 200rpx;
|
||
height: 200rpx;
|
||
}
|
||
.empty-title {
|
||
margin-top: 24rpx;
|
||
font-size: 30rpx;
|
||
font-weight: 600;
|
||
color: #374151;
|
||
}
|
||
.empty-sub {
|
||
margin-top: 8rpx;
|
||
font-size: 24rpx;
|
||
color: #9CA3AF;
|
||
}
|
||
.refresh-cta {
|
||
margin-top: 32rpx;
|
||
padding: 14rpx 36rpx;
|
||
background: #FFF7ED;
|
||
border: 1rpx solid #FFEDD5;
|
||
color: #EA580C;
|
||
font-size: 26rpx;
|
||
font-weight: 600;
|
||
border-radius: 28rpx;
|
||
}
|
||
|
||
/* 抢单二次确认弹窗(100% 对标工奇兵实机图3) */
|
||
.confirm-mask {
|
||
position: fixed;
|
||
top: 0; left: 0; right: 0; bottom: 0;
|
||
background: rgba(0, 0, 0, 0.5);
|
||
z-index: 999;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
padding: 0 60rpx;
|
||
box-sizing: border-box;
|
||
}
|
||
.confirm-dialog {
|
||
width: 100%;
|
||
background: #FFFFFF;
|
||
border-radius: 28rpx;
|
||
padding: 40rpx 36rpx 32rpx;
|
||
box-sizing: border-box;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
box-shadow: 0 16rpx 48rpx rgba(0, 0, 0, 0.2);
|
||
}
|
||
.cd-title {
|
||
font-size: 34rpx;
|
||
font-weight: 700;
|
||
color: #1F1F1F;
|
||
}
|
||
.cd-content {
|
||
margin-top: 24rpx;
|
||
font-size: 28rpx;
|
||
line-height: 44rpx;
|
||
color: #4B5563;
|
||
text-align: justify;
|
||
}
|
||
.cd-actions {
|
||
width: 100%;
|
||
margin-top: 36rpx;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
border-top: 1rpx solid #F3F4F6;
|
||
padding-top: 24rpx;
|
||
}
|
||
.cd-btn {
|
||
flex: 1;
|
||
height: 80rpx;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
.cd-btn.cancel {
|
||
border-right: 1rpx solid #F3F4F6;
|
||
}
|
||
.cd-btn-txt.cancel {
|
||
font-size: 30rpx;
|
||
color: #6B7280;
|
||
}
|
||
.cd-btn-txt.ok {
|
||
font-size: 30rpx;
|
||
font-weight: 700;
|
||
color: #EA580C;
|
||
}
|
||
.cd-btn.disabled {
|
||
opacity: 0.6;
|
||
}
|
||
</style>
|