41 lines
754 B
Vue
41 lines
754 B
Vue
<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(() => {
|
|
/* plus.geolocation.clearWatch(LocationId) */
|
|
console.log("App Hide")
|
|
})
|
|
/* uni.getPushClientId({
|
|
success: (res) => {
|
|
let push_clientid = res.cid
|
|
console.log('客户端推送标识cid:',push_clientid)
|
|
},
|
|
fail(err) {
|
|
console.log(err)
|
|
}
|
|
}) */
|
|
uni.onPushMessage((res)=>{
|
|
console.log(JSON.stringify(res),);
|
|
})
|
|
</script>
|
|
|
|
<style>
|
|
</style>
|