zhengyiming
2025-02-21 456de36d8e21416cdd2439437bdfd9460dcd15be
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<template>
  <PageLayoutWithBg class="index-page-wrapper" :title="'生活缴费'" :need-auth="false">
    <ContentView>
      <RechargeGrid
        @phoneBillRecharge="goPhoneBillRecharge"
        @electricityBillRecharge="goElectricityBillRecharge"
      />
    </ContentView>
  </PageLayoutWithBg>
</template>
 
<script setup lang="ts">
import { useUser, useAccessLogin } from '@/hooks';
import { useUserStore } from '@/stores/modules/user';
import Taro from '@tarojs/taro';
import IconLogo from '@/assets/home/icon-logo.png';
import { OrderInputType } from '@life-payment/constants';
import { RechargeGrid } from '@life-payment/components';
 
const goPhoneBillRecharge = useAccessLogin(() => {
  Taro.navigateTo({
    url: `${RouterPath.phoneBillRecharge}`,
  });
});
const goElectricityBillRecharge = useAccessLogin(() => {
  Taro.navigateTo({
    url: `${RouterPath.electricBillRecharge}`,
  });
});
</script>
 
<style lang="scss">
@import '@/styles/common.scss';
 
.index-page-wrapper {
  .menu-logo {
    padding: 0;
 
    .logo {
      width: 96px;
      height: 64px;
    }
  }
 
  .home-searchbar-wrapper {
    padding: 32px 0;
    display: flex;
 
    .searchbar-container {
      flex: 1;
      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;
      }
 
      .city-btn-text {
        max-width: 200px;
        @include ellipsis;
        margin-left: 12px;
        font-size: 30px;
      }
    }
  }
 
  .home-banner-wrapper {
    .banner-img {
      width: 100%;
      height: 260px;
      object-fit: cover;
    }
  }
 
  .home-header {
    padding: 0 boleGetCssVar('size', 'body-padding-h');
  }
}
 
.home-list {
  @include infiniteLoadingInTabBarPage;
}
</style>