| | |
| | | import { PageLayout } from '@/components'; |
| | | import { RouterPath } from '@/constants'; |
| | | import { GeneratePromotionCodeView } from '@life-payment/components'; |
| | | import { goBack } from '@/utils'; |
| | | import type { ComponentExposed } from 'vue-component-type-helpers'; |
| | | import Taro from '@tarojs/taro'; |
| | | |
| | | defineOptions({ |
| | | name: 'generatePromotionCode', |
| | |
| | | generatePromotionCodeViewRef.value?.handleSubmit?.(); |
| | | } |
| | | |
| | | function submit() { |
| | | function submit(value: string) { |
| | | RouteHelper.navigateTo({ |
| | | url: RouterPath.applyResult, |
| | | url: `${RouterPath.promotionQrcode}?promoterIdNumber=${value}`, |
| | | }); |
| | | } |
| | | </script> |