mirror of
https://gitee.com/elegant_wings/dbd-meeting-wx-small.git
synced 2025-06-22 00:49:37 +08:00
首页消息可直接跳转处理
This commit is contained in:
parent
a1832f2822
commit
45c22bbc92
@ -276,11 +276,17 @@ Page({
|
|||||||
console.log('detail', e);
|
console.log('detail', e);
|
||||||
let id = e.currentTarget.dataset.obj.id
|
let id = e.currentTarget.dataset.obj.id
|
||||||
let repairId = e.currentTarget.dataset.obj.repairId
|
let repairId = e.currentTarget.dataset.obj.repairId
|
||||||
|
let title = e.currentTarget.dataset.obj.content
|
||||||
|
let url = `/pages/reportRepair/assign/detail/detail?id=${repairId}`
|
||||||
|
if ((title.includes('你收到工单') && title.includes('请尽快处理')) || title.includes('已经超时,黄灯告警') || title.includes('已经严重超时,红灯告警')) {
|
||||||
|
// 此处为维修单,要跳转到case
|
||||||
|
url = `/pages/reportRepair/repair/case/case?id=${repairId}`
|
||||||
|
}
|
||||||
repairRemindReadRq({
|
repairRemindReadRq({
|
||||||
id
|
id
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
wx.navigateTo({
|
wx.navigateTo({
|
||||||
url: `/pages/reportRepair/assign/detail/detail?id=${repairId}`,
|
url: url,
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user