2024-06-03 09:11:28 +00:00
|
|
|
<script setup>
|
|
|
|
import { onLaunch, onShow, onHide } from "@dcloudio/uni-app";
|
|
|
|
/* import location from "./utils/location"; */
|
|
|
|
onLaunch(() => {
|
|
|
|
/* location.startLocationService((res)=>{
|
|
|
|
console.log(JSON.stringify(res),'JSON.stringify(res)');
|
|
|
|
uni.showToast({
|
|
|
|
duration:1000,
|
|
|
|
icon:'none',
|
|
|
|
title:JSON.stringify(res)
|
|
|
|
})
|
|
|
|
},()=>{
|
|
|
|
|
|
|
|
}) */
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
onShow(() => {
|
|
|
|
|
|
|
|
})
|
|
|
|
onHide(() => {
|
2024-06-17 13:12:06 +00:00
|
|
|
/* plus.geolocation.clearWatch(LocationId) */
|
2024-06-03 09:11:28 +00:00
|
|
|
console.log("App Hide")
|
|
|
|
})
|
2024-06-17 13:12:06 +00:00
|
|
|
/* uni.getPushClientId({
|
2024-06-03 09:11:28 +00:00
|
|
|
success: (res) => {
|
|
|
|
let push_clientid = res.cid
|
|
|
|
console.log('客户端推送标识cid:',push_clientid)
|
|
|
|
},
|
|
|
|
fail(err) {
|
|
|
|
console.log(err)
|
|
|
|
}
|
2024-06-17 13:12:06 +00:00
|
|
|
}) */
|
2024-06-03 09:11:28 +00:00
|
|
|
uni.onPushMessage((res)=>{
|
|
|
|
console.log(JSON.stringify(res),);
|
|
|
|
})
|
2024-04-11 06:31:44 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
</style>
|