feat(ui): 新增/优化界面样式、图标及交互组件
- 新增多个功能图标(箭头、盾牌、位置等) - 优化全局按钮、标签、输入框等组件样式 - 修复导航栏高度计算逻辑,适配微信小程序 - 优化消息页、订单页、个人中心等页面布局 - 修复微信支付配置及通知接口问题
这个提交包含在:
@@ -1,57 +1,67 @@
|
||||
<template>
|
||||
<view class="drawer-mask" v-if="visible" @tap="close">
|
||||
<view class="drawer-sheet" @tap.stop>
|
||||
<!-- 标题栏 -->
|
||||
<!-- 标题栏(对标图一:居中加粗「请选择下单模式」+ 右上角关闭叉) -->
|
||||
<view class="drawer-head">
|
||||
<text class="dh-title">选择下单模式</text>
|
||||
<view class="dh-side"></view>
|
||||
<text class="dh-title">请选择下单模式</text>
|
||||
<view class="dh-close clickable-hover" @tap="close">
|
||||
<image class="dh-close-img" src="/static/icons/close.svg" mode="aspectFit" />
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 精致模式卡片(纯净无多余文字说明) -->
|
||||
<!-- 三张模式卡片(1:1 复刻图一:白底细橙框 + 左上角渐变福利角标 + 左主副标题 + 右实心橙色胶囊按钮) -->
|
||||
<view class="drawer-body">
|
||||
<!-- 一口价下单 -->
|
||||
<!-- 1. 一口价下单 -->
|
||||
<view class="mode-card clickable-hover" :class="{ active: currentMode === 'fixed' }" @tap="select('fixed')">
|
||||
<view class="mc-left">
|
||||
<view class="mc-icon-wrap">
|
||||
<image class="mc-icon" src="/static/icons/mode-coin.svg" mode="aspectFit" />
|
||||
</view>
|
||||
<text class="mc-title">一口价下单</text>
|
||||
<view class="mc-corner-badge">
|
||||
<text class="mcb-txt">下单送券·慢必赔 ></text>
|
||||
</view>
|
||||
<view class="mc-radio" :class="{ on: currentMode === 'fixed' }">
|
||||
<image class="check-icon" v-if="currentMode === 'fixed'" src="/static/icons/check-white.svg" mode="aspectFit" />
|
||||
<view class="mc-content">
|
||||
<view class="mc-info">
|
||||
<text class="mc-main-title">全国统一参考价,成本可控</text>
|
||||
<text class="mc-sub-desc">支付后,师傅立即接单预约客户上门服务</text>
|
||||
</view>
|
||||
<view class="mc-action-btn">
|
||||
<text class="mab-txt">一口价下单</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 报价下单 -->
|
||||
<!-- 2. 报价下单 -->
|
||||
<view class="mode-card clickable-hover" :class="{ active: currentMode === 'quote' }" @tap="select('quote')">
|
||||
<view class="mc-left">
|
||||
<view class="mc-icon-wrap">
|
||||
<image class="mc-icon" src="/static/icons/order-active.svg" mode="aspectFit" />
|
||||
</view>
|
||||
<text class="mc-title">师傅报价下单</text>
|
||||
<view class="mc-corner-badge">
|
||||
<text class="mcb-txt">下单送券·慢必赔 ></text>
|
||||
</view>
|
||||
<view class="mc-radio" :class="{ on: currentMode === 'quote' }">
|
||||
<image class="check-icon" v-if="currentMode === 'quote'" src="/static/icons/check-white.svg" mode="aspectFit" />
|
||||
<view class="mc-content">
|
||||
<view class="mc-info">
|
||||
<text class="mc-main-title">多个师傅报价,择优选择</text>
|
||||
<text class="mc-sub-desc">免费发布,选定师傅支付,师傅上门服务</text>
|
||||
</view>
|
||||
<view class="mc-action-btn">
|
||||
<text class="mab-txt">报价下单</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 自己定价 -->
|
||||
<!-- 3. 自己定价 -->
|
||||
<view class="mode-card clickable-hover" :class="{ active: currentMode === 'custom' }" @tap="select('custom')">
|
||||
<view class="mc-left">
|
||||
<view class="mc-icon-wrap">
|
||||
<image class="mc-icon" src="/static/icons/role-switch.svg" mode="aspectFit" />
|
||||
</view>
|
||||
<text class="mc-title">自己定价下单</text>
|
||||
<view class="mc-corner-badge">
|
||||
<text class="mcb-txt">下单送券·慢必赔 ></text>
|
||||
</view>
|
||||
<view class="mc-radio" :class="{ on: currentMode === 'custom' }">
|
||||
<image class="check-icon" v-if="currentMode === 'custom'" src="/static/icons/check-white.svg" mode="aspectFit" />
|
||||
<view class="mc-content">
|
||||
<view class="mc-info">
|
||||
<text class="mc-main-title">价格自己定,更省钱</text>
|
||||
<text class="mc-sub-desc">支付后,师傅立即接单预约客户上门服务</text>
|
||||
</view>
|
||||
<view class="mc-action-btn">
|
||||
<text class="mab-txt">自己定价</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 底部取消按钮 -->
|
||||
<!-- 底部通栏橙色取消大按钮(对标图一) -->
|
||||
<view class="drawer-foot">
|
||||
<view class="cancel-btn clickable-hover" @tap="close">
|
||||
<text class="cancel-txt">取消</text>
|
||||
@@ -83,8 +93,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;
|
||||
@@ -101,7 +110,7 @@
|
||||
background: #FFFFFF;
|
||||
border-top-left-radius: 28rpx;
|
||||
border-top-right-radius: 28rpx;
|
||||
padding: 36rpx 36rpx calc(30rpx + env(safe-area-inset-bottom));
|
||||
padding: 32rpx 28rpx calc(32rpx + 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);
|
||||
@@ -116,13 +125,19 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding-bottom: 24rpx;
|
||||
padding-bottom: 28rpx;
|
||||
}
|
||||
|
||||
.dh-side {
|
||||
width: 56rpx;
|
||||
height: 56rpx;
|
||||
}
|
||||
|
||||
.dh-title {
|
||||
font-size: 34rpx;
|
||||
font-size: 32rpx;
|
||||
font-weight: 700;
|
||||
color: #1A1A1A;
|
||||
color: #1F1F1F;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.dh-close {
|
||||
@@ -134,112 +149,116 @@
|
||||
}
|
||||
|
||||
.dh-close-img {
|
||||
width: 32rpx;
|
||||
height: 32rpx;
|
||||
opacity: 0.75;
|
||||
width: 34rpx;
|
||||
height: 34rpx;
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.drawer-body {
|
||||
padding: 10rpx 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16rpx;
|
||||
gap: 24rpx;
|
||||
}
|
||||
|
||||
.mode-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
height: 110rpx;
|
||||
padding: 0 28rpx;
|
||||
position: relative;
|
||||
border-radius: 16rpx;
|
||||
background: #F8F9FA;
|
||||
border: 2rpx solid transparent;
|
||||
background: #FFFFFF;
|
||||
border: 2rpx solid #F3A661;
|
||||
overflow: hidden;
|
||||
transition: all 0.18s ease;
|
||||
}
|
||||
|
||||
.mode-card.active {
|
||||
background: #FFF9F5;
|
||||
border-color: #F0710D;
|
||||
box-shadow: 0 4rpx 16rpx rgba(240, 113, 13, 0.08);
|
||||
}
|
||||
|
||||
.mc-left {
|
||||
.mc-corner-badge {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 40rpx;
|
||||
padding: 0 20rpx;
|
||||
background: linear-gradient(90deg, #FFA33E 0%, #F0710D 100%);
|
||||
border-bottom-right-radius: 16rpx;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.mcb-txt {
|
||||
font-size: 22rpx;
|
||||
color: #FFFFFF;
|
||||
font-weight: 600;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.mc-content {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 58rpx 26rpx 36rpx 28rpx;
|
||||
gap: 20rpx;
|
||||
}
|
||||
|
||||
.mc-icon-wrap {
|
||||
width: 56rpx;
|
||||
height: 56rpx;
|
||||
border-radius: 12rpx;
|
||||
background: #FFFFFF;
|
||||
.mc-info {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.04);
|
||||
flex-direction: column;
|
||||
gap: 10rpx;
|
||||
}
|
||||
|
||||
.mc-icon {
|
||||
width: 36rpx;
|
||||
height: 36rpx;
|
||||
}
|
||||
|
||||
.mc-title {
|
||||
.mc-main-title {
|
||||
font-size: 30rpx;
|
||||
font-weight: 600;
|
||||
color: #222222;
|
||||
font-weight: 700;
|
||||
color: #1F1F1F;
|
||||
line-height: 1.25;
|
||||
}
|
||||
|
||||
.mode-card.active .mc-title {
|
||||
color: #F0710D;
|
||||
.mc-sub-desc {
|
||||
font-size: 24rpx;
|
||||
color: #777777;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
.mc-radio {
|
||||
width: 40rpx;
|
||||
height: 40rpx;
|
||||
border-radius: 50%;
|
||||
border: 2rpx solid #D1D5DB;
|
||||
.mc-action-btn {
|
||||
flex-shrink: 0;
|
||||
width: 196rpx;
|
||||
height: 68rpx;
|
||||
border-radius: 34rpx;
|
||||
background: linear-gradient(135deg, #FFA93F 0%, #F0710D 100%);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: #FFFFFF;
|
||||
transition: all 0.18s ease;
|
||||
}
|
||||
|
||||
.mc-radio.on {
|
||||
background: #F0710D;
|
||||
border-color: #F0710D;
|
||||
}
|
||||
|
||||
.check-icon {
|
||||
width: 24rpx;
|
||||
height: 24rpx;
|
||||
.mab-txt {
|
||||
font-size: 28rpx;
|
||||
font-weight: 600;
|
||||
color: #FFFFFF;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.drawer-foot {
|
||||
padding-top: 36rpx;
|
||||
padding-top: 32rpx;
|
||||
}
|
||||
|
||||
.cancel-btn {
|
||||
height: 88rpx;
|
||||
background: #F4F5F7;
|
||||
border-radius: 12rpx;
|
||||
background: linear-gradient(135deg, #FFA93F 0%, #F0710D 100%);
|
||||
border-radius: 16rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: background 0.15s ease, transform 0.1s ease;
|
||||
}
|
||||
|
||||
.cancel-btn:active {
|
||||
background: #E5E7EB;
|
||||
transform: scale(0.99);
|
||||
}
|
||||
|
||||
.cancel-txt {
|
||||
font-size: 30rpx;
|
||||
font-size: 32rpx;
|
||||
font-weight: 600;
|
||||
color: #4B5563;
|
||||
color: #FFFFFF;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.clickable-hover:active {
|
||||
|
||||
在新工单中引用
屏蔽一个用户