import { $post } from '@/lu/axios.js' let url_ = "https://liujiangyy-tj.sixinyun.com"; const dev = 0 if (dev === 1) { url_ = "http://192.168.31.106:8000" } export const HospitalExtraReportStatusAction = async (data) => await $post({ url: 'HospitalExtraReportStatus', data }) export const ReportDownAction = async (data) => await $post({ url: 'ReportDown', data }) export const ReportAnalysisAction = async (data) => await $post({ url: 'ReportAnalysis', data }) export const PrepareCheckReportAction = async (data) => await $post({ url: 'PrepareCheckReport', data }) export const AnalysisTypeListAction = async () => await $post({ url: 'AnalysisTypeList' }) export const ReportContrastAction = async (data) => await $post({ url: 'ReportContrast', data }) export const ReportInfoAction = async (data) => await $post({ url: 'ReportInfo', data }) export const ReportListAction = async (data) => await $post({ url: 'ReportList', data }) export const yo = async (data) => await $post({ url: 'YO', data }) export const $image = (path) => { return `${url_}${path}` } export const $response = (response, then, error = () => {}) => { if (response) { if (response.code != 200) { uni.$lu.toast(response.message); error() return } then() } }