feat:权益包中奖页头部横幅替换为设计稿整图(到期时间改为动态浮层)

- 原纯色红底+文字标题区域换成 hhrs2_rights_win.png 整图(widthFix 通栏,加载前同色底防闪白)
- 到期时间胶囊绝对定位于图内左下空橙区,避开统计卡遮挡带
- webp 源转 png 入库,兼容老版本 iOS 微信

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
jacobxu666
2026-10-27 10:51:31 +08:00
co-authored by Claude Fable 5
parent 701a032532
commit 7c1ae86a4e
2 changed files with 14 additions and 12 deletions
+14 -12
View File
@@ -60,10 +60,10 @@
<!-- 状态3: 权益信息 --> <!-- 状态3: 权益信息 -->
<view v-if="status === 'info'"> <view v-if="status === 'info'">
<!-- 蓝色头部横幅 --> <!-- xuchao: 中奖横幅按设计稿整图烘焙(恭喜文案+权益包卡插画),到期时间为动态浮层 -->
<view style="background: #fff;"> <view style="background: #fff;">
<view class="banner-area"> <view class="banner-area">
<text class="banner-title">恭喜您!获得怀化市社保卡权益包</text> <image class="banner-img" src="/static/hhrs2_rights_win.png" mode="widthFix"></image>
<view class="banner-expire" v-if="expiresTime"> <view class="banner-expire" v-if="expiresTime">
<text class="expire-icon">!</text> <text class="expire-icon">!</text>
<text class="expire-text">{{ expiresTime }}</text> <text class="expire-text">{{ expiresTime }}</text>
@@ -737,27 +737,29 @@
line-height: 1.6; line-height: 1.6;
} }
/* 权益信息 - 蓝色横幅 */ /* 权益信息 - 中奖横幅(整图烘焙,动态到期浮层) */
.banner-area { .banner-area {
background-color: #E8542F; position: relative;
padding: 80px 16px 96px; background-color: #E8542F; /* 图加载前的同色底,避免闪白 */
border-radius: 0 0 50px 50px;
} }
.banner-title { .banner-img {
font-size: 24px; width: 100%;
color: #ffffff;
font-weight: 700;
display: block; display: block;
text-align: center;
margin-bottom: 12px;
} }
/* xuchao: 到期胶囊浮在图上左下空橙区;bottom 需高于统计卡上浮遮挡区(60px) */
.banner-expire { .banner-expire {
position: absolute;
left: 7%;
bottom: 80px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
gap: 6px; gap: 6px;
background: rgba(255, 255, 255, 0.22);
border-radius: 20px;
padding: 4px 12px;
} }
.expire-icon { .expire-icon {
Binary file not shown.

After

Width:  |  Height:  |  Size: 627 KiB