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";function t(e){return weex.requireModule(e)}function n(e,t,...n){uni.__log__?uni.__log__(e,t,...n):console[e].apply(console,[...n,t])}const o=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n},i=t("JG-JPush");var a;__definePage("pages/index/index",o({data:()=>({title:"wdly",url:"http://139.9.102.170:10011/#/",src:"",canBack:!1}),onBackPress(){return!(!a||!this.canBack)&&(a.back(),!0)},onReady(){var e=this,t=this.$scope.$getAppWebview();setTimeout((function(){(a=t.children()[0]).addEventListener("progressChanged",(function(t){a.canBack((function(t){e.canBack=t.canBack}))}),!1)}),500)},onLoad(){var e=0;uni.getSystemInfo({success:t=>{n("log","at pages/index/index.vue:55",t),e=t.windowHeight},complete:()=>{}});let t=uni.getSystemInfoSync(),o=t.statusBarHeight;n("log","at pages/index/index.vue:62",t,12312312312);var a=this.$scope.$getAppWebview();setTimeout((function(){a.children()[0].setStyle({top:o,height:e-o,scalable:!1})}),1e3),uni.$on("connectStatusChange",(e=>{if(e){var t=this.$scope.$getAppWebview().children()[0];i.getRegistrationID((e=>{n("log","at pages/index/index.vue:86",e,"注册ID....."),t.evalJS(`getVueMessage(${JSON.stringify(e.registerID)})`)}))}}))},onUnload(){uni.$off("connectStatusChange")},methods:{messageData(e){let t=e.detail.data[0].url;uni.downloadFile({url:t,success:function(e){200===e.statusCode&&uni.openDocument({filePath:e.tempFilePath,success:function(e){},fail:function(e){}})},fail:function(e){}})}}},[["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,onMessage:n[0]||(n[0]=(...e)=>r.messageData&&r.messageData(...e))},null,40,["src"])])}]]));const r=t("JG-JPush"),s={onLaunch:function(){if(n("log","at App.vue:5","App Launch"),"ios"==uni.getSystemInfoSync().platform){let e=r.locationServicesEnabled(),t=r.getLocationAuthorizationStatus();n("log","at App.vue:10","locationAuthorizationStatus",t),1==e&&t<3&&r.requestLocationAuthorization((e=>{n("log","at App.vue:13","定位权限",e.status)})),r.requestNotificationAuthorization((e=>{e.status<2&&uni.showToast({icon:"none",title:"您还没有打开通知权限",duration:3e3})}))}r.initJPushService(),r.setLoggerEnable(!0),r.addConnectEventListener((e=>{n("log","at App.vue:38",e);let t=e.connectEnable;uni.$emit("connectStatusChange",t)})),r.addNotificationListener((e=>{n("log","at App.vue:59",e),"notificationOpened"==e.notificationEventType&&uni.navigateTo({url:"/pages/home/warningCenter/warningCenter",complete(e){n("log","at App.vue:65",e)}})})),r.addCustomMessageListener((e=>{e.type,e.messageType,e.content,uni.showToast({icon:"none",title:JSON.stringify(e),duration:3e3})})),r.addLocalNotificationListener((e=>{e.messageID,e.title,e.content,e.extras,uni.showToast({icon:"none",title:JSON.stringify(e),duration:3e3})})),r.addGeofenceListener((e=>{e.code,e.type,e.geofenceId,e.userInfo,uni.showToast({icon:"none",title:"触发地理围栏",duration:3e3})})),r.setIsAllowedInMessagePop(!0),r.pullInMessage((e=>{n("log","at App.vue:110",e.code)})),r.addInMessageListener((e=>{n("log","at App.vue:117","inMessageListener",e.eventType,e.messageType,e.content),uni.showToast({icon:"none",title:JSON.stringify(e),duration:3e3})}))},onShow:function(){n("log","at App.vue:127","App Show")},onHide:function(){n("log","at App.vue:130","App Hide")}};const{app:u,Vuex:c,Pinia:l}={app:e.createVueApp(s)};uni.Vuex=c,uni.Pinia=l,u.provide("__globalStyles",__uniConfig.styles),u._component.mpType="app",u._component.render=()=>{},u.mount("#app")}(Vue);
|