| | |
| | | <PageLayout title="代理招募" class="agentRecruitment-page-wrapper" hasBgColor :needAuth="false"> |
| | | <ContentScrollView :paddingH="false"> |
| | | <div class="agentRecruitment-page-content"> |
| | | <img :src="OssAssets.mine.AgentRecruitmentBg" class="agentRecruitment-page-bg" /> |
| | | <Image |
| | | :src="OssAssets.mine.AgentRecruitmentBg" |
| | | class="agentRecruitment-page-bg" |
| | | mode="widthFix" |
| | | /> |
| | | <div class="agentRecruitment-page-main"> |
| | | <img |
| | | <Image |
| | | class="agentRecruitment-page-img-item retail" |
| | | :src="OssAssets.mine.AgentRecruitmentRetail" |
| | | alt="" |
| | | mode="widthFix" |
| | | /> |
| | | <img |
| | | <Image |
| | | class="agentRecruitment-page-img-item brand" |
| | | :src="OssAssets.mine.AgentRecruitmentBrand" |
| | | alt="" |
| | | mode="widthFix" |
| | | /> |
| | | <img |
| | | <Image |
| | | class="agentRecruitment-page-img-item" |
| | | :src="OssAssets.mine.AgentRecruitmentArea" |
| | | alt="" |
| | | mode="widthFix" |
| | | /> |
| | | </div> |
| | | </div> |
| | |
| | | <script setup lang="ts"> |
| | | import { PageLayout } from '@/components'; |
| | | 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 router = Taro.useRouter(); |
| | | |
| | | 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> |
| | | |
| | |
| | | |
| | | .agentRecruitment-page-content { |
| | | width: 100%; |
| | | height: 100%; |
| | | position: relative; |
| | | |
| | | .agentRecruitment-page-bg { |
| | | width: 100%; |
| | | height: 100%; |
| | | object-fit: cover; |
| | | } |
| | | |