功能:完善订单流程和加固
This commit is contained in:
@@ -54,6 +54,24 @@ Page({
|
||||
if (!item) {
|
||||
return
|
||||
}
|
||||
if (item.actionPath) {
|
||||
try {
|
||||
if (item.readStatus !== 1) {
|
||||
await userApi.markMessageRead(item.id)
|
||||
}
|
||||
const opened = await navigation.openActionPath(item.actionPath)
|
||||
await this.loadMessages()
|
||||
if (opened) {
|
||||
return
|
||||
}
|
||||
} catch (error) {
|
||||
wx.showToast({
|
||||
title: error.message || '打开消息失败',
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
}
|
||||
this.setData({
|
||||
currentMessage: item,
|
||||
detailVisible: true
|
||||
|
||||
Reference in New Issue
Block a user