|
@@ -67,6 +67,7 @@ Page({
|
|
exampleId: res.data.data.userRead.exampleId,
|
|
exampleId: res.data.data.userRead.exampleId,
|
|
summary: res.data.data.userRead.summary,
|
|
summary: res.data.data.userRead.summary,
|
|
coverImg: res.data.data.userRead.coverImg,
|
|
coverImg: res.data.data.userRead.coverImg,
|
|
|
|
+ shareImg: res.data.data.userRead.shareImg,
|
|
})
|
|
})
|
|
this.getReadInfo(id)
|
|
this.getReadInfo(id)
|
|
httpRequestApi.userIntoPage('pages/reading/reading', '朗读页面').success((res) => {
|
|
httpRequestApi.userIntoPage('pages/reading/reading', '朗读页面').success((res) => {
|
|
@@ -560,7 +561,8 @@ Page({
|
|
"productId": this.data.productId,
|
|
"productId": this.data.productId,
|
|
"grade": this.data.grade,
|
|
"grade": this.data.grade,
|
|
"exampleId": this.data.exampleId,
|
|
"exampleId": this.data.exampleId,
|
|
- "coverImg": this.data.coverImg
|
|
|
|
|
|
+ "coverImg": this.data.coverImg,
|
|
|
|
+ "shareImg": this.data.shareImg
|
|
};
|
|
};
|
|
httpRequestApi.postWork(data).success(res => {
|
|
httpRequestApi.postWork(data).success(res => {
|
|
wx.hideLoading({
|
|
wx.hideLoading({
|
|
@@ -644,7 +646,7 @@ Page({
|
|
temp.videoShow = false;
|
|
temp.videoShow = false;
|
|
temp.grade = item.userRead.grade;
|
|
temp.grade = item.userRead.grade;
|
|
temp.type = item.userRead.type;
|
|
temp.type = item.userRead.type;
|
|
-
|
|
|
|
|
|
+ temp.shareImg = item.userRead.shareImg;
|
|
// recommendWorks.push(temp);
|
|
// recommendWorks.push(temp);
|
|
// that.data.hotData.hotWorks.push(temp);
|
|
// that.data.hotData.hotWorks.push(temp);
|
|
this.data.videoList.push(temp);
|
|
this.data.videoList.push(temp);
|
|
@@ -701,7 +703,7 @@ Page({
|
|
return {
|
|
return {
|
|
title: '请欣赏我的课文朗读作品,点赞+评论。',
|
|
title: '请欣赏我的课文朗读作品,点赞+评论。',
|
|
path: `/pages/index/index?readId=${this.data.shareId}`,
|
|
path: `/pages/index/index?readId=${this.data.shareId}`,
|
|
- imageUrl: '../../static/index/share_icon.png'
|
|
|
|
|
|
+ imageUrl: this.data.shareImg
|
|
|
|
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
@@ -720,7 +722,7 @@ Page({
|
|
this.setData({
|
|
this.setData({
|
|
shareTitle: e.detail.currentTarget.dataset.title,
|
|
shareTitle: e.detail.currentTarget.dataset.title,
|
|
shareId: e.detail.currentTarget.dataset.id,
|
|
shareId: e.detail.currentTarget.dataset.id,
|
|
- shareImg: e.detail.currentTarget.dataset.img
|
|
|
|
|
|
+ shareImg: e.detail.currentTarget.dataset.shareimg
|
|
})
|
|
})
|
|
},
|
|
},
|
|
onPlay: function (e) {
|
|
onPlay: function (e) {
|