135 lines
7.3 KiB
JavaScript
135 lines
7.3 KiB
JavaScript
|
|
"use strict";
|
||
|
|
(wx["webpackJsonp"] = wx["webpackJsonp"] || []).push([["pages/home/index"],{
|
||
|
|
|
||
|
|
/***/ "./node_modules/.pnpm/@tarojs+taro-loader@4.0.8_webpack@5.91.0_@swc+core@1.3.96_/node_modules/@tarojs/taro-loader/lib/entry-cache.js?name=pages/home/index!./src/pages/home/index.jsx":
|
||
|
|
/*!********************************************************************************************************************************************************************************************!*\
|
||
|
|
!*** ./node_modules/.pnpm/@tarojs+taro-loader@4.0.8_webpack@5.91.0_@swc+core@1.3.96_/node_modules/@tarojs/taro-loader/lib/entry-cache.js?name=pages/home/index!./src/pages/home/index.jsx ***!
|
||
|
|
\********************************************************************************************************************************************************************************************/
|
||
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||
|
|
|
||
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "webpack/container/remote/react");
|
||
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
||
|
|
/* harmony import */ var _tarojs_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @tarojs/components */ "./node_modules/.pnpm/@tarojs+plugin-platform-weapp@4.0.8_@tarojs+service@4.0.8_@tarojs+shared@4.0.8/node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js");
|
||
|
|
/* harmony import */ var _api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../api */ "./src/api/index.js");
|
||
|
|
/* 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__);
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
class Home extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
|
||
|
|
async sendMsg() {
|
||
|
|
await _api__WEBPACK_IMPORTED_MODULE_1__["default"].system.getBaidu();
|
||
|
|
}
|
||
|
|
render() {
|
||
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(_tarojs_components__WEBPACK_IMPORTED_MODULE_3__.View, {
|
||
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_3__.View, {
|
||
|
|
class: "text-_red_",
|
||
|
|
children: "123456"
|
||
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_3__.Button, {
|
||
|
|
onClick: this.sendMsg,
|
||
|
|
children: "\u53D1\u9001"
|
||
|
|
})]
|
||
|
|
});
|
||
|
|
}
|
||
|
|
}
|
||
|
|
/* harmony default export */ __webpack_exports__["default"] = (Home);
|
||
|
|
|
||
|
|
/***/ }),
|
||
|
|
|
||
|
|
/***/ "./src/api/index.js":
|
||
|
|
/*!**************************!*\
|
||
|
|
!*** ./src/api/index.js ***!
|
||
|
|
\**************************/
|
||
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||
|
|
|
||
|
|
/* harmony import */ var _system__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./system */ "./src/api/system/index.js");
|
||
|
|
|
||
|
|
const Api = {
|
||
|
|
system: {
|
||
|
|
..._system__WEBPACK_IMPORTED_MODULE_0__["default"]
|
||
|
|
}
|
||
|
|
};
|
||
|
|
/* harmony default export */ __webpack_exports__["default"] = (Api);
|
||
|
|
|
||
|
|
/***/ }),
|
||
|
|
|
||
|
|
/***/ "./src/api/system/index.js":
|
||
|
|
/*!*********************************!*\
|
||
|
|
!*** ./src/api/system/index.js ***!
|
||
|
|
\*********************************/
|
||
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||
|
|
|
||
|
|
/* harmony import */ var _utils_request__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../utils/request */ "./src/utils/request.js");
|
||
|
|
|
||
|
|
const system = {
|
||
|
|
getBaidu: async () => {
|
||
|
|
return (0,_utils_request__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
||
|
|
url: 'https://www.baidu.com/s?wq=你好',
|
||
|
|
method: 'GET'
|
||
|
|
});
|
||
|
|
}
|
||
|
|
};
|
||
|
|
/* harmony default export */ __webpack_exports__["default"] = (system);
|
||
|
|
|
||
|
|
/***/ }),
|
||
|
|
|
||
|
|
/***/ "./src/pages/home/index.jsx":
|
||
|
|
/*!**********************************!*\
|
||
|
|
!*** ./src/pages/home/index.jsx ***!
|
||
|
|
\**********************************/
|
||
|
|
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
||
|
|
|
||
|
|
/* harmony import */ var _tarojs_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tarojs/runtime */ "webpack/container/remote/@tarojs/runtime");
|
||
|
|
/* harmony import */ var _tarojs_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_tarojs_runtime__WEBPACK_IMPORTED_MODULE_0__);
|
||
|
|
/* harmony import */ var _node_modules_pnpm_tarojs_taro_loader_4_0_8_webpack_5_91_0_swc_core_1_3_96_node_modules_tarojs_taro_loader_lib_entry_cache_js_name_pages_home_index_index_jsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !!../../../node_modules/.pnpm/@tarojs+taro-loader@4.0.8_webpack@5.91.0_@swc+core@1.3.96_/node_modules/@tarojs/taro-loader/lib/entry-cache.js?name=pages/home/index!./index.jsx */ "./node_modules/.pnpm/@tarojs+taro-loader@4.0.8_webpack@5.91.0_@swc+core@1.3.96_/node_modules/@tarojs/taro-loader/lib/entry-cache.js?name=pages/home/index!./src/pages/home/index.jsx");
|
||
|
|
|
||
|
|
|
||
|
|
var config = {"navigationBarTitleText":"首页"};
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
var taroOption = (0,_tarojs_runtime__WEBPACK_IMPORTED_MODULE_0__.createPageConfig)(_node_modules_pnpm_tarojs_taro_loader_4_0_8_webpack_5_91_0_swc_core_1_3_96_node_modules_tarojs_taro_loader_lib_entry_cache_js_name_pages_home_index_index_jsx__WEBPACK_IMPORTED_MODULE_1__["default"], 'pages/home/index', {root:{cn:[]}}, config || {})
|
||
|
|
if (_node_modules_pnpm_tarojs_taro_loader_4_0_8_webpack_5_91_0_swc_core_1_3_96_node_modules_tarojs_taro_loader_lib_entry_cache_js_name_pages_home_index_index_jsx__WEBPACK_IMPORTED_MODULE_1__["default"] && _node_modules_pnpm_tarojs_taro_loader_4_0_8_webpack_5_91_0_swc_core_1_3_96_node_modules_tarojs_taro_loader_lib_entry_cache_js_name_pages_home_index_index_jsx__WEBPACK_IMPORTED_MODULE_1__["default"].behaviors) {
|
||
|
|
taroOption.behaviors = (taroOption.behaviors || []).concat(_node_modules_pnpm_tarojs_taro_loader_4_0_8_webpack_5_91_0_swc_core_1_3_96_node_modules_tarojs_taro_loader_lib_entry_cache_js_name_pages_home_index_index_jsx__WEBPACK_IMPORTED_MODULE_1__["default"].behaviors)
|
||
|
|
}
|
||
|
|
var inst = Page(taroOption)
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_pnpm_tarojs_taro_loader_4_0_8_webpack_5_91_0_swc_core_1_3_96_node_modules_tarojs_taro_loader_lib_entry_cache_js_name_pages_home_index_index_jsx__WEBPACK_IMPORTED_MODULE_1__["default"]);
|
||
|
|
|
||
|
|
|
||
|
|
/***/ }),
|
||
|
|
|
||
|
|
/***/ "./src/utils/request.js":
|
||
|
|
/*!******************************!*\
|
||
|
|
!*** ./src/utils/request.js ***!
|
||
|
|
\******************************/
|
||
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__) {
|
||
|
|
|
||
|
|
const request = options => {
|
||
|
|
const {
|
||
|
|
method,
|
||
|
|
url
|
||
|
|
} = options;
|
||
|
|
return new Promise((resolve, reject) => {
|
||
|
|
wx.request({
|
||
|
|
url: url,
|
||
|
|
method: method || 'GET'
|
||
|
|
});
|
||
|
|
});
|
||
|
|
};
|
||
|
|
/* harmony default export */ __webpack_exports__["default"] = (request);
|
||
|
|
|
||
|
|
/***/ })
|
||
|
|
|
||
|
|
},
|
||
|
|
/******/ function(__webpack_require__) { // webpackRuntimeModules
|
||
|
|
/******/ var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }
|
||
|
|
/******/ __webpack_require__.O(0, ["taro","common"], function() { return __webpack_exec__("./src/pages/home/index.jsx"); });
|
||
|
|
/******/ var __webpack_exports__ = __webpack_require__.O();
|
||
|
|
/******/ }
|
||
|
|
]);
|
||
|
|
//# sourceMappingURL=index.js.map
|