if (typeof Promise !== "undefined" && !Promise.prototype.finally) { Promise.prototype.finally = function(callback) { const promise = this.constructor; return this.then( (value) => promise.resolve(callback()).then(() => value), (reason) => promise.resolve(callback()).then(() => { throw reason; }) ); }; } ; if (typeof uni !== "undefined" && uni && uni.requireGlobal) { const global = uni.requireGlobal(); ArrayBuffer = global.ArrayBuffer; Int8Array = global.Int8Array; Uint8Array = global.Uint8Array; Uint8ClampedArray = global.Uint8ClampedArray; Int16Array = global.Int16Array; Uint16Array = global.Uint16Array; Int32Array = global.Int32Array; Uint32Array = global.Uint32Array; Float32Array = global.Float32Array; Float64Array = global.Float64Array; BigInt64Array = global.BigInt64Array; BigUint64Array = global.BigUint64Array; } ; if (uni.restoreGlobal) { uni.restoreGlobal(Vue, weex, plus, setTimeout, clearTimeout, setInterval, clearInterval); } (function(vue) { "use strict"; const _export_sfc = (sfc, props) => { const target = sfc.__vccOpts || sfc; for (const [key, val] of props) { target[key] = val; } return target; }; const _sfc_main$2 = { data() { return { url: "http://192.168.10.34:8080" }; }, methods: { toConfig() { let url = "/uni_modules/yykj-tv/pages/home/home?url=" + this.url; uni.redirectTo({ url }); } } }; function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) { return vue.openBlock(), vue.createElementBlock("view", { class: "content" }, [ vue.createElementVNode("view", { class: "" }, [ vue.withDirectives(vue.createElementVNode( "input", { type: "text", class: "input", "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.url = $event) }, null, 512 /* NEED_PATCH */ ), [ [vue.vModelText, $data.url] ]), vue.createElementVNode("button", { type: "primary", size: "size", onClick: _cache[1] || (_cache[1] = (...args) => $options.toConfig && $options.toConfig(...args)) }, "跳转") ]) ]); } const Uni_modulesYykjTvPagesIndexIndex = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$1], ["__scopeId", "data-v-7892acfb"], ["__file", "/Users/nuoli/Downloads/yykj-tv_1.0.0_example/uni_modules/yykj-tv/pages/index/index.vue"]]); const _sfc_main$1 = { data() { return { url: "" }; }, onLoad(options) { this.url = options.url; } }; function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { return vue.openBlock(), vue.createElementBlock("view", null, [ vue.createElementVNode("web-view", { src: $data.url }, null, 8, ["src"]) ]); } const Uni_modulesYykjTvPagesHomeHome = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render], ["__file", "/Users/nuoli/Downloads/yykj-tv_1.0.0_example/uni_modules/yykj-tv/pages/home/home.vue"]]); __definePage("uni_modules/yykj-tv/pages/index/index", Uni_modulesYykjTvPagesIndexIndex); __definePage("uni_modules/yykj-tv/pages/home/home", Uni_modulesYykjTvPagesHomeHome); function formatAppLog(type, filename, ...args) { if (uni.__log__) { uni.__log__(type, filename, ...args); } else { console[type].apply(console, [...args, filename]); } } const _sfc_main = { onLaunch: function() { formatAppLog("log", "at App.vue:4", "App Launch"); }, onShow: function() { formatAppLog("log", "at App.vue:7", "App Show"); }, onHide: function() { formatAppLog("log", "at App.vue:10", "App Hide"); } }; const App = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/Users/nuoli/Downloads/yykj-tv_1.0.0_example/App.vue"]]); function createApp() { const app = vue.createVueApp(App); return { app }; } const { app: __app__, Vuex: __Vuex__, Pinia: __Pinia__ } = createApp(); uni.Vuex = __Vuex__; uni.Pinia = __Pinia__; __app__.provide("__globalStyles", __uniConfig.styles); __app__._component.mpType = "app"; __app__._component.render = () => { }; __app__.mount("#app"); })(Vue);