|
|
@@ -14,16 +14,21 @@ Page({ |
|
|
|
minute: "", |
|
|
|
nodes: '' |
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
let that = this; |
|
|
|
that.topicShow() |
|
|
|
onLoad(options){ |
|
|
|
console.log(options) |
|
|
|
if(options&&options.id){ |
|
|
|
this.setData({ |
|
|
|
id:options.id |
|
|
|
}) |
|
|
|
this.topicShow(options.id) |
|
|
|
} |
|
|
|
}, |
|
|
|
topicShow(){ |
|
|
|
topicShow(id){ |
|
|
|
let that = this; |
|
|
|
Http.get({ |
|
|
|
url: config.api.topicShow, |
|
|
|
url: config.api.topicFindById, |
|
|
|
data: { |
|
|
|
token: app.globalData.token |
|
|
|
id: id |
|
|
|
} |
|
|
|
}).then(res => { |
|
|
|
console.log(res) |
|
|
|