Files
taro-template/dist/pages/home/index.js

1084 lines
42 KiB
JavaScript
Raw Normal View History

2024-12-18 17:49:02 +08:00
(wx["webpackJsonp"] = wx["webpackJsonp"] || []).push([["pages/home/index"],{
2024-12-31 15:12:09 +08:00
/***/ "./node_modules/.pnpm/@tarojs+taro-loader@4.0.8_webpack@5.94.0_@swc+core@1.3.96_/node_modules/@tarojs/taro-loader/lib/entry-cache.js?name=pages/home/index!./src/pages/home/index.jsx":
2024-12-18 17:49:02 +08:00
/*!********************************************************************************************************************************************************************************************!*\
2024-12-31 15:12:09 +08:00
!*** ./node_modules/.pnpm/@tarojs+taro-loader@4.0.8_webpack@5.94.0_@swc+core@1.3.96_/node_modules/@tarojs/taro-loader/lib/entry-cache.js?name=pages/home/index!./src/pages/home/index.jsx ***!
2024-12-18 17:49:02 +08:00
\********************************************************************************************************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2024-12-19 09:00:30 +08:00
"use strict";
/* harmony import */ var _nutui_nutui_react_taro_dist_esm_Button_style_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @nutui/nutui-react-taro/dist/esm/Button/style/css */ "./node_modules/.pnpm/@nutui+nutui-react-taro@2.7.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@nutui/nutui-react-taro/dist/esm/Button/style/css.js");
2024-12-31 15:12:09 +08:00
/* harmony import */ var _nutui_nutui_react_taro_dist_esm_Button__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @nutui/nutui-react-taro/dist/esm/Button */ "./node_modules/.pnpm/@nutui+nutui-react-taro@2.7.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@nutui/nutui-react-taro/dist/esm/button.taro-CixO32Hw.js");
2024-12-19 09:00:30 +08:00
/* 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__);
2024-12-31 15:12:09 +08:00
/* harmony import */ var _tarojs_components__WEBPACK_IMPORTED_MODULE_6__ = __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");
2024-12-19 09:00:30 +08:00
/* harmony import */ var _api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../api */ "./src/api/index.js");
2024-12-20 10:35:40 +08:00
/* harmony import */ var _utils_TaroUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../utils/TaroUtils */ "./src/utils/TaroUtils.js");
2024-12-31 15:12:09 +08:00
/* harmony import */ var _components_XQRCode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../components/XQRCode */ "./src/components/XQRCode/index.jsx");
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ "webpack/container/remote/react/jsx-runtime");
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__);
2024-12-20 10:35:40 +08:00
2024-12-19 09:00:30 +08:00
2024-12-18 17:49:02 +08:00
2024-12-19 09:00:30 +08:00
class Home extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
2024-12-18 17:49:02 +08:00
async sendMsg() {
2024-12-19 09:00:30 +08:00
await _api__WEBPACK_IMPORTED_MODULE_2__["default"].system.getBaidu();
2024-12-18 17:49:02 +08:00
}
2024-12-20 10:35:40 +08:00
async showToast() {
_utils_TaroUtils__WEBPACK_IMPORTED_MODULE_3__["default"].showToast("你好");
}
2024-12-18 17:49:02 +08:00
render() {
2024-12-31 15:12:09 +08:00
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(_tarojs_components__WEBPACK_IMPORTED_MODULE_6__.View, {
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_6__.View, {
2024-12-18 17:49:02 +08:00
class: "text-_red_",
children: "123456"
2024-12-31 15:12:09 +08:00
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_nutui_nutui_react_taro_dist_esm_Button__WEBPACK_IMPORTED_MODULE_7__.B, {
2024-12-19 09:00:30 +08:00
type: "info",
2024-12-18 17:49:02 +08:00
onClick: this.sendMsg,
children: "\u53D1\u9001"
2024-12-31 15:12:09 +08:00
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_nutui_nutui_react_taro_dist_esm_Button__WEBPACK_IMPORTED_MODULE_7__.B, {
2024-12-20 10:35:40 +08:00
type: "info",
onClick: this.showToast,
children: "\u5F39\u7A97"
2024-12-31 15:12:09 +08:00
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_components_XQRCode__WEBPACK_IMPORTED_MODULE_4__["default"], {})]
2024-12-18 17:49:02 +08:00
});
}
}
/* harmony default export */ __webpack_exports__["default"] = (Home);
2024-12-19 09:00:30 +08:00
/***/ }),
/***/ "./node_modules/.pnpm/@nutui+icons-react-taro@1.0.5/node_modules/@nutui/icons-react-taro/dist/es/icons/Loading.js":
/*!************************************************************************************************************************!*\
!*** ./node_modules/.pnpm/@nutui+icons-react-taro@1.0.5/node_modules/@nutui/icons-react-taro/dist/es/icons/Loading.js ***!
\************************************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "default": function() { return /* binding */ y; }
/* harmony export */ });
/* 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 _IconTemplate_b29ebbb8_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./IconTemplate-b29ebbb8.mjs */ "./node_modules/.pnpm/@nutui+icons-react-taro@1.0.5/node_modules/@nutui/icons-react-taro/dist/es/icons/IconTemplate-b29ebbb8.mjs");
const y = D => {
const M = {
..._IconTemplate_b29ebbb8_mjs__WEBPACK_IMPORTED_MODULE_1__.d,
...D
};
return /* @__PURE__ */react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_IconTemplate_b29ebbb8_mjs__WEBPACK_IMPORTED_MODULE_1__.I, {
...M,
name: M.name || "Loading",
svg64: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiPjxwYXRoIGZpbGw9InVuZGVmaW5lZCIgZD0iTTUxMiA3My4xNGE0My44OSA0My44OSAwIDAgMSA0My44OSA0My44OXYxMTguNDlhNDMuODkgNDMuODkgMCAwIDEtODcuNzggMFYxMTcuMDNBNDMuODkgNDMuODkgMCAwIDEgNTEyIDczLjE0TTIwMS42NSAyMDEuNjVhNDMuODkgNDMuODkgMCAwIDEgNjIuMSAwbDgzLjY4IDgzLjgzYTQzLjg5IDQzLjg5IDAgMSAxLTYyLjAzIDYyLjAybC04My43NS04My43NWE0My44OSA0My44OSAwIDAgMSAwLTYyLjFtNjIwLjcgMGE0My44OSA0My44OSAwIDAgMSAwIDYyLjFsLTgzLjgzIDgzLjY4YTQzLjg5IDQzLjg5IDAgMSAxLTYyLjAyLTYyLjAzbDgzLjc1LTgzLjgyYTQzLjg5IDQzLjg5IDAgMCAxIDYyLjEgMHpNNzMuMTQgNTEyYTQzLjg5IDQzLjg5IDAgMCAxIDQzLjg5LTQzLjg5aDExOC40OWE0My44OSA0My44OSAwIDAgMSAwIDg3Ljc4SDExNy4wM0E0My44OSA0My44OSAwIDAgMSA3My4xNCA1MTJtNjcxLjQ1IDBhNDMuODkgNDMuODkgMCAwIDEgNDMuODktNDMuODloMTE4LjQ5YTQzLjg5IDQzLjg5IDAgMSAxIDAgODcuNzhINzg4LjQ4QTQzLjg5IDQzLjg5IDAgMCAxIDc0NC41OSA1MTJNMzQ3LjUgNjc2LjVhNDMuODkgNDMuODkgMCAwIDEgMCA2Mi4wMmwtODMuNzUgODMuODNhNDMuODkgNDMuODkgMCAxIDEtNjIuMS02Mi4xbDgzLjgzLTgzLjY4YTQzLjg5IDQzLjg5IDAgMCAxIDYyLjAyIDB6bTMyOSAwYTQzLjg5IDQzLjg5IDAgMCAxIDYyLjAyIDBsODMuODMgODMuNzVhNDMuODkgNDMuODkgMCAxIDEtNjIuMSA2Mi4xbC04My42OC04My44M2E0My44OSA0My44OSAwIDAgMSAwLTYyLjAyek01MTIgNzQ0LjU5YTQzLjg5IDQzLjg5IDAgMCAxIDQzLjg5IDQzLjg5djExOC40OWE0My44OSA0My44OSAwIDEgMS04Ny43OCAwVjc4OC40OEE0My44OSA0My44OSAwIDAgMSA1MTIgNzQ0LjU5Ii8+PC9zdmc+"
});
};
/***/ }),
/***/ "./node_modules/.pnpm/@nutui+icons-react-taro@1.0.5/node_modules/@nutui/icons-react-taro/dist/es/icons/internal.js":
/*!*************************************************************************************************************************!*\
!*** ./node_modules/.pnpm/@nutui+icons-react-taro@1.0.5/node_modules/@nutui/icons-react-taro/dist/es/icons/internal.js ***!
\*************************************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ globalConfig: function() { return /* binding */ n; }
/* harmony export */ });
const n = {
useSvg: !0,
classPrefix: "nut-icon",
tag: "i",
fontClassName: "nutui-iconfont"
};
/***/ }),
/***/ "./node_modules/.pnpm/@nutui+icons-react-taro@1.0.5/node_modules/@nutui/icons-react-taro/dist/es/index.es.js":
/*!*******************************************************************************************************************!*\
!*** ./node_modules/.pnpm/@nutui+icons-react-taro@1.0.5/node_modules/@nutui/icons-react-taro/dist/es/index.es.js ***!
\*******************************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ Loading: function() { return /* reexport safe */ _icons_Loading_js__WEBPACK_IMPORTED_MODULE_0__["default"]; }
/* harmony export */ });
/* harmony import */ var _icons_Loading_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./icons/Loading.js */ "./node_modules/.pnpm/@nutui+icons-react-taro@1.0.5/node_modules/@nutui/icons-react-taro/dist/es/icons/Loading.js");
/* harmony import */ var _style_icon_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../style_icon.css */ "./node_modules/.pnpm/@nutui+icons-react-taro@1.0.5/node_modules/@nutui/icons-react-taro/dist/style_icon.css");
/** 此文件由 script generate 脚本生成 */
/***/ }),
/***/ "./node_modules/.pnpm/@nutui+nutui-react-taro@2.7.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@nutui/nutui-react-taro/dist/esm/Button/style/css.js":
/*!************************************************************************************************************************************************************************!*\
!*** ./node_modules/.pnpm/@nutui+nutui-react-taro@2.7.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@nutui/nutui-react-taro/dist/esm/Button/style/css.js ***!
\************************************************************************************************************************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _style_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./style.css */ "./node_modules/.pnpm/@nutui+nutui-react-taro@2.7.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@nutui/nutui-react-taro/dist/esm/Button/style/style.css");
/***/ }),
/***/ "./node_modules/.pnpm/@nutui+nutui-react-taro@2.7.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@nutui/nutui-react-taro/dist/esm/button.taro-CixO32Hw.js":
/*!****************************************************************************************************************************************************************************!*\
!*** ./node_modules/.pnpm/@nutui+nutui-react-taro@2.7.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@nutui/nutui-react-taro/dist/esm/button.taro-CixO32Hw.js ***!
\****************************************************************************************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ B: function() { return /* binding */ Button; }
/* harmony export */ });
/* harmony import */ var _tslib_es6_iWu3F_1J_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./tslib.es6-iWu3F_1J.js */ "./node_modules/.pnpm/@nutui+nutui-react-taro@2.7.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@nutui/nutui-react-taro/dist/esm/tslib.es6-iWu3F_1J.js");
/* 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 classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "./node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _nutui_icons_react_taro__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @nutui/icons-react-taro */ "./node_modules/.pnpm/@nutui+icons-react-taro@1.0.5/node_modules/@nutui/icons-react-taro/dist/es/index.es.js");
/* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @tarojs/taro */ "webpack/container/remote/@tarojs/taro");
/* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_tarojs_taro__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _typings_DV9RBfhj_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./typings-DV9RBfhj.js */ "./node_modules/.pnpm/@nutui+nutui-react-taro@2.7.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@nutui/nutui-react-taro/dist/esm/typings-DV9RBfhj.js");
const prefixCls = "nut-button";
const defaultProps = Object.assign(Object.assign({}, _typings_DV9RBfhj_js__WEBPACK_IMPORTED_MODULE_4__.C), {
color: "",
type: "default",
size: "normal",
shape: "round",
fill: "outline",
loading: false,
disabled: false,
block: false,
icon: null,
rightIcon: null,
onClick: e => {}
});
const Button = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef((props, ref) => {
const _a = Object.assign(Object.assign({}, defaultProps), props),
{
color,
shape,
fill,
loading,
disabled,
type,
size,
block,
icon,
rightIcon,
children,
className,
style,
nativeType,
onClick
} = _a,
rest = (0,_tslib_es6_iWu3F_1J_js__WEBPACK_IMPORTED_MODULE_5__._)(_a, ["color", "shape", "fill", "loading", "disabled", "type", "size", "block", "icon", "rightIcon", "children", "className", "style", "nativeType", "onClick"]);
const getStyle = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(() => {
const style2 = {};
if (color) {
if (props.fill === "outline" || props.fill === "dashed") {
style2.color = color;
if (!(color === null || color === void 0 ? void 0 : color.includes("gradient"))) {
style2.borderColor = color;
}
} else {
style2.color = "#fff";
style2.background = color;
style2.borderColor = "transparent";
}
}
return style2;
}, [color, props.fill]);
const handleClick = e => {
if (!loading && !disabled && onClick) {
onClick(e);
}
};
if ((0,_tarojs_taro__WEBPACK_IMPORTED_MODULE_3__.getEnv)() === "WEB") {
rest.type = rest.formType;
}
return (
/*#__PURE__*/
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
// eslint-disable-next-line react/button-has-type
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("button", Object.assign({}, rest, {
ref,
type: nativeType,
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()(prefixCls, `${prefixCls}-${type}`, props.fill ? `${prefixCls}-${fill}` : null, children ? "" : `${prefixCls}-icononly`, {
[`${prefixCls}-${size}`]: size,
[`${prefixCls}-${shape}`]: shape,
[`${prefixCls}-block`]: block,
[`${prefixCls}-disabled`]: disabled || loading,
[`${prefixCls}-loading`]: loading
}, className),
style: Object.assign(Object.assign({}, getStyle()), style),
onClick: e => handleClick(e)
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
className: "nut-button-wrap"
}, loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_nutui_icons_react_taro__WEBPACK_IMPORTED_MODULE_2__.Loading, {
className: "nut-icon-loading"
}), !loading && icon ? icon : null, children && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
className: `${icon || loading ? "nut-button-text" : ""}${rightIcon ? " nut-button-text right" : ""}`
}, children), rightIcon || null))
);
});
Button.displayName = "NutButton";
/***/ }),
/***/ "./node_modules/.pnpm/@nutui+nutui-react-taro@2.7.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@nutui/nutui-react-taro/dist/esm/tslib.es6-iWu3F_1J.js":
/*!**************************************************************************************************************************************************************************!*\
!*** ./node_modules/.pnpm/@nutui+nutui-react-taro@2.7.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@nutui/nutui-react-taro/dist/esm/tslib.es6-iWu3F_1J.js ***!
\**************************************************************************************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ _: function() { return /* binding */ __rest; }
/* harmony export */ });
/* unused harmony export a */
function __rest(s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
}
function __awaiter(thisArg, _arguments, P, generator) {
function adopt(value) {
return value instanceof P ? value : new P(function (resolve) {
resolve(value);
});
}
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) {
try {
step(generator.next(value));
} catch (e) {
reject(e);
}
}
function rejected(value) {
try {
step(generator["throw"](value));
} catch (e) {
reject(e);
}
}
function step(result) {
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
}
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
}
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
var e = new Error(message);
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
};
/***/ }),
/***/ "./node_modules/.pnpm/@nutui+nutui-react-taro@2.7.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@nutui/nutui-react-taro/dist/esm/typings-DV9RBfhj.js":
/*!************************************************************************************************************************************************************************!*\
!*** ./node_modules/.pnpm/@nutui+nutui-react-taro@2.7.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@nutui/nutui-react-taro/dist/esm/typings-DV9RBfhj.js ***!
\************************************************************************************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ C: function() { return /* binding */ ComponentDefaults; }
/* harmony export */ });
const ComponentDefaults = {
className: "",
style: {}
};
2024-12-18 17:49:02 +08:00
/***/ }),
/***/ "./src/api/index.js":
/*!**************************!*\
!*** ./src/api/index.js ***!
\**************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2024-12-19 09:00:30 +08:00
"use strict";
2024-12-18 17:49:02 +08:00
/* 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__) {
2024-12-19 09:00:30 +08:00
"use strict";
2024-12-18 17:49:02 +08:00
/* 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"])({
2024-12-20 10:35:40 +08:00
url: '/s?wq=你好',
2024-12-18 17:49:02 +08:00
method: 'GET'
});
}
};
/* harmony default export */ __webpack_exports__["default"] = (system);
/***/ }),
2024-12-31 15:12:09 +08:00
/***/ "./src/components/XQRCode/index.jsx":
/*!******************************************!*\
!*** ./src/components/XQRCode/index.jsx ***!
\******************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _Users_wangyijia_Documents_My_taro_template_node_modules_pnpm_babel_runtime_7_26_0_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./node_modules/.pnpm/@babel+runtime@7.26.0/node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/.pnpm/@babel+runtime@7.26.0/node_modules/@babel/runtime/helpers/esm/defineProperty.js");
/* 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_5__ = __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");
2025-01-02 09:05:08 +08:00
/* harmony import */ var uqrcodejs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! uqrcodejs */ "webpack/container/remote/uqrcodejs");
2024-12-31 15:12:09 +08:00
/* harmony import */ var uqrcodejs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(uqrcodejs__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @tarojs/taro */ "webpack/container/remote/@tarojs/taro");
/* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_tarojs_taro__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _utils_TaroUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../utils/TaroUtils */ "./src/utils/TaroUtils.js");
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ "webpack/container/remote/react/jsx-runtime");
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__);
class XQRCode extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
constructor(props) {
super(props);
}
componentDidMount() {
const {
content,
id
} = this.props;
_tarojs_taro__WEBPACK_IMPORTED_MODULE_2___default().createSelectorQuery().select(`#${id}`).boundingClientRect().exec(res => {
const {
width
} = res[0];
const qr = new (uqrcodejs__WEBPACK_IMPORTED_MODULE_1___default())();
qr.data = content;
qr.size = width;
qr.make();
qr.canvasContext = _tarojs_taro__WEBPACK_IMPORTED_MODULE_2___default().createCanvasContext(id, this);
qr.drawCanvas().catch(res => {
_utils_TaroUtils__WEBPACK_IMPORTED_MODULE_3__["default"].showToast(`二维码绘制失败`);
});
});
}
render() {
const {
size,
id
} = this.props;
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_5__.View, {
style: {
width: size,
height: size
},
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_5__.Canvas, {
id: id,
canvasId: id,
className: "iw-full ih-full"
})
});
}
}
(0,_Users_wangyijia_Documents_My_taro_template_node_modules_pnpm_babel_runtime_7_26_0_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__["default"])(XQRCode, "defaultProps", {
size: "200rpx",
content: "https://www.baidu.com",
id: "QRCode"
});
/* harmony default export */ __webpack_exports__["default"] = (XQRCode);
/***/ }),
2024-12-18 17:49:02 +08:00
/***/ "./src/pages/home/index.jsx":
/*!**********************************!*\
!*** ./src/pages/home/index.jsx ***!
\**********************************/
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
2024-12-19 09:00:30 +08:00
"use strict";
2024-12-18 17:49:02 +08:00
/* 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__);
2024-12-31 15:12:09 +08:00
/* harmony import */ var _node_modules_pnpm_tarojs_taro_loader_4_0_8_webpack_5_94_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.94.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.94.0_@swc+core@1.3.96_/node_modules/@tarojs/taro-loader/lib/entry-cache.js?name=pages/home/index!./src/pages/home/index.jsx");
2024-12-18 17:49:02 +08:00
var config = {"navigationBarTitleText":"首页"};
2024-12-31 15:12:09 +08:00
var taroOption = (0,_tarojs_runtime__WEBPACK_IMPORTED_MODULE_0__.createPageConfig)(_node_modules_pnpm_tarojs_taro_loader_4_0_8_webpack_5_94_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_94_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_94_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_94_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)
2024-12-18 17:49:02 +08:00
}
var inst = Page(taroOption)
2024-12-31 15:12:09 +08:00
/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_pnpm_tarojs_taro_loader_4_0_8_webpack_5_94_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"]);
2024-12-18 17:49:02 +08:00
2024-12-20 10:35:40 +08:00
/***/ }),
/***/ "./src/utils/TaroUtils.js":
/*!********************************!*\
!*** ./src/utils/TaroUtils.js ***!
\********************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* 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 _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils */ "./src/utils/utils.js");
const TaroUtils = {
showToast(options) {
if (!(0,_utils__WEBPACK_IMPORTED_MODULE_1__.isObject)(options)) {
_tarojs_taro__WEBPACK_IMPORTED_MODULE_0___default().showToast({
title: options,
duration: 2000
}).then(() => {});
return;
}
_tarojs_taro__WEBPACK_IMPORTED_MODULE_0___default().showToast(options).then(() => {});
}
};
/* harmony default export */ __webpack_exports__["default"] = (TaroUtils);
2024-12-18 17:49:02 +08:00
/***/ }),
/***/ "./src/utils/request.js":
/*!******************************!*\
!*** ./src/utils/request.js ***!
\******************************/
2024-12-20 10:35:40 +08:00
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2024-12-18 17:49:02 +08:00
2024-12-19 09:00:30 +08:00
"use strict";
2024-12-20 10:35:40 +08:00
/* 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__);
2024-12-18 17:49:02 +08:00
const request = options => {
const {
method,
2024-12-20 10:35:40 +08:00
url,
data
2024-12-18 17:49:02 +08:00
} = options;
return new Promise((resolve, reject) => {
2024-12-20 10:35:40 +08:00
_tarojs_taro__WEBPACK_IMPORTED_MODULE_0___default().request({
url: "https://www.baidu.com" + url,
method: method || 'GET',
success: res => {
resolve(res);
},
fail: err => {
reject(err);
}
2024-12-18 17:49:02 +08:00
});
});
};
2024-12-20 10:35:40 +08:00
const interceptor = function (chain) {
const requestParams = chain.requestParams;
const {
method,
data,
url
} = requestParams;
console.table(Object.entries({
['接口名称']: url,
['请求方式']: method,
['携带参数']: data
}).map(_ref => {
let [key, value] = _ref;
return {
Property: key,
Value: value
};
}));
return chain.proceed(requestParams).then(res => {
console.log(`接口返回:`, res);
return res.data;
});
};
_tarojs_taro__WEBPACK_IMPORTED_MODULE_0___default().addInterceptor(interceptor);
2024-12-18 17:49:02 +08:00
/* harmony default export */ __webpack_exports__["default"] = (request);
2024-12-19 09:00:30 +08:00
/***/ }),
2024-12-20 10:35:40 +08:00
/***/ "./src/utils/utils.js":
/*!****************************!*\
!*** ./src/utils/utils.js ***!
\****************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ isObject: function() { return /* binding */ isObject; }
/* harmony export */ });
const isObject = obj => {
return obj !== null && typeof obj === 'object';
};
/***/ }),
2024-12-19 09:00:30 +08:00
/***/ "./node_modules/.pnpm/@nutui+icons-react-taro@1.0.5/node_modules/@nutui/icons-react-taro/dist/style_icon.css":
/*!*******************************************************************************************************************!*\
!*** ./node_modules/.pnpm/@nutui+icons-react-taro@1.0.5/node_modules/@nutui/icons-react-taro/dist/style_icon.css ***!
\*******************************************************************************************************************/
/***/ (function() {
"use strict";
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./node_modules/.pnpm/@nutui+nutui-react-taro@2.7.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@nutui/nutui-react-taro/dist/esm/Button/style/style.css":
/*!***************************************************************************************************************************************************************************!*\
!*** ./node_modules/.pnpm/@nutui+nutui-react-taro@2.7.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@nutui/nutui-react-taro/dist/esm/Button/style/style.css ***!
\***************************************************************************************************************************************************************************/
/***/ (function() {
"use strict";
// extracted by mini-css-extract-plugin
2024-12-31 15:12:09 +08:00
/***/ }),
2024-12-19 09:00:30 +08:00
/***/ "./node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js":
/*!******************************************************************************!*\
!*** ./node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js ***!
\******************************************************************************/
/***/ (function(module, exports) {
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
/* global define */
(function () {
'use strict';
var hasOwn = {}.hasOwnProperty;
function classNames () {
var classes = '';
for (var i = 0; i < arguments.length; i++) {
var arg = arguments[i];
if (arg) {
classes = appendClass(classes, parseValue(arg));
}
}
return classes;
}
function parseValue (arg) {
if (typeof arg === 'string' || typeof arg === 'number') {
return arg;
}
if (typeof arg !== 'object') {
return '';
}
if (Array.isArray(arg)) {
return classNames.apply(null, arg);
}
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
return arg.toString();
}
var classes = '';
for (var key in arg) {
if (hasOwn.call(arg, key) && arg[key]) {
classes = appendClass(classes, key);
}
}
return classes;
}
function appendClass (value, newClass) {
if (!newClass) {
return value;
}
if (value) {
return value + ' ' + newClass;
}
return value + newClass;
}
if ( true && module.exports) {
classNames.default = classNames;
module.exports = classNames;
} else if (true) {
// register as 'classnames', consistent with npm package name
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
return classNames;
}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
} else {}
}());
2024-12-31 15:12:09 +08:00
/***/ }),
/***/ "./node_modules/.pnpm/@babel+runtime@7.26.0/node_modules/@babel/runtime/helpers/esm/defineProperty.js":
/*!************************************************************************************************************!*\
!*** ./node_modules/.pnpm/@babel+runtime@7.26.0/node_modules/@babel/runtime/helpers/esm/defineProperty.js ***!
\************************************************************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "default": function() { return /* binding */ _defineProperty; }
/* harmony export */ });
/* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toPropertyKey.js */ "./node_modules/.pnpm/@babel+runtime@7.26.0/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js");
function _defineProperty(e, r, t) {
return (r = (0,_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__["default"])(r)) in e ? Object.defineProperty(e, r, {
value: t,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[r] = t, e;
}
/***/ }),
/***/ "./node_modules/.pnpm/@babel+runtime@7.26.0/node_modules/@babel/runtime/helpers/esm/toPrimitive.js":
/*!*********************************************************************************************************!*\
!*** ./node_modules/.pnpm/@babel+runtime@7.26.0/node_modules/@babel/runtime/helpers/esm/toPrimitive.js ***!
\*********************************************************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "default": function() { return /* binding */ toPrimitive; }
/* harmony export */ });
/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "./node_modules/.pnpm/@babel+runtime@7.26.0/node_modules/@babel/runtime/helpers/esm/typeof.js");
function toPrimitive(t, r) {
if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(t) || !t) return t;
var e = t[Symbol.toPrimitive];
if (void 0 !== e) {
var i = e.call(t, r || "default");
if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(i)) return i;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return ("string" === r ? String : Number)(t);
}
/***/ }),
/***/ "./node_modules/.pnpm/@babel+runtime@7.26.0/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js":
/*!***********************************************************************************************************!*\
!*** ./node_modules/.pnpm/@babel+runtime@7.26.0/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js ***!
\***********************************************************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "default": function() { return /* binding */ toPropertyKey; }
/* harmony export */ });
/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./typeof.js */ "./node_modules/.pnpm/@babel+runtime@7.26.0/node_modules/@babel/runtime/helpers/esm/typeof.js");
/* harmony import */ var _toPrimitive_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toPrimitive.js */ "./node_modules/.pnpm/@babel+runtime@7.26.0/node_modules/@babel/runtime/helpers/esm/toPrimitive.js");
function toPropertyKey(t) {
var i = (0,_toPrimitive_js__WEBPACK_IMPORTED_MODULE_0__["default"])(t, "string");
return "symbol" == (0,_typeof_js__WEBPACK_IMPORTED_MODULE_1__["default"])(i) ? i : i + "";
}
/***/ }),
/***/ "./node_modules/.pnpm/@babel+runtime@7.26.0/node_modules/@babel/runtime/helpers/esm/typeof.js":
/*!****************************************************************************************************!*\
!*** ./node_modules/.pnpm/@babel+runtime@7.26.0/node_modules/@babel/runtime/helpers/esm/typeof.js ***!
\****************************************************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "default": function() { return /* binding */ _typeof; }
/* harmony export */ });
function _typeof(o) {
"@babel/helpers - typeof";
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
return typeof o;
} : function (o) {
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
}, _typeof(o);
}
2024-12-19 09:00:30 +08:00
/***/ }),
/***/ "./node_modules/.pnpm/@nutui+icons-react-taro@1.0.5/node_modules/@nutui/icons-react-taro/dist/es/icons/IconTemplate-b29ebbb8.mjs":
/*!***************************************************************************************************************************************!*\
!*** ./node_modules/.pnpm/@nutui+icons-react-taro@1.0.5/node_modules/@nutui/icons-react-taro/dist/es/icons/IconTemplate-b29ebbb8.mjs ***!
\***************************************************************************************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ I: function() { return /* binding */ P; },
/* harmony export */ d: function() { return /* binding */ x; }
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "webpack/container/remote/react");
/* harmony import */ var _internal_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./internal.js */ "./node_modules/.pnpm/@nutui+icons-react-taro@1.0.5/node_modules/@nutui/icons-react-taro/dist/es/icons/internal.js");
const x = {
className: "",
style: void 0,
name: "",
width: "",
height: "",
size: "",
svg64: "",
onClick: () => {}
},
y = k => {
const n = _internal_js__WEBPACK_IMPORTED_MODULE_1__.globalConfig.classPrefix,
{
className: m,
style: f,
name: e,
color: r,
width: p,
height: C,
size: i,
svg64: a,
children: u,
onClick: l,
fallback: o = !_internal_js__WEBPACK_IMPORTED_MODULE_1__.globalConfig.useSvg
} = {
...x,
...k
},
N = t => {
l && l(t);
},
h = t => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px",
$ = () => {
const t = o ? e == null ? void 0 : e.toLowerCase() : e;
return `${o ? _internal_js__WEBPACK_IMPORTED_MODULE_1__.globalConfig.fontClassName : ""} ${n} ${n}-${t} ${m}`;
},
c = {},
d = h(p || i || ""),
g = h(C || i || "");
d && (c.width = d), g && (c.height = g);
const b = () => ({
...f,
...(o ? {} : {
backgroundColor: r || "currentColor",
mask: `url('${a}') 0 0/100% 100% no-repeat`,
"-webkitMask": `url('${a}') 0 0/100% 100% no-repeat`
}),
...c
});
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_internal_js__WEBPACK_IMPORTED_MODULE_1__.globalConfig.tag, {
className: $(),
style: b(),
onClick: N,
color: r
}, u);
},
P = y;
2024-12-18 17:49:02 +08:00
/***/ })
},
/******/ 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