From 8f540224bb52182f5466a2fc5f588ca2c2223be6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E9=A6=99=E7=90=AA?= <624506849@qq.com> Date: Wed, 9 Sep 2026 15:17:54 +0800 Subject: [PATCH] =?UTF-8?q?feat(distribution):=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=88=86=E9=94=80=E5=91=98=E7=94=B3=E8=AF=B7=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E5=8F=8D=E9=A6=88=E4=B8=8E=E6=9D=A1=E4=BB=B6=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增分销员申请状态反馈,显示申请通过、待审核和未开放状态。 - 优化申请条件检查,确保用户在申请时满足条件并同意协议。 - 调整页面逻辑以改善用户体验,提供清晰的申请状态提示。 --- pages/mine/distribution/join.vue | 45 ++++++++++++++++++++------------ 1 file changed, 28 insertions(+), 17 deletions(-) diff --git a/pages/mine/distribution/join.vue b/pages/mine/distribution/join.vue index b7b3427..5a551c1 100644 --- a/pages/mine/distribution/join.vue +++ b/pages/mine/distribution/join.vue @@ -8,10 +8,25 @@ {{ DISTRIBUTION_RETREAT_MESSAGE }} + + + + 已成为分销员 + 恭喜您已通过审核,可进入分销员中心开始推广 + 进入分销员中心 + + + + + ! + 等待审核 + {{ DISTRIBUTION_APPLY_MESSAGE }} + + 暂未开放线上招募 - + @@ -91,16 +106,8 @@ - - - - 已成为分销员 - 恭喜您已通过审核,可进入分销员中心开始推广 - 进入分销员中心 - - - + 您已满足加入条件,系统将自动为您申请成为分销员 @@ -112,19 +119,19 @@ - + - + 我已阅读并同意 《分销员推广服务协议》 - {{ isApplyPending ? '等待审核' : '申请成为分销员' }} + 申请成为分销员 @@ -178,7 +185,7 @@ import config from '@/config/config' import { parseGoodsImageUrl, tipsToLogin } from '@/utils/filters.js' import { resolveRecruitDistributionIdFromScene } from '@/utils/distributionBind.js' import { getRecruitPage, getRecruitProgress, getRecruitInviter, submitRecruitApplication } from '@/api/distribution' -import { DISTRIBUTION_RETREAT_MESSAGE, DISTRIBUTION_STATUS } from '@/utils/distributionStatus' +import { DISTRIBUTION_APPLY_MESSAGE, DISTRIBUTION_RETREAT_MESSAGE, DISTRIBUTION_STATUS } from '@/utils/distributionStatus' const defaultAvatar = config.defaultUserPhoto @@ -277,7 +284,7 @@ const inviterName = computed(() => inviterInfo.value?.memberName || '分销员') const inviterAvatar = computed(() => parseGoodsImageUrl(inviterInfo.value?.memberAvatar) || defaultAvatar) const showManualApply = computed(() => { - return !isRetreated.value && isUserLoggedIn.value && !showApplyResult.value && conditionsMet.value && isManualApply.value + return !isRetreated.value && isUserLoggedIn.value && !showApplyResult.value && isManualApply.value }) const showAutoApplyTip = computed(() => { @@ -289,7 +296,7 @@ const showApplyForm = computed(() => { }) const canApply = computed(() => { - return showManualApply.value && agreed.value + return showManualApply.value && conditionsMet.value && agreed.value }) const selfPurchaseOk = computed(() => { @@ -483,6 +490,10 @@ function submit() { if (!showManualApply.value) { return } + if (!conditionsMet.value) { + uni.showToast({ title: '请先满足加入条件', icon: 'none' }) + return + } if (!agreed.value) { uni.showToast({ title: '请先同意分销推广服务协议', icon: 'none' }) return