| | |
| | | import { RouterPath, OssAssets } from '@/constants'; |
| | | import { Image } from '@tarojs/components'; |
| | | import Taro from '@tarojs/taro'; |
| | | import { useLifeRechargeContext } from '@life-payment/core-vue'; |
| | | |
| | | defineOptions({ |
| | | name: 'AgentRecruitment', |
| | |
| | | |
| | | const promoterIdNumber = router.params?.promoterIdNumber ?? ''; |
| | | |
| | | onMounted(() => { |
| | | if (promoterIdNumber) { |
| | | setClickCount(); |
| | | } |
| | | }); |
| | | |
| | | function submit() { |
| | | RouteHelper.navigateTo({ |
| | | url: RouterPath.applyAgent, |
| | | url: promoterIdNumber |
| | | ? `${RouterPath.applyAgent}?promoterIdNumber=${promoterIdNumber}` |
| | | : RouterPath.applyAgent, |
| | | }); |
| | | } |
| | | |
| | | const { blLifeRecharge } = useLifeRechargeContext(); |
| | | |
| | | async function setClickCount() { |
| | | try { |
| | | let res = await blLifeRecharge.services.setClickCount({ |
| | | idnumber: promoterIdNumber, |
| | | }); |
| | | } catch (error) {} |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss"> |