|
|
@ -21,6 +21,8 @@ Page({ |
|
|
|
unStar: '/images/common/star.png', |
|
|
|
star: '/images/common/star_light.png', |
|
|
|
disable: true, |
|
|
|
readNum: 0, |
|
|
|
collectNum: 0, |
|
|
|
}, |
|
|
|
onClickCollect () { |
|
|
|
// 收藏功能
|
|
|
@ -51,7 +53,7 @@ Page({ |
|
|
|
fetchArticeApi () { |
|
|
|
artice.getDetail(this.data.aId, (res) => { |
|
|
|
//console.log('artice detail')
|
|
|
|
//console.log(res)
|
|
|
|
console.log(res) |
|
|
|
const data = res.result |
|
|
|
const date = dayjs(data.createTime).format('MM月DD日') |
|
|
|
this.setData({ |
|
|
@ -63,6 +65,8 @@ Page({ |
|
|
|
isStar: data.isCollection ? true : false, |
|
|
|
showBtn: data.typeFlag >= 2 ? true : false, |
|
|
|
disable: data.typeFlag == 3 ? true : false, |
|
|
|
readNum: data.readNum, |
|
|
|
collectNum: data.collectNum, |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|