feat: 优化推广中心入口+修复API
1. 我的页面:添加推广中心入口卡片 2. 推广中心:去掉邀请码显示,改名推广中心 3. 阅读页:去掉底部推广提示(已移到我的页面) 4. 修复PM2启动配置(PORT=3006)
This commit is contained in:
@@ -77,6 +77,21 @@
|
||||
|
||||
<!-- 概览内容 - 仅登录用户显示 -->
|
||||
<view class="tab-content" wx:if="{{activeTab === 'overview' && isLoggedIn}}">
|
||||
<!-- 推广入口卡片 -->
|
||||
<view class="promo-entry-card" bindtap="goToReferral">
|
||||
<view class="promo-entry-left">
|
||||
<view class="promo-entry-icon">💰</view>
|
||||
<view class="promo-entry-info">
|
||||
<text class="promo-entry-title">推广中心</text>
|
||||
<text class="promo-entry-desc">邀请好友购买,享90%推广收益</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="promo-entry-right">
|
||||
<text class="promo-entry-earnings" wx:if="{{earnings > 0}}">¥{{earnings}}</text>
|
||||
<text class="promo-entry-arrow">→</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 菜单列表 -->
|
||||
<view class="menu-card card">
|
||||
<view
|
||||
|
||||
@@ -777,3 +777,66 @@
|
||||
.bottom-space {
|
||||
height: 40rpx;
|
||||
}
|
||||
|
||||
/* ===== 推广入口卡片 ===== */
|
||||
.promo-entry-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin: 24rpx 24rpx 0;
|
||||
padding: 32rpx;
|
||||
background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 165, 0, 0.1) 100%);
|
||||
border: 2rpx solid rgba(255, 215, 0, 0.3);
|
||||
border-radius: 24rpx;
|
||||
}
|
||||
|
||||
.promo-entry-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 20rpx;
|
||||
}
|
||||
|
||||
.promo-entry-icon {
|
||||
width: 80rpx;
|
||||
height: 80rpx;
|
||||
background: rgba(255, 215, 0, 0.2);
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 36rpx;
|
||||
}
|
||||
|
||||
.promo-entry-info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4rpx;
|
||||
}
|
||||
|
||||
.promo-entry-title {
|
||||
font-size: 30rpx;
|
||||
color: #ffffff;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.promo-entry-desc {
|
||||
font-size: 24rpx;
|
||||
color: rgba(255, 255, 255, 0.5);
|
||||
}
|
||||
|
||||
.promo-entry-right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16rpx;
|
||||
}
|
||||
|
||||
.promo-entry-earnings {
|
||||
font-size: 32rpx;
|
||||
color: #FFD700;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.promo-entry-arrow {
|
||||
font-size: 28rpx;
|
||||
color: #FFD700;
|
||||
}
|
||||
|
||||
@@ -97,21 +97,6 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 推广提示 -->
|
||||
<view class="promo-section">
|
||||
<view class="promo-card" bindtap="goToReferral">
|
||||
<view class="promo-left">
|
||||
<view class="promo-icon">💰</view>
|
||||
<view class="promo-info">
|
||||
<text class="promo-title">推荐好友,共同成长</text>
|
||||
<text class="promo-desc">邀请好友购买,享90%推广收益</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="promo-right">
|
||||
<text class="promo-arrow">→</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<view class="nav-back" bindtap="goBack">
|
||||
<text class="back-icon">‹</text>
|
||||
</view>
|
||||
<text class="nav-title">分销中心</text>
|
||||
<text class="nav-title">推广中心</text>
|
||||
<view class="nav-right">
|
||||
<view class="nav-btn" bindtap="showNotification">🔔</view>
|
||||
<view class="nav-btn" bindtap="showSettings">⚙️</view>
|
||||
@@ -150,17 +150,6 @@
|
||||
</block>
|
||||
</view>
|
||||
|
||||
<!-- 我的邀请码 -->
|
||||
<view class="invite-card">
|
||||
<view class="invite-header">
|
||||
<text class="invite-title">我的邀请码</text>
|
||||
<view class="invite-code-box">
|
||||
<text class="invite-code">{{referralCode}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<text class="invite-tip">好友通过你的链接购买<text class="gold">立省5%</text>,你获得<text class="brand">{{distributorShare}}%</text>收益</text>
|
||||
</view>
|
||||
|
||||
<!-- 分享按钮 -->
|
||||
<view class="share-section">
|
||||
<view class="share-item" bindtap="generatePoster">
|
||||
|
||||
Reference in New Issue
Block a user