| | |
| | | </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 IconLogo from '@/assets/home/icon-logo.png'; |
| | | import { OrderInputType } from '@life-payment/constants'; |
| | | import { RechargeGrid } from '@life-payment/components'; |
| | | |
| | | function goPhoneBillRecharge() { |
| | | const userStore = useUserStore(); |
| | | |
| | | const router = Taro.useRouter(); |
| | | |
| | | const goPhoneBillRecharge = useAccessLogin(() => { |
| | | Taro.navigateTo({ |
| | | url: `${RouterPath.phoneBillRecharge}`, |
| | | }) |
| | | .then(() => { |
| | | console.log('Navigate successfully'); |
| | | }) |
| | | .catch((err) => { |
| | | console.error('Navigation failed:', err); |
| | | }); |
| | | } |
| | | function goElectricityBillRecharge() { |
| | | }); |
| | | }); |
| | | const goElectricityBillRecharge = useAccessLogin(() => { |
| | | Taro.navigateTo({ |
| | | url: `${RouterPath.electricBillRecharge}`, |
| | | }) |
| | | .then(() => { |
| | | console.log('Navigate successfully'); |
| | | }) |
| | | .catch((err) => { |
| | | console.error('Navigation failed:', err); |
| | | }); |
| | | } |
| | | }); |
| | | }); |
| | | </script> |
| | | |
| | | <style lang="scss"> |