Commit 16db744c by chenwq

优化订单详情和编辑申请页面,替换图标组件并调整样式

1 parent a3546c60
...@@ -28,8 +28,10 @@ ...@@ -28,8 +28,10 @@
border-radius: var(--fontSize8); border-radius: var(--fontSize8);
padding: var(--fontSize20) var(--fontSize24); padding: var(--fontSize20) var(--fontSize24);
.info-icon { .info-icon {
margin-right: var(--fontSize12); width: var(--fontSize40);
height: var(--fontSize40);
margin-right: var(--fontSize16);
display: flex; display: flex;
} }
......
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
<view class="thirdStep"> <view class="thirdStep">
<view class="box employeeBox"> <view class="box employeeBox">
<view wx:if="{{ item.type == 'title' }}" class="form-group-title"> <view wx:if="{{ item.type == 'title' }}" class="form-group-title">
<view class="blue-bar"></view> <view class="blue-bar">
</view>
<text>{{ item.label }}</text> <text>{{ item.label }}</text>
</view> </view>
<gl-form <gl-form
...@@ -15,10 +16,11 @@ ...@@ -15,10 +16,11 @@
> >
<view slot="priceWarning" class="warning-tip-wrap"> <view slot="priceWarning" class="warning-tip-wrap">
<view class="warning-box"> <view class="warning-box">
<van-icon name="info" custom-class="info-icon" color="#FA6400" size="var(--fontSize32)" /> <glsx-image src="/common/icon-tips.png" custom-class="info-icon">
</glsx-image>
<text class="warning-text">保留价对买家不可见,低于保留价不成交</text> <text class="warning-text">保留价对买家不可见,低于保留价不成交</text>
</view> </view>
</view> </view>
</gl-form> </gl-form>
</view> </view>
</view>
\ No newline at end of file \ No newline at end of file
</view>
...@@ -68,7 +68,8 @@ ...@@ -68,7 +68,8 @@
<view class="warning-tip-wrap"> <view class="warning-tip-wrap">
<view class="warning-box"> <view class="warning-box">
<van-icon name="info" custom-class="info-icon" color="#FA6400" size="32rpx" /> <glsx-image src="/common/icon-tips.png" custom-class="info-icon">
</glsx-image>
<text class="warning-text">保留价对买家不可见,低于保留价不成交</text> <text class="warning-text">保留价对买家不可见,低于保留价不成交</text>
</view> </view>
</view> </view>
......
/* packageIndex/pages/orderDetail/orderDetail.wxss */ /* packageIndex/pages/orderDetail/orderDetail.wxss */
page { page {
background-color: #f7f8fa; background-color: #f7f8fa;
height: 100vh; height: 100vh;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
overflow: hidden; overflow: hidden;
} }
.container { .container {
height: 100vh; height: 100vh;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding-bottom: calc(128rpx + env(safe-area-inset-bottom)); padding-bottom: calc(128rpx + env(safe-area-inset-bottom));
box-sizing: border-box; box-sizing: border-box;
} }
.scroll-area { .scroll-area {
flex: 1; flex: 1;
overflow: hidden; overflow: hidden;
} }
.header-card { .header-card {
flex-shrink: 0; flex-shrink: 0;
background-color: #fff; background-color: #fff;
padding: 32rpx; padding: 32rpx;
position: relative; position: relative;
} }
.header-title { .header-title {
display: flex; display: flex;
margin-bottom: 16rpx; margin-bottom: 16rpx;
align-items: center; align-items: center;
} }
.car-series-name { .car-series-name {
flex: 1; flex: 1;
font-size: 36rpx; font-size: 36rpx;
font-weight: bold; font-weight: bold;
color: #333; color: #333;
} }
.status-tag { .status-tag {
font-size: 28rpx; font-size: 28rpx;
padding: 6rpx 20rpx; padding: 6rpx 20rpx;
border-radius: 200rpx; border-radius: 200rpx;
display: flex; display: flex;
align-items: center; align-items: center;
font-weight: 400; font-weight: 400;
} }
.status-1, .status-6 { .status-1,
background-color: #F3F3F3; .status-6 {
color: #000000E5; background-color: #F3F3F3;
color: #000000E5;
} }
.status-2 { .status-2 {
background-color: #e8f3ff; background-color: #e8f3ff;
color: #185efe; color: #185efe;
} }
.status-3 { .status-3 {
background-color: #fff7e8; background-color: #fff7e8;
color: #ff8915; color: #ff8915;
} }
.status-4 { .status-4 {
background-color: #EAF9EF; background-color: #EAF9EF;
color: #00b42a; color: #00b42a;
} }
.status-5 { .status-5 {
background-color: #ffeeee; background-color: #ffeeee;
color: #f53f3f; color: #f53f3f;
} }
.p-6 { .p-6 {
...@@ -79,150 +80,163 @@ page { ...@@ -79,150 +80,163 @@ page {
} }
.header-desc { .header-desc {
font-size: 24rpx; font-size: 24rpx;
color: #999; color: #999;
display: flex; display: flex;
align-items: center; align-items: center;
} }
.divider { .divider {
margin: 0 16rpx; margin: 0 16rpx;
color: #e5e5e5; color: #e5e5e5;
} }
.tab-content { .tab-content {
margin-top: 24rpx; margin-top: 24rpx;
margin-bottom: 24rpx; margin-bottom: 24rpx;
} }
.custom-cell-group { .custom-cell-group {
border-radius: 16rpx; border-radius: 16rpx;
overflow: hidden; overflow: hidden;
} }
/* Adjust van cell label width to match the design */ /* Adjust van cell label width to match the design */
.van-cell__title { .van-cell__title {
color: #00000099 !important; color: #00000099 !important;
font-size: 32rpx; font-size: 32rpx;
max-width: 200rpx; max-width: 200rpx;
} }
.van-cell__value { .van-cell__value {
color: #000000E5 !important; color: #000000E5 !important;
font-size: 28rpx; font-size: 28rpx;
font-weight: 600 !important; font-weight: 600 !important;
text-align: right !important; text-align: right !important;
flex: 1; flex: 1;
} }
.nothing { .nothing {
text-align: center; text-align: center;
padding-top: 150rpx; /* Adjusted to look good in tab */ padding-top: 150rpx;
color: rgba(0, 0, 0, 0.4); /* Adjusted to look good in tab */
font-size: 24rpx; color: rgba(0, 0, 0, 0.4);
font-size: 24rpx;
} }
.nothing .icon { .nothing .icon {
width: 240rpx; width: 240rpx;
height: 204rpx; height: 204rpx;
margin: 0 auto 20rpx; margin: 0 auto 20rpx;
} }
.action-bar { .action-bar {
position: fixed; position: fixed;
bottom: 0; bottom: 0;
left: 0; left: 0;
right: 0; right: 0;
background-color: #fff; background-color: #fff;
display: flex; display: flex;
padding: 24rpx 32rpx; padding: 24rpx 32rpx;
padding-bottom: calc(24rpx + env(safe-area-inset-bottom)); padding-bottom: calc(24rpx + env(safe-area-inset-bottom));
box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.05); box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.05);
} }
.action-btn { .action-btn {
flex: 1; flex: 1;
height: 80rpx; height: 80rpx;
line-height: 80rpx; line-height: 80rpx;
text-align: center; text-align: center;
border-radius: 40rpx; border-radius: 40rpx;
font-size: 30rpx; font-size: 30rpx;
} }
.btn-default { .btn-default {
border: 1px solid #e5e5e5; border: 1px solid #e5e5e5;
color: #333333; color: #333333;
background-color: #fff; background-color: #fff;
} }
.btn-primary-border { .btn-primary-border {
border: 1px solid #185EFE; border: 1px solid #185EFE;
color: #185EFE; color: #185EFE;
background-color: #fff; background-color: #fff;
} }
.btn-primary { .btn-primary {
background-color: #185EFE; background-color: #185EFE;
color: #fff; color: #fff;
border: 1px solid #185EFE; border: 1px solid #185EFE;
} }
.action-btn + .action-btn { .action-btn+.action-btn {
margin-left: 24rpx; margin-left: 24rpx;
} }
/* Price Setting Tab */ /* Price Setting Tab */
.warning-tip-wrap { .warning-tip-wrap {
padding: 30rpx 32rpx; padding: 30rpx 32rpx;
} }
.warning-box { .warning-box {
display: flex; display: flex;
align-items: center; align-items: center;
background: rgba(250, 100, 0, 0.08); /* 8% opacity of orange */ background: rgba(250, 100, 0, 0.08);
border-radius: 8rpx; /* 8% opacity of orange */
padding: 20rpx 24rpx; border-radius: 8rpx;
padding: 20rpx 24rpx;
} }
.info-icon { .info-icon {
margin-right: 12rpx; width: var(--fontSize40);
display: flex; height: var(--fontSize40);
margin-right: var(--fontSize16);
display: flex;
} }
.warning-text { .warning-text {
font-size: 28rpx; font-size: 28rpx;
color: #333333; color: #333333;
line-height: 40rpx; line-height: 40rpx;
} }
.price-value { .price-value {
color: #F53F3F; color: #F53F3F;
} }
/* Photo Tab */ /* Photo Tab */
.photo-grid { .photo-grid {
display: grid; display: grid;
grid-template-columns: repeat(3, 1fr); grid-template-columns: repeat(3, 1fr);
grid-gap: 20rpx; grid-gap: 20rpx;
padding: 0 32rpx; padding: 0 32rpx;
} }
.photo-item { .photo-item {
width: 100%; width: 100%;
height: calc((100vw - 64rpx - 40rpx) / 3); /* 32rpx padding each side, 20rpx gap */ height: calc((100vw - 64rpx - 40rpx) / 3);
max-height: 220rpx; /* 32rpx padding each side, 20rpx gap */
max-height: 220rpx;
} }
.upload-box { .upload-box {
width: 100%; width: 100%;
height: 100%; height: 100%;
background-color: #f7f8fa; background-color: #f7f8fa;
border-radius: 12rpx; border-radius: 12rpx;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
} }
.uploaded-img { .uploaded-img {
width: 100%; width: 100%;
height: 100%; height: 100%;
border-radius: 12rpx; border-radius: 12rpx;
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
} }
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!