<template>
    
</template>


<script setup>
import {showAlert} from '@/utils/message.js'
import { onLaunch } from '@dcloudio/uni-app';
onLaunch((opt) => {
	//     uni.preloadPage({ url: "/pages/login/login" });
	//     uni.preloadPage({ url: "/pages/home/home" });
	//     uni.preloadPage({ url: "/pages/business/business" });
	//     uni.preloadPage({ url: "/pages/notice/notice" });
	//     uni.preloadPage({ url: "/pages/userinfo/userinfo" });
	console.log("APP onLaunch")
	
    // #ifdef APP-PLUS
   //  uni.getPushClientId({
   //      success: (res) => {
   //          let push_clientid = res.cid
			// showAlert(push_clientid)
   //          console.log('客户端推送标识:', push_clientid);
   //      },
   //      fail(err) {
   //          console.log(err)
   //      }
   //  })

    uni.onPushMessage(res => {
        console.log("收到推送消息：", res) //监听推送消息
        // uni.createPushMessage({
        //     title: res.data.title,
        //     content: res.data.content,
        //     payload: res.data.payload
        // })
    })
    // #endif
})



</script>
<style>
@import '@/static/common.css';
.uni-app--show{
    opacity:1;
    transition: opacity 0.3s;
}
.uni-app--hide {
    opacity:0;
    transition:opacity 0.3s;
}
</style>