zhengyiming
2025-02-24 58c6417603cc9e4c1012ba4fc4c6306dcb0e2324
apps/taro/src/subpackages/recharge/selectPayType/InnerPage.vue
@@ -1,13 +1,32 @@
<template>
  <ContentScrollView>
    <SelectPayTypeView style="margin-top: 40px" />
    <SelectPayTypeView
      style="margin-top: 40px"
      :orderNo="orderNo"
      :lifePayOrderType="lifePayOrderType"
      @paySuccess="handePaySuccess"
    />
  </ContentScrollView>
</template>
<script setup lang="ts">
import { SelectPayTypeView } from '@life-payment/components';
import { SelectPayTypeView, LifeRechargeConstants } from '@life-payment/components';
import Taro from '@tarojs/taro';
defineOptions({
  name: 'selectPayType',
});
const router = Taro.useRouter();
const orderNo = router.params?.orderNo ?? '';
const lifePayOrderType = Number(router.params?.lifePayOrderType ?? '');
function handePaySuccess(
  orderNo: string,
  lifePayOrderType: LifeRechargeConstants.LifePayOrderTypeEnum
) {
  Taro.navigateTo({
    url: `${RouterPath.rechargeResult}?orderNo=${orderNo}&lifePayOrderType=${lifePayOrderType}`,
  });
}
</script>