//articleLists.js 文章列表
// 网络请求工具类
var networkUtil = require('../../utils/network_util.js')
var api = require('../../utils/apiFile.js')
// 事件监听
var event = require('../../utils/event.js')
var util = require('../../utils/util.js')
Page({
data: {
data:{}
},
onLoad: function (options) {
var id = options.id
this.setData({
hospitalId: id
})
console.log(this.data.hospitalId)
this.requestData(options.id)
},
/*---------自定义函数--------*/
requestData(id) {
var self = this
networkUtil.showLoading()
var param = { "id":id}
networkUtil._get(api.doctor+'/'+id , {}, function (res) {
console.log('数据-----', res)
self.setData({
data:res.data
})
}, function (res) {
})
},
})