Commit a7ee35b2 by 李伟康

fix(components): 修复 calc 函数中 toRpx 的使用方式

- 在 GoodsList.vue 和 SkuPopup.vue 组件中,修正了 calc 函数中的 toRpx 使用方式
- 将 toRpx(32) 和 toRpx(350) 用法改为 #{toRpx(32)} 和 #{toRpx(350)}
- 这种修改解决了在某些环境下可能出现的样式计算错误问题
1 parent 143a42d9
...@@ -260,7 +260,7 @@ export default { ...@@ -260,7 +260,7 @@ export default {
flex-wrap: wrap; flex-wrap: wrap;
margin: 0 toRpx(48); margin: 0 toRpx(48);
.item { .item {
width: calc((100% - toRpx(32)) / 2); width: calc((100% - #{toRpx(32)}) / 2);
justify-content: center; justify-content: center;
min-height: toRpx(72); min-height: toRpx(72);
border-radius: toRpx(8); border-radius: toRpx(8);
......
...@@ -149,7 +149,7 @@ export default { ...@@ -149,7 +149,7 @@ export default {
padding-left: toRpx(48); padding-left: toRpx(48);
} }
.popup-body { .popup-body {
height: calc(100% - toRpx(350)); height: calc(100% - #{toRpx(350)});
.popup-scroll-view { .popup-scroll-view {
height: 100%; height: 100%;
padding-top: toRpx(24); padding-top: toRpx(24);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!