feat(ui): 新增/优化界面样式、图标及交互组件
- 新增多个功能图标(箭头、盾牌、位置等) - 优化全局按钮、标签、输入框等组件样式 - 修复导航栏高度计算逻辑,适配微信小程序 - 优化消息页、订单页、个人中心等页面布局 - 修复微信支付配置及通知接口问题
这个提交包含在:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="drawer-mask" v-if="visible" @tap="close">
|
||||
<view class="drawer-sheet" @tap.stop>
|
||||
<!-- 标题栏 -->
|
||||
<!-- 标题栏(对标 frame_005:左标题 + 右侧叉 + 底部分割线) -->
|
||||
<view class="drawer-head">
|
||||
<text class="dh-title">增项服务</text>
|
||||
<view class="dh-close clickable-hover" @tap="close">
|
||||
@@ -9,10 +9,15 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 增项服务精致卡片列表(选项纯净无多余文字说明) -->
|
||||
<!-- 增项列表(1:1 复刻 frame_005:左侧工序名+浅灰单价小签,右侧方形步进器) -->
|
||||
<scroll-view class="drawer-body" scroll-y="true">
|
||||
<view class="addon-card" v-for="(item, idx) in localList" :key="item.key || idx">
|
||||
<text class="ac-name">{{ item.name }}</text>
|
||||
<view class="addon-row" v-for="(item, idx) in localList" :key="item.key || idx">
|
||||
<view class="ac-left">
|
||||
<text class="ac-name">{{ item.name }}</text>
|
||||
<view class="ac-price-tag" v-if="Number(item.price) > 0">
|
||||
<text class="apt-txt">{{ item.price }}元/{{ item.unit || '份' }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="ac-stepper">
|
||||
<view
|
||||
class="step-btn step-btn-minus clickable-hover"
|
||||
@@ -31,12 +36,6 @@
|
||||
</view>
|
||||
</scroll-view>
|
||||
|
||||
<!-- 价格在汇总处显示(满足用户指令) -->
|
||||
<view class="drawer-summary-line" v-if="totalAddonFee > 0">
|
||||
<text class="dsl-label">增项费用合计:</text>
|
||||
<text class="dsl-price">¥{{ totalAddonFee }}</text>
|
||||
</view>
|
||||
|
||||
<!-- 底部确定按钮 -->
|
||||
<view class="drawer-foot">
|
||||
<view class="confirm-btn clickable-hover" @tap="handleConfirm">
|
||||
@@ -48,7 +47,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref, computed, watch } from 'vue';
|
||||
import { ref, watch } from 'vue';
|
||||
|
||||
const props = defineProps({
|
||||
visible: { type: Boolean, default: false },
|
||||
@@ -65,12 +64,6 @@
|
||||
}
|
||||
});
|
||||
|
||||
const totalAddonFee = computed(() => {
|
||||
if (!localList.value || !localList.value.length) return '0.00';
|
||||
const sum = localList.value.reduce((acc, cur) => acc + (Number(cur.price) || 0) * (Number(cur.num) || 0), 0);
|
||||
return sum.toFixed(2);
|
||||
});
|
||||
|
||||
function stepNum(idx, d) {
|
||||
const target = localList.value[idx];
|
||||
if (!target) return;
|
||||
@@ -92,8 +85,7 @@
|
||||
.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;
|
||||
@@ -108,15 +100,12 @@
|
||||
|
||||
.drawer-sheet {
|
||||
background: #FFFFFF;
|
||||
border-top-left-radius: 28rpx;
|
||||
border-top-right-radius: 28rpx;
|
||||
padding: 36rpx 36rpx calc(30rpx + env(safe-area-inset-bottom));
|
||||
padding: 0 0 calc(28rpx + env(safe-area-inset-bottom));
|
||||
max-height: 75vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
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 {
|
||||
@@ -128,13 +117,15 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding-bottom: 24rpx;
|
||||
height: 96rpx;
|
||||
padding: 0 28rpx;
|
||||
border-bottom: 1rpx solid #F0F0F2;
|
||||
}
|
||||
|
||||
.dh-title {
|
||||
font-size: 34rpx;
|
||||
font-weight: 700;
|
||||
color: #1A1A1A;
|
||||
font-size: 32rpx;
|
||||
font-weight: 500;
|
||||
color: #1F1F1F;
|
||||
}
|
||||
|
||||
.dh-close {
|
||||
@@ -146,42 +137,58 @@
|
||||
}
|
||||
|
||||
.dh-close-img {
|
||||
width: 32rpx;
|
||||
height: 32rpx;
|
||||
opacity: 0.75;
|
||||
width: 34rpx;
|
||||
height: 34rpx;
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.drawer-body {
|
||||
max-height: 540rpx;
|
||||
padding: 10rpx 0;
|
||||
max-height: 560rpx;
|
||||
min-height: 360rpx;
|
||||
padding: 16rpx 36rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.addon-card {
|
||||
.addon-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
height: 110rpx;
|
||||
padding: 0 24rpx;
|
||||
border-radius: 14rpx;
|
||||
background: #F8F9FA;
|
||||
margin-bottom: 16rpx;
|
||||
padding: 22rpx 0;
|
||||
}
|
||||
|
||||
.addon-card:last-child {
|
||||
margin-bottom: 0;
|
||||
.ac-left {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 8rpx;
|
||||
}
|
||||
|
||||
.ac-name {
|
||||
font-size: 30rpx;
|
||||
font-weight: 600;
|
||||
color: #222222;
|
||||
font-weight: 500;
|
||||
color: #1F1F1F;
|
||||
}
|
||||
|
||||
.ac-price-tag {
|
||||
background: #F5F5F5;
|
||||
padding: 4rpx 12rpx;
|
||||
border-radius: 4rpx;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.apt-txt {
|
||||
font-size: 24rpx;
|
||||
color: #666666;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.ac-stepper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border: 1rpx solid #D5D5D5;
|
||||
border-radius: 8rpx;
|
||||
border: 1rpx solid #CCCCCC;
|
||||
border-radius: 4rpx;
|
||||
background: #FFFFFF;
|
||||
overflow: hidden;
|
||||
}
|
||||
@@ -199,21 +206,19 @@
|
||||
}
|
||||
|
||||
.step-btn.disabled {
|
||||
color: #CCCCCC;
|
||||
background: #FAFAFA;
|
||||
color: #BBBBBB;
|
||||
}
|
||||
|
||||
.step-num {
|
||||
width: 80rpx;
|
||||
width: 96rpx;
|
||||
height: 60rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 28rpx;
|
||||
font-weight: 600;
|
||||
color: #1A1A1A;
|
||||
border-left: 1rpx solid #EAEAEA;
|
||||
border-right: 1rpx solid #EAEAEA;
|
||||
font-size: 30rpx;
|
||||
color: #1F1F1F;
|
||||
border-left: 1rpx solid #CCCCCC;
|
||||
border-right: 1rpx solid #CCCCCC;
|
||||
background: #FFFFFF;
|
||||
}
|
||||
|
||||
@@ -227,48 +232,24 @@
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
.drawer-summary-line {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: flex-end;
|
||||
padding: 24rpx 8rpx 0;
|
||||
}
|
||||
|
||||
.dsl-label {
|
||||
font-size: 26rpx;
|
||||
color: #666666;
|
||||
}
|
||||
|
||||
.dsl-price {
|
||||
font-size: 34rpx;
|
||||
font-weight: 700;
|
||||
color: #F0710D;
|
||||
}
|
||||
|
||||
.drawer-foot {
|
||||
padding-top: 28rpx;
|
||||
padding: 20rpx 24rpx 0;
|
||||
}
|
||||
|
||||
.confirm-btn {
|
||||
height: 88rpx;
|
||||
background: #F0710D;
|
||||
border-radius: 12rpx;
|
||||
border-radius: 10rpx;
|
||||
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-size: 30rpx;
|
||||
font-weight: 500;
|
||||
color: #FFFFFF;
|
||||
letter-spacing: 2rpx;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.clickable-hover:active {
|
||||
|
||||
在新工单中引用
屏蔽一个用户