"use strict"; require("../../prebundle/vendors-node_modules_taro_weapp_prebundle_react-dom_js.js"); require("../../prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-MTR4XPV4_js.js"); require("../../prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-SX7RUVFK_js.js"); require("../../prebundle/vendors-node_modules_taro_weapp_prebundle_tarojs_plugin-framework-react_dist_runtime_js.js"); require("../../prebundle/vendors-node_modules_taro_weapp_prebundle_tarojs_taro_js.js"); require("../../prebundle/vendors-node_modules_taro_weapp_prebundle_tarojs_plugin-platform-weapp_dist_runtime_js.js"); require("../../prebundle/node_modules_taro_weapp_prebundle_tarojs_runtime_js.js"); require("../../prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-LNJCN3VW_js.js"); require("../../prebundle/remoteEntry.js"); require("../../prebundle/node_modules_taro_weapp_prebundle_react_jsx-runtime_js.js"); require("../../prebundle/node_modules_taro_weapp_prebundle_react_js.js"); require("../../taro"); require("../../runtime"); (wx["webpackJsonp"] = wx["webpackJsonp"] || []).push([["plugin/components/custom/index"],{ /***/ "./node_modules/@tarojs/taro-loader/lib/entry-cache.js?name=plugin/components/custom/index!./src/plugin/components/custom/index.tsx": /*!******************************************************************************************************************************************!*\ !*** ./node_modules/@tarojs/taro-loader/lib/entry-cache.js?name=plugin/components/custom/index!./src/plugin/components/custom/index.tsx ***! \******************************************************************************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { /* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tarojs/taro */ "webpack/container/remote/@tarojs/taro"); /* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_tarojs_taro__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _tarojs_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @tarojs/components */ "./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "webpack/container/remote/react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react/jsx-runtime */ "webpack/container/remote/react/jsx-runtime"); /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__); var Custom = function Custom(props) { function clickCustom() { console.log(props); } var customWidth = props.width; (0,_tarojs_taro__WEBPACK_IMPORTED_MODULE_0__.useReady)(function () { _tarojs_taro__WEBPACK_IMPORTED_MODULE_0___default().request({ url: 'https://api.piaoquantv.com/ad/self/inAbPredict', method: 'POST', success: function success(res) { console.log(res); }, fail: function fail(err) { console.log(err); } }); }); function clickPayment() { console.log('支付'); wx.requestPluginPayment({ version: 'develop', fee: 1, success: function success(res) { console.log('success', res); }, fail: function fail(res) { console.log('fail', res); } }); } function loginSuccess(res) { console.log(res); } function loginFail(res) { console.log(res); } return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(_tarojs_components__WEBPACK_IMPORTED_MODULE_3__.View, { onClick: clickCustom, style: { width: customWidth + 'px' }, children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_3__.Navigator, { url: "plugin-private://wxf7261ed54f2e450e/pages/h5/index", children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_3__.Button, { children: "H5" }) }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_3__.Navigator, { url: "plugin-private://wxf7261ed54f2e450e/pages/miniWeb/index", children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_3__.Button, { children: "\u534A\u5C4F" }) }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_3__.Navigator, { url: "plugin-private://wxf7261ed54f2e450e/pages/webview/index", children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_3__.Button, { children: "\u5168\u5C4F" }) }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_3__.Navigator, { url: "plugin-private://wxf7261ed54f2e450e/pages/webview/index" }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_3__.Button, { onClick: clickPayment, children: "\u652F\u4ED8" }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_3__.FunctionalPageNavigator, { name: "loginAndGetUserInfo", version: "develop", onSuccess: loginSuccess, onFail: loginFail, children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_3__.Button, { className: "login", children: "\u767B\u5F55\u5230\u63D2\u4EF6" }) })] }); }; /* harmony default export */ __webpack_exports__["default"] = (Custom); /***/ }), /***/ "./src/plugin/components/custom/index.tsx": /*!************************************************!*\ !*** ./src/plugin/components/custom/index.tsx ***! \************************************************/ /***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) { /* 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"); /* 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__); /* 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"); /* 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__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "webpack/container/remote/react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-dom */ "webpack/container/remote/react-dom"); /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_3__); 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"]) var config = {"isNewBlended":false}; 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)) /* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = (component); /***/ }) }, /******/ function(__webpack_require__) { // webpackRuntimeModules /******/ var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); } /******/ __webpack_require__.O(0, ["plugin/taro","plugin/common"], function() { return __webpack_exec__("./src/plugin/components/custom/index.tsx"); }); /******/ var __webpack_exports__ = __webpack_require__.O(); /******/ } ]);;; //# sourceMappingURL=index.js.map