邀请码页面绘制
This commit is contained in:
@@ -60,6 +60,7 @@
|
||||
import { userInvite } from '@/apis/interfaces/user'
|
||||
import { saveImageToPhotosAlbum, showToast, downloadFile } from '@/uni_modules/sakura-canvas/js_sdk/util'
|
||||
import Draw from '@/uni_modules/sakura-canvas/js_sdk/draw'
|
||||
import h5Copy from '@/js_sdk/junyi-h5-copy/junyi-h5-copy/junyi-h5-copy'
|
||||
let draw = null
|
||||
export default {
|
||||
data() {
|
||||
@@ -96,7 +97,7 @@
|
||||
async coverCode(){
|
||||
// let { img, title, price, head, tips } = this
|
||||
let img = this.inviteData[this.codeIndex].code
|
||||
let back = this.defaultImg
|
||||
let back = this.inviteData[this.codeIndex].cover
|
||||
let name = this.inviteData[this.codeIndex].user_info.nickname
|
||||
let invite = this.inviteData[this.codeIndex].invite
|
||||
let avatar = this.inviteData[this.codeIndex].user_info.avatar || '/static/user/user-portrait.png'
|
||||
@@ -270,20 +271,17 @@
|
||||
// 复制邀请码
|
||||
copyCenter(e) {
|
||||
let copyNo = e
|
||||
uni.vibrateShort({
|
||||
success: () => {
|
||||
uni.setClipboardData({
|
||||
data : copyNo,
|
||||
success : res=> {
|
||||
uni.showToast({
|
||||
title : '复制成功',
|
||||
icon :'none',
|
||||
duration: 3000
|
||||
});
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
const result = h5Copy(copyNo)
|
||||
if (result === false) {
|
||||
uni.showToast({
|
||||
title:'不支持',
|
||||
})
|
||||
} else {
|
||||
uni.showToast({
|
||||
title:'复制成功',
|
||||
icon:'none'
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
// 切换海报背景index
|
||||
|
||||
Reference in New Issue
Block a user