38 lines
592 B
JavaScript
Raw Normal View History

2025-07-10 16:27:08 +08:00
var App = getApp();
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
let id = options.id || 0;
wx.showLoading({ title: '加载中' });
this.get_article(id);
},
/**
* 获取列表
*/
get_article: function (id) {
let _this = this;
App._post_form('topic/getTopicDetail', {
id: id
}, function(result) {
wx.hideLoading();
var rdata = result.data.data;
console.log('rdatardata',rdata)
_this.setData({
articleData: rdata
})
});
}
})