1 |
- if("undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(e){const t=this.constructor;return this.then((n=>t.resolve(e()).then((()=>n))),(n=>t.resolve(e()).then((()=>{throw n}))))}),"undefined"!=typeof uni&&uni&&uni.requireGlobal){const e=uni.requireGlobal();ArrayBuffer=e.ArrayBuffer,Int8Array=e.Int8Array,Uint8Array=e.Uint8Array,Uint8ClampedArray=e.Uint8ClampedArray,Int16Array=e.Int16Array,Uint16Array=e.Uint16Array,Int32Array=e.Int32Array,Uint32Array=e.Uint32Array,Float32Array=e.Float32Array,Float64Array=e.Float64Array,BigInt64Array=e.BigInt64Array,BigUint64Array=e.BigUint64Array}uni.restoreGlobal&&uni.restoreGlobal(Vue,weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),function(e){"use strict";var t;function n(e,t,...n){uni.__log__?uni.__log__(e,t,...n):console[e].apply(console,[...n,t])}__definePage("pages/index/index",((e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n})({data:()=>({title:"ByteSailing",url:"http://139.9.102.170:20009/#/",src:"",canBack:!1}),onBackPress(){return!(!t||!this.canBack)&&(t.back(),!0)},onReady(){var e=this,n=this.$scope.$getAppWebview();setTimeout((function(){(t=n.children()[0]).addEventListener("progressChanged",(function(n){t.canBack((function(t){e.canBack=t.canBack}))}),!1)}),500)},onLoad(){var e=0;uni.getSystemInfo({success:t=>{e=t.windowHeight},complete:()=>{}});let t=uni.getSystemInfoSync().statusBarHeight;var n=this.$scope.$getAppWebview();setTimeout((function(){n.children()[0].setStyle({top:t,height:e-t,scalable:!1})}),1e3)}},[["render",function(t,n,o,i,a,r){return e.openBlock(),e.createElementBlock("view",{class:"content"},[e.createElementVNode("view",{class:"status_bar"}),e.createElementVNode("web-view",{src:a.url,fullscreen:!1},null,8,["src"])])}]]));const o=(i="JG-JPush",weex.requireModule(i));var i;n("log","at App.vue:3",o.getRegistrationID,"jpushModule");const a={onLaunch:function(){if(n("log","at App.vue:6","App Launch"),"ios"==uni.getSystemInfoSync().platform){let e=o.locationServicesEnabled(),t=o.getLocationAuthorizationStatus();n("log","at App.vue:11","locationAuthorizationStatus",t),1==e&&t<3&&o.requestLocationAuthorization((e=>{n("log","at App.vue:14","定位权限",e.status)})),o.requestNotificationAuthorization((e=>{e.status<2&&uni.showToast({icon:"none",title:"您还没有打开通知权限",duration:3e3})}))}o.getRegistrationID((e=>{n("log","at App.vue:30",e,"注册ID....."),uni.showToast({title:e.registerID,icon:"success",duration:3e4})})),o.initJPushService(),o.setLoggerEnable(!0),o.addConnectEventListener((e=>{n("log","at App.vue:42",e);let t=e.connectEnable;uni.$emit("connectStatusChange",t)})),o.addNotificationListener((e=>{n("log","at App.vue:49",e),"notificationOpened"==e.notificationEventType&&uni.navigateTo({url:"/pages/home/warningCenter/warningCenter",complete(e){n("log","at App.vue:55",e)}})})),o.addCustomMessageListener((e=>{e.type,e.messageType,e.content,uni.showToast({icon:"none",title:JSON.stringify(e),duration:3e3})})),o.addLocalNotificationListener((e=>{e.messageID,e.title,e.content,e.extras,uni.showToast({icon:"none",title:JSON.stringify(e),duration:3e3})})),o.addGeofenceListener((e=>{e.code,e.type,e.geofenceId,e.userInfo,uni.showToast({icon:"none",title:"触发地理围栏",duration:3e3})})),o.setIsAllowedInMessagePop(!0),o.pullInMessage((e=>{n("log","at App.vue:100",e.code)})),o.addInMessageListener((e=>{n("log","at App.vue:107","inMessageListener",e.eventType,e.messageType,e.content),uni.showToast({icon:"none",title:JSON.stringify(e),duration:3e3})}))},onShow:function(){n("log","at App.vue:117","App Show")},onHide:function(){n("log","at App.vue:120","App Hide")}};const{app:r,Vuex:s,Pinia:u}={app:e.createVueApp(a)};uni.Vuex=s,uni.Pinia=u,r.provide("__globalStyles",__uniConfig.styles),r._component.mpType="app",r._component.render=()=>{},r.mount("#app")}(Vue);
|