You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
oa-base/App.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>