日志
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -1,7 +1,7 @@
|
||||
|
||||
;(function(){
|
||||
let u=void 0,isReady=false,onReadyCallbacks=[],isServiceReady=false,onServiceReadyCallbacks=[];
|
||||
const __uniConfig = {"pages":[],"globalStyle":{"backgroundColor":"#F8F8F8","rpxCalcMaxDeviceWidth":1920,"rpxCalcBaseDeviceWidth":750,"navigationBar":{"backgroundColor":"#F8F8F8","titleText":"","style":"custom","type":"default","titleColor":"#000000"},"isNVue":false},"nvue":{"compiler":"uni-app","styleCompiler":"uni-app","flex-direction":"column"},"renderer":"auto","appname":"tv-pro","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":true},"compilerVersion":"3.8.12","entryPagePath":"uni_modules/yykj-tv/pages/home/home1","entryPageQuery":"","realEntryPagePath":"","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000},"locales":{},"darkmode":false,"themeConfig":{}};
|
||||
const __uniConfig = {"pages":[],"globalStyle":{"backgroundColor":"#F8F8F8","rpxCalcMaxDeviceWidth":1920,"rpxCalcBaseDeviceWidth":750,"navigationBar":{"backgroundColor":"#F8F8F8","titleText":"","style":"custom","type":"default","titleColor":"#000000"},"isNVue":false},"nvue":{"compiler":"uni-app","styleCompiler":"uni-app","flex-direction":"column"},"renderer":"auto","appname":"tv-pro","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":true},"compilerVersion":"3.99","entryPagePath":"uni_modules/yykj-tv/pages/home/home1","entryPageQuery":"","realEntryPagePath":"","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000},"locales":{},"darkmode":false,"themeConfig":{}};
|
||||
const __uniRoutes = [{"path":"uni_modules/yykj-tv/pages/home/home1","meta":{"isQuit":true,"isEntry":true,"navigationBar":{"titleText":"","type":"default"},"isNVue":false}}].map(uniRoute=>(uniRoute.meta.route=uniRoute.path,__uniConfig.pages.push(uniRoute.path),uniRoute.path='/'+uniRoute.path,uniRoute));
|
||||
__uniConfig.styles=[];//styles
|
||||
__uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
|
||||
|
||||
2
unpackage/dist/build/app-plus/app-service.js
vendored
2
unpackage/dist/build/app-plus/app-service.js
vendored
@@ -1 +1 @@
|
||||
if("undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(e){const r=this.constructor;return this.then((o=>r.resolve(e()).then((()=>o))),(o=>r.resolve(e()).then((()=>{throw o}))))}),"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 r(e,r,...o){uni.__log__?uni.__log__(e,r,...o):console[e].apply(console,[...o,r])}__definePage("uni_modules/yykj-tv/pages/home/home1",((e,r)=>{const o=e.__vccOpts||e;for(const[n,t]of r)o[n]=t;return o})({data:()=>({url:"",originalUrl:"http://192.168.100.201",loading:!0,loadError:!1}),onLoad(e){this.initWebView()},methods:{initWebView(){this.loading=!0,this.loadError=!1;const e=(new Date).getTime();this.url=`${this.originalUrl}?timestamp=${e}`,setTimeout((()=>{this.loading&&(this.loading=!1,this.loadError=!0)}),1e4),uni.onNetworkStatusChange((e=>{e.isConnected&&this.loadError&&this.retryLoad()}))},onWebViewError(e){r("error","at uni_modules/yykj-tv/pages/home/home1.vue:49","WebView加载错误:",e),this.loading=!1,this.loadError=!0},onMessage(e){this.loading=!1,this.loadError=!1},retryLoad(){this.initWebView()}},onUnload(){uni.offNetworkStatusChange()}},[["render",function(r,o,n,t,i,a){return e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("web-view",{src:i.url,"on:onPostMessage":o[0]||(o[0]=(...e)=>a.onMessage&&a.onMessage(...e)),onError:o[1]||(o[1]=(...e)=>a.onWebViewError&&a.onWebViewError(...e))},null,40,["src"]),i.loading?(e.openBlock(),e.createElementBlock("view",{key:0,class:"loading"},"页面加载中...")):e.createCommentVNode("",!0),i.loadError?(e.openBlock(),e.createElementBlock("view",{key:1,class:"error"},[e.createTextVNode(" 页面加载失败 "),e.createElementVNode("button",{onClick:o[2]||(o[2]=(...e)=>a.retryLoad&&a.retryLoad(...e))},"重新加载")])):e.createCommentVNode("",!0)])}]]));const o={onLaunch:function(){plus.screen.lockOrientation("landscape-primary"),plus.navigator.setFullscreen(!0)},onHide:function(){r("log","at App.vue:10","App Hide")},onUnload(){plus.screen.lockOrientation("landscape-primary")}};const{app:n,Vuex:t,Pinia:i}={app:e.createVueApp(o)};uni.Vuex=t,uni.Pinia=i,n.provide("__globalStyles",__uniConfig.styles),n._component.mpType="app",n._component.render=()=>{},n.mount("#app")}(Vue);
|
||||
if("undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(e){const t=this.constructor;return this.then((o=>t.resolve(e()).then((()=>o))),(o=>t.resolve(e()).then((()=>{throw o}))))}),"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,t,...o){uni.__log__?uni.__log__(e,t,...o):console[e].apply(console,[...o,t])}const{registerUTSInterface:o,initUTSProxyClass:n,initUTSProxyFunction:i,initUTSPackageName:a,initUTSIndexClassName:r,initUTSClassName:s}=uni,l="ykLog",u=i(!1,{moduleName:"yk-log 基于uts实现的安卓日志插件",moduleType:"",errMsg:"",main:!0,package:a(l,true),class:r(l,true),name:"writeByJs",params:[{name:"logMessage",type:"string"}],return:""});__definePage("uni_modules/yykj-tv/pages/home/home1",((e,t)=>{const o=e.__vccOpts||e;for(const[n,i]of t)o[n]=i;return o})({data:()=>({url:"http://192.168.100.201",urlAvailable:!1,logMessages:[]}),onLoad(e){this.addLog("🏠 home1页面开始加载"),t("log","at uni_modules/yykj-tv/pages/home/home1.vue:23","📄 home1 onLoad 执行",e),this.initWebView()},onReady(){this.addLog("✅ home1页面准备就绪"),t("log","at uni_modules/yykj-tv/pages/home/home1.vue:28","✅ home1 onReady 执行")},onShow(){this.addLog("👀 home1页面显示"),t("log","at uni_modules/yykj-tv/pages/home/home1.vue:32","✅ home1 onShow 执行")},onHide(){this.addLog("🔚 home1页面隐藏"),t("log","at uni_modules/yykj-tv/pages/home/home1.vue:36","🔚 home1 onHide 执行")},onUnload(){this.addLog("🗑️ home1页面卸载"),t("log","at uni_modules/yykj-tv/pages/home/home1.vue:40","🗑️ home1 onUnload 执行")},onError(e){this.addLog("💥 home1页面错误: "+e),t("error","at uni_modules/yykj-tv/pages/home/home1.vue:44","💥 home1页面错误:",e)},methods:{addLog(e){const o=(new Date).toLocaleTimeString();this.logMessages.push(`[${o}] ${e}`),t("log","at uni_modules/yykj-tv/pages/home/home1.vue:50",e),u(e)},async initWebView(){this.addLog("🌐 开始初始化WebView"),this.addLog(`🔗 检查URL可达性: ${this.url}`);await this.checkUrlReachability(this.url)?(this.urlAvailable=!0,this.addLog("✅ URL可达,加载WebView")):(this.urlAvailable=!1,this.addLog("❌ URL不可达,显示错误页面")),uni.onNetworkStatusChange((e=>{this.addLog("📶 网络状态变化: "+(e.isConnected?"已连接":"未连接")),e.isConnected&&this.retryConnection()}))},checkUrlReachability(e){return new Promise((t=>{uni.request({url:e,method:"GET",timeout:5e3,success:e=>{this.addLog(`✅ URL检查成功,状态码: ${e.statusCode}`),t(e.statusCode<400)},fail:e=>{e.errMsg&&e.errMsg.includes("request:fail")?(this.addLog("❌ 网络请求失败"),t(!1)):(this.addLog(`⚠️ URL可能可达,但有CORS限制: ${e.errMsg}`),t(!0))}})}))},async retryConnection(){this.addLog("🔄 尝试重新连接");const e=await this.checkUrlReachability(this.url);this.urlAvailable=e,e?(this.addLog("✅ 重新连接成功"),uni.showToast({title:"连接成功",icon:"success"})):(this.addLog("❌ 重新连接失败"),uni.showToast({title:"连接失败",icon:"none"}))}}},[["render",function(t,o,n,i,a,r){return e.openBlock(),e.createElementBlock("view",null,[a.urlAvailable?(e.openBlock(),e.createElementBlock("web-view",{key:0,src:a.url},null,8,["src"])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"error-container"},[e.createElementVNode("text",{class:"error-text"},"无法访问目标地址,请检查网络连接"),e.createElementVNode("button",{type:"primary",onClick:o[0]||(o[0]=(...e)=>r.retryConnection&&r.retryConnection(...e))},"重试")]))])}],["__scopeId","data-v-ca20a413"]]));const c={onLaunch:function(e){u("输出 平台信息"),uni.getNetworkType({success:e=>{u("网络类型"+e.networkType)},fail:e=>{u("获取网络状态失败")}})},onShow:function(e){u("显示参数"+JSON.stringify(e))},onPageNotFound:function(e){u("页面未找到"+JSON.stringify(e))}};const{app:h,Vuex:d,Pinia:y}=function(){t("log","at main.js:23","🚀 Vue3应用开始初始化",(new Date).toISOString());const o=e.createVueApp(c);return t("log","at main.js:25","✅ Vue3应用实例创建完成",(new Date).toISOString()),{app:o}}();uni.Vuex=d,uni.Pinia=y,h.provide("__globalStyles",__uniConfig.styles),h._component.mpType="app",h._component.render=()=>{},h.mount("#app")}(Vue);
|
||||
|
||||
3
unpackage/dist/build/app-plus/app.css
vendored
3
unpackage/dist/build/app-plus/app.css
vendored
File diff suppressed because one or more lines are too long
2
unpackage/dist/build/app-plus/manifest.json
vendored
2
unpackage/dist/build/app-plus/manifest.json
vendored
@@ -127,7 +127,7 @@
|
||||
"uni-app": {
|
||||
"control": "uni-v3",
|
||||
"vueVersion": "3",
|
||||
"compilerVersion": "3.8.12",
|
||||
"compilerVersion": "3.99",
|
||||
"nvueCompiler": "uni-app",
|
||||
"renderer": "auto",
|
||||
"nvue": {
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user