Commit 7df54d48 authored by zhaoyanping's avatar zhaoyanping

fix: 消息跳转-5

parent 1cc37ac8
......@@ -93,8 +93,6 @@
"androidx.core.app.NotificationManagerCompat"
);
const notificationManager = NotificationManagerCompat.from(mainActivity);
console.log(notificationManager,'111')
console.log(notificationManager.areNotificationsEnabled(),'222')
if (!notificationManager.areNotificationsEnabled()) {
uni.showModal({
title: '提示',
......@@ -115,8 +113,8 @@
}
}
});
}else {
console.log('--------------------通知权限已开启--------------------');
}else {
console.log('--------------------通知权限已开启--------------------');
}
},
initAliyunPushIos() {
......@@ -180,7 +178,7 @@
this.goPageMsg(result)
});
},
//通知消息点击跳转
goPageMsg(item) {
//付款审批
......@@ -251,8 +249,8 @@
})
}, 1000);
}
//统筹采购合同
else if(item.messageType == "coordinatePurchaseContract"){
//统筹采购合同,统筹采购-付款,统筹采购发票
else if(item.messageType == "coordinatePurchaseContract" || item.messageType == "coordinatePurchasePayment" || item.messageType == "coordinatePurchaseInvoice"){
setTimeout(() => {
uni.navigateTo({
url:`/pages/contract/purchaseCoorContract?projectId=`+item.relationId
......@@ -320,7 +318,7 @@
//采购合同 采购合同-付款 采购合同-发票
if (["purchaseInvoice", "purchaseContract", "purchasePayment"].includes(item.messageType)) {
setTimeout(() => {
uni.reLaunch({
uni.navigateTo({
url: "/pages/contract/purchaseContract?projectId=" + item.relationId
})
}, 1000);
......@@ -439,4 +437,4 @@
.form-input .zqs-select .input {
justify-content: flex-end;
}
</style>
\ No newline at end of file
</style>
......@@ -180,8 +180,8 @@ export default {
url: navigateToUrl
})
}
//统筹采购合同
else if(item.messageType == "coordinatePurchaseContract"){
//统筹采购合同,统筹采购-付款,统筹采购发票
else if(item.messageType == "coordinatePurchaseContract" || item.messageType == "coordinatePurchasePayment" || item.messageType == "coordinatePurchaseInvoice"){
uni.navigateTo({
url:`/pages/contract/purchaseCoorContract?projectId=`+item.relationId
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment