|
@@ -21,7 +21,8 @@ Page({
|
|
|
ifReward: false,
|
|
|
id: '',
|
|
|
path: '',
|
|
|
- replyModal: false
|
|
|
+ replyModal: false,
|
|
|
+ totalRead: 0
|
|
|
// shareFlag: false
|
|
|
},
|
|
|
onLoad: function (option) {
|
|
@@ -44,7 +45,7 @@ Page({
|
|
|
getWorks: function (uid, id) {
|
|
|
httpRequestApi.getWorksDetail(uid, id).success((res) => {
|
|
|
console.log(res);
|
|
|
- console.log(id)
|
|
|
+ console.log(id);
|
|
|
const others = res.data.data.otherRead;
|
|
|
const author = res.data.data.user;
|
|
|
const works = res.data.data.userRead;
|
|
@@ -58,7 +59,8 @@ Page({
|
|
|
othersTemp.push(temp);
|
|
|
});
|
|
|
this.setData({
|
|
|
- user: othersTemp,
|
|
|
+ user: othersTemp,
|
|
|
+ totalRead: res.data.data.totalRead,
|
|
|
author: author.wechatName,
|
|
|
authorAvatar: author.avatar,
|
|
|
authorUid: author.uid,
|