diff --git a/api/apiList.js b/api/apiList.js new file mode 100644 index 0000000..9b26e8c --- /dev/null +++ b/api/apiList.js @@ -0,0 +1,49 @@ +import request from "@/utils/request"; +//使用说明 +// export const getList = data => request.get('/api/list', data, false) +// 页面调用名 请求参数 请求类型 接口地址 loading是否显示 +/*页面中调用方法:(若无请求参数则留空,例:this.$api.getList()) +this.$api.getList(params).then(res => { + +}) +*/ + +/** + * 巡检保洁接口 + */ + +// 根据日期获取计划 +export const GetPlanByDate = (data) => + request.get("/api/App/GetPlanByDate", data); + +// 今日完成情况 +export const TodayCompletion = (data) => + request.post("/api/App/TodayCompletion", data); + +// 获取计划区域列表 +export const GetPlanInfoAreaList = (data) => + request.post("/api/App/GetPlanInfoAreaList", data); + +// 获取已完成计划区域详情 +export const GetPlanInfoAre = (data) => + request.post("/api/App/GetPlanInfoAre", data); + +// 获取计划列表 +export const GetPlanList = (data) => + request.get("/api/App/GetPlanList", data); + +// 获取单位信息 +export const GetCompanyInformation = (data) => + request.get("/api/App/GetCompanyInformation", data); + +// 上报nfc异常 +export const ReportingNFCDanger = (data) => + request.post("/api/App/ReportingNFCDanger", data); + +// 上传图片 +export const UploadFiles = (data) => + request.post("/api/App/UploadFiles", data); + +// 上传 +export const UploadArea = (data) => + request.post("/api/App/UploadArea", data); diff --git a/api/env.js b/api/env.js index d256ed8..8cb1d8b 100644 --- a/api/env.js +++ b/api/env.js @@ -2,7 +2,7 @@ let BASE_URL //开发环境中 if (process.env.NODE_ENV === 'development') { // 开发环境 - BASE_URL = 'https://mock.apifox.cn/m1/3553664-0-default' //开发环境请求地址 + BASE_URL = 'http://10.30.2.228:8556' //开发环境请求地址 } else { // 生产环境 BASE_URL = 'https://mock.apifox.cn/m1/3553664-0-default' //生成环境请求地址 diff --git a/main.js b/main.js index 3472935..22b8255 100644 --- a/main.js +++ b/main.js @@ -1,5 +1,7 @@ import App from './App' -import '@/utils/interceptor.js';//引入拦截 + +// 注释拦截 +// import '@/utils/interceptor.js';//引入拦截 import Vue from 'vue' import uView from '@/uni_modules/uview-ui' diff --git a/pages/index/cleanPlan.vue b/pages/index/cleanPlan.vue index f318bee..b0b52d5 100644 --- a/pages/index/cleanPlan.vue +++ b/pages/index/cleanPlan.vue @@ -57,6 +57,8 @@ diff --git a/pages/index/index.vue b/pages/index/index.vue index fb201f7..e1f5232 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1,11 +1,11 @@