From 1910e9f27373b8b4da75f076762025ceb3419965 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期四, 12 六月 2025 15:40:50 +0800
Subject: [PATCH] fix: 暂时隐藏电信充值通道
---
apps/taro/src/subpackages/recharge/gasBillRecharge/gasBillRecharge.vue | 52 +++++++++++++++++++++++++++++++---------------------
1 files changed, 31 insertions(+), 21 deletions(-)
diff --git a/apps/taro/src/subpackages/recharge/gasBillRecharge/gasBillRecharge.vue b/apps/taro/src/subpackages/recharge/gasBillRecharge/gasBillRecharge.vue
index 437bc9a..0727a4e 100644
--- a/apps/taro/src/subpackages/recharge/gasBillRecharge/gasBillRecharge.vue
+++ b/apps/taro/src/subpackages/recharge/gasBillRecharge/gasBillRecharge.vue
@@ -1,30 +1,29 @@
<template>
- <PageLayout
- class="gasBillRecharge-page-wrapper"
- :style="
- current === 'step3' && {
- backgroundImage: `url(${OssAssets.common.PhoneBillRechargePageBg})`,
- }
- "
- :title="current != 'step3' ? title : ''"
- >
+ <PageLayoutWithBg class="gasBillRecharge-page-wrapper" :title="current != 'step3' ? title : ''">
<template #navigationBar v-if="current === 'step3'">
- <TransparentNavigationBar
- :title="title"
- :is-absolute="false"
- mode="dark"
- navigationArrowWhite
- >
- </TransparentNavigationBar>
+ <TranslateNavigationBar :title="title" :rangeValue="rangeValue"> </TranslateNavigationBar>
</template>
- <InnerPage @currentChange="handleCurrentChange" />
- </PageLayout>
+ <template #bg>
+ <div
+ class="gasBillRecharge-page-bg"
+ :style="
+ current === 'step3' && {
+ backgroundImage: `url(${OssAssets.common.PhoneBillRechargePageBg})`,
+ opacity: 1 - rangeValue,
+ }
+ "
+ ></div>
+ </template>
+ <ContentScrollView hasPaddingTop style="background-color: transparent" @scroll="scroll">
+ <InnerPage @currentChange="handleCurrentChange" />
+ </ContentScrollView>
+ </PageLayoutWithBg>
</template>
<script setup lang="ts">
-import { PageLayout } from '@/components';
import InnerPage from './InnerPage.vue';
import { OssAssets } from '@/constants';
+import { useScrollRange } from '@/hooks';
defineOptions({
name: 'gasBillRecharge',
@@ -39,14 +38,25 @@
function handleCurrentChange(val: Current) {
current.value = val;
}
+
+const { rangeValue, scroll } = useScrollRange();
</script>
<style lang="scss">
@import '@/styles/common.scss';
.gasBillRecharge-page-wrapper {
- background-size: 100% 452px;
background-color: $body-background-color;
- background-repeat: no-repeat;
+
+ .gasBillRecharge-page-bg {
+ position: absolute;
+ z-index: 1;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ background-size: 100% 452px;
+ background-repeat: no-repeat;
+ }
}
</style>
--
Gitblit v1.9.1