Commit e7bb4954 by zhangxw

事项消息打开返回交互修改

1 parent 20fe305f
......@@ -73,7 +73,7 @@ Page({
this.setData({ loading: true });
wx.showLoading({ title: "加载中", mask: true });
try {
const res = await api.getTaskCenterDetail({ taskId: this.id });
const res = await api.getTaskCenterDetail({ taskId: this.taskId });
if (res?.code !== "0" && res?.code !== 0) {
wx.showToast({
title: res?.message || "加载失败",
......@@ -223,7 +223,11 @@ Page({
},
onBack() {
wx.navigateBack();
if (getCurrentPages()?.length > 1) {
wx.navigateBack();
} else {
wx.switchTab({url: '/pages/tab/matters/matters'})
}
},
onReplyInput(e) {
......@@ -721,7 +725,11 @@ Page({
this.notifyRefresh();
setTimeout(() => {
wx.navigateBack();
if (getCurrentPages()?.length > 1) {
wx.navigateBack();
} else {
wx.switchTab({url: '/pages/tab/matters/matters'})
}
}, 1000);
},
......
......@@ -104,7 +104,11 @@ Page({
},
back() {
wx.navigateBack()
if (getCurrentPages()?.length > 1) {
wx.navigateBack();
} else {
wx.switchTab({url: '/pages/tab/matters/matters'})
}
},
getDictList(typeCode) {
mentoringApi.getMentorDictList({typeCode, businessCode: 'supervisor'}).then(res => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!