index.js 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. "use strict";
  2. require("../../prebundle/vendors-node_modules_taro_weapp_prebundle_react-dom_js.js");
  3. require("../../prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-MTR4XPV4_js.js");
  4. require("../../prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-SX7RUVFK_js.js");
  5. require("../../prebundle/vendors-node_modules_taro_weapp_prebundle_tarojs_plugin-framework-react_dist_runtime_js.js");
  6. require("../../prebundle/vendors-node_modules_taro_weapp_prebundle_tarojs_taro_js.js");
  7. require("../../prebundle/vendors-node_modules_taro_weapp_prebundle_tarojs_plugin-platform-weapp_dist_runtime_js.js");
  8. require("../../prebundle/node_modules_taro_weapp_prebundle_tarojs_runtime_js.js");
  9. require("../../prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-LNJCN3VW_js.js");
  10. require("../../prebundle/remoteEntry.js");
  11. require("../../prebundle/node_modules_taro_weapp_prebundle_react_jsx-runtime_js.js");
  12. require("../../prebundle/node_modules_taro_weapp_prebundle_react_js.js");
  13. require("../../taro");
  14. require("../../runtime");
  15. (wx["webpackJsonp"] = wx["webpackJsonp"] || []).push([["plugin/pages/webview/index"],{
  16. /***/ "./node_modules/@tarojs/taro-loader/lib/entry-cache.js?name=plugin/pages/webview/index!./src/plugin/pages/webview/index.tsx":
  17. /*!**********************************************************************************************************************************!*\
  18. !*** ./node_modules/@tarojs/taro-loader/lib/entry-cache.js?name=plugin/pages/webview/index!./src/plugin/pages/webview/index.tsx ***!
  19. \**********************************************************************************************************************************/
  20. /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
  21. /* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tarojs/taro */ "webpack/container/remote/@tarojs/taro");
  22. /* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_tarojs_taro__WEBPACK_IMPORTED_MODULE_0__);
  23. /* harmony import */ var _tarojs_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @tarojs/components */ "./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js");
  24. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "webpack/container/remote/react");
  25. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  26. /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react/jsx-runtime */ "webpack/container/remote/react/jsx-runtime");
  27. /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__);
  28. var count = 0;
  29. var Webview = function Webview() {
  30. (0,_tarojs_taro__WEBPACK_IMPORTED_MODULE_0__.useDidShow)(function () {
  31. _tarojs_taro__WEBPACK_IMPORTED_MODULE_0___default().navigateToMiniProgram({
  32. appId: 'wxdd07a068bf2e6ef4',
  33. path: 'pages/middlepage/middlepage?paramKey=fdc2ab9b532143aea717520b5f9b8f10'
  34. });
  35. count++;
  36. console.log(count);
  37. if (count > 1) {
  38. _tarojs_taro__WEBPACK_IMPORTED_MODULE_0___default().navigateBack();
  39. }
  40. });
  41. (0,_tarojs_taro__WEBPACK_IMPORTED_MODULE_0__.useUnload)(function () {
  42. count = 0;
  43. });
  44. return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_3__.View, {
  45. children: "\u5168\u5C4F\u5C0F\u7A0B\u5E8F"
  46. });
  47. };
  48. /* harmony default export */ __webpack_exports__["default"] = (Webview);
  49. /***/ }),
  50. /***/ "./src/plugin/pages/webview/index.tsx":
  51. /*!********************************************!*\
  52. !*** ./src/plugin/pages/webview/index.tsx ***!
  53. \********************************************/
  54. /***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
  55. /* harmony import */ var _tarojs_plugin_platform_weapp_dist_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tarojs/plugin-platform-weapp/dist/runtime */ "webpack/container/remote/@tarojs/plugin-platform-weapp/dist/runtime");
  56. /* harmony import */ var _tarojs_plugin_platform_weapp_dist_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_tarojs_plugin_platform_weapp_dist_runtime__WEBPACK_IMPORTED_MODULE_0__);
  57. /* harmony import */ var _tarojs_plugin_framework_react_dist_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @tarojs/plugin-framework-react/dist/runtime */ "webpack/container/remote/@tarojs/plugin-framework-react/dist/runtime");
  58. /* harmony import */ var _tarojs_plugin_framework_react_dist_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_tarojs_plugin_framework_react_dist_runtime__WEBPACK_IMPORTED_MODULE_1__);
  59. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "webpack/container/remote/react");
  60. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  61. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-dom */ "webpack/container/remote/react-dom");
  62. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_3__);
  63. var component = (__webpack_require__(/*! !!../../../../node_modules/@tarojs/taro-loader/lib/entry-cache.js?name=plugin/pages/webview/index!./index.tsx */ "./node_modules/@tarojs/taro-loader/lib/entry-cache.js?name=plugin/pages/webview/index!./src/plugin/pages/webview/index.tsx")["default"])
  64. var config = {"isNewBlended":false};
  65. var inst = Component((0,_tarojs_plugin_framework_react_dist_runtime__WEBPACK_IMPORTED_MODULE_1__.createNativeComponentConfig)(component, react__WEBPACK_IMPORTED_MODULE_2__, (react_dom__WEBPACK_IMPORTED_MODULE_3___default()), config))
  66. /* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = (component);
  67. /***/ })
  68. },
  69. /******/ function(__webpack_require__) { // webpackRuntimeModules
  70. /******/ var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }
  71. /******/ __webpack_require__.O(0, ["plugin/taro","plugin/common"], function() { return __webpack_exec__("./src/plugin/pages/webview/index.tsx"); });
  72. /******/ var __webpack_exports__ = __webpack_require__.O();
  73. /******/ }
  74. ]);;;
  75. //# sourceMappingURL=index.js.map