feat(充值引导页): 增加返回键

This commit is contained in:
hzj 2025-12-09 10:40:42 +08:00
parent 983a7ea441
commit bc43176d21
3 changed files with 24 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -1,5 +1,6 @@
<template>
<div class="policy-container">
<img src="/src/assets/icon/arrowBlackGold.png" alt="" class="back-bt" @click="goBack" />
<img
:src="imageUrl(getImgName('rechargeGuide'))"
alt=""
@ -11,12 +12,12 @@
<script setup>
import { computed, onMounted, ref } from 'vue'
import { useI18n } from 'vue-i18n'
import { useRouter } from 'vue-router'
import { useLangStore } from '@/stores/lang'
import { getPngUrl } from '@/config/imagePaths.js'
import { preloadImages } from '@/utils/imagePreloader.js'
import GeneralHeader from '@/components/GeneralHeader.vue'
const router = useRouter()
// OSSURL
const imageUrl = (filename) => getPngUrl('Recharge/', filename)
//
@ -24,6 +25,10 @@ const getImgName = (filename) => {
return currentLangType.value === 'ar' ? `${filename}_ar` : filename
}
const goBack = () => {
router.go(-1)
}
const langStore = useLangStore()
const { t, locale } = useI18n()
@ -53,12 +58,28 @@ onMounted(() => {
<style lang="scss" scoped>
.policy-container {
position: relative;
height: 100vh;
background-image: url(../../assets/images/secondBg.png);
overflow-y: auto;
}
.policy-container::-webkit-scrollbar {
display: none;
}
.back-bt {
display: block;
width: 9vw;
position: absolute;
top: 15vw;
left: 5vw;
}
[dir='rtl'] .back-bt {
transform: scaleX(-1);
left: auto;
right: 5vw;
}
</style>