| | |
| | | <template> |
| | | <ContentScrollView> |
| | | <SelectPayTypeView style="margin-top: 40px" /> |
| | | <SelectPayTypeView style="margin-top: 40px" @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', |
| | | }); |
| | | |
| | | function handePaySuccess( |
| | | orderNo: string, |
| | | lifePayOrderType: LifeRechargeConstants.LifePayOrderTypeEnum |
| | | ) { |
| | | Taro.navigateTo({ |
| | | url: `${RouterPath.rechargeResult}?orderNo=${orderNo}&lifePayOrderType=${lifePayOrderType}`, |
| | | }); |
| | | } |
| | | </script> |