Commit ea702a3a by 李伟康

```

refactor(equity-tool): 统一使用 toRpx 函数处理样式单位

将多个组件中的硬编码 rpx 单位替换为 toRpx 函数处理,以提升样式维护性和一致性。
同时修正部分样式数值精度及计算方式,确保显示效果与设计稿一致。
```
1 parent 4f230aa3
......@@ -1046,12 +1046,12 @@ export default {
color: #999;
}
.btns {
padding: 24rpx 128rpx;
gap: 32rpx;
padding: toRpx(24) toRpx(128);
gap: toRpx(32);
.save {
background: #3b73ff1a;
color: #4673ff;
font-size: 28rpx;
font-size: toRpx(28);
font-weight: 500;
}
}
......@@ -1067,11 +1067,11 @@ export default {
}
.customer-title {
.customer-file {
margin-left: 20rpx;
margin-left: toRpx(20);
color: #347bff;
font-size: 24rpx;
font-size: toRpx(24);
.sprite-icon {
margin-right: 4rpx;
margin-right: toRpx(4);
}
}
}
......
......@@ -344,7 +344,7 @@ export default {
total = NP.plus(total, i.sellPrice * i.number)
})
item.packageGoods.totalPrice = total
return total.toFixed(2)
return total
},
}
}
......@@ -352,7 +352,7 @@ export default {
<style scoped lang="scss">
.shop-list {
padding: 0 toRpx(32) toRpx(32) 0;
padding-right: toRpx(32);
.shop-item {
display: flex;
......@@ -371,7 +371,7 @@ export default {
.one-line {
display: flex;
align-items: center;
min-height: 72rpx;
min-height: toRpx(72);
.front-gear-box {
margin-left: auto;
}
......@@ -382,7 +382,7 @@ export default {
word-break: break-all;
}
.name-top {
margin-top: 4rpx;
margin-top: toRpx(4);
}
.alias {
margin-top: toRpx(12);
......@@ -400,34 +400,34 @@ export default {
.total-price {
margin-left: auto;
color: #292d33;
font-size: 28rpx;
font-size: toRpx(28);
font-weight: 400;
}
}
.line {
width: calc(100% + 48rpx);
margin-left: -24rpx;
height: 2rpx;
width: calc(100% + #{toRpx(48)});
margin-left: toMinusRpx(24);
height: toRpx(2);
background-color: #dce1e6;
margin-top: 24rpx;
margin-top: toRpx(24);
}
.package-item {
margin-top: 16rpx;
margin-top: toRpx(16);
}
.sprite-icon {
margin-right: 24rpx;
margin-right: toRpx(24);
flex-shrink: 0;
}
.package-icon {
width: 12rpx;
height: 12rpx;
width: toRpx(12);
height: toRpx(12);
border-radius: 50%;
background: #4673ff;
margin-right: 16rpx;
margin-right: toRpx(16);
}
.package-label {
color: #292d33;
font-size: 28rpx;
font-size: toRpx(28);
flex-shrink: 0;
max-width: 80%;
}
......@@ -437,12 +437,12 @@ export default {
}
}
.number {
margin-left: 16rpx;
margin-left: toRpx(16);
}
.front-number-box{
position: absolute;
top: 50%;
right: 24rpx;
right: toRpx(24);
transform: translateY(-50%);
}
......@@ -474,7 +474,7 @@ export default {
.uni-input {
padding: 0 toRpx(32);
height: 100%;
font-size: 28rpx;
font-size: toRpx(28);
}
.unit {
......
......@@ -147,7 +147,7 @@ export default {
padding: 0 toRpx(48);
}
.back {
height: 40rpx;
height: toRpx(40);
}
.upload-proof-of-payment {
width: 100%;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!