删除分销中心和海报设计相关的同步报告及优化说明文档,清理不再使用的自动部署脚本,确保代码库整洁。更新小程序页面以动态获取绑定期和用户优惠信息,提升用户体验和灵活性。

This commit is contained in:
2026-02-09 18:24:56 +08:00
parent e6aebeeca5
commit fc57938bfe
9 changed files with 25 additions and 1227 deletions

View File

@@ -30,8 +30,10 @@ Page({
withdrawnEarnings: 0, // 已提现金额
earnings: 0, // 已结算收益(保留兼容)
pendingEarnings: 0, // 待结算收益(保留兼容)
shareRate: 90, // 分成比例90%
minWithdrawAmount: 10, // 最低提现金额(从后端获取
shareRate: 90, // 分成比例90%,从 referral/data 或 config 获取
minWithdrawAmount: 10, // 最低提现金额,从 referral/data 获取
bindingDays: 30, // 绑定期天数,从 referral/data 获取
userDiscount: 5, // 好友购买优惠%,从 referral/data 获取
hasWechatId: false, // 是否已绑定微信号(未绑定时需引导去设置)
// === 统计数据 ===
@@ -194,9 +196,11 @@ Page({
withdrawnEarnings: formatMoney(realData?.withdrawnEarnings || 0),
earnings: formatMoney(realData?.earnings || 0),
pendingEarnings: formatMoney(realData?.pendingEarnings || 0),
shareRate: realData?.shareRate || 90,
shareRate: realData?.shareRate ?? 90,
minWithdrawAmount: minWithdrawAmount,
bindingDays: realData?.bindingDays ?? 30,
userDiscount: realData?.userDiscount ?? 5,
// 统计
referralCount: realData?.referralCount || realData?.stats?.totalBindings || activeBindings.length + convertedBindings.length,
expiringCount,

View File

@@ -26,7 +26,7 @@
</view>
<view class="banner-content">
<text class="banner-title">{{expiringCount}} 位用户绑定即将过期</text>
<text class="banner-desc">30天内未付款将解除绑定关系</text>
<text class="banner-desc">{{bindingDays}}天内未付款将解除绑定关系</text>
</view>
</view>
@@ -86,9 +86,9 @@
<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="gold">立享{{userDiscount}}%优惠</text></text>
<text class="rule-item">• 好友成功付款后,你获得 <text class="brand">{{shareRate}}%</text> 收益</text>
<text class="rule-item">• 绑定期<text class="brand">30天</text>,期满未付款自动解除</text>
<text class="rule-item">• 绑定期<text class="brand">{{bindingDays}}天</text>,期满未付款自动解除</text>
</view>
</view>
@@ -282,7 +282,7 @@
<text class="poster-stat-label">真实案例</text>
</view>
<view class="poster-stat">
<text class="poster-stat-value poster-stat-brand">5%</text>
<text class="poster-stat-value poster-stat-brand">{{userDiscount}}%</text>
<text class="poster-stat-label">好友优惠</text>
</view>
<view class="poster-stat">
@@ -310,7 +310,7 @@
<!-- 优惠说明 -->
<view class="poster-discount">
<text class="poster-discount-text">通过我的链接购买,<text class="poster-discount-highlight">立省5%</text>
<text class="poster-discount-text">通过我的链接购买,<text class="poster-discount-highlight">立省{{userDiscount}}%</text>
</text>
</view>