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