推送关联云服务空间、添加用户协议和隐私政策外部链接、修改活动状态和图片定位显示问题

This commit is contained in:
zhouyanli
2026-06-25 17:03:08 +08:00
parent 8939fec34b
commit 47079da1a4
21 changed files with 492 additions and 35 deletions

View File

@@ -1,15 +1,25 @@
<script setup>
import { onLaunch } from '@dcloudio/uni-app'
import { onLaunch,onShow,onHide } from '@dcloudio/uni-app'
// 应用启动时执行
onLaunch(() => {
console.log('App 启动')
uni.onPushMessage((res) => {
console.log("收到推送消息:",res) //监听推送消息
})
// #ifdef APP-PLUS
// 只有 App 平台才获取 CID
getPushCID()
// #endif
})
onShow(() =>{
console.log('App Show')
})
onHide(() =>{
console.log('App Hide')
})
// 获取 uniPush 2.0 CID
function getPushCID() {