commission--yt-commit
This commit is contained in:
@ -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
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
|
@ -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"
|
||||
|
Reference in New Issue
Block a user