更换banner组件,添加用户隐私协议链接
This commit is contained in:
@@ -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 */
|
||||
/* 全局清除默认样式 */
|
||||
|
||||
Reference in New Issue
Block a user