feat(ui): 新增/优化界面样式、图标及交互组件
- 新增多个功能图标(箭头、盾牌、位置等) - 优化全局按钮、标签、输入框等组件样式 - 修复导航栏高度计算逻辑,适配微信小程序 - 优化消息页、订单页、个人中心等页面布局 - 修复微信支付配置及通知接口问题
这个提交包含在:
@@ -9,7 +9,7 @@
|
||||
>
|
||||
<template #left>
|
||||
<view class="nav-loc-pill clickable-hover" @tap="onCitySwitch">
|
||||
<image class="nav-loc-icon" src="/static/icons/menu-address.svg" mode="aspectFit" />
|
||||
<image class="nav-loc-icon" src="/static/icons/location-pin-white.svg" mode="aspectFit" />
|
||||
<text class="nav-loc-text">全国服务</text>
|
||||
<view class="nav-loc-arrow"></view>
|
||||
</view>
|
||||
@@ -17,7 +17,7 @@
|
||||
</YjyfNavBar>
|
||||
|
||||
<!-- ==================== 2. 搜索条区域(品牌橙色底座 · 与 TopBar 自然接壤) ==================== -->
|
||||
<view class="hero-search-area">
|
||||
<view class="hero-search-area" :style="{ marginTop: (-navHeight) + 'px', paddingTop: (navHeight + 6) + 'px' }">
|
||||
<!-- 白玉悬浮搜索坞 -->
|
||||
<view class="search-dock-box" @tap="onSearch">
|
||||
<image class="search-icon" src="/static/icons/search-gray.svg" mode="aspectFit" />
|
||||
@@ -256,22 +256,12 @@
|
||||
import api from '@/utils/api.js';
|
||||
import { isLogin, toLogin } from '@/utils/request.js';
|
||||
import { ensureSilentLogin } from '@/utils/wxlogin.js';
|
||||
import { getWindowInfoSafe } from '@/utils/system.js';
|
||||
import { getNavBarMetrics } from '@/utils/system.js';
|
||||
|
||||
const emit = defineEmits(['switch-tab']);
|
||||
|
||||
/* ---------- 系统适配:状态栏 / 导航栏高度 ---------- */
|
||||
const statusBarHeight = ref(20);
|
||||
const navBarHeight = ref(44);
|
||||
|
||||
try {
|
||||
const info = getWindowInfoSafe();
|
||||
if (info && info.statusBarHeight) statusBarHeight.value = info.statusBarHeight;
|
||||
if (typeof uni.getMenuButtonBoundingClientRect === 'function') {
|
||||
const menu = uni.getMenuButtonBoundingClientRect();
|
||||
if (menu && menu.height) navBarHeight.value = (menu.top - statusBarHeight.value) * 2 + menu.height;
|
||||
}
|
||||
} catch (e) {}
|
||||
const navHeight = ref(getNavBarMetrics().totalNavHeight);
|
||||
|
||||
/* ---------- 响应式数据(100% 真实接口驱动) ---------- */
|
||||
const banners = ref([]);
|
||||
@@ -478,39 +468,48 @@
|
||||
|
||||
/* ---------- 1. TopBar 左侧定位药丸 (嵌入 YjyfNavBar #left) ---------- */
|
||||
.nav-loc-pill {
|
||||
display: flex;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 6rpx 16rpx;
|
||||
justify-content: center;
|
||||
height: 48rpx;
|
||||
padding: 0 18rpx;
|
||||
background: rgba(255, 255, 255, 0.22);
|
||||
border-radius: 28rpx;
|
||||
border-radius: 24rpx;
|
||||
border: 1rpx solid rgba(255, 255, 255, 0.35);
|
||||
backdrop-filter: blur(8rpx);
|
||||
margin-left: 20rpx;
|
||||
margin-left: 16rpx;
|
||||
line-height: 1;
|
||||
transition: background 0.2s ease;
|
||||
}
|
||||
.nav-loc-icon {
|
||||
width: 22rpx;
|
||||
height: 22rpx;
|
||||
width: 24rpx;
|
||||
height: 24rpx;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.nav-loc-text {
|
||||
font-size: 22rpx;
|
||||
font-size: 24rpx;
|
||||
font-weight: 700;
|
||||
color: #FFFFFF;
|
||||
margin: 0 4rpx 0 6rpx;
|
||||
margin: 0 6rpx;
|
||||
white-space: nowrap;
|
||||
line-height: 1;
|
||||
}
|
||||
.nav-loc-arrow {
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-left: 5rpx solid transparent;
|
||||
border-right: 5rpx solid transparent;
|
||||
border-top: 6rpx solid #FFFFFF;
|
||||
border-left: 6rpx solid transparent;
|
||||
border-right: 6rpx solid transparent;
|
||||
border-top: 8rpx solid #FFFFFF;
|
||||
}
|
||||
|
||||
/* ---------- 2. 搜索条区域 (橙色底座 · 与 TopBar 自然接壤) ---------- */
|
||||
/* ---------- 2. 搜索条区域 (橙色底座 · 与 TopBar 共享连续渐变) ---------- */
|
||||
.hero-search-area {
|
||||
background: linear-gradient(135deg, #FFA93F 0%, #F0710D 100%);
|
||||
padding: 10rpx 24rpx 46rpx;
|
||||
background-color: #F0710D;
|
||||
background-image: linear-gradient(135deg, #FFA93F 0%, #F0710D 100%);
|
||||
background-size: 100% 600rpx;
|
||||
background-position: 0 0;
|
||||
background-repeat: no-repeat;
|
||||
padding: 12rpx 24rpx 48rpx;
|
||||
border-bottom-left-radius: 36rpx;
|
||||
border-bottom-right-radius: 36rpx;
|
||||
box-sizing: border-box;
|
||||
@@ -535,16 +534,18 @@
|
||||
margin-left: 14rpx;
|
||||
font-size: 26rpx;
|
||||
color: #9CA3AF;
|
||||
line-height: 1;
|
||||
}
|
||||
.search-action-btn {
|
||||
height: 60rpx;
|
||||
padding: 0 28rpx;
|
||||
border-radius: 30rpx;
|
||||
background: linear-gradient(135deg, #FFA93F 0%, #F0710D 100%);
|
||||
display: flex;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
line-height: 1;
|
||||
box-shadow: 0 4rpx 10rpx rgba(240, 113, 13, 0.28);
|
||||
}
|
||||
.search-action-txt {
|
||||
@@ -552,6 +553,7 @@
|
||||
font-weight: 700;
|
||||
color: #FFFFFF;
|
||||
letter-spacing: 1rpx;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
/* ---------- 3. 主体内容容器 ---------- */
|
||||
@@ -684,9 +686,9 @@
|
||||
letter-spacing: -0.5rpx;
|
||||
}
|
||||
.stat-l {
|
||||
font-size: 20rpx;
|
||||
font-size: 22rpx;
|
||||
color: #4B5563;
|
||||
margin-top: 2rpx;
|
||||
margin-top: 4rpx;
|
||||
}
|
||||
.brand-foot {
|
||||
display: flex;
|
||||
@@ -694,11 +696,11 @@
|
||||
justify-content: space-between;
|
||||
}
|
||||
.foot-desc {
|
||||
font-size: 20rpx;
|
||||
font-size: 22rpx;
|
||||
color: #6B7280;
|
||||
}
|
||||
.foot-date {
|
||||
font-size: 18rpx;
|
||||
font-size: 22rpx;
|
||||
color: #EA580C;
|
||||
font-weight: 600;
|
||||
}
|
||||
@@ -722,11 +724,17 @@
|
||||
margin-bottom: 6rpx;
|
||||
}
|
||||
.badge-main {
|
||||
padding: 2rpx 12rpx;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 36rpx;
|
||||
line-height: 36rpx;
|
||||
text-align: center;
|
||||
padding: 0 12rpx;
|
||||
border-radius: 8rpx;
|
||||
background: #EA580C;
|
||||
color: #FFFFFF;
|
||||
font-size: 18rpx;
|
||||
font-size: 22rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
.slide-title {
|
||||
@@ -833,11 +841,16 @@
|
||||
background: linear-gradient(135deg, #FFA93F 0%, #F0710D 100%);
|
||||
}
|
||||
.tab-badge-pill {
|
||||
font-size: 18rpx;
|
||||
padding: 2rpx 10rpx;
|
||||
border-radius: 12rpx;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 36rpx;
|
||||
font-size: 22rpx;
|
||||
padding: 0 12rpx;
|
||||
border-radius: 18rpx;
|
||||
font-weight: 700;
|
||||
margin-left: 8rpx;
|
||||
line-height: 1;
|
||||
}
|
||||
.tab-badge-pill.hot-badge {
|
||||
color: #EA580C;
|
||||
@@ -856,6 +869,7 @@
|
||||
.more-txt {
|
||||
font-size: 24rpx;
|
||||
color: #6B7280;
|
||||
line-height: 1;
|
||||
}
|
||||
.more-arrow {
|
||||
width: 20rpx;
|
||||
@@ -909,12 +923,18 @@
|
||||
position: absolute;
|
||||
left: 12rpx;
|
||||
top: 12rpx;
|
||||
padding: 4rpx 14rpx;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 40rpx;
|
||||
line-height: 40rpx;
|
||||
text-align: center;
|
||||
padding: 0 14rpx;
|
||||
border-radius: 12rpx;
|
||||
background: rgba(0, 0, 0, 0.45);
|
||||
backdrop-filter: blur(8rpx);
|
||||
color: #FFFFFF;
|
||||
font-size: 20rpx;
|
||||
font-size: 22rpx;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.5rpx;
|
||||
}
|
||||
@@ -922,11 +942,17 @@
|
||||
position: absolute;
|
||||
right: 12rpx;
|
||||
top: 12rpx;
|
||||
padding: 4rpx 14rpx;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 40rpx;
|
||||
line-height: 40rpx;
|
||||
text-align: center;
|
||||
padding: 0 14rpx;
|
||||
border-radius: 12rpx;
|
||||
background: linear-gradient(135deg, #FFA93F 0%, #F0710D 100%);
|
||||
color: #FFFFFF;
|
||||
font-size: 20rpx;
|
||||
font-size: 22rpx;
|
||||
font-weight: 700;
|
||||
box-shadow: 0 2rpx 8rpx rgba(240, 113, 13, 0.35);
|
||||
}
|
||||
@@ -962,24 +988,27 @@
|
||||
color: #F0710D;
|
||||
}
|
||||
.service-price .price-num {
|
||||
font-size: 38rpx;
|
||||
font-size: 36rpx;
|
||||
font-weight: 900;
|
||||
color: #F0710D;
|
||||
margin-left: 2rpx;
|
||||
line-height: 1;
|
||||
}
|
||||
.service-price .price-unit {
|
||||
font-size: 20rpx;
|
||||
font-size: 22rpx;
|
||||
color: #888888;
|
||||
margin-left: 4rpx;
|
||||
}
|
||||
.service-book-btn {
|
||||
display: flex;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 8rpx 18rpx;
|
||||
border-radius: 22rpx;
|
||||
justify-content: center;
|
||||
height: 48rpx;
|
||||
padding: 0 18rpx;
|
||||
border-radius: 24rpx;
|
||||
background: #FFF7F0;
|
||||
border: 1rpx solid #FDE4D0;
|
||||
line-height: 1;
|
||||
transition: background 0.15s ease;
|
||||
}
|
||||
.service-book-btn:active {
|
||||
@@ -989,6 +1018,7 @@
|
||||
font-size: 22rpx;
|
||||
font-weight: 700;
|
||||
color: #F0710D;
|
||||
line-height: 1;
|
||||
}
|
||||
.book-btn-arr {
|
||||
width: 18rpx;
|
||||
@@ -1032,11 +1062,14 @@
|
||||
position: absolute;
|
||||
left: 12rpx;
|
||||
top: 12rpx;
|
||||
padding: 4rpx 14rpx;
|
||||
height: 40rpx;
|
||||
padding: 0 14rpx;
|
||||
border-radius: 12rpx;
|
||||
display: flex;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 6rpx;
|
||||
line-height: 1;
|
||||
}
|
||||
.badge-done {
|
||||
background: rgba(16, 185, 129, 0.90);
|
||||
@@ -1051,8 +1084,9 @@
|
||||
}
|
||||
.badge-done .badge-status-txt {
|
||||
color: #FFFFFF;
|
||||
font-size: 20rpx;
|
||||
font-size: 22rpx;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.flow-card-content {
|
||||
@@ -1103,12 +1137,15 @@
|
||||
align-items: baseline;
|
||||
}
|
||||
.flow-action-btn {
|
||||
display: flex;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 8rpx 18rpx;
|
||||
border-radius: 22rpx;
|
||||
justify-content: center;
|
||||
height: 48rpx;
|
||||
padding: 0 18rpx;
|
||||
border-radius: 24rpx;
|
||||
background: #FFF7F0;
|
||||
border: 1rpx solid #FDE4D0;
|
||||
line-height: 1;
|
||||
transition: background 0.15s ease;
|
||||
}
|
||||
.flow-action-btn:active {
|
||||
@@ -1118,6 +1155,7 @@
|
||||
font-size: 22rpx;
|
||||
font-weight: 700;
|
||||
color: #F0710D;
|
||||
line-height: 1;
|
||||
}
|
||||
.flow-action-arr {
|
||||
width: 18rpx;
|
||||
|
||||
@@ -91,11 +91,11 @@
|
||||
<style scoped>
|
||||
.user-message-view { min-height: 100vh; background: #F5F6F8; padding-bottom: 40rpx; }
|
||||
.head { display: flex; align-items: center; background: #fff; padding: 20rpx 24rpx; box-shadow: 0 4rpx 12rpx rgba(0,0,0,.03); }
|
||||
.cats { flex: 1; display: flex; }
|
||||
.cat { margin-right: 14rpx; padding: 0 22rpx; line-height: 54rpx; border-radius: 27rpx; background: #F5F5F5; font-size: 24rpx; color: #666; }
|
||||
.cat.on { background: #FFF3E6; color: #E36B0C; font-weight: 600; }
|
||||
.read-all { font-size: 24rpx; color: #F0710D; }
|
||||
.list { padding: 22rpx 28rpx; }
|
||||
.cats { flex: 1; display: flex; align-items: center; gap: 16rpx; }
|
||||
.cat { height: 56rpx; padding: 0 26rpx; display: inline-flex; align-items: center; justify-content: center; border-radius: 28rpx; background: #F5F6F8; font-size: 24rpx; color: #444444; line-height: 1; }
|
||||
.cat.on { background: #FFF7F0; color: #F0710D; font-weight: 600; }
|
||||
.read-all { display: inline-flex; align-items: center; height: 56rpx; line-height: 56rpx; font-size: 24rpx; color: #F0710D; font-weight: 500; }
|
||||
.list { padding: 24rpx; }
|
||||
.msg { background: #fff; border-radius: 20rpx; padding: 22rpx 24rpx; margin-bottom: 18rpx; box-shadow: 0 6rpx 20rpx rgba(240,129,31,.06); }
|
||||
.msg.unread { border-left: 6rpx solid #F0710D; }
|
||||
.msg-top { display: flex; align-items: center; }
|
||||
|
||||
@@ -1,13 +1,10 @@
|
||||
<template>
|
||||
<view class="user-mine-view">
|
||||
<!-- 头部个人名片与资产核心区 (Zone 1: 一体化沉浸渐变背景) -->
|
||||
<view class="profile-hero">
|
||||
<view class="hero-bg-deco deco-lg"></view>
|
||||
<view class="hero-bg-deco deco-sm"></view>
|
||||
|
||||
<!-- 沉浸式透明导航栏(单一大背景贯穿,彻底消除分层断层) -->
|
||||
<YjyfNavBar theme="transparent" title="个人中心" :fixed="false" />
|
||||
<!-- 统一固定吸顶导航栏(与其他页面 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-card">
|
||||
@@ -182,7 +179,9 @@
|
||||
import api from '@/utils/api.js';
|
||||
import { isLogin, toLogin, setUser, clearAuth } from '@/utils/request.js';
|
||||
import { getRole, setRole } from '@/utils/role.js';
|
||||
import { getNavBarMetrics } from '@/utils/system.js';
|
||||
|
||||
const navHeight = ref(getNavBarMetrics().totalNavHeight);
|
||||
const user = ref(null);
|
||||
const master = ref(null);
|
||||
const merchant = ref(null);
|
||||
@@ -342,6 +341,7 @@
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
navHeight.value = getNavBarMetrics().totalNavHeight;
|
||||
load();
|
||||
});
|
||||
|
||||
@@ -353,6 +353,8 @@
|
||||
<style scoped>
|
||||
.user-mine-view {
|
||||
min-height: 100vh;
|
||||
width: 100%;
|
||||
overflow-x: hidden;
|
||||
background: #F5F6F8;
|
||||
padding-bottom: calc(150rpx + env(safe-area-inset-bottom));
|
||||
box-sizing: border-box;
|
||||
@@ -362,7 +364,11 @@
|
||||
.profile-hero {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
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;
|
||||
padding-bottom: 36rpx;
|
||||
border-bottom-left-radius: 36rpx;
|
||||
border-bottom-right-radius: 36rpx;
|
||||
@@ -371,26 +377,7 @@
|
||||
.hero-body {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
padding: 10rpx 32rpx 0;
|
||||
}
|
||||
|
||||
.hero-bg-deco {
|
||||
position: absolute;
|
||||
border-radius: 50%;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
pointer-events: none;
|
||||
}
|
||||
.hero-bg-deco.deco-lg {
|
||||
width: 360rpx;
|
||||
height: 360rpx;
|
||||
right: -80rpx;
|
||||
top: -100rpx;
|
||||
}
|
||||
.hero-bg-deco.deco-sm {
|
||||
width: 180rpx;
|
||||
height: 180rpx;
|
||||
left: -40rpx;
|
||||
bottom: -60rpx;
|
||||
padding: 16rpx 32rpx 0;
|
||||
}
|
||||
|
||||
.user-card {
|
||||
@@ -450,13 +437,16 @@
|
||||
|
||||
.role-badge {
|
||||
margin-left: 14rpx;
|
||||
padding: 4rpx 16rpx;
|
||||
height: 40rpx;
|
||||
padding: 0 16rpx;
|
||||
border-radius: 20rpx;
|
||||
background: rgba(255, 255, 255, 0.22);
|
||||
backdrop-filter: blur(4px);
|
||||
border: 1rpx solid rgba(255, 255, 255, 0.35);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.role-badge.is-pro {
|
||||
@@ -465,9 +455,10 @@
|
||||
}
|
||||
|
||||
.role-badge-txt {
|
||||
font-size: 20rpx;
|
||||
font-size: 22rpx;
|
||||
font-weight: 600;
|
||||
color: #FFFFFF;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.role-badge.is-pro .role-badge-txt {
|
||||
@@ -607,10 +598,13 @@
|
||||
|
||||
.wb-btn {
|
||||
flex-shrink: 0;
|
||||
padding: 0 24rpx;
|
||||
height: 56rpx;
|
||||
line-height: 56rpx;
|
||||
border-radius: 28rpx;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0 28rpx;
|
||||
height: 60rpx;
|
||||
line-height: 1;
|
||||
border-radius: 30rpx;
|
||||
background: linear-gradient(135deg, #FFA93F 0%, #F0710D 100%);
|
||||
color: #FFFFFF;
|
||||
font-size: 24rpx;
|
||||
@@ -758,9 +752,15 @@
|
||||
}
|
||||
|
||||
.partner-tag {
|
||||
font-size: 20rpx;
|
||||
padding: 2rpx 14rpx;
|
||||
border-radius: 14rpx;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 40rpx;
|
||||
line-height: 40rpx;
|
||||
text-align: center;
|
||||
font-size: 22rpx;
|
||||
padding: 0 16rpx;
|
||||
border-radius: 20rpx;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,18 +1,15 @@
|
||||
<template>
|
||||
<view class="user-orders-view">
|
||||
<!-- 1. 顶部橙色一体化 Header (状态栏 + 标题/客服 + 搜索栏) -->
|
||||
<view class="top-header" :style="{ paddingTop: statusBarHeight + 'px' }">
|
||||
<!-- 标题与客服 -->
|
||||
<view class="nav-title-row">
|
||||
<text class="page-title">订单管理</text>
|
||||
<view class="nav-actions">
|
||||
<view class="service-btn clickable-hover" @tap="contactService">
|
||||
<image class="service-icon" src="/static/icons/customer-service-white.svg" mode="aspectFit" />
|
||||
<text class="service-txt">客服</text>
|
||||
</view>
|
||||
<!-- 1. 顶部统一橙色导航栏 + 一体化搜索栏 -->
|
||||
<YjyfNavBar theme="orange" title="订单管理" :showBack="false">
|
||||
<template #left>
|
||||
<view class="service-btn clickable-hover" @tap="contactService">
|
||||
<image class="service-icon" src="/static/icons/customer-service-white.svg" mode="aspectFit" />
|
||||
<text class="service-txt">客服</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</template>
|
||||
</YjyfNavBar>
|
||||
<view class="top-header" :style="{ marginTop: (-stickyTop) + 'px', paddingTop: (stickyTop + 4) + 'px' }">
|
||||
<!-- 搜索栏 -->
|
||||
<view class="search-bar-row">
|
||||
<view class="search-input-wrap">
|
||||
@@ -37,7 +34,7 @@
|
||||
</view>
|
||||
|
||||
<!-- 2. 状态分类 Tabs 横向滚动条 (右侧带漏斗筛选按钮) -->
|
||||
<view class="tabs-wrapper">
|
||||
<view class="tabs-wrapper" :style="{ top: stickyTop + 'px' }">
|
||||
<scroll-view class="tabs-scroll" scroll-x :show-scrollbar="false" :scroll-into-view="'tab-' + curTab">
|
||||
<view class="tabs-content">
|
||||
<view
|
||||
@@ -267,15 +264,15 @@
|
||||
import { ref, 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 statusBarHeight = ref(20);
|
||||
try {
|
||||
const sys = uni.getSystemInfoSync();
|
||||
if (sys && sys.statusBarHeight) {
|
||||
statusBarHeight.value = sys.statusBarHeight;
|
||||
}
|
||||
} catch (e) {}
|
||||
const stickyTop = ref(64);
|
||||
function updateStickyTop() {
|
||||
const m = getNavBarMetrics();
|
||||
stickyTop.value = m.totalNavHeight;
|
||||
}
|
||||
updateStickyTop();
|
||||
|
||||
// 顶部横向滚动 Tabs
|
||||
const statusTabs = [
|
||||
@@ -509,6 +506,7 @@
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
updateStickyTop();
|
||||
load();
|
||||
});
|
||||
|
||||
@@ -526,60 +524,51 @@
|
||||
|
||||
/* 1. 顶部橙色一体化 Header */
|
||||
.top-header {
|
||||
background: linear-gradient(135deg, #FFA93F 0%, #F0710D 100%);
|
||||
padding-left: 28rpx;
|
||||
padding-right: 28rpx;
|
||||
padding-bottom: 24rpx;
|
||||
}
|
||||
|
||||
.nav-title-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
height: 88rpx;
|
||||
}
|
||||
|
||||
.page-title {
|
||||
font-size: 38rpx;
|
||||
font-weight: 700;
|
||||
color: #FFFFFF;
|
||||
letter-spacing: 1rpx;
|
||||
}
|
||||
|
||||
.nav-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background-color: #F0710D;
|
||||
background-image: linear-gradient(135deg, #FFA93F 0%, #F0710D 100%);
|
||||
background-size: 100% 600rpx;
|
||||
background-position: 0 0;
|
||||
background-repeat: no-repeat;
|
||||
padding: 8rpx 24rpx 24rpx;
|
||||
}
|
||||
|
||||
.service-btn {
|
||||
display: flex;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
border-radius: 28rpx;
|
||||
padding: 8rpx 20rpx;
|
||||
justify-content: center;
|
||||
height: 52rpx;
|
||||
background: rgba(255, 255, 255, 0.22);
|
||||
border: 1rpx solid rgba(255, 255, 255, 0.35);
|
||||
border-radius: 26rpx;
|
||||
padding: 0 20rpx;
|
||||
margin-left: 12rpx;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.service-icon {
|
||||
width: 28rpx;
|
||||
height: 28rpx;
|
||||
margin-right: 8rpx;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.service-txt {
|
||||
font-size: 26rpx;
|
||||
font-size: 24rpx;
|
||||
color: #FFFFFF;
|
||||
font-weight: 500;
|
||||
font-weight: 600;
|
||||
line-height: 1;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* 搜索栏 */
|
||||
.search-bar-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-top: 12rpx;
|
||||
}
|
||||
|
||||
.search-input-wrap {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
height: 72rpx;
|
||||
background: #FFFFFF;
|
||||
border-radius: 36rpx;
|
||||
@@ -597,6 +586,7 @@
|
||||
|
||||
.search-input {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
font-size: 26rpx;
|
||||
color: #1F1F1F;
|
||||
}
|
||||
@@ -608,6 +598,9 @@
|
||||
|
||||
.clear-btn {
|
||||
padding: 6rpx;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.clear-icon {
|
||||
@@ -617,12 +610,18 @@
|
||||
|
||||
.search-action-btn {
|
||||
padding-left: 24rpx;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 72rpx;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.search-action-txt {
|
||||
font-size: 30rpx;
|
||||
font-size: 28rpx;
|
||||
font-weight: 600;
|
||||
color: #FFFFFF;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
/* 2. 状态 Tabs 横向滚动条 */
|
||||
@@ -634,17 +633,23 @@
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 10;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.tabs-scroll {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
white-space: nowrap;
|
||||
width: calc(100% - 90rpx);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.tabs-content {
|
||||
display: inline-flex;
|
||||
padding: 0 16rpx;
|
||||
flex-wrap: nowrap;
|
||||
align-items: center;
|
||||
padding: 0 12rpx;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.tab-item {
|
||||
@@ -652,14 +657,19 @@
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 24rpx 24rpx 18rpx 24rpx;
|
||||
flex-shrink: 0;
|
||||
white-space: nowrap;
|
||||
height: 84rpx;
|
||||
padding: 0 22rpx;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.tab-label {
|
||||
font-size: 28rpx;
|
||||
color: #555555;
|
||||
font-weight: 400;
|
||||
color: #444444;
|
||||
font-weight: 500;
|
||||
white-space: nowrap;
|
||||
line-height: 1.2;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
@@ -671,21 +681,24 @@
|
||||
|
||||
.tab-line {
|
||||
position: absolute;
|
||||
bottom: 6rpx;
|
||||
bottom: 8rpx;
|
||||
width: 36rpx;
|
||||
height: 4rpx;
|
||||
height: 6rpx;
|
||||
background: #F0710D;
|
||||
border-radius: 2rpx;
|
||||
border-radius: 3rpx;
|
||||
}
|
||||
|
||||
.filter-btn {
|
||||
width: 88rpx;
|
||||
height: 76rpx;
|
||||
width: 84rpx;
|
||||
height: 84rpx;
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-shadow: -8rpx 0 12rpx rgba(0, 0, 0, 0.03);
|
||||
background: #FFFFFF;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.filter-icon {
|
||||
@@ -741,10 +754,16 @@
|
||||
}
|
||||
|
||||
.tag {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 40rpx;
|
||||
line-height: 40rpx;
|
||||
text-align: center;
|
||||
font-size: 22rpx;
|
||||
padding: 4rpx 14rpx;
|
||||
border-radius: 6rpx;
|
||||
font-weight: 500;
|
||||
padding: 0 14rpx;
|
||||
border-radius: 8rpx;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.quote-tag {
|
||||
@@ -929,19 +948,23 @@
|
||||
}
|
||||
|
||||
.action-btn {
|
||||
padding: 12rpx 26rpx;
|
||||
border-radius: 8rpx;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 60rpx;
|
||||
padding: 0 28rpx;
|
||||
border-radius: 30rpx;
|
||||
font-size: 26rpx;
|
||||
color: #333333;
|
||||
color: #444444;
|
||||
border: 1rpx solid #DCDFE6;
|
||||
background: #FFFFFF;
|
||||
font-weight: 400;
|
||||
font-weight: 500;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.action-btn.primary {
|
||||
background: #F0710D;
|
||||
border-color: #F0710D;
|
||||
background: linear-gradient(135deg, #FFA93F 0%, #F0710D 100%);
|
||||
border-color: transparent;
|
||||
color: #FFFFFF;
|
||||
font-weight: 600;
|
||||
}
|
||||
@@ -996,12 +1019,17 @@
|
||||
}
|
||||
|
||||
.empty-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 76rpx;
|
||||
background: linear-gradient(135deg, #FFA93F 0%, #F0710D 100%);
|
||||
color: #FFFFFF;
|
||||
font-size: 28rpx;
|
||||
font-weight: 600;
|
||||
border-radius: 40rpx;
|
||||
padding: 18rpx 54rpx;
|
||||
border-radius: 38rpx;
|
||||
padding: 0 56rpx;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
/* 5. 筛选抽屉 */
|
||||
@@ -1068,11 +1096,17 @@
|
||||
}
|
||||
|
||||
.filter-tag {
|
||||
padding: 12rpx 28rpx;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 60rpx;
|
||||
padding: 0 28rpx;
|
||||
background: #F5F6F8;
|
||||
border-radius: 8rpx;
|
||||
border-radius: 12rpx;
|
||||
font-size: 26rpx;
|
||||
color: #555555;
|
||||
color: #444444;
|
||||
line-height: 1;
|
||||
border: 1rpx solid transparent;
|
||||
}
|
||||
|
||||
.filter-tag.on {
|
||||
|
||||
在新工单中引用
屏蔽一个用户