|
@@ -168,55 +168,6 @@ Page({
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- /* let peiyin = canvas.createImage();
|
|
|
- peiyin.src = '/static/peiyin.jpg';
|
|
|
- peiyin.onload = () => {
|
|
|
- ctx.drawImage(peiyin, 0, 211, 375, 89);
|
|
|
- //分享
|
|
|
- let fx = canvas.createImage();
|
|
|
- fx.src = '/static/share.png'
|
|
|
- fx.onload = () => {
|
|
|
- ctx.drawImage(fx, 12, 220, 20, 20)
|
|
|
- ctx.fillText('分享', 36, 238)
|
|
|
- // 收藏,一个一个渲染
|
|
|
- let sc = canvas.createImage();
|
|
|
- sc.src = '/static/no_collect.png'
|
|
|
- sc.onload = () => {
|
|
|
- ctx.drawImage(sc, 110, 220, 19, 19)
|
|
|
- ctx.fillText('收藏', 134, 238)
|
|
|
- //点赞
|
|
|
- let dz = canvas.createImage();
|
|
|
- dz.src = '/static/heart.png'
|
|
|
- dz.onload = () => {
|
|
|
- ctx.drawImage(dz, 318, 222, 22, 22)
|
|
|
- ctx.fillText(0, 254, 238)
|
|
|
- // 评论
|
|
|
- let pl = canvas.createImage();
|
|
|
- pl.src = '/static/comment.png'
|
|
|
- pl.onload = () => {
|
|
|
- ctx.drawImage(pl, 228, 222, 22, 22)
|
|
|
- ctx.fillText(0, 340, 238)
|
|
|
- setTimeout(() => {
|
|
|
- wx.canvasToTempFilePath({
|
|
|
- canvas: canvas,
|
|
|
- success(res) {
|
|
|
- console.log(wx.getStorageSync('shareVideoId'), 'reading-wx.score2');
|
|
|
- resolve({
|
|
|
- title: '我的新作品发布啦,快来捧场点赞!',
|
|
|
- path: `/pages/pkPage/index?videoId=${wx.getStorageSync('shareVideoId')}&uid=${wx.getStorageSync('uid')}&isShare=true`,
|
|
|
- imageUrl: res.tempFilePath
|
|
|
- })
|
|
|
- },
|
|
|
- fail(res) {
|
|
|
- reject()
|
|
|
- }
|
|
|
- }, this)
|
|
|
- }, 500)
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- } */
|
|
|
})
|
|
|
})
|
|
|
},
|