index.js 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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/components/custom/index"],{
  16. /***/ "./node_modules/@tarojs/taro-loader/lib/entry-cache.js?name=plugin/components/custom/index!./src/plugin/components/custom/index.tsx":
  17. /*!******************************************************************************************************************************************!*\
  18. !*** ./node_modules/@tarojs/taro-loader/lib/entry-cache.js?name=plugin/components/custom/index!./src/plugin/components/custom/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 Custom = function Custom(props) {
  29. function clickCustom() {
  30. console.log(props);
  31. }
  32. var customWidth = props.width;
  33. (0,_tarojs_taro__WEBPACK_IMPORTED_MODULE_0__.useReady)(function () {
  34. _tarojs_taro__WEBPACK_IMPORTED_MODULE_0___default().request({
  35. url: 'https://api.piaoquantv.com/ad/self/inAbPredict',
  36. method: 'POST',
  37. success: function success(res) {
  38. console.log(res);
  39. },
  40. fail: function fail(err) {
  41. console.log(err);
  42. }
  43. });
  44. });
  45. function clickPayment() {
  46. console.log('支付');
  47. wx.requestPluginPayment({
  48. version: 'develop',
  49. fee: 1,
  50. success: function success(res) {
  51. console.log('success', res);
  52. },
  53. fail: function fail(res) {
  54. console.log('fail', res);
  55. }
  56. });
  57. }
  58. function loginSuccess(res) {
  59. console.log(res);
  60. }
  61. function loginFail(res) {
  62. console.log(res);
  63. }
  64. return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(_tarojs_components__WEBPACK_IMPORTED_MODULE_3__.View, {
  65. onClick: clickCustom,
  66. style: {
  67. width: customWidth + 'px'
  68. },
  69. children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_3__.Navigator, {
  70. url: "plugin-private://wxf7261ed54f2e450e/pages/h5/index",
  71. children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_3__.Button, {
  72. children: "H5"
  73. })
  74. }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_3__.Navigator, {
  75. url: "plugin-private://wxf7261ed54f2e450e/pages/miniWeb/index",
  76. children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_3__.Button, {
  77. children: "\u534A\u5C4F"
  78. })
  79. }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_3__.Navigator, {
  80. url: "plugin-private://wxf7261ed54f2e450e/pages/webview/index",
  81. children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_3__.Button, {
  82. children: "\u5168\u5C4F"
  83. })
  84. }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_3__.Navigator, {
  85. url: "plugin-private://wxf7261ed54f2e450e/pages/webview/index"
  86. }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_3__.Button, {
  87. onClick: clickPayment,
  88. children: "\u652F\u4ED8"
  89. }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_3__.FunctionalPageNavigator, {
  90. name: "loginAndGetUserInfo",
  91. version: "develop",
  92. onSuccess: loginSuccess,
  93. onFail: loginFail,
  94. children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_3__.Button, {
  95. className: "login",
  96. children: "\u767B\u5F55\u5230\u63D2\u4EF6"
  97. })
  98. })]
  99. });
  100. };
  101. /* harmony default export */ __webpack_exports__["default"] = (Custom);
  102. /***/ }),
  103. /***/ "./src/plugin/components/custom/index.tsx":
  104. /*!************************************************!*\
  105. !*** ./src/plugin/components/custom/index.tsx ***!
  106. \************************************************/
  107. /***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
  108. /* 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");
  109. /* 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__);
  110. /* 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");
  111. /* 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__);
  112. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "webpack/container/remote/react");
  113. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  114. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-dom */ "webpack/container/remote/react-dom");
  115. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_3__);
  116. var component = (__webpack_require__(/*! !!../../../../node_modules/@tarojs/taro-loader/lib/entry-cache.js?name=plugin/components/custom/index!./index.tsx */ "./node_modules/@tarojs/taro-loader/lib/entry-cache.js?name=plugin/components/custom/index!./src/plugin/components/custom/index.tsx")["default"])
  117. var config = {"isNewBlended":false};
  118. 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))
  119. /* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = (component);
  120. /***/ })
  121. },
  122. /******/ function(__webpack_require__) { // webpackRuntimeModules
  123. /******/ var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }
  124. /******/ __webpack_require__.O(0, ["plugin/taro","plugin/common"], function() { return __webpack_exec__("./src/plugin/components/custom/index.tsx"); });
  125. /******/ var __webpack_exports__ = __webpack_require__.O();
  126. /******/ }
  127. ]);;;
  128. //# sourceMappingURL=index.js.map