Commit ea702a3a by 李伟康

```

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

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