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