|
@ -73,17 +73,17 @@ Page({ |
|
|
this.fetchArticeApi() |
|
|
this.fetchArticeApi() |
|
|
}, |
|
|
}, |
|
|
fetchArticeApi () { |
|
|
fetchArticeApi () { |
|
|
wx.showLoading({ |
|
|
// wx.showLoading({
|
|
|
title: '加载中...', |
|
|
// title: '加载中...',
|
|
|
}) |
|
|
// })
|
|
|
artice.getDetail(this.data.aId, (res) => { |
|
|
artice.getDetail(this.data.aId, (res) => { |
|
|
//console.log('artice detail')
|
|
|
//console.log('artice detail')
|
|
|
console.log(res) |
|
|
console.log(res) |
|
|
const data = res.result |
|
|
const data = res.result |
|
|
const date = dayjs(data.createTime).format('MM月DD日') |
|
|
const date = dayjs(data.createTime).format('MM月DD日') |
|
|
wx.setNavigationBarTitle({ |
|
|
// wx.setNavigationBarTitle({
|
|
|
title: data.title, |
|
|
// title: data.title,
|
|
|
}) |
|
|
// })
|
|
|
|
|
|
|
|
|
if(data.flag == 0 || data.flag == 1){ |
|
|
if(data.flag == 0 || data.flag == 1){ |
|
|
var disable = false; |
|
|
var disable = false; |
|
@ -103,7 +103,7 @@ Page({ |
|
|
collectNum: data.collectNum, |
|
|
collectNum: data.collectNum, |
|
|
flag:data.flag |
|
|
flag:data.flag |
|
|
}, () => { |
|
|
}, () => { |
|
|
wx.hideLoading() |
|
|
// wx.hideLoading()
|
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|