Commit 9df91b05 by 李伟康

perf(images): 将积分页面图片资源从PNG格式转换为WebP格式

- 将attendance-bg.png替换为attendance-bg.webp
- 将rule_bg.png替换为rule_bg.webp
- 将point-bg.png替换为point-bg.webp
- 将tips.png替换为tips.webp
- 将unclaimed-bg.png替换为unclaimed-bg.webp
- 将claimed-bg.png替换为claimed-bg.webp
- 优化图片加载性能和文件大小
1 parent 5e7e5ad4
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
...@@ -227,7 +227,7 @@ export default { ...@@ -227,7 +227,7 @@ export default {
border-radius: toRpx(48); border-radius: toRpx(48);
// padding: 0 toRpx(48); // padding: 0 toRpx(48);
box-sizing: border-box; box-sizing: border-box;
background-image: url(@/assets/images/point/attendance-bg.png); background-image: url(@/assets/images/point/attendance-bg.webp);
background-repeat: no-repeat; background-repeat: no-repeat;
padding-bottom: toRpx(80); padding-bottom: toRpx(80);
......
...@@ -182,7 +182,7 @@ ...@@ -182,7 +182,7 @@
<view class="dailog-box"> <view class="dailog-box">
<view class="dailog-close" @click="show = false"><uni-icons type="closeempty" size="20"></uni-icons></view> <view class="dailog-close" @click="show = false"><uni-icons type="closeempty" size="20"></uni-icons></view>
<view class="dailog-logo"> <view class="dailog-logo">
<image src="../../../../assets/images/point/tips.png"></image> <image src="../../../../assets/images/point/tips.webp"></image>
</view> </view>
<view class="dailog-title">领取提醒</view> <view class="dailog-title">领取提醒</view>
<view class="dailog-content"> <view class="dailog-content">
...@@ -626,11 +626,11 @@ export default { ...@@ -626,11 +626,11 @@ export default {
} }
.unclaimed-bg { .unclaimed-bg {
background: url('../../../../assets/images/point/unclaimed-bg.png') no-repeat; background: url('../../../../assets/images/point/unclaimed-bg.webp') no-repeat;
} }
.claimed-bg { .claimed-bg {
background: url('../../../../assets/images/point/claimed-bg.png') no-repeat; background: url('../../../../assets/images/point/claimed-bg.webp') no-repeat;
} }
.coupon-bg { .coupon-bg {
......
...@@ -282,7 +282,7 @@ export default { ...@@ -282,7 +282,7 @@ export default {
} }
&.rule-box { &.rule-box {
background-image: url('../../../../assets//images/point/rule_bg.png'); background-image: url('../../../../assets//images/point/rule_bg.webp');
background-size: 100% 100%; background-size: 100% 100%;
border: none; border: none;
height: toRpx(424); height: toRpx(424);
...@@ -565,7 +565,7 @@ export default { ...@@ -565,7 +565,7 @@ export default {
width: toRpx(618); width: toRpx(618);
.month-box { .month-box {
background: url(../../../../assets//images/point/point-bg.png); background: url(../../../../assets//images/point/point-bg.webp);
background-size: 100% 100%; background-size: 100% 100%;
border: toRpx(2) solid #ffffff; border: toRpx(2) solid #ffffff;
height: 100%; height: 100%;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!