|
@@ -674,6 +674,7 @@ Page({
|
|
|
temp.grade = item.userRead.grade;
|
|
|
temp.type = item.userRead.type;
|
|
|
temp.shareImg = item.userRead.shareImg;
|
|
|
+ item.isActivity && (temp.activity = true);
|
|
|
// recommendWorks.push(temp);
|
|
|
// that.data.hotData.hotWorks.push(temp);
|
|
|
this.data.videoList.push(temp);
|
|
@@ -750,7 +751,7 @@ Page({
|
|
|
if (res.from === 'button') {
|
|
|
return {
|
|
|
title: '请欣赏我的课文朗读作品,点赞+评论。',
|
|
|
- path: `/pages/index/index?readId=${this.data.shareId}`,
|
|
|
+ path: `/pages/index/index?readId=${this.data.shareId}&activity=${this.data.ifTapActivity}`,
|
|
|
imageUrl: this.data.shareImg
|
|
|
|
|
|
}
|
|
@@ -770,7 +771,8 @@ Page({
|
|
|
this.setData({
|
|
|
shareTitle: e.detail.currentTarget.dataset.title,
|
|
|
shareId: e.detail.currentTarget.dataset.id,
|
|
|
- shareImg: e.detail.currentTarget.dataset.shareimg
|
|
|
+ shareImg: e.detail.currentTarget.dataset.shareimg,
|
|
|
+ ifTapActivity: e.detail.currentTarget.dataset.activity
|
|
|
})
|
|
|
},
|
|
|
onPlay: function (e) {
|
|
@@ -829,4 +831,4 @@ Page({
|
|
|
[str]: this.data.videoList[e.detail.index].shareAmount + 1
|
|
|
})
|
|
|
}
|
|
|
-})
|
|
|
+})
|