var request = function(config) { return new Promise((resolve, rejected) => { if (config.url != '/nurseApplet/chatRecord/updateReadStatus' && config.url != "/nurseApplet/chatRecord/sendMessage" && config.url != `/applet/sign/apply/checkSignApply/` + uni.getStorageSync('userinfo').cardNo) { uni.showLoading({ title: '' }); } uni.request({ url: config.url, data: config.data, method: config.method, timeout: 60000, header: config.header, success(res) { uni.hideLoading(); resolve(res.data) }, fail(err) { uni.hideLoading(); rejected(err) } }) }) } //获取东营报告list // 东营驿站记录接口:http://218.58.213.15:8009/fd/sh05/record/{identity} // 东营获取驿站报告接口:http://218.58.213.15:8009/fd/sh05/report/view/{reportId} export function dyrecord(identity) { return request({ url: `http://218.58.213.15:8009/fd/sh05/record/${identity}`, method: 'get', }) } //获取德州报告list // 德州驿站记录接口: http: //112.6.122.71:8009/fd/sh05/record/{identity} // 德州获取驿站报告接口: http: //112.6.122.71:8009/fd/sh05/report/view/{reportId} export function dzrecord(identity) { return request({ url: `http://112.6.122.71:8009/fd/sh05/record/${identity}`, method: 'get', }) }