Compare commits
4
Commits
3049b2a1b9
...
2b57392ce0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2b57392ce0 | ||
|
|
7c1ae86a4e | ||
|
|
701a032532 | ||
|
|
b6bfdf18b8 |
+22
-1
@@ -21,7 +21,8 @@
|
|||||||
</view>
|
</view>
|
||||||
<text class="head-right">数量有限 先到先得</text>
|
<text class="head-right">数量有限 先到先得</text>
|
||||||
</view>
|
</view>
|
||||||
<text class="pack-sub">本期已产生10,000份千元权益包·实时公证开奖</text>
|
<!-- xuchao: 数量取中奖名单实际总人数(各期 total 求和),接口失败/未出时兜底 10,000 -->
|
||||||
|
<text class="pack-sub">已产生 {{ winCountText }} 份千元权益包·实时公证开奖</text>
|
||||||
<!-- 查询按钮整图切图(含渐变底/礼盒图标/文案),点击打开中奖查询半屏弹层 -->
|
<!-- 查询按钮整图切图(含渐变底/礼盒图标/文案),点击打开中奖查询半屏弹层 -->
|
||||||
<image class="btn-query" src="/static/hhrs2_btn_query.png" mode="widthFix" @click="openQuery()"></image>
|
<image class="btn-query" src="/static/hhrs2_btn_query.png" mode="widthFix" @click="openQuery()"></image>
|
||||||
<!-- 指南轮播:两张图 3 秒自动轮播,图片下方指示点标当前张 -->
|
<!-- 指南轮播:两张图 3 秒自动轮播,图片下方指示点标当前张 -->
|
||||||
@@ -80,11 +81,18 @@
|
|||||||
return {
|
return {
|
||||||
storeGroups: [],
|
storeGroups: [],
|
||||||
queryVisible: false,
|
queryVisible: false,
|
||||||
|
// xuchao: 千元权益包发放数 = 中奖名单总数;加载前用 10000 兜底
|
||||||
|
winPackCount: 10000,
|
||||||
// xuchao: 云闪付免密登录是否仍在进行中 —— 返回前不放行任何依赖身份的跳转
|
// xuchao: 云闪付免密登录是否仍在进行中 —— 返回前不放行任何依赖身份的跳转
|
||||||
tokenLoginPending: false,
|
tokenLoginPending: false,
|
||||||
tokenLoginTimer: null
|
tokenLoginTimer: null
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
winCountText() {
|
||||||
|
return (this.winPackCount || 10000).toLocaleString()
|
||||||
|
}
|
||||||
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
// xuchao: 云闪付入口带 token 进来 —— 直接免密换取会话,不经过手机号验证码
|
// xuchao: 云闪付入口带 token 进来 —— 直接免密换取会话,不经过手机号验证码
|
||||||
if (options.token) {
|
if (options.token) {
|
||||||
@@ -96,6 +104,7 @@
|
|||||||
}
|
}
|
||||||
this.getLocation()
|
this.getLocation()
|
||||||
this.loadStores()
|
this.loadStores()
|
||||||
|
this.loadWinCount()
|
||||||
},
|
},
|
||||||
// xuchao: 离开首页时收尾,避免看门狗与遮罩残留
|
// xuchao: 离开首页时收尾,避免看门狗与遮罩残留
|
||||||
onUnload() {
|
onUnload() {
|
||||||
@@ -103,6 +112,18 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// xuchao: 首页商户板块按分类面板数量降序取前 4 类,每类取列表里前 8 家(2 行 4 列),与设计稿分组宫格一致
|
// xuchao: 首页商户板块按分类面板数量降序取前 4 类,每类取列表里前 8 家(2 行 4 列),与设计稿分组宫格一致
|
||||||
|
// xuchao: 首页"会产生 N 份"= 各期开奖名单 total 求和(与中奖公示页"已产生"同口径);
|
||||||
|
// pageSize=1 只取计数不拉名单,失败静默保持 10,000 兜底
|
||||||
|
loadWinCount() {
|
||||||
|
this.$u.api.getWinnerDates().then(res => {
|
||||||
|
if (res.errcode !== 0 || !Array.isArray(res.data) || !res.data.length) return
|
||||||
|
Promise.all(res.data.map(d => this.$u.api.getWinnerList({ pageNo: 1, pageSize: 1, drawDate: d })))
|
||||||
|
.then(list => {
|
||||||
|
const sum = list.reduce((acc, r) => acc + ((r && r.errcode === 0 && r.data && r.data.total) || 0), 0)
|
||||||
|
if (sum > 0) this.winPackCount = sum
|
||||||
|
}).catch(() => {})
|
||||||
|
}).catch(() => {})
|
||||||
|
},
|
||||||
loadStores() {
|
loadStores() {
|
||||||
this.$u.api.getStoreList({ pageNo: 1, pageSize: 60, typeId: 2 }).then(res => {
|
this.$u.api.getStoreList({ pageNo: 1, pageSize: 60, typeId: 2 }).then(res => {
|
||||||
if (res.errcode !== 0 || !res.data) return
|
if (res.errcode !== 0 || !res.data) return
|
||||||
|
|||||||
+20
-18
@@ -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,49 +737,51 @@
|
|||||||
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 {
|
||||||
width: 18px;
|
width: 14px;
|
||||||
height: 18px;
|
height: 14px;
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
color: #E0342B;
|
color: #E0342B;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: 18px;
|
line-height: 14px;
|
||||||
font-size: 12px;
|
font-size: 11px;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
.expire-text {
|
.expire-text {
|
||||||
font-size: 24px;
|
font-size: 16px;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
.expire-label {
|
.expire-label {
|
||||||
font-size: 24px;
|
font-size: 16px;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -250,7 +250,10 @@
|
|||||||
.logo { width: 100%; height: 100%; display: block; }
|
.logo { width: 100%; height: 100%; display: block; }
|
||||||
.head-name {
|
.head-name {
|
||||||
flex: 1; min-width: 0; font-size: 36rpx; font-weight: 800; color: #33200F;
|
flex: 1; min-width: 0; font-size: 36rpx; font-weight: 800; color: #33200F;
|
||||||
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
/* xuchao: 店铺名完整显示,允许换行,不用省略号 */
|
||||||
|
white-space: normal;
|
||||||
|
word-break: break-all;
|
||||||
|
line-height: 1.35;
|
||||||
}
|
}
|
||||||
.badge {
|
.badge {
|
||||||
flex-shrink: 0; min-width: 132rpx; border-radius: 14rpx; padding: 12rpx 16rpx;
|
flex-shrink: 0; min-width: 132rpx; border-radius: 14rpx; padding: 12rpx 16rpx;
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 627 KiB |
Reference in New Issue
Block a user