更新其他任务

This commit is contained in:
weipengfei 2023-09-14 11:02:19 +08:00
parent cacb0063bd
commit 682e891c5d
3 changed files with 16 additions and 2 deletions

View File

@ -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)

View File

@ -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) {

View File

@ -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'],