更换banner组件,添加用户隐私协议链接

This commit is contained in:
zhouyanli
2026-06-26 10:07:44 +08:00
parent d0e80824d8
commit f19fb0d9d9
591 changed files with 79931 additions and 83 deletions

View File

@@ -1,15 +1,26 @@
<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() {
@@ -27,6 +38,9 @@ function getPushCID() {
}
</script>
<style lang="scss">
@import "@/uni_modules/uview-plus/index.scss";
</style>
<style>
/*每个页面公共css */
/* 全局清除默认样式 */