city_card/pages/center/case/caseLog.js
2023-07-15 14:25:28 +08:00

34 lines
851 B
JavaScript

var n = getApp();
Page({
data: {
businessId: "",
logList: []
},
getLog: function() {
var o = this;
n.restAjax.get(n.restAjax.path(n.apis.getLog, [ n.baseUrls.requestUrl, o.data.businessId ]), {}, {
headers: {
token: n.globalData.token
}
}, function(n, t) {
console.log(t), o.setData({
logList: t
});
}, function(n, o) {
console.log(o);
});
},
onLoad: function(n) {
this.setData({
businessId: n.businessId
}), this.getLog();
},
onReady: function() {},
onShow: function() {},
onHide: function() {},
onUnload: function() {},
onPullDownRefresh: function() {},
onReachBottom: function() {},
onShareAppMessage: function() {}
});