|
@@ -7,21 +7,20 @@ module.exports = Behavior({
|
|
|
}) {
|
|
|
if (from == 'button') {
|
|
|
let video = target.dataset.info
|
|
|
- console.log(video, 'info,,.,.');
|
|
|
const promise = new Promise(resolve => {
|
|
|
this.creatShare(video).then(res => {
|
|
|
resolve(res)
|
|
|
})
|
|
|
})
|
|
|
return {
|
|
|
- title: '请欣赏我的课文朗读作品,点赞+评论。',
|
|
|
- path: `/pages/index/index?readId=${video.id}&uid=${wx.getStorageSync('uid')}`,
|
|
|
- imageUrl: video.coverImg,
|
|
|
+ title: '这个小程序太赞了!孩子朗读能力蹭蹭上涨,推荐你试试!',
|
|
|
+ path: `/pages/index/index?uid=${wx.getStorageSync('uid')}`,
|
|
|
+ imageUrl: 'http://reader-wx.ai160.com/images/reader/v3/shareContent.png',
|
|
|
promise
|
|
|
}
|
|
|
} else {
|
|
|
return {
|
|
|
- title: '课文朗读,从未如此有趣。',
|
|
|
+ title: '这个小程序太赞了!孩子朗读能力蹭蹭上涨,推荐你试试!',
|
|
|
path: `/pages/index/index?uid=${wx.getStorageSync('uid')}`,
|
|
|
imageUrl: 'http://reader-wx.ai160.com/images/reader/v3/shareContent.png'
|
|
|
}
|
|
@@ -94,21 +93,22 @@ module.exports = Behavior({
|
|
|
let pl = canvas.createImage();
|
|
|
pl.src = '/static/comment.png'
|
|
|
pl.onload = () => {
|
|
|
- ctx.drawImage(pl, 318, 222, 22, 22)
|
|
|
+ ctx.drawImage(pl, 228, 222, 22, 22)
|
|
|
ctx.fillText(video.userRead.commentAmount || 0, 340, 238)
|
|
|
//点赞
|
|
|
let dz = canvas.createImage();
|
|
|
dz.src = video.isLike ? '/static/heart_colored.png' : '/static/heart.png'
|
|
|
dz.onload = () => {
|
|
|
- ctx.drawImage(dz, 228, 222, 22, 22)
|
|
|
+ ctx.drawImage(dz, 318, 222, 22, 22)
|
|
|
ctx.fillText(video.userRead.likeAmount || 0, 254, 238)
|
|
|
setTimeout(() => {
|
|
|
wx.canvasToTempFilePath({
|
|
|
canvas: canvas,
|
|
|
success(res) {
|
|
|
+ let title = wx.getStorageSync('uid') == video.user.uid ? '我的新作品发布啦,快来捧场点赞!' : video.userRead.type == 'READ' ? '发现一篇宝藏作品,这声音让人爱了!不信你不着迷!' : '我正在听这篇朗读示范,这发音,播音专业水准!你也来听听!'
|
|
|
resolve({
|
|
|
- title: '请欣赏我的课文朗读作品,点赞+评论。',
|
|
|
- path: `/pages/index?readId=${video.id}&uid=${wx.getStorageSync('uid')}`,
|
|
|
+ title,
|
|
|
+ path: `/pages/pkPage/index?videoId=${video.userRead.id}&uid=${wx.getStorageSync('uid')}`,
|
|
|
imageUrl: res.tempFilePath
|
|
|
})
|
|
|
},
|