新增手动创建通知栏消息

This commit is contained in:
wangyifeng 2025-03-17 14:23:11 +08:00
parent 687371b1e6
commit 59982f4f46
6 changed files with 7 additions and 3 deletions

View File

@ -13,7 +13,7 @@
"h5" : {
"launchtype" : "local"
},
"provider" : "alipay",
"provider" : "aliyun",
"type" : "uniCloud"
},
{

View File

@ -2,8 +2,8 @@
"name" : "oa考勤系统",
"appid" : "__UNI__4796942",
"description" : "",
"versionName" : "2.2.2",
"versionCode" : 223,
"versionName" : "2.3.0",
"versionCode" : 230,
"transformPx" : false,
/* 5+App */
"app-plus" : {

View File

@ -128,6 +128,10 @@ commun.registerHandler('goCard', async (data) => {
await getCard(data.phone)
})
commun.registerHandler('createPushMessage', async (data) => {
uni.createPushMessage(JSON.parse(decodeURIComponent(data)))
})
//
async function getCard(phone) {
uni.request({