Commit 53eadc69 by 李伟康

```

feat(components): 调整 ReceptionCenter 组件布局以支持响应式宽度

将 CustomerFile.vue 和 RecordList.vue 中的固定宽度改为百分比计算,
使列表项在不同屏幕尺寸下能更好地适配。同时更新 index.vue 中右侧区域的宽度逻辑,
确保整体布局更具弹性。

fix(pages): 修复交付管理页面图片上传相关常量作用域问题

将 MAX_IMAGE_SIZE 和 MAX_IMG_COUNT 常量提升至组件 data 外部作用域,
避免重复定义,并修正 chooseImage 方法中引用的变量名,统一使用常量提高可维护性。

refactor(styles): 统一 uni-calendar 模块中的 rpx 单位为 toRpx 函数处理

将 uni-calendar-item.vue 和 uni-calendar.vue 中使用的原生 rpx 单位替换为项目封装的 toRpx 函数,
增强单位转换的一致性和可配置性。

chore(pages): 更新多个页面右侧内容区样式并优化布局结构

在 boutique/tool、common/serviceDetail 和 usedCar/tool 页面中调整 detail-right 宽度为相对计算值;
并在 HomeFrame 及其子组件中增加 width: 100% 等样式规则,
改善多列布局下的自适应表现和视觉效果。
```
1 parent bd82c7b3
...@@ -356,7 +356,8 @@ export default { ...@@ -356,7 +356,8 @@ export default {
gap: toRpx(40) toRpx(46); gap: toRpx(40) toRpx(46);
padding: toRpx(2) toRpx(44) 0; padding: toRpx(2) toRpx(44) 0;
.item { .item {
width: toRpx(610); // width: toRpx(610);
width: calc(50% - #{toRpx(23)});
background: #ffffff; background: #ffffff;
box-sizing: border-box; box-sizing: border-box;
padding: toRpx(24) toRpx(32); padding: toRpx(24) toRpx(32);
......
...@@ -459,7 +459,8 @@ export default { ...@@ -459,7 +459,8 @@ export default {
gap: toRpx(40) toRpx(46); gap: toRpx(40) toRpx(46);
padding: toRpx(2) toRpx(44) 0; padding: toRpx(2) toRpx(44) 0;
.item { .item {
width: toRpx(610); // width: toRpx(610);
width: calc(50% - #{toRpx(23)});
background: #ffffff; background: #ffffff;
box-sizing: border-box; box-sizing: border-box;
padding: toRpx(24) toRpx(32); padding: toRpx(24) toRpx(32);
......
...@@ -400,7 +400,7 @@ export default { ...@@ -400,7 +400,7 @@ export default {
} }
} }
.right { .right {
width: toRpx(1358); width: calc(100% - #{toRpx(752)});
border: toRpx(2) solid #fff; border: toRpx(2) solid #fff;
box-sizing: border-box; box-sizing: border-box;
&.only-right { &.only-right {
......
...@@ -574,6 +574,7 @@ export default { ...@@ -574,6 +574,7 @@ export default {
} }
} }
.right-content-box { .right-content-box {
width: 100%;
height: calc(100% - #{toRpx(232)}); height: calc(100% - #{toRpx(232)});
gap: toRpx(48); gap: toRpx(48);
box-sizing: border-box; box-sizing: border-box;
...@@ -596,6 +597,7 @@ export default { ...@@ -596,6 +597,7 @@ export default {
.content-left, .content-left,
.content-right { .content-right {
height: 100%; height: 100%;
flex-shrink: 0;
} }
.content-left { .content-left {
width: toRpx(1210); width: toRpx(1210);
...@@ -612,10 +614,12 @@ export default { ...@@ -612,10 +614,12 @@ export default {
} }
} }
.content-right { .content-right {
width: toRpx(800); width: calc(100% - #{toRpx(1322)});
// width: toRpx(800);
} }
} }
.app-content-box { .app-content-box {
width: 100%;
position: absolute; position: absolute;
left: 0; left: 0;
top: 0; top: 0;
......
...@@ -192,7 +192,8 @@ export default { ...@@ -192,7 +192,8 @@ export default {
} }
} }
.detail-right { .detail-right {
width: toRpx(1368); // width: toRpx(1368);
width: calc(100% - #{toRpx(832)});
height: 100%; height: 100%;
border-radius: toRpx(48); border-radius: toRpx(48);
background: #ffffff59; background: #ffffff59;
......
...@@ -548,7 +548,8 @@ export default { ...@@ -548,7 +548,8 @@ export default {
} }
.detail-right { .detail-right {
width: toRpx(1368); // width: toRpx(1368);
width: calc(100% - #{toRpx(832)});
height: 100%; height: 100%;
border-radius: toRpx(48); border-radius: toRpx(48);
background: #ffffff59; background: #ffffff59;
......
...@@ -76,6 +76,8 @@ ...@@ -76,6 +76,8 @@
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
import { uploadFile } from '@/utils/ossUpload.js' import { uploadFile } from '@/utils/ossUpload.js'
import permision from '@/js_sdk/wa-permission/permission.js' import permision from '@/js_sdk/wa-permission/permission.js'
const MAX_IMAGE_SIZE = 10 * 1024 * 1024, // 图片最大10MB
MAX_IMG_COUNT = 10 // 最大图片数量
export default { export default {
name: '', name: '',
props: { props: {
...@@ -100,9 +102,7 @@ export default { ...@@ -100,9 +102,7 @@ export default {
this.imgList.splice(index, 1) this.imgList.splice(index, 1)
}, },
async chooseImage () { async chooseImage () {
const MAX_IMAGE_SIZE = 10 * 1024 * 1024, // 10MB const { imgList } = this,
maxImageCount = 10,
{ imgList } = this,
_this = this _this = this
try { try {
// #ifdef APP-PLUS // #ifdef APP-PLUS
...@@ -114,7 +114,7 @@ export default { ...@@ -114,7 +114,7 @@ export default {
if (!isOnline) throw '当前无网络连接,请连接网络后重试' if (!isOnline) throw '当前无网络连接,请连接网络后重试'
// #endif // #endif
uni.chooseImage({ uni.chooseImage({
count: maxImageCount - imgList.length, count: MAX_IMG_COUNT - imgList.length,
async success (res) { async success (res) {
for (const file of res.tempFiles) { for (const file of res.tempFiles) {
if (file.size > MAX_IMAGE_SIZE) { if (file.size > MAX_IMAGE_SIZE) {
......
...@@ -188,7 +188,7 @@ export default { ...@@ -188,7 +188,7 @@ export default {
eventCode: 'app_delivery_management' eventCode: 'app_delivery_management'
}) })
}, },
onShow(){ onShow () {
this.search() this.search()
}, },
methods: { methods: {
...@@ -359,7 +359,9 @@ export default { ...@@ -359,7 +359,9 @@ export default {
height: calc(100% - #{toRpx(112)}); height: calc(100% - #{toRpx(112)});
border-radius: toRpx(32); border-radius: toRpx(32);
overflow: hidden; overflow: hidden;
background: #eef4fe; background: #ffffff59;
backdrop-filter: blur(toRpx(16));
box-shadow: inset 0 0 toRpx(16) 0 #ffffff;
.scroll-view { .scroll-view {
position: relative; position: relative;
z-index: 2; z-index: 2;
......
...@@ -211,7 +211,7 @@ export default { ...@@ -211,7 +211,7 @@ export default {
} }
} }
.detail-right { .detail-right {
width: toRpx(1368); width: calc(100% - #{toRpx(832)});
height: 100%; height: 100%;
border-radius: toRpx(48); border-radius: toRpx(48);
background: #ffffff59; background: #ffffff59;
......
...@@ -151,17 +151,17 @@ $uni-primary: #4673ff !default; ...@@ -151,17 +151,17 @@ $uni-primary: #4673ff !default;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
width: 100rpx; width: toRpx(100);
height: 100rpx; height: toRpx(100);
} }
.uni-calendar-item__weeks-box-circle { .uni-calendar-item__weeks-box-circle {
position: absolute; position: absolute;
bottom: 10rpx; bottom: toRpx(10);
left: 50%; left: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
width: 12rpx; width: toRpx(12);
height: 12rpx; height: toRpx(12);
border-radius: 8px; border-radius: 8px;
background-color: $uni-color-error; background-color: $uni-color-error;
} }
...@@ -179,7 +179,7 @@ $uni-primary: #4673ff !default; ...@@ -179,7 +179,7 @@ $uni-primary: #4673ff !default;
background-color: $uni-primary; background-color: $uni-primary;
// opacity: 0.8; // opacity: 0.8;
color: #fff; color: #fff;
border-radius: 16rpx; border-radius: toRpx(16);
} }
.uni-calendar-item--extra { .uni-calendar-item--extra {
...@@ -190,7 +190,7 @@ $uni-primary: #4673ff !default; ...@@ -190,7 +190,7 @@ $uni-primary: #4673ff !default;
.uni-calendar-item--checked { .uni-calendar-item--checked {
background-color: $uni-primary; background-color: $uni-primary;
color: #fff; color: #fff;
border-radius: 16rpx; border-radius: toRpx(16);
// opacity: 0.8; // opacity: 0.8;
} }
...@@ -207,12 +207,12 @@ $uni-primary: #4673ff !default; ...@@ -207,12 +207,12 @@ $uni-primary: #4673ff !default;
.uni-calendar-item--before-checked { .uni-calendar-item--before-checked {
background-color: #4673FF; background-color: #4673FF;
color: #fff; color: #fff;
border-radius: 16rpx; border-radius: toRpx(16);
} }
.uni-calendar-item--after-checked { .uni-calendar-item--after-checked {
background-color: #4673FF; background-color: #4673FF;
color: #fff; color: #fff;
border-radius: inherit; border-radius: inherit;
border-radius: 16rpx; border-radius: toRpx(16);
} }
</style> </style>
...@@ -575,7 +575,7 @@ $uni-text-color-grey: #999; ...@@ -575,7 +575,7 @@ $uni-text-color-grey: #999;
bottom: calc(var(--window-bottom)); bottom: calc(var(--window-bottom));
z-index: 99; z-index: 99;
/* #endif */ /* #endif */
border-radius: 32rpx 32rpx 0 0; border-radius: toRpx(32) toRpx(32) 0 0;
} }
.uni-calendar--ani-show { .uni-calendar--ani-show {
...@@ -618,7 +618,7 @@ $uni-text-color-grey: #999; ...@@ -618,7 +618,7 @@ $uni-text-color-grey: #999;
.uni-calendar__backtoday { .uni-calendar__backtoday {
position: absolute; position: absolute;
right: 0; right: 0;
top: 25rpx; top: toRpx(25);
padding: 0 5px; padding: 0 5px;
padding-left: 10px; padding-left: 10px;
height: 25px; height: 25px;
...@@ -733,21 +733,21 @@ $uni-text-color-grey: #999; ...@@ -733,21 +733,21 @@ $uni-text-color-grey: #999;
margin: 0 auto; margin: 0 auto;
} }
.uni-calendar__footer_btns { .uni-calendar__footer_btns {
height: 176rpx; height: toRpx(176);
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
gap: 32rpx; gap: toRpx(32);
.uni-calendar__footer_btn { .uni-calendar__footer_btn {
width: 720rpx; width: toRpx(720);
height: 80rpx; height: toRpx(80);
border-radius: 64rpx; border-radius: toRpx(64);
background: #f0f1f5; background: #f0f1f5;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
color: #333333; color: #333333;
font-size: 32rpx; font-size: toRpx(32);
font-weight: 500; font-weight: 500;
} }
.uni-calendar__footer_btn-primary { .uni-calendar__footer_btn-primary {
...@@ -756,7 +756,7 @@ $uni-text-color-grey: #999; ...@@ -756,7 +756,7 @@ $uni-text-color-grey: #999;
} }
} }
.popup-close{ .popup-close{
padding: 0 48rpx; padding: 0 toRpx(48);
position: absolute; position: absolute;
right: 0; right: 0;
top: 0; top: 0;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!