浏览代码

refactor: remove copy button from share modal, only share poster

E2E Test Bot 2 天之前
父节点
当前提交
7dcbf995d9
共有 1 个文件被更改,包括 3 次插入 和 20 次删除
  1. 3 20
      cfc-frontend/pages/profile-main/profile.vue

+ 3 - 20
cfc-frontend/pages/profile-main/profile.vue

@@ -289,10 +289,6 @@
           </view>
         </view>
         <view class="modal-qr-actions">
-          <view class="action-btn copy-btn" @click="copyReferralCode">
-            <text class="copy-icon">📋</text>
-            <text class="copy-text">复制邀请码</text>
-          </view>
           <view class="action-btn share-btn" @click="shareToWechat">
             <text class="share-icon">📤</text>
             <text class="share-text">分享给朋友</text>
@@ -599,15 +595,6 @@ export default {
           self.qrLoading = false
         })
     },
-    copyReferralCode() {
-      if (!this.referralCode) return
-      uni.setClipboardData({
-        data: this.referralCode,
-        success: function() {
-          uni.showToast({ title: '邀请码已复制', icon: 'success' })
-        }
-      })
-    },
     shareToWechat() {
       if (!this.referralCode) return
       var path = '/pages/index-home/index?refCode=' + this.referralCode
@@ -1438,19 +1425,15 @@ export default {
   font-size: 24rpx;
   font-weight: bold;
 }
-.copy-btn {
-  background: #FFF7ED;
-  color: #F97316;
-  border: 1rpx solid #FED7AA;
-}
 .share-btn {
   background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
   color: #fff;
+  width: 100%;
 }
-.copy-icon, .share-icon {
+.share-icon {
   font-size: 40rpx;
 }
-.copy-text, .share-text {
+.share-text {
   font-size: 24rpx;
   font-weight: bold;
 }