| | |
| | | import { Image } from '@tarojs/components'; |
| | | import Taro from '@tarojs/taro'; |
| | | import { useLifeRechargeContext } from '@life-payment/core-vue'; |
| | | import { useUser } from '@/hooks'; |
| | | import { isH5, isInWeChat } from '@/utils/env'; |
| | | |
| | | defineOptions({ |
| | | name: 'AgentRecruitment', |
| | |
| | | const router = Taro.useRouter(); |
| | | |
| | | const promoterIdNumber = router.params?.promoterIdNumber ?? ''; |
| | | //微信网页授权code 需要重定向获取 会导致多次触发onMounted |
| | | const code = router.params.code ?? ''; |
| | | |
| | | onMounted(()=>{ |
| | | if(promoterIdNumber){ |
| | | setClickCount() |
| | | onMounted(() => { |
| | | if (promoterIdNumber) { |
| | | if (isH5 && isInWeChat) { |
| | | if (!code) setClickCount(); |
| | | } else { |
| | | setClickCount(); |
| | | } |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | function submit() { |
| | | RouteHelper.navigateTo({ |