wechat
parent
aa3f01d9b1
commit
f0cefd976b
|
|
@ -1 +1 @@
|
|||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/webview/index"],{"8eb3":function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return r}));var c=function(){var e=this,t=e.$createElement;e._self._c},o=[]},"9edb":function(e,t,n){"use strict";(function(e,t){var r=n("4ea4");n("6cdc");r(n("66fd"));var c=r(n("c18c"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(c.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},c18c:function(e,t,n){"use strict";n.r(t);var r=n("8eb3"),c=n("c984");for(var o in c)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return c[e]}))}(o);var i,a=n("f0c5"),u=Object(a["a"])(c["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],i);t["default"]=u.exports},c984:function(e,t,n){"use strict";n.r(t);var r=n("d6b8"),c=n.n(r);for(var o in r)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(o);t["default"]=c.a},d6b8:function(e,t,n){"use strict";(function(e){var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var c=r(n("9523")),o=n("26cb");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){(0,c.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.default={data:function(){return{src:"",webview_styles:{progress:{color:"#FF3333"}}}},computed:a({},(0,o.mapGetters)(["token"])),onLoad:function(t){var n=t.url,r="https://lcny-m.peidikeji.cn",c=this.queryURLParams(decodeURIComponent(n)),o=a(a({},c.query),{},{token:this.token,appbar:"hidden"});this.src="".concat(r,"/#").concat(c.path).concat(e.$u.queryParams(o)),console.log(this.src)},onReady:function(){this.writeToWebView()},methods:{queryURLParams:function(e){var t=e.split("?")[1],n={};if(t)for(var r=t.split("&"),c=0;c<r.length;c++){var o=r[c].split("=");n[o[0]]=o[1]}return{query:n,path:e.split("?")[0]}},writeToWebView:function(e){},evalJs:function(){console.log(this.$refs.webview),this.$refs.webview.evalJs("document.body.style.background ='#00FF00'")},message:function(e){console.log(JSON.stringify(e))}}}}).call(this,n("543d")["default"])}},[["9edb","common/runtime","common/vendor"]]]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/webview/index"],{"8f83":function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return r}));var c=function(){var e=this,t=e.$createElement;e._self._c},o=[]},"9edb":function(e,t,n){"use strict";(function(e,t){var r=n("4ea4");n("6cdc");r(n("66fd"));var c=r(n("c18c"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(c.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},c18c:function(e,t,n){"use strict";n.r(t);var r=n("8f83"),c=n("c984");for(var o in c)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return c[e]}))}(o);var i,a=n("f0c5"),u=Object(a["a"])(c["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],i);t["default"]=u.exports},c984:function(e,t,n){"use strict";n.r(t);var r=n("d6b8"),c=n.n(r);for(var o in r)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(o);t["default"]=c.a},d6b8:function(e,t,n){"use strict";(function(e){var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var c=r(n("9523")),o=n("26cb");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){(0,c.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.default={data:function(){return{src:"",webview_styles:{progress:{color:"#FF3333"}}}},computed:a({},(0,o.mapGetters)(["token"])),onLoad:function(t){var n=t.url,r="https://lcny-m.peidikeji.cn",c=this.queryURLParams(decodeURIComponent(n)),o=a(a({},c.query),{},{token:this.token,appbar:"hidden",timestamp:(new Date).getTime()});this.src="".concat(r,"/#").concat(c.path).concat(e.$u.queryParams(o)),console.log(this.src)},onReady:function(){this.writeToWebView()},methods:{queryURLParams:function(e){var t=e.split("?")[1],n={};if(t)for(var r=t.split("&"),c=0;c<r.length;c++){var o=r[c].split("=");n[o[0]]=o[1]}return{query:n,path:e.split("?")[0]}},writeToWebView:function(e){},evalJs:function(){console.log(this.$refs.webview),this.$refs.webview.evalJs("document.body.style.background ='#00FF00'")},message:function(e){console.log(JSON.stringify(e))}}}}).call(this,n("543d")["default"])}},[["9edb","common/runtime","common/vendor"]]]);
|
||||
|
|
@ -1,8 +1,7 @@
|
|||
{
|
||||
"description": "项目配置文件。",
|
||||
"packOptions": {
|
||||
"ignore": [],
|
||||
"include": []
|
||||
"ignore": []
|
||||
},
|
||||
"setting": {
|
||||
"urlCheck": false,
|
||||
|
|
@ -10,20 +9,28 @@
|
|||
"postcss": false,
|
||||
"minified": false,
|
||||
"newFeature": true,
|
||||
"bigPackageSizeSupport": true,
|
||||
"babelSetting": {
|
||||
"ignore": [],
|
||||
"disablePlugins": [],
|
||||
"outputPath": ""
|
||||
}
|
||||
"bigPackageSizeSupport": true
|
||||
},
|
||||
"compileType": "miniprogram",
|
||||
"libVersion": "3.2.1",
|
||||
"libVersion": "",
|
||||
"appid": "wx401e351ad84bc92d",
|
||||
"projectname": "lcny-admin-mobile-vue",
|
||||
"condition": {},
|
||||
"editorSetting": {
|
||||
"tabIndent": "insertSpaces",
|
||||
"tabSize": 4
|
||||
"condition": {
|
||||
"search": {
|
||||
"current": -1,
|
||||
"list": []
|
||||
},
|
||||
"conversation": {
|
||||
"current": -1,
|
||||
"list": []
|
||||
},
|
||||
"game": {
|
||||
"current": -1,
|
||||
"list": []
|
||||
},
|
||||
"miniprogram": {
|
||||
"current": -1,
|
||||
"list": []
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -35,6 +35,7 @@ export default {
|
|||
...queryParams.query,
|
||||
token: this.token,
|
||||
appbar: 'hidden',
|
||||
timestamp: new Date().getTime(),
|
||||
}
|
||||
this.src = `${host}/#${queryParams.path}${uni.$u.queryParams(query)}`
|
||||
console.log(this.src);
|
||||
|
|
|
|||
Loading…
Reference in New Issue