Commit 5d6a6825 by 李伟康

fix(delivery-management): 优化交付流程组件样式与功能

- 调整 Step1 和 DetailInfo 中图标尺寸及布局样式
- 修复 Step2 图片上传 loading 提示重复显示问题
- 统一 Step2 中 CSS 类名书写格式(增加空格)
- 优化 Steps 组件步骤数字样式实现方式,提升可维护性
- 修改 index.vue 搜索框 input 事件绑定逻辑
- 将 overflow-y 样式从 scroll 改为 auto 以提升体验
1 parent 3259561a
...@@ -132,6 +132,8 @@ export default { ...@@ -132,6 +132,8 @@ export default {
right: calc(100% + #{toRpx(8)}); right: calc(100% + #{toRpx(8)});
top: 50%; top: 50%;
transform: translateY(-50%) rotate(180deg); transform: translateY(-50%) rotate(180deg);
width: toRpx(32);
height: toRpx(32);
} }
} }
} }
......
...@@ -122,8 +122,8 @@ export default { ...@@ -122,8 +122,8 @@ export default {
throw '图片上传最大10MB' throw '图片上传最大10MB'
} }
} }
for (let i = 0; i < res.tempFilePaths.length; i++) {
uni.showLoading({ title: '上传中...', mask: true }) uni.showLoading({ title: '上传中...', mask: true })
for (let i = 0; i < res.tempFilePaths.length; i++) {
const url = await uploadFile(res.tempFiles[i], res.tempFilePaths[i]) const url = await uploadFile(res.tempFiles[i], res.tempFilePaths[i])
_this.imgList.push(url) _this.imgList.push(url)
} }
...@@ -250,7 +250,7 @@ export default { ...@@ -250,7 +250,7 @@ export default {
} }
.remark-box { .remark-box {
padding-bottom: toRpx(28); padding-bottom: toRpx(28);
.title{ .title {
padding-bottom: toRpx(24); padding-bottom: toRpx(24);
} }
.remark { .remark {
...@@ -312,7 +312,7 @@ export default { ...@@ -312,7 +312,7 @@ export default {
opacity: 0.5; opacity: 0.5;
} }
} }
.block{ .block {
width: 100%; width: 100%;
height: toRpx(24); height: toRpx(24);
} }
......
...@@ -66,38 +66,22 @@ export default { ...@@ -66,38 +66,22 @@ export default {
.serial-num { .serial-num {
width: toRpx(46); width: toRpx(46);
height: toRpx(46); height: toRpx(46);
border-radius: 50%; border-radius: 100%;
box-sizing: border-box; box-sizing: border-box;
margin-right: toRpx(12); margin-right: toRpx(12);
position: relative; position: relative;
border: toRpx(3) solid #b1b1b1;
justify-content: center;
.num { .num {
position: absolute; width: 100%;
top: 50%; height: 100%;
left: 50%; border: toRpx(3) solid #fff;
transform: translate(-50%, -50%);
width: toRpx(38);
height: toRpx(38);
background: #b1b1b1; background: #b1b1b1;
color: #fff; color: #fff;
border-radius: 50%; border-radius: 100%;
justify-content: center; justify-content: center;
font-size: toRpx(28); font-size: toRpx(28);
font-weight: 700; font-weight: 700;
overflow: hidden;
z-index: 3;
}
&::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 100%;
height: 100%;
transform: translate(-50%, -50%);
border-radius: 100%;
z-index: 2;
box-sizing: border-box;
border: toRpx(2) solid #b1b1b1;
} }
} }
.line { .line {
...@@ -110,9 +94,7 @@ export default { ...@@ -110,9 +94,7 @@ export default {
.active-item { .active-item {
color: #4673ff; color: #4673ff;
.serial-num { .serial-num {
&::after {
border-color: #4673ff; border-color: #4673ff;
}
box-shadow: toRpx(3) toRpx(3) toRpx(4) #d7e3ff; box-shadow: toRpx(3) toRpx(3) toRpx(4) #d7e3ff;
.num { .num {
background: #4673ff; background: #4673ff;
......
...@@ -95,7 +95,7 @@ export default { ...@@ -95,7 +95,7 @@ export default {
height: 100%; height: 100%;
.step-component { .step-component {
height: calc(100% - #{toRpx(128)}); height: calc(100% - #{toRpx(128)});
overflow-y: scroll; overflow-y: auto;
position: relative; position: relative;
.step-view { .step-view {
position: absolute; //验证 position: absolute; //验证
......
...@@ -200,6 +200,11 @@ export default { ...@@ -200,6 +200,11 @@ export default {
top: toRpx(16); top: toRpx(16);
left: toRpx(16); left: toRpx(16);
transform: rotate(180deg); transform: rotate(180deg);
width: toRpx(32);
height: toRpx(32);
display: flex;
align-items: center;
justify-content: center;
} }
} }
.item { .item {
......
...@@ -43,7 +43,6 @@ ...@@ -43,7 +43,6 @@
:maxlength="50" :maxlength="50"
v-model="searchText" v-model="searchText"
class="input" class="input"
@input="inputCustomer"
placeholder="请输入车型/客户姓名/客户联系方式" placeholder="请输入车型/客户姓名/客户联系方式"
@focus="focusIndex = 1" @focus="focusIndex = 1"
@blur="resetFocusIndex" @blur="resetFocusIndex"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!