feat(invite): 重构邀请关系建立流程并优化相关功能

- 新增 bindRefereeRelation 接口替换原有的 createInviteRelation 接口
- 优化邀请参数解析逻辑,支持 uid_xxx 格式的邀请码
- 重构 handleInviteRelation 函数,使用新的绑定推荐关系接口
- 新增 checkAndHandleInviteRelation 和 manualHandleInviteRelation 函数
- 优化首页和订单列表的相关逻辑,以支持新的邀请关系建立流程
- 更新文档中的相关描述,如将"下级成员"改为"团队成员"
This commit is contained in:
2025-08-23 12:18:32 +08:00
parent 0b83e67ac1
commit 7708968f53
9 changed files with 343 additions and 50 deletions

View File

@@ -126,9 +126,9 @@ const DealerQrcode: React.FC = () => {
const inviteText = `🎉 邀请您加入我的团队!
扫描小程序码或搜索"网宿小店"小程序,即可享受优质商品和服务!
扫描小程序码或搜索"时里院子市集"小程序,即可享受优质商品和服务!
💰 成为我的下级分销商,一起赚取丰厚佣金
💰 成为我的团队成员,一起赚取丰厚佣金
🎁 新用户专享优惠等你来拿
邀请码:${dealerUser.userId}
@@ -295,7 +295,7 @@ const DealerQrcode: React.FC = () => {
<View className="flex items-start">
<View className="w-2 h-2 bg-blue-500 rounded-full mt-2 mr-3 flex-shrink-0"></View>
<Text className="text-sm text-gray-600">
</Text>
</View>
<View className="flex items-start">