feat(ui): 新增/优化界面样式、图标及交互组件
- 新增多个功能图标(箭头、盾牌、位置等) - 优化全局按钮、标签、输入框等组件样式 - 修复导航栏高度计算逻辑,适配微信小程序 - 优化消息页、订单页、个人中心等页面布局 - 修复微信支付配置及通知接口问题
这个提交包含在:
@@ -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 {
|
||||
|
||||
在新工单中引用
屏蔽一个用户