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/pages/home/index.vue | 166 +++++++++++++++++++++++++++++++++----------------------
1 files changed, 99 insertions(+), 67 deletions(-)
diff --git a/apps/taro/src/pages/home/index.vue b/apps/taro/src/pages/home/index.vue
index c09afc4..45bf44c 100644
--- a/apps/taro/src/pages/home/index.vue
+++ b/apps/taro/src/pages/home/index.vue
@@ -1,104 +1,136 @@
<template>
- <PageLayoutWithBg class="index-page-wrapper" :title="''" :need-auth="false">
- <template #left>
- <div class="menu-btn-wrapper menu-logo">
- <img :src="IconLogo" class="logo" />
- </div>
+ <PageLayoutWithBg class="index-page-wrapper" :need-auth="false">
+ <template #navigationBar>
+ <TransparentNavigationBar :title="'鐢熸椿缂磋垂'" :is-absolute="false">
+ </TransparentNavigationBar>
</template>
- <div class="home-header">
- <div class="home-banner-wrapper">
- <nut-swiper :auto-play="3000">
- <nut-swiper-item v-for="(item, index) in list" :key="index">
- <img :src="item" class="banner-img" draggable="false" />
- </nut-swiper-item>
- </nut-swiper>
+ <template #bg>
+ <img :src="OssAssets.common.HomePageBg" class="home-page-bg" />
+ </template>
+ <ContentView>
+ <div class="home-page-banner-wrapper">
+ <div class="home-page-banner-left">
+ <img :src="IconBannerLogo" class="home-page-banner-logo" />
+ <div class="home-page-banner-list">
+ <div class="home-page-banner-list-item">
+ <img :src="IconBannerItem" class="home-page-banner-list-item-icon" />
+ <div class="home-page-banner-list-item-text">鏋侀�熷埌璐�</div>
+ </div>
+ <div class="home-page-banner-list-item">
+ <img :src="IconBannerItem" class="home-page-banner-list-item-icon" />
+ <div class="home-page-banner-list-item-text">鍒拌处閫氱煡</div>
+ </div>
+ <div class="home-page-banner-list-item">
+ <img :src="IconBannerItem" class="home-page-banner-list-item-icon" />
+ <div class="home-page-banner-list-item-text">闅忔椂鍙即</div>
+ </div>
+ </div>
+ </div>
+ <img :src="IconBanner" class="home-page-banner" />
</div>
- </div>
- <RechargeGrid />
+ <RechargeGrid
+ @phoneBillRecharge="goPhoneBillRecharge"
+ @electricityBillRecharge="goElectricityBillRecharge"
+ @gasBillRecharge="goGasBillRecharge"
+ />
+ </ContentView>
</PageLayoutWithBg>
</template>
<script setup lang="ts">
-import { useUser, useInfiniteLoading } from '@/hooks';
+import { useAccessLogin } from '@/hooks';
import { useUserStore } from '@/stores/modules/user';
import Taro from '@tarojs/taro';
-import _ from 'lodash';
-import IconLogo from '@/assets/home/icon-logo.png';
import { OrderInputType } from '@life-payment/constants';
import { RechargeGrid } from '@life-payment/components';
-
-const { locationCity } = useUser();
+import CustomTabBar from '../../custom-tab-bar/index';
+import { OssAssets } from '@/constants';
+import IconBanner from '@/assets/home/icon-banner.png';
+import IconBannerLogo from '@/assets/home/icon-banner-logo.png';
+import IconBannerItem from '@/assets/home/icon-banner-item.png';
const userStore = useUserStore();
-const queryState = reactive({});
+const router = Taro.useRouter();
-const list = ref([
- 'https://storage.360buyimg.com/jdc-article/NutUItaro34.jpg',
- 'https://storage.360buyimg.com/jdc-article/NutUItaro2.jpg',
- 'https://storage.360buyimg.com/jdc-article/welcomenutui.jpg',
- 'https://storage.360buyimg.com/jdc-article/fristfabu.jpg',
-]);
-
-const selectItem = ref();
+const goPhoneBillRecharge = useAccessLogin(() => {
+ RouteHelper.navigateTo({
+ url: `${RouterPath.phoneBillRecharge}`,
+ });
+});
+const goElectricityBillRecharge = useAccessLogin(() => {
+ RouteHelper.navigateTo({
+ url: `${RouterPath.electricBillRecharge}`,
+ });
+});
+const goGasBillRecharge = useAccessLogin(() => {
+ RouteHelper.navigateTo({
+ url: `${RouterPath.gasBillRecharge}`,
+ });
+});
</script>
<style lang="scss">
@import '@/styles/common.scss';
.index-page-wrapper {
- .menu-logo {
- padding: 0;
-
- .logo {
- width: 96px;
- height: 64px;
- }
+ .home-page-bg {
+ position: fixed;
+ z-index: -1;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ object-fit: cover;
}
- .home-searchbar-wrapper {
- padding: 32px 0;
+ .home-page-banner-wrapper {
display: flex;
+ position: relative;
+ margin-bottom: -18px;
- .searchbar-container {
+ .home-page-banner-left {
flex: 1;
+ padding-top: 32px;
min-width: 0;
- }
- .city-btn {
- display: flex;
- align-items: center;
- padding-left: 36px;
- color: boleGetCssVar('text-color', 'primary');
-
- .city-btn-icon {
- width: 40px;
- height: 40px;
+ .home-page-banner-logo {
+ width: 240px;
+ height: 56px;
+ margin-bottom: 32px;
}
- .city-btn-text {
- max-width: 200px;
- @include ellipsis;
- margin-left: 12px;
- font-size: 30px;
+ .home-page-banner-list {
+ display: flex;
+
+ .home-page-banner-list-item {
+ display: flex;
+ align-items: center;
+
+ & + .home-page-banner-list-item {
+ margin-left: 24px;
+ }
+
+ .home-page-banner-list-item-icon {
+ width: 32px;
+ height: 32px;
+ margin-right: 4px;
+ }
+
+ .home-page-banner-list-item-text {
+ font-weight: 400;
+ font-size: 22px;
+ color: #645551;
+ }
+ }
}
}
- }
- .home-banner-wrapper {
- .banner-img {
- width: 100%;
- height: 260px;
- object-fit: cover;
+ .home-page-banner {
+ width: 256px;
+ height: 256px;
+ margin-top: -16px;
}
}
-
- .home-header {
- padding: 0 boleGetCssVar('size', 'body-padding-h');
- }
-}
-
-.home-list {
- @include infiniteLoadingInTabBarPage;
}
</style>
--
Gitblit v1.9.1