Commit 4574e4b7 by zhangxw

事项修改

1 parent 3ec5b033
...@@ -59,13 +59,13 @@ Page({ ...@@ -59,13 +59,13 @@ Page({
}, },
onLoad(options) { onLoad(options) {
const id = options?.id; const taskId = options?.taskId;
if (!id) { if (!id) {
wx.showToast({ title: "缺少任务信息", icon: "none" }); wx.showToast({ title: "缺少任务信息", icon: "none" });
setTimeout(() => wx.navigateBack(), 1500); setTimeout(() => wx.navigateBack(), 1500);
return; return;
} }
this.taskId = id; this.taskId = taskId;
this.loadDetail(); this.loadDetail();
}, },
......
...@@ -92,8 +92,8 @@ Page({ ...@@ -92,8 +92,8 @@ Page({
}, },
onLoad(options) { onLoad(options) {
if (options?.id) { if (options?.taskId && options?.id) {
this.getDetail(options.id) this.getDetail(options.taskId, options.id)
} }
this.getDictList('teaching_method_1') this.getDictList('teaching_method_1')
this.getDictList('teaching_method_2') this.getDictList('teaching_method_2')
...@@ -170,9 +170,9 @@ Page({ ...@@ -170,9 +170,9 @@ Page({
}) })
}, },
getDetail(id) { getDetail(taskId, id) {
let { formItems} = this.data let { formItems} = this.data
mentoringApi.getTaskCenterDetail({taskId: id}).then(res => { mentoringApi.getTaskCenterDetail({taskId: taskId}).then(res => {
let { code, data, message } = res let { code, data, message } = res
if (code == 0) { if (code == 0) {
data = { data = {
......
...@@ -355,7 +355,7 @@ Page({ ...@@ -355,7 +355,7 @@ Page({
if (!item?.id) return; if (!item?.id) return;
this._openingDetail = true; this._openingDetail = true;
wx.navigateTo({ wx.navigateTo({
url: item.taskType == "spec-coach" ? `/pages/specialMentoring/specialMentoring?id=${item.taskCenterId}` : `/pages/mattersHandle/mattersHandle?id=${item.taskCenterId}`, url: item.taskType == "spec-coach" ? `/pages/specialMentoring/specialMentoring?taskId=${item.taskCenterId}&id=${item.id}` : `/pages/mattersHandle/mattersHandle?taskId=${item.taskCenterId}&id=${item.id}`,
events: { events: {
refreshList: () => { refreshList: () => {
this._pendingRefresh = true; this._pendingRefresh = true;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!