feat(充值奖励页): 新增帮助按钮及其功能

This commit is contained in:
hzj 2025-11-28 18:04:14 +08:00
parent 200a557cca
commit 21ced27aee
3 changed files with 42 additions and 12 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

View File

@ -3,7 +3,24 @@
<!-- Rewards0.png 使用相对定位容器 -->
<div style="position: relative">
<img :src="images.Rewards0" alt="" style="width: 100%; display: block" />
<!-- 绝对定位的覆盖层 Rewards0.png 同级 -->
<!-- 帮助按钮 -->
<img
v-smart-img
:src="images.help"
alt=""
style="
position: absolute;
top: 2%;
right: 4%;
display: block;
width: 10vw;
aspect-ratio: 1/1;
object-fit: cover;
"
@click="maskLayerShow = true"
/>
<!-- 用户信息累积充值金额 -->
<div
style="
position: absolute;
@ -90,11 +107,19 @@
</div>
<!-- 其他图片直接引入 -->
<img :src="images.Rewards1" alt="" style="width: 100%; display: block" />
<img :src="images.Rewards2" alt="" style="width: 100%; display: block" />
<img :src="images.Rewards3" alt="" style="width: 100%; display: block" />
<img :src="images.Rewards4" alt="" style="width: 100%; display: block" />
<img :src="images.Rewards5" alt="" style="width: 100%; display: block" />
<img v-smart-img :src="images.Rewards1" alt="" style="width: 100%; display: block" />
<img v-smart-img :src="images.Rewards2" alt="" style="width: 100%; display: block" />
<img v-smart-img :src="images.Rewards3" alt="" style="width: 100%; display: block" />
<img v-smart-img :src="images.Rewards4" alt="" style="width: 100%; display: block" />
<img v-smart-img :src="images.Rewards5" alt="" style="width: 100%; display: block" />
<!-- 弹窗遮罩层 -->
<maskLayer :maskLayerShow="maskLayerShow" @click="maskLayerShow = false">
<!-- help弹窗 -->
<div style="margin: 20% 0" @click.stop>
<img v-smart-img :src="images.helpInfo" alt="" style="display: block; width: 100%" />
</div>
</maskLayer>
</div>
</template>
@ -104,12 +129,7 @@ import { connectToApp } from '@/utils/appConnector.js'
import { getMemberProfile, getTotalRecharge } from '@/api/wallet'
const userInfo = ref({
account: '',
userNickname: '',
userAvatar: '',
recharge: '',
}) //
import maskLayer from '@/components/MaskLayer.vue'
// 使Lottery.vue
const imageModules = import.meta.glob('@/assets/images/RechargeReward/*.{jpg,png,svg}', {
@ -123,6 +143,16 @@ const images = Object.fromEntries(
})
)
const maskLayerShow = ref(false) //
//
const userInfo = ref({
account: '',
userNickname: '',
userAvatar: '',
recharge: '',
})
//
const getTotalRechargeInfo = async () => {
//