Commit 5281780d by 李伟康

```

refactor(boutique-page): 将页面样式中的 rpx 单位统一转换为 toRpx 函数调用

将 boutique 页面中所有写死的 rpx 样式单位替换为通过 toRpx 函数动态计算的形式,
以提升样式在不同设备上的适配能力,确保 UI 在多种屏幕密度下表现一致。
```
1 parent f0d80c06
...@@ -502,15 +502,15 @@ export default { ...@@ -502,15 +502,15 @@ export default {
z-index: -1; z-index: -1;
} }
.name { .name {
padding-top: 35rpx; padding-top: toRpx(35);
text-indent: 134rpx; text-indent: toRpx(134);
color: #333333; color: #333333;
font-size: 32rpx; font-size: toRpx(32);
font-weight: 500; font-weight: 500;
} }
.swiper-content-box { .swiper-content-box {
margin: 24rpx 32rpx 0; margin: toRpx(24) toRpx(32) 0;
height: 264rpx; height: toRpx(264);
position: relative; position: relative;
.price, .price,
.briefIntroduction { .briefIntroduction {
...@@ -518,94 +518,94 @@ export default { ...@@ -518,94 +518,94 @@ export default {
} }
.price-1 { .price-1 {
color: #999999; color: #999999;
font-size: 20rpx; font-size: toRpx(20);
left: 32rpx; left: toRpx(32);
top: 63rpx; top: toRpx(63);
width: 194rpx; width: toRpx(194);
text-align: center; text-align: center;
.num { .num {
color: #333333; color: #333333;
font-size: 32rpx; font-size: toRpx(32);
font-weight: 700; font-weight: 700;
justify-content: center; justify-content: center;
.unit { .unit {
margin-right: 4rpx; margin-right: toRpx(4);
} }
} }
} }
.price-2 { .price-2 {
left: 258rpx; left: toRpx(258);
top: 96rpx; top: toRpx(96);
width: 188rpx; width: toRpx(188);
color: #ff4747; color: #ff4747;
font-size: 36rpx; font-size: toRpx(36);
font-weight: 700; font-weight: 700;
justify-content: center; justify-content: center;
} }
.price-3 { .price-3 {
top: 54rpx; top: toRpx(54);
left: 456rpx; left: toRpx(456);
color: #999999; color: #999999;
font-size: 28rpx; font-size: toRpx(28);
width: 296rpx; width: toRpx(296);
text-align: center; text-align: center;
.num { .num {
color: #ff4747; color: #ff4747;
font-size: 44rpx; font-size: toRpx(44);
font-weight: 700; font-weight: 700;
justify-content: center; justify-content: center;
.unit { .unit {
margin-right: 8rpx; margin-right: toRpx(8);
} }
} }
} }
.briefIntroduction { .briefIntroduction {
left: 0; left: 0;
top: 212rpx; top: toRpx(212);
color: #666666; color: #666666;
font-size: 24rpx; font-size: toRpx(24);
width: 100%; width: 100%;
text-align: center; text-align: center;
} }
} }
.swiper-btn { .swiper-btn {
color: #4673ff; color: #4673ff;
font-size: 26rpx; font-size: toRpx(26);
text-align: center; text-align: center;
margin-top: 16rpx; margin-top: toRpx(16);
} }
} }
.swiper-zoom { .swiper-zoom {
zoom: 0.71; zoom: 0.71;
} }
.package-detail-box { .package-detail-box {
padding-bottom: 100rpx; padding-bottom: toRpx(100);
margin: 0 64rpx; margin: 0 toRpx(64);
.package-box { .package-box {
border-radius: 40rpx; border-radius: toRpx(40);
background: #ffffff; background: #ffffff;
box-shadow: 0 12rpx 24rpx 0 #2c66f726; box-shadow: 0 toRpx(12) toRpx(24) 0 #2c66f726;
margin-bottom: 32rpx; margin-bottom: toRpx(32);
box-sizing: border-box; box-sizing: border-box;
padding: 32rpx; padding: toRpx(32);
.package-name { .package-name {
color: #333333; color: #333333;
font-size: 40rpx; font-size: toRpx(40);
font-weight: 500; font-weight: 500;
line-height: 56rpx; line-height: toRpx(56);
margin-bottom: 16rpx; margin-bottom: toRpx(16);
} }
.package-content { .package-content {
line-height: 44rpx; line-height: toRpx(44);
color: #333333; color: #333333;
font-size: 28rpx; font-size: toRpx(28);
} }
} }
.package-detail { .package-detail {
border: 1.6rpx solid #4673ff80; border: toRpx(2) solid #4673ff80;
background: #4673ff1a; background: #4673ff1a;
box-shadow: 0 12rpx 24rpx 0 #2c66f726; box-shadow: 0 toRpx(12) toRpx(24) 0 #2c66f726;
.package-name { .package-name {
color: #4673ff; color: #4673ff;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!