页面修改
This commit is contained in:
parent
fe1e183499
commit
6f34382e75
@ -148,11 +148,10 @@
|
|||||||
"town_task_type_master_2",
|
"town_task_type_master_2",
|
||||||
"town_task_type_master_4",
|
"town_task_type_master_4",
|
||||||
"town_task_type_master_5",
|
"town_task_type_master_5",
|
||||||
"town_task_type_master_6",
|
|
||||||
"town_task_type_master_7",
|
"town_task_type_master_7",
|
||||||
"town_task_type_master_8"
|
"town_task_type_master_8"
|
||||||
], // 村管理跳转/subpkg/townTask/townTask的任务 1
|
], // 村管理跳转/subpkg/townTask/townTask的任务 1
|
||||||
navToList: ["village_task_type_4", "village_task_type_5", "town_task_type_6"],
|
navToList: ["village_task_type_4", "village_task_type_5", "town_task_type_6", "town_task_type_master_6", ],
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -202,12 +201,11 @@
|
|||||||
);
|
);
|
||||||
if (this.navToVillageListA.includes(this.$props.datas.task_type_value))
|
if (this.navToVillageListA.includes(this.$props.datas.task_type_value))
|
||||||
return this.navTo(
|
return this.navTo(
|
||||||
`/subpkg/townTask/villageTask4?task_id=${this.$props.datas?.id}&type_value=${this.taskRoleTypeList[2]}`
|
`/subpkg/townTask/townTask?task_id=${this.$props.datas?.id}&type_value=${this.taskRoleTypeList[2]}`
|
||||||
);
|
);
|
||||||
if (this.navToList.includes(this.$props.datas.task_type_value))
|
if (this.navToList.includes(this.$props.datas.task_type_value))
|
||||||
|
|
||||||
return this.navTo(
|
return this.navTo(
|
||||||
`/subpkg/townTask/villageTask4?task_id=${this.$props.datas?.id}&type_value=${this.taskRoleTypeList[2]}`
|
`/subpkg/townTask/villageTask4?task_id=${this.$props.datas?.id}&type_value=${this.$props.datas.task_type_value}`
|
||||||
);
|
);
|
||||||
switch (this.$props.datas.task_type_value) {
|
switch (this.$props.datas.task_type_value) {
|
||||||
case "1":
|
case "1":
|
||||||
|
@ -133,10 +133,12 @@
|
|||||||
local_src: "",
|
local_src: "",
|
||||||
fileTit: "",
|
fileTit: "",
|
||||||
file_type: "pdf",
|
file_type: "pdf",
|
||||||
|
type_value: "",
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
this.task_id = options.task_id;
|
this.task_id = options.task_id;
|
||||||
|
this.type_value = options.type_value
|
||||||
this.loadTask();
|
this.loadTask();
|
||||||
uni.$on('upBuyShare', this.loadTask);
|
uni.$on('upBuyShare', this.loadTask);
|
||||||
this.fileOption = {
|
this.fileOption = {
|
||||||
@ -161,6 +163,8 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async submitFn() {
|
async submitFn() {
|
||||||
|
|
||||||
|
|
||||||
if (!this.amount) return Toast("请输入金额")
|
if (!this.amount) return Toast("请输入金额")
|
||||||
let data = {
|
let data = {
|
||||||
id: this.task_id,
|
id: this.task_id,
|
||||||
@ -170,28 +174,28 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (this.task.type == 66) {
|
if (this.type_value == "village_task_type_5") {
|
||||||
let res = await commit_village_task_5API({
|
let res = await commit_village_task_5API({
|
||||||
...data
|
...data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.task.type == 65) {
|
if (this.type_value == "village_task_type_4") {
|
||||||
let res = await commit_village_task_4API({
|
let res = await commit_village_task_4API({
|
||||||
...data
|
...data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (this.task.type == 49) {
|
if (this.type_value == "town_task_type_6") {
|
||||||
let res = await commit_town_service_manager_task_6API({
|
let res = await commit_town_service_manager_task_6API({
|
||||||
...data
|
...data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (this.task.type == 79) {
|
if (this.type_value == "town_task_type_master_6") {
|
||||||
let res = await commit_town_master_task_6API({
|
let res = await commit_town_master_task_6API({
|
||||||
...data
|
...data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
return
|
|
||||||
Toast("操作成功!")
|
Toast("操作成功!")
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
uni.navigateBack()
|
uni.navigateBack()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user