首充页面-增加返回箭头

This commit is contained in:
2025-07-03 17:35:00 +08:00
parent 8752f7baaf
commit a018a234ff
11 changed files with 61 additions and 2 deletions

View File

@@ -10,6 +10,10 @@
</head>
<body>
<!-- 頂部返回 -->
<div class="back">
<img src="./images/travel/back.png" alt="">
</div>
<div class="header">
<img src="./images/tit-en.png" alt="" class="top_img"></img>
</div>

View File

@@ -4,6 +4,28 @@ body {
background-color: #F06A3F;
}
.back {
width: 100%;
height: 0.5866666667rem;
line-height: 0.5866666667rem;
position: fixed;
left: 0;
top: 0;
padding-top: 1.4666666667rem;
padding-bottom: 0.2933333333rem;
text-align: center;
color: #FFFFFF;
font-size: 0.5066666667rem;
font-weight: bold;
z-index: 10;
}
.back img {
width: 0.5866666667rem;
height: 0.5866666667rem;
position: absolute;
left: 0.24rem;
}
.header {
background-image: url("../images/header_two.png");
background-size: 100% 100%;

View File

@@ -8,6 +8,31 @@ body {
background-color: #F06A3F;
// padding: px2rem(26);
}
.back {
width: 100%;
height: px2rem(44);
line-height: px2rem(44);
position: fixed;
left: 0;
top: 0;
padding-top: px2rem(110);
padding-bottom: px2rem(22);
text-align: center;
color: #FFFFFF;
font-size: px2rem(38);
font-weight: bold;
z-index: 10;
// background: #FFFFFF;
img {
width: px2rem(44);
height: px2rem(44);
position: absolute;
left: px2rem(18);
// top: px2rem(0);
}
}
.header {
background-image: url("../images/header_two.png");

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -41,6 +41,14 @@ $(function () {
window.webkit.messageHandlers.initShowNav.postMessage(0)
}
};
// 頂部返回事件
$('.back img').click(() => {
if (browser.android) {
window.androidJsObj.closeWebView()
} else {
window.webkit.messageHandlers.closeWebView.postMessage(null)
}
})
fuzzyMatchUpdateQueryStringParameterFun(); // 判断语言
langReplace = window.lang.replace;
localLang = window.lang;
@@ -57,7 +65,7 @@ function translateFun() {
$('.First_Bonus').text(langReplace(localLang.demoModule.First_Bonus));
$('.First_Recharge_NowBonus').text(langReplace(localLang.demoModule.Recharge_Now));
expObj = {
"7000": {
7000: {
title_txt: langReplace(localLang.demoModule.title_txt_1),
num: 1,
img: './images/top_1.png'

View File

@@ -55,7 +55,7 @@ function translateFun() {
var localLang = window.lang;
$('.top_img').attr('src',langReplace(localLang.demoModule.top_img),)
expObj = {
"7000": {
7000: {
title_txt: langReplace(localLang.demoModule.title_txt_1),
num: 1,
img: './images/top_1.png'