From 682e891c5dc41bb1b62db8d817f46424fccb0347 Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Thu, 14 Sep 2023 11:02:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=85=B6=E4=BB=96=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/task.js | 5 +++++ config/app.js | 4 ++-- subpkg/otherTask/otherTask.vue | 9 +++++++++ 3 files changed, 16 insertions(+), 2 deletions(-) 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'],