webview.js.map 7.0 KB
{"version":3,"sources":["uni-app:///main.js","webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/pages/common/webview/webview.vue?ab18","webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/pages/common/webview/webview.vue?f8b2","webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/pages/common/webview/webview.vue?754b","webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/pages/common/webview/webview.vue?8766","uni-app:///pages/common/webview/webview.vue"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA,wCAAmB;AACnB;AACA,0G;AACAA,UAAU,CAACC,gBAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAgI;AAChI;AAC2D;AACL;;;AAGtD;AACsN;AACtN,gBAAgB,iNAAU;AAC1B,EAAE,6EAAM;AACR,EAAE,8FAAM;AACR,EAAE,uGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,kGAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACtBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAAm2B,CAAgB,qyBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;ACYv3B;AACA,MADA,kBACA;AACA;AACA,iBADA;AAEA,6BAFA;AAGA,kCAHA;AAIA,aAJA;AAKA;AACA;AACA,0BADA,EADA,EALA;;;;AAWA,GAbA;;AAeA,QAfA,kBAeA,MAfA,EAeA;AACA;AACA;AACA;AACA;AACA,KAHA,MAGA;;AAEA,KAFA,MAEA;AACA;AACA;AACA;AACA,GA1BA;;AA4BA;AACA,cADA,sBACA,WADA,EACA;AACA;AACA;AACA,KAJA;;AAMA,oBANA,4BAMA,CANA,EAMA;AACA;AACA;AACA;AACA,wCADA;;AAGA;AACA,KAbA,EA5BA,E","file":"pages/common/webview/webview.js","sourcesContent":["import 'uni-pages';import '@dcloudio/uni-stat';\nimport Vue from 'vue'\nimport Page from './pages/common/webview/webview.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./webview.vue?vue&type=template&id=e3ea9810&scoped=true&\"\nvar renderjs\nimport script from \"./webview.vue?vue&type=script&lang=js&\"\nexport * from \"./webview.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  \"e3ea9810\",\n  null,\n  false,\n  components,\n  renderjs\n)\n\ncomponent.options.__file = \"pages/common/webview/webview.vue\"\nexport default component.exports","export * from \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./webview.vue?vue&type=template&id=e3ea9810&scoped=true&\"","var components\nvar render = function() {\n  var _vm = this\n  var _h = _vm.$createElement\n  var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./webview.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./webview.vue?vue&type=script&lang=js&\"","<template>\n\t<page-meta>\n\t\t<navigation-bar :title=\"nbTitle\" :front-color=\"nbFrontColor\" :background-color=\"nbBackgroundColor\" />\n\t</page-meta>\r\n\t<view>\r\n\t\t<view v-if=\"url\">\r\n\t\t\t<web-view :webview-styles=\"webviewStyles\" :src=\"url\" @message=\"handleGetMessage\"></web-view>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tnbTitle: '',\r\n\t\t\t\tnbFrontColor: '#000000',\r\n\t\t\t\tnbBackgroundColor: '#ffffff',\r\n\t\t\t\turl: \"\",\r\n\t\t\t\twebviewStyles: {\r\n\t\t\t\t\tprogress: {\r\n\t\t\t\t\t\tcolor: '#FF3333'\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\tonLoad(option) {\r\n\t\t\tconsole.log(option, new Date().getTime());\n\t\t\tif (option.type == 'treary') {\n\t\t\t\tthis.url = decodeURIComponent(option.url);\n\t\t\t\tconsole.log('123',this.url);\n\t\t\t} else if (option.type == 'cc') {\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tthis.url = `${option.url}?time=${new Date().getTime()}`;\n\t\t\t}\r\n\t\t\tthis.nbTitle = option.navtitle;\r\n\t\t},\r\n\r\n\t\tmethods: {\n\t\t\treloadPage(redirectUrl) {\n\t\t\t\tconsole.log('---webview reloadPage', redirectUrl)\n\t\t\t\tthis.url = redirectUrl\n\t\t\t},\n\t\t\n\t\t\thandleGetMessage(e) {\n\t\t\t\tconsole.log('ddd', e)\n\t\t\t\tif (e.detail.data[0].result == 'success') {\n\t\t\t\t\twx.navigateTo({\n\t\t\t\t\t\turl: '/pages/redirect/bizpage'\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t},\n\t\t\t\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n\r\n</style>\n"],"sourceRoot":""}