diff --git a/api/task.js b/api/task.js index fcd170a..94b0299 100644 --- a/api/task.js +++ b/api/task.js @@ -30,3 +30,8 @@ export const taskAddTricycleCoordinate = (data) => oahttp.post('/task/add_tricyc * 任务:入股详情 */ export const taskShareholder = (data) => oahttp.post('/task/shareholder', data) + +/** + * 任务:三轮车详情 + */ +export const taskOtherTaskDetail = (data) => oahttp.get('/task/other_task_detail', data) diff --git a/config/app.js b/config/app.js index 7991a47..10bdf7c 100644 --- a/config/app.js +++ b/config/app.js @@ -2,8 +2,8 @@ let httpApiThree; let httpApi; // 总域名 let httpApiTwo; // 物流系统域名 -// const env = 'dev'; // 开发 -const env = 'prod'; // 生产 +const env = 'dev'; // 开发 +// const env = 'prod'; // 生产 // const env = 'prew'; // 预上线 switch (env) { diff --git a/subpkg/otherTask/otherTask.vue b/subpkg/otherTask/otherTask.vue index 7b13a3e..64a4321 100644 --- a/subpkg/otherTask/otherTask.vue +++ b/subpkg/otherTask/otherTask.vue @@ -33,6 +33,9 @@ import { upLoadImage } from "@/api/file.js" + import { + taskOtherTaskDetail + } from "@/api/task.js" export default { data() { return { @@ -45,6 +48,7 @@ }, onLoad(options) { this.task_id = options.task_id; + this.initDetail(); }, computed:{ // 占位长度 @@ -53,6 +57,11 @@ } }, methods:{ + initDetail(){ + taskOtherTaskDetail({id: this.task_id}).then((res)=>{ + this.formData = res.data; + }) + }, chooseFile(){ uni.chooseImage({ sizeType: ['compressed'],