| | |
| | | <template> |
| | | <PageLayout |
| | | <PageLayoutWithBg |
| | | class="electricBillRecharge-page-wrapper" |
| | | :style=" |
| | | current === 'step2' && { |
| | | backgroundImage: `url(${OssAssets.common.PhoneBillRechargePageBg})`, |
| | | } |
| | | " |
| | | :title="current != 'step2' ? title : ''" |
| | | > |
| | | <template #navigationBar v-if="current === 'step2'"> |
| | | <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="electricBillRecharge-page-bg" |
| | | :style=" |
| | | current === 'step2' && { |
| | | 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: 'electricBillRecharge', |
| | |
| | | function handleCurrentChange(val: Current) { |
| | | current.value = val; |
| | | } |
| | | |
| | | const { rangeValue, scroll } = useScrollRange(); |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | | @import '@/styles/common.scss'; |
| | | |
| | | .electricBillRecharge-page-wrapper { |
| | | background-size: 100% 452px; |
| | | background-color: $body-background-color; |
| | | background-repeat: no-repeat; |
| | | |
| | | .electricBillRecharge-page-bg { |
| | | position: absolute; |
| | | z-index: 1; |
| | | top: 0; |
| | | left: 0; |
| | | right: 0; |
| | | bottom: 0; |
| | | background-size: 100% 452px; |
| | | background-repeat: no-repeat; |
| | | } |
| | | } |
| | | </style> |