feat: 分销规则完善 + 微信支付修复
1. 分销规则: - 链接带ID绑定推荐关系 - 一级分销 + 30天有效期 - 客户抢夺机制(过期可被抢走) - 90%收益归分发者 2. 新增统计数据: - 绑定用户数 - 链接进入人数 - 带来付款人数 3. 微信支付: - 添加点击反馈 - 优化支付流程日志 - 改善错误提示 4. 分销中心UI优化
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
<view class="wallet-icon">💰</view>
|
||||
<view class="earnings-info">
|
||||
<text class="earnings-label">累计收益</text>
|
||||
<text class="commission-rate">{{distributorShare}}% 返利</text>
|
||||
<text class="commission-rate">{{shareRate}}% 返利</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="earnings-right">
|
||||
@@ -40,42 +40,51 @@
|
||||
<text class="pending-text">待结算: ¥{{pendingEarnings}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="withdraw-btn {{earnings < 10 ? 'btn-disabled' : ''}}" bindtap="handleWithdraw">
|
||||
{{earnings < 10 ? '满10元可提现' : '申请提现'}}
|
||||
<view class="earnings-detail">
|
||||
<text class="detail-item">已提现: ¥{{withdrawnEarnings}}</text>
|
||||
</view>
|
||||
<view class="withdraw-btn {{pendingEarnings < 10 ? 'btn-disabled' : ''}}" bindtap="handleWithdraw">
|
||||
{{pendingEarnings < 10 ? '满10元可提现' : '申请提现'}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 数据统计 -->
|
||||
<!-- 核心数据统计(重点可见数据) -->
|
||||
<view class="stats-grid">
|
||||
<view class="stat-card">
|
||||
<text class="stat-value">{{activeBindings.length}}</text>
|
||||
<text class="stat-label">绑定中</text>
|
||||
<view class="stat-card highlight">
|
||||
<text class="stat-value brand">{{bindingCount}}</text>
|
||||
<text class="stat-label">绑定用户数</text>
|
||||
<text class="stat-tip">当前有效绑定</text>
|
||||
</view>
|
||||
<view class="stat-card">
|
||||
<text class="stat-value">{{convertedBindings.length}}</text>
|
||||
<text class="stat-label">已付款</text>
|
||||
<text class="stat-value">{{visitCount}}</text>
|
||||
<text class="stat-label">链接进入人数</text>
|
||||
<text class="stat-tip">通过你的链接进入</text>
|
||||
</view>
|
||||
<view class="stat-card highlight">
|
||||
<text class="stat-value gold">{{paidCount}}</text>
|
||||
<text class="stat-label">付款人数</text>
|
||||
<text class="stat-tip">成功转化购买</text>
|
||||
</view>
|
||||
<view class="stat-card">
|
||||
<text class="stat-value orange">{{expiringCount}}</text>
|
||||
<text class="stat-label">即将过期</text>
|
||||
</view>
|
||||
<view class="stat-card">
|
||||
<text class="stat-value">{{referralCount}}</text>
|
||||
<text class="stat-label">总邀请</text>
|
||||
<text class="stat-tip">7天内到期</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 推广规则 -->
|
||||
<view class="rules-card">
|
||||
<view class="rules-header">
|
||||
<view class="rules-icon">ℹ️</view>
|
||||
<view class="rules-icon">📋</view>
|
||||
<text class="rules-title">推广规则</text>
|
||||
</view>
|
||||
<view class="rules-list">
|
||||
<text class="rule-item">• 好友通过你的链接购买,<text class="gold">立享5%优惠</text></text>
|
||||
<text class="rule-item">• 好友成功付款后,你获得 <text class="brand">{{distributorShare}}%</text> 收益</text>
|
||||
<text class="rule-item">• 绑定期<text class="brand">30天</text>,期满未付款自动解除</text>
|
||||
<text class="rule-item">• <text class="brand">链接带ID</text>:谁发的链接,进的人就绑谁</text>
|
||||
<text class="rule-item">• <text class="brand">一级、一月</text>:只有一级分销,绑定有效期30天</text>
|
||||
<text class="rule-item">• <text class="orange">长期不发</text>:别人发得多,过期后客户会被「抢走」</text>
|
||||
<text class="rule-item">• <text class="gold">每天发</text>:持续发的人绑定续期,收益越来越高</text>
|
||||
<text class="rule-item">• <text class="brand">{{shareRate}}%给分发</text>:好友付款后,你得 {{shareRate}}% 收益</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user