feat(ui): 新增/优化界面样式、图标及交互组件
- 新增多个功能图标(箭头、盾牌、位置等) - 优化全局按钮、标签、输入框等组件样式 - 修复导航栏高度计算逻辑,适配微信小程序 - 优化消息页、订单页、个人中心等页面布局 - 修复微信支付配置及通知接口问题
这个提交包含在:
@@ -9,22 +9,16 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 精致选项卡片列表(纯净无多余文字说明) -->
|
||||
<!-- 选项列表(清爽白底分割线风格,与 AddonServiceDrawer 统一) -->
|
||||
<view class="drawer-body">
|
||||
<view
|
||||
class="type-card clickable-hover"
|
||||
class="type-row clickable-hover"
|
||||
v-for="item in displayList"
|
||||
:key="item.code"
|
||||
:class="{ active: selectedCode === item.code }"
|
||||
@tap="selectItem(item)"
|
||||
>
|
||||
<view class="tc-left">
|
||||
<view class="tc-icon-wrap">
|
||||
<image class="tc-icon" :src="getServiceIcon(item.code)" mode="aspectFit" />
|
||||
</view>
|
||||
<text class="tc-name">{{ item.name }}</text>
|
||||
</view>
|
||||
<view class="tc-radio" :class="{ on: selectedCode === item.code }">
|
||||
<text class="tr-name" :class="{ active: selectedCode === item.code }">{{ item.name }}</text>
|
||||
<view class="tr-radio" :class="{ on: selectedCode === item.code }">
|
||||
<image class="check-icon" v-if="selectedCode === item.code" src="/static/icons/check-white.svg" mode="aspectFit" />
|
||||
</view>
|
||||
</view>
|
||||
@@ -71,12 +65,6 @@
|
||||
if (v) selectedCode.value = props.currentCode;
|
||||
});
|
||||
|
||||
function getServiceIcon(code) {
|
||||
if (code === 'repair') return '/static/icons/scene-repair.svg';
|
||||
if (code === 'remove' || code === 'tear') return '/static/icons/scene-tear.svg';
|
||||
return '/static/icons/scene-install.svg';
|
||||
}
|
||||
|
||||
function selectItem(item) {
|
||||
selectedCode.value = item.code;
|
||||
}
|
||||
@@ -96,46 +84,32 @@
|
||||
.drawer-mask {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
backdrop-filter: blur(2px);
|
||||
background: rgba(0, 0, 0, 0.55);
|
||||
z-index: 999;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-end;
|
||||
animation: drawerFadeIn 0.2s ease-out;
|
||||
}
|
||||
|
||||
@keyframes drawerFadeIn {
|
||||
from { opacity: 0; }
|
||||
to { opacity: 1; }
|
||||
}
|
||||
|
||||
.drawer-sheet {
|
||||
background: #FFFFFF;
|
||||
border-top-left-radius: 28rpx;
|
||||
border-top-right-radius: 28rpx;
|
||||
padding: 36rpx 36rpx calc(30rpx + env(safe-area-inset-bottom));
|
||||
border-top-left-radius: 24rpx;
|
||||
border-top-right-radius: 24rpx;
|
||||
padding: 32rpx 32rpx calc(28rpx + env(safe-area-inset-bottom));
|
||||
box-sizing: border-box;
|
||||
animation: drawerSlideUp 0.24s cubic-bezier(0.16, 1, 0.3, 1);
|
||||
box-shadow: 0 -8rpx 32rpx rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
|
||||
@keyframes drawerSlideUp {
|
||||
from { transform: translateY(100%); }
|
||||
to { transform: translateY(0); }
|
||||
}
|
||||
|
||||
.drawer-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding-bottom: 24rpx;
|
||||
padding-bottom: 16rpx;
|
||||
}
|
||||
|
||||
.dh-title {
|
||||
font-size: 34rpx;
|
||||
font-size: 32rpx;
|
||||
font-weight: 700;
|
||||
color: #1A1A1A;
|
||||
color: #1F1F1F;
|
||||
}
|
||||
|
||||
.dh-close {
|
||||
@@ -147,80 +121,49 @@
|
||||
}
|
||||
|
||||
.dh-close-img {
|
||||
width: 32rpx;
|
||||
height: 32rpx;
|
||||
opacity: 0.75;
|
||||
width: 30rpx;
|
||||
height: 30rpx;
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.drawer-body {
|
||||
padding: 10rpx 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16rpx;
|
||||
padding: 8rpx 0 20rpx;
|
||||
}
|
||||
|
||||
.type-card {
|
||||
.type-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
height: 110rpx;
|
||||
padding: 0 28rpx;
|
||||
border-radius: 16rpx;
|
||||
background: #F8F9FA;
|
||||
border: 2rpx solid transparent;
|
||||
transition: all 0.18s ease;
|
||||
padding: 28rpx 0;
|
||||
border-bottom: 1rpx solid #F0F0F2;
|
||||
}
|
||||
|
||||
.type-card.active {
|
||||
background: #FFF9F5;
|
||||
border-color: #F0710D;
|
||||
.type-row:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.tc-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 20rpx;
|
||||
}
|
||||
|
||||
.tc-icon-wrap {
|
||||
width: 56rpx;
|
||||
height: 56rpx;
|
||||
border-radius: 12rpx;
|
||||
background: #FFFFFF;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.04);
|
||||
}
|
||||
|
||||
.tc-icon {
|
||||
width: 36rpx;
|
||||
height: 36rpx;
|
||||
}
|
||||
|
||||
.tc-name {
|
||||
.tr-name {
|
||||
font-size: 30rpx;
|
||||
font-weight: 600;
|
||||
color: #222222;
|
||||
color: #1F1F1F;
|
||||
}
|
||||
|
||||
.type-card.active .tc-name {
|
||||
.tr-name.active {
|
||||
color: #F0710D;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.tc-radio {
|
||||
.tr-radio {
|
||||
width: 40rpx;
|
||||
height: 40rpx;
|
||||
border-radius: 50%;
|
||||
border: 2rpx solid #D1D5DB;
|
||||
border: 2rpx solid #CCCCCC;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: #FFFFFF;
|
||||
transition: all 0.18s ease;
|
||||
}
|
||||
|
||||
.tc-radio.on {
|
||||
.tr-radio.on {
|
||||
background: #F0710D;
|
||||
border-color: #F0710D;
|
||||
}
|
||||
@@ -231,7 +174,7 @@
|
||||
}
|
||||
|
||||
.drawer-foot {
|
||||
padding-top: 36rpx;
|
||||
padding-top: 24rpx;
|
||||
}
|
||||
|
||||
.confirm-btn {
|
||||
@@ -241,19 +184,12 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: background 0.15s ease, transform 0.1s ease;
|
||||
}
|
||||
|
||||
.confirm-btn:active {
|
||||
background: #E06305;
|
||||
transform: scale(0.99);
|
||||
}
|
||||
|
||||
.cb-txt {
|
||||
font-size: 32rpx;
|
||||
font-weight: 600;
|
||||
font-weight: 500;
|
||||
color: #FFFFFF;
|
||||
letter-spacing: 2rpx;
|
||||
}
|
||||
|
||||
.clickable-hover:active {
|
||||
|
||||
在新工单中引用
屏蔽一个用户