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