Commit 5281780d by 李伟康

```

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

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