jianbuzou_v2/pages/topic/addInfo.js

38 lines
590 B
JavaScript

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/getTopicInfo', {
id: id
}, function(result) {
wx.hideLoading();
var rdata = result.data.data;
console.log('rdatardata',rdata)
_this.setData({
articleData: rdata
})
});
}
})