Jelajahi Sumber

feat(wealth): 删除富页面推荐码横条

Sisyphus 1 Minggu lalu
induk
melakukan
e42f7fa6a6
1 mengubah file dengan 1 tambahan dan 45 penghapusan
  1. 1 45
      cfc-frontend/pages/wealth/index.vue

+ 1 - 45
cfc-frontend/pages/wealth/index.vue

@@ -158,11 +158,6 @@
             <text class="disc-sub-action">邀请 →</text>
           </view>
         </view>
-        <view class="referral-code-bar" v-if="wealthData.referralCode" @click="copyReferralCode">
-          <text class="referral-code-label">我的邀请码</text>
-          <text class="referral-code-value">{{ wealthData.referralCode }}</text>
-          <text class="referral-code-copy">复制</text>
-        </view>
       </view>
 
       <!-- 财富数据卡(孩子) -->
@@ -552,16 +547,7 @@ export default {
         console.error('获取佣金统计失败', e)
       }
     },
-    copyReferralCode() {
-      if (!this.wealthData.referralCode) return
-      uni.setClipboardData({
-        data: this.wealthData.referralCode,
-        success: function() {
-          uni.showToast({ title: '邀请码已复制', icon: 'success' })
-        }
-      })
-    },
-    logout() {
+    copyReferralCode() {logout() {
       uni.showModal({
         title: '退出登录',
         content: '确定要退出登录吗?',
@@ -908,36 +894,6 @@ export default {
   color: #999;
 }
 
-/* 邀请码复制条 */
-.referral-code-bar {
-  display: flex;
-  align-items: center;
-  background: #fff;
-  margin-top: 16rpx;
-  border-radius: 16rpx;
-  padding: 24rpx 30rpx;
-  box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.06);
-}
-.referral-code-label {
-  font-size: 26rpx;
-  color: #666;
-  margin-right: 16rpx;
-}
-.referral-code-value {
-  flex: 1;
-  font-size: 30rpx;
-  font-weight: bold;
-  color: #F59E0B;
-  letter-spacing: 2rpx;
-}
-.referral-code-copy {
-  font-size: 24rpx;
-  color: #fff;
-  background: linear-gradient(135deg, #F59E0B, #FBBF24);
-  padding: 8rpx 24rpx;
-  border-radius: 20rpx;
-}
-
 /* 服务入口 */
 .service-grid {
   display: flex;