|
|
@@ -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;
|
|
|
}
|