【前端】云工厂的纸掌柜app
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
509 B

/**
* 统一处理push消息
* @param {Object} msg 消息对象
* @value {string} msg.title 消息标题
* @value {string} msg.content 消息内容
* @value {object} msg.payload 消息参数
*/
export default function handlePushMsg(msg) {
uni.showModal({
title: '测试',
content: JSON.stringify(msg),
success: function (res) {
if (res.confirm) {
console.log('用户点击确定')
} else if (res.cancel) {
console.log('用户点击取消')
}
}
})
}