commission--yt-commit

This commit is contained in:
2025-06-04 00:18:25 +08:00
parent 361f6a89d3
commit a5d060633a
11 changed files with 161 additions and 32 deletions

View File

@ -136,6 +136,27 @@ Page({
})
},
// 复制邀请码到剪贴板
copyInvitationCode() {
wx.setClipboardData({
data: this.data.invitationCode,
success() {
wx.showToast({
title: '复制成功',
icon: 'success',
duration: 1500
});
},
fail() {
wx.showToast({
title: '复制失败',
icon: 'error',
duration: 1500
});
}
});
},
/**
* 生命周期函数--监听页面初次渲染完成
*/

View File

@ -11,7 +11,7 @@
/>
<text class="font_2 text_2 ml-7">{{ phoneNumber }}</text>
</view>
<view class="flex-row items-center self-stretch section_2 mt-9">
<view class="flex-row items-center self-stretch section_2 mt-9" bindtap="copyInvitationCode">
<text class="font_3 text_3">邀请码:{{ invitationCode }}</text>
<image
class="shrink-0 image_4"