|
@@ -194,6 +194,7 @@ Page({
|
|
|
isSwiper: false,
|
|
|
recommendTotalNo: 1
|
|
|
})
|
|
|
+ console.log(this.data.myIndex, '崇拜你');
|
|
|
httpRequestApi.getClassDetail(id).success(res => {
|
|
|
console.log('有一条数据', res)
|
|
|
let tempList = [];
|
|
@@ -428,7 +429,7 @@ Page({
|
|
|
this.setData({
|
|
|
fromReading: false
|
|
|
})
|
|
|
- this.updateData(3)
|
|
|
+ this.updateData('0')
|
|
|
}
|
|
|
// 刷新课程资源的收藏数等
|
|
|
if (this.data.myIndex === 2) {
|
|
@@ -501,7 +502,7 @@ Page({
|
|
|
temp.url = item.userRead.videoPath ? item.userRead.videoPath : item.userRead.originVideo;
|
|
|
temp.id = item.userRead.id;
|
|
|
temp.type = item.userRead.type;
|
|
|
- temp.nickName = item.user.nickName;
|
|
|
+ temp.nickName = item.user.nickName || item.user.eid;
|
|
|
temp.isLike = item.isLike;
|
|
|
temp.isFans = item.isFans ? true : item.user.uid === this.uid ? true : false;
|
|
|
temp.isFavorite = item.isFavorites;
|
|
@@ -626,22 +627,6 @@ Page({
|
|
|
this.getHotRecommend()
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
- // // 当前在推荐页面 加载推荐
|
|
|
- // if (this.data.myIndex === 1) {
|
|
|
- // console.log(this.data.recommendPageNo)
|
|
|
- // console.log(this.data.recommendTotalNo)
|
|
|
- // this.setData({
|
|
|
- // recommendPageNo: this.data.recommendPageNo + 1
|
|
|
- // })
|
|
|
- // if (this.data.recommendPageNo <= this.data.recommendTotalNo) {
|
|
|
- // this.getHotRecommendSecond(this.uid, this.data.recommendPageNo, 3);
|
|
|
-
|
|
|
- // } else {
|
|
|
- // console.log('没有更多')
|
|
|
- // }
|
|
|
- // }
|
|
|
-
|
|
|
},
|
|
|
onPullDownRefresh: function() {
|
|
|
//当前在团购页下拉加载
|
|
@@ -773,7 +758,6 @@ Page({
|
|
|
item.isActivity && (temp.activity = true);
|
|
|
myWorks.push(temp);
|
|
|
});
|
|
|
- console.log('myWorks', myWorks)
|
|
|
if (this.data.myIndex === 3) {
|
|
|
this.setData({
|
|
|
videoList: myWorks,
|
|
@@ -1361,7 +1345,7 @@ Page({
|
|
|
canvas: canvas,
|
|
|
success(res) {
|
|
|
resolve({
|
|
|
- title: video.title,
|
|
|
+ title: '请欣赏我的课文朗读作品,点赞+评论。',
|
|
|
path: `/pages/index/index?readId=${video.id}&uid=${wx.getStorageSync('uid')}`,
|
|
|
imageUrl: res.tempFilePath
|
|
|
})
|
|
@@ -1392,7 +1376,7 @@ Page({
|
|
|
})
|
|
|
|
|
|
return {
|
|
|
- title: video.title,
|
|
|
+ title: '请欣赏我的课文朗读作品,点赞+评论。',
|
|
|
path: `/pages/index/index?readId=${video.id}&uid=${wx.getStorageSync('uid')}`,
|
|
|
imageUrl: video.coverImg,
|
|
|
promise
|