|
@ -67,12 +67,18 @@ |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
plus.push.addEventListener("click", function (data) { |
|
|
plus.push.addEventListener("click", function (data) { |
|
|
// 0或者2是维修工单 |
|
|
// 0接单1报修人确认2是维修工单验证 |
|
|
if(data.payload.status == 0 || data.payload.status == 2){ |
|
|
if(data.payload.status == 0 || data.payload.status == 1 || data.payload.status == 2){ |
|
|
uni.navigateTo({ |
|
|
uni.navigateTo({ |
|
|
url: (`/pages/repairOrder/detail?type=${data.payload.type}&number=${data.payload.number}`) |
|
|
url: (`/pages/repairOrder/detail?type=${data.payload.type}&number=${data.payload.number}`) |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
// // 1报修申请人确认 |
|
|
|
|
|
// if(data.payload.status == 1){ |
|
|
|
|
|
// uni.navigateTo({ |
|
|
|
|
|
// url: (`/pages/repairOrder/detail?type=${data.payload.type}&number=${data.payload.number}`) |
|
|
|
|
|
// }) |
|
|
|
|
|
// } |
|
|
}, false); |
|
|
}, false); |
|
|
uni.getPushClientId({ |
|
|
uni.getPushClientId({ |
|
|
success: (res) => { |
|
|
success: (res) => { |
|
|