feat: 支持扫雷游戏动态URL,增强活动页面滚动视图,并优化对对碰活动页签组件和奖励预览展示。

This commit is contained in:
邹方成 2025-12-26 00:01:43 +08:00
parent f0e3cdc407
commit d5527625bc
3 changed files with 30 additions and 17 deletions

View File

@ -13,7 +13,14 @@
</view>
<!-- 主要内容区域 -->
<scroll-view class="main-scroll" scroll-y>
<scroll-view
class="main-scroll"
scroll-y
:enhanced="true"
:bounces="true"
:show-scrollbar="false"
:fast-deceleration="false"
>
<!-- 头部插槽 -->
<slot name="header"></slot>

View File

@ -38,24 +38,25 @@
<!-- 奖池/记录切换 -->
<ActivityTabs
v-model:current="tabActive"
v-model="tabActive"
:tabs="[{key: 'pool', label: '本机奖池'}, {key: 'records', label: '购买记录'}]"
/>
>
<!-- 奖池预览 -->
<RewardsPreview
v-if="tabActive === 'pool'"
:rewards="currentIssueRewards"
:grouped="true"
@view-all="openRewardsPopup"
/>
<!-- 奖池预览 -->
<RewardsPreview
v-if="tabActive === 'pool'"
:reward-groups="rewardGroups"
@view-all="openRewardsPopup"
/>
<!-- 购买记录 -->
<RecordsList
v-if="tabActive === 'records'"
:records="winRecords"
/>
</ActivityTabs>
<!-- 购买记录 -->
<RecordsList
v-if="tabActive === 'records'"
:records="winRecords"
/>
<view style="height: 180rpx;"></view>
<view style="height: 180rpx;"></view>
<template #footer>
<view class="float-bar">
@ -1465,6 +1466,11 @@ onLoad((opts) => {
color: $text-sub;
}
.section-container {
padding: 0 $spacing-lg;
margin-bottom: $spacing-xl;
}
.section-header {
display: flex;
justify-content: space-between;

View File

@ -116,7 +116,7 @@ export default {
})
// URL
const gameBaseUrl = 'https://game.1024tool.vip'
const gameBaseUrl = res.client_url || 'https://game.1024tool.vip'
const gameToken = encodeURIComponent(res.game_token)
const nakamaServer = encodeURIComponent(res.nakama_server)
const nakamaKey = encodeURIComponent(res.nakama_key)