zhengyiming
2025-02-24 3ee683d6b002f098e5b7fed11b54615126d82a3c
apps/taro/src/pages/home/index.vue
@@ -1,7 +1,10 @@
<template>
  <PageLayoutWithBg class="index-page-wrapper" :title="'生活缴费'" :need-auth="false">
    <ContentView>
      <RechargeGrid @phoneBillRecharge="goPhoneBillRecharge" />
      <RechargeGrid
        @phoneBillRecharge="goPhoneBillRecharge"
        @electricityBillRecharge="goElectricityBillRecharge"
      />
    </ContentView>
  </PageLayoutWithBg>
</template>
@@ -19,6 +22,11 @@
    url: `${RouterPath.phoneBillRecharge}`,
  });
});
const goElectricityBillRecharge = useAccessLogin(() => {
  Taro.navigateTo({
    url: `${RouterPath.electricBillRecharge}`,
  });
});
</script>
<style lang="scss">