From 915424730f27445da2e8de13b62e77179cc1a15a Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期一, 18 八月 2025 17:07:39 +0800
Subject: [PATCH] fix: 关闭移动充值渠道,打开电信充值渠道
---
apps/taro/src/subpackages/my/AgentRecruitment/AgentRecruitment.vue | 104 +++++++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 99 insertions(+), 5 deletions(-)
diff --git a/apps/taro/src/subpackages/my/AgentRecruitment/AgentRecruitment.vue b/apps/taro/src/subpackages/my/AgentRecruitment/AgentRecruitment.vue
index b24bfe9..9abbda6 100644
--- a/apps/taro/src/subpackages/my/AgentRecruitment/AgentRecruitment.vue
+++ b/apps/taro/src/subpackages/my/AgentRecruitment/AgentRecruitment.vue
@@ -1,7 +1,33 @@
<template>
- <PageLayout title="浠g悊鎷涘嫙" class="applyAgent-page-wrapper" hasBgColor :needAuth="false">
- <ContentScrollView hasPaddingTop style="background-color: transparent">
- <div>AgentRecruitment</div>
+ <PageLayout title="浠g悊鎷涘嫙" class="agentRecruitment-page-wrapper" hasBgColor :needAuth="false">
+ <ContentScrollView :paddingH="false">
+ <div class="agentRecruitment-page-content">
+ <Image
+ :src="OssAssets.mine.AgentRecruitmentBg"
+ class="agentRecruitment-page-bg"
+ mode="widthFix"
+ />
+ <div class="agentRecruitment-page-main">
+ <Image
+ class="agentRecruitment-page-img-item retail"
+ :src="OssAssets.mine.AgentRecruitmentRetail"
+ alt=""
+ mode="widthFix"
+ />
+ <Image
+ class="agentRecruitment-page-img-item brand"
+ :src="OssAssets.mine.AgentRecruitmentBrand"
+ alt=""
+ mode="widthFix"
+ />
+ <Image
+ class="agentRecruitment-page-img-item"
+ :src="OssAssets.mine.AgentRecruitmentArea"
+ alt=""
+ mode="widthFix"
+ />
+ </div>
+ </div>
</ContentScrollView>
<PageFooter>
<PageFooterBtn type="primary" @click="submit">绔嬪嵆鐢宠</PageFooterBtn>
@@ -11,15 +37,83 @@
<script setup lang="ts">
import { PageLayout } from '@/components';
-import { RouterPath } from '@/constants';
+import { RouterPath, OssAssets } from '@/constants';
+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 闇�瑕侀噸瀹氬悜鑾峰彇 浼氬鑷村娆¤Е鍙憃nMounted
+const code = router.params.code ?? '';
+
+onMounted(() => {
+ if (promoterIdNumber) {
+ if (isH5 && isInWeChat) {
+ if (!code) setClickCount();
+ } else {
+ 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">
+@import '@/styles/common.scss';
+
+.agentRecruitment-page-content {
+ width: 100%;
+ position: relative;
+
+ .agentRecruitment-page-bg {
+ width: 100%;
+ object-fit: cover;
+ }
+
+ .agentRecruitment-page-main {
+ position: absolute;
+ top: 930px;
+ left: 0;
+ width: 100%;
+
+ .agentRecruitment-page-img-item {
+ width: 100%;
+ height: auto;
+ object-fit: cover;
+
+ &.retail {
+ margin-bottom: 32px;
+ }
+
+ &.brand {
+ margin-bottom: 20px;
+ }
+ }
+ }
+}
+</style>
--
Gitblit v1.9.1