1636 lines
73 KiB
JavaScript
1636 lines
73 KiB
JavaScript
(wx["webpackJsonp"] = wx["webpackJsonp"] || []).push([["pages/index/index"],{
|
||
|
||
/***/ "./node_modules/@antmjs/vantui/es/button/index.js":
|
||
/*!********************************************************!*\
|
||
!*** ./node_modules/@antmjs/vantui/es/button/index.js ***!
|
||
\********************************************************/
|
||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||
|
||
"use strict";
|
||
/* unused harmony export Button */
|
||
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
||
/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
|
||
/* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @tarojs/taro */ "webpack/container/remote/@tarojs/taro");
|
||
/* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_tarojs_taro__WEBPACK_IMPORTED_MODULE_1__);
|
||
/* harmony import */ var _tarojs_components__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @tarojs/components */ "./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js");
|
||
/* harmony import */ var _wxs_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../wxs/utils */ "./node_modules/@antmjs/vantui/es/wxs/utils.js");
|
||
/* harmony import */ var _icon_index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../icon/index */ "./node_modules/@antmjs/vantui/es/icon/index.js");
|
||
/* harmony import */ var _loading_index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../loading/index */ "./node_modules/@antmjs/vantui/es/loading/index.js");
|
||
/* harmony import */ var _wxs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./wxs */ "./node_modules/@antmjs/vantui/es/button/wxs.js");
|
||
/* 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__);
|
||
|
||
|
||
var _excluded = ["type", "size", "block", "round", "plain", "square", "loading", "disabled", "hairline", "color", "loadingSize", "loadingType", "loadingText", "icon", "classPrefix", "onClick", "children", "style", "className"];
|
||
|
||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
||
|
||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
var removed = false; // 次输是为了在开发环境有一个中止状态
|
||
|
||
var time = 10; // 动态删除taro-button-core的style
|
||
|
||
if (false) { var _timer; }
|
||
|
||
function Button(props) {
|
||
var _props$type = props.type,
|
||
type = _props$type === void 0 ? 'default' : _props$type,
|
||
_props$size = props.size,
|
||
size = _props$size === void 0 ? 'normal' : _props$size,
|
||
block = props.block,
|
||
round = props.round,
|
||
plain = props.plain,
|
||
square = props.square,
|
||
loading = props.loading,
|
||
disabled = props.disabled,
|
||
hairline = props.hairline,
|
||
color = props.color,
|
||
_props$loadingSize = props.loadingSize,
|
||
loadingSize = _props$loadingSize === void 0 ? (0,_tarojs_taro__WEBPACK_IMPORTED_MODULE_1__.pxTransform)(40) : _props$loadingSize,
|
||
_props$loadingType = props.loadingType,
|
||
loadingType = _props$loadingType === void 0 ? 'circular' : _props$loadingType,
|
||
loadingText = props.loadingText,
|
||
icon = props.icon,
|
||
_props$classPrefix = props.classPrefix,
|
||
classPrefix = _props$classPrefix === void 0 ? 'van-icon' : _props$classPrefix,
|
||
onClick = props.onClick,
|
||
children = props.children,
|
||
style = props.style,
|
||
className = props.className,
|
||
others = (0,_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_6__["default"])(props, _excluded);
|
||
|
||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_7__.Button, _objectSpread(_objectSpread({
|
||
className: ' ' + _wxs_utils__WEBPACK_IMPORTED_MODULE_2__.bem('button', [type, size, {
|
||
block: block,
|
||
round: round,
|
||
plain: plain,
|
||
square: square,
|
||
loading: loading,
|
||
disabled: disabled,
|
||
hairline: hairline,
|
||
unclickable: disabled || loading
|
||
}]) + ' ' + (hairline ? 'van-hairline--surround' : '') + " ".concat(className || ''),
|
||
hoverClass: "van-button--active hover-class",
|
||
style: _wxs_utils__WEBPACK_IMPORTED_MODULE_2__.style([_wxs__WEBPACK_IMPORTED_MODULE_8__.rootStyle({
|
||
plain: plain,
|
||
color: color
|
||
}), style]),
|
||
onClick: disabled || loading ? undefined : onClick
|
||
}, others), {}, {
|
||
children: loading ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(_tarojs_components__WEBPACK_IMPORTED_MODULE_7__.View, {
|
||
style: "display: flex",
|
||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_loading_index__WEBPACK_IMPORTED_MODULE_4__.Loading, {
|
||
className: "loading-class",
|
||
size: loadingSize,
|
||
type: loadingType,
|
||
color: _wxs__WEBPACK_IMPORTED_MODULE_8__.loadingColor({
|
||
type: type,
|
||
color: color,
|
||
plain: plain
|
||
})
|
||
}), loadingText && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_7__.View, {
|
||
className: "van-button__loading-text",
|
||
children: loadingText
|
||
})]
|
||
}) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.Fragment, {
|
||
children: [icon && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_icon_index__WEBPACK_IMPORTED_MODULE_3__.Icon, {
|
||
size: "1.2em",
|
||
name: icon,
|
||
classPrefix: classPrefix,
|
||
className: "van-button__icon",
|
||
style: "line-height: inherit;"
|
||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_7__.View, {
|
||
className: "van-button__text",
|
||
children: children
|
||
})]
|
||
})
|
||
}));
|
||
}
|
||
/* harmony default export */ __webpack_exports__["default"] = (Button);
|
||
|
||
/***/ }),
|
||
|
||
/***/ "./node_modules/@antmjs/vantui/es/button/wxs.js":
|
||
/*!******************************************************!*\
|
||
!*** ./node_modules/@antmjs/vantui/es/button/wxs.js ***!
|
||
\******************************************************/
|
||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||
|
||
"use strict";
|
||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||
/* harmony export */ "rootStyle": function() { return /* binding */ rootStyle; },
|
||
/* harmony export */ "loadingColor": function() { return /* binding */ loadingColor; }
|
||
/* harmony export */ });
|
||
/* harmony import */ var _wxs_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../wxs/style */ "./node_modules/@antmjs/vantui/es/wxs/style.js");
|
||
|
||
|
||
function rootStyle(data) {
|
||
if (!data.color) {
|
||
return '';
|
||
}
|
||
|
||
var properties = {
|
||
color: data.plain ? data.color : '#fff',
|
||
background: data.plain ? null : data.color
|
||
}; // hide border when color is linear-gradient
|
||
|
||
if (data.color.indexOf('gradient') !== -1) {
|
||
properties.border = 0;
|
||
} else {
|
||
properties['border-color'] = data.color;
|
||
}
|
||
|
||
return (0,_wxs_style__WEBPACK_IMPORTED_MODULE_0__.style)([properties]);
|
||
}
|
||
|
||
function loadingColor(data) {
|
||
if (data.plain) {
|
||
return data.color ? data.color : '#c9c9c9';
|
||
}
|
||
|
||
if (data.type === 'default') {
|
||
return '#c9c9c9';
|
||
}
|
||
|
||
return '#fff';
|
||
}
|
||
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ "./node_modules/@antmjs/vantui/es/icon/index.js":
|
||
/*!******************************************************!*\
|
||
!*** ./node_modules/@antmjs/vantui/es/icon/index.js ***!
|
||
\******************************************************/
|
||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||
|
||
"use strict";
|
||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||
/* harmony export */ "Icon": function() { return /* binding */ Icon; }
|
||
/* harmony export */ });
|
||
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
||
/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
|
||
/* harmony import */ var _tarojs_components__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @tarojs/components */ "./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js");
|
||
/* harmony import */ var _wxs_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../wxs/utils */ "./node_modules/@antmjs/vantui/es/wxs/utils.js");
|
||
/* harmony import */ var _info_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../info/index */ "./node_modules/@antmjs/vantui/es/info/index.js");
|
||
/* harmony import */ var _wxs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./wxs */ "./node_modules/@antmjs/vantui/es/icon/wxs.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__);
|
||
|
||
|
||
var _excluded = ["classPrefix", "name", "color", "size", "dot", "info", "style", "className"];
|
||
|
||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
||
|
||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
function Icon(props) {
|
||
var _props$classPrefix = props.classPrefix,
|
||
classPrefix = _props$classPrefix === void 0 ? 'van-icon' : _props$classPrefix,
|
||
name = props.name,
|
||
color = props.color,
|
||
size = props.size,
|
||
dot = props.dot,
|
||
info = props.info,
|
||
style = props.style,
|
||
className = props.className,
|
||
others = (0,_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_5__["default"])(props, _excluded);
|
||
|
||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(_tarojs_components__WEBPACK_IMPORTED_MODULE_6__.View, _objectSpread(_objectSpread({
|
||
className: _wxs__WEBPACK_IMPORTED_MODULE_3__.rootClass({
|
||
classPrefix: classPrefix,
|
||
name: name
|
||
}) + " ".concat(className || ''),
|
||
style: _wxs_utils__WEBPACK_IMPORTED_MODULE_1__.style([_wxs__WEBPACK_IMPORTED_MODULE_3__.rootStyle({
|
||
color: color,
|
||
size: size
|
||
}), style])
|
||
}, others), {}, {
|
||
children: [(info || info === 0 || dot) && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_info_index__WEBPACK_IMPORTED_MODULE_2__.Info, {
|
||
dot: dot,
|
||
info: info,
|
||
className: "van-icon__info"
|
||
}), _wxs__WEBPACK_IMPORTED_MODULE_3__.isImage(name) && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_6__.Image, {
|
||
src: name,
|
||
mode: "aspectFit",
|
||
className: "van-icon__image"
|
||
})]
|
||
}));
|
||
}
|
||
/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = (Icon);
|
||
|
||
/***/ }),
|
||
|
||
/***/ "./node_modules/@antmjs/vantui/es/icon/wxs.js":
|
||
/*!****************************************************!*\
|
||
!*** ./node_modules/@antmjs/vantui/es/icon/wxs.js ***!
|
||
\****************************************************/
|
||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||
|
||
"use strict";
|
||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||
/* harmony export */ "isImage": function() { return /* binding */ isImage; },
|
||
/* harmony export */ "rootClass": function() { return /* binding */ rootClass; },
|
||
/* harmony export */ "rootStyle": function() { return /* binding */ rootStyle; }
|
||
/* harmony export */ });
|
||
/* harmony import */ var _wxs_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../wxs/style */ "./node_modules/@antmjs/vantui/es/wxs/style.js");
|
||
/* harmony import */ var _wxs_add_unit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../wxs/add-unit */ "./node_modules/@antmjs/vantui/es/wxs/add-unit.js");
|
||
|
||
|
||
|
||
function isImage(name) {
|
||
return name.indexOf('/') !== -1;
|
||
}
|
||
|
||
function rootClass(data) {
|
||
var classes = [];
|
||
|
||
if (data.classPrefix != null) {
|
||
classes.push(data.classPrefix);
|
||
}
|
||
|
||
if (isImage(data.name)) {
|
||
classes.push('van-icon--image');
|
||
} else if (data.classPrefix != null) {
|
||
classes.push(data.classPrefix + '-' + data.name);
|
||
}
|
||
|
||
return classes.join(' ');
|
||
}
|
||
|
||
function rootStyle(data) {
|
||
return (0,_wxs_style__WEBPACK_IMPORTED_MODULE_1__.style)([{
|
||
color: data.color,
|
||
'font-size': (0,_wxs_add_unit__WEBPACK_IMPORTED_MODULE_0__.addUnit)(data.size)
|
||
}]);
|
||
}
|
||
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ "./node_modules/@antmjs/vantui/es/info/index.js":
|
||
/*!******************************************************!*\
|
||
!*** ./node_modules/@antmjs/vantui/es/info/index.js ***!
|
||
\******************************************************/
|
||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||
|
||
"use strict";
|
||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||
/* harmony export */ "Info": function() { return /* binding */ Info; }
|
||
/* harmony export */ });
|
||
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
||
/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
|
||
/* harmony import */ var _tarojs_components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @tarojs/components */ "./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js");
|
||
/* harmony import */ var _wxs_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../wxs/utils */ "./node_modules/@antmjs/vantui/es/wxs/utils.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__);
|
||
|
||
|
||
var _excluded = ["dot", "info", "style", "className"];
|
||
|
||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
||
|
||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
||
|
||
|
||
|
||
|
||
|
||
function Info(props) {
|
||
var dot = props.dot,
|
||
_props$info = props.info,
|
||
info = _props$info === void 0 ? null : _props$info,
|
||
style = props.style,
|
||
className = props.className,
|
||
others = (0,_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__["default"])(props, _excluded);
|
||
|
||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.Fragment, {
|
||
children: (info || info === 0 || dot) && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_4__.View, _objectSpread(_objectSpread({
|
||
className: 'van-info ' + _wxs_utils__WEBPACK_IMPORTED_MODULE_1__.bem('info', {
|
||
dot: dot
|
||
}) + ' ' + className,
|
||
style: _wxs_utils__WEBPACK_IMPORTED_MODULE_1__.style([style])
|
||
}, others), {}, {
|
||
children: dot ? '' : info
|
||
}))
|
||
});
|
||
}
|
||
/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = (Info);
|
||
|
||
/***/ }),
|
||
|
||
/***/ "./node_modules/@antmjs/vantui/es/loading/index.js":
|
||
/*!*********************************************************!*\
|
||
!*** ./node_modules/@antmjs/vantui/es/loading/index.js ***!
|
||
\*********************************************************/
|
||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||
|
||
"use strict";
|
||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||
/* harmony export */ "Loading": function() { return /* binding */ Loading; }
|
||
/* harmony export */ });
|
||
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
||
/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
||
/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
|
||
/* harmony import */ var _tarojs_components__WEBPACK_IMPORTED_MODULE_7__ = __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 _wxs_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../wxs/utils */ "./node_modules/@antmjs/vantui/es/wxs/utils.js");
|
||
/* harmony import */ var _wxs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./wxs */ "./node_modules/@antmjs/vantui/es/loading/wxs.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__);
|
||
|
||
|
||
|
||
var _excluded = ["vertical", "type", "color", "size", "textSize", "className", "children", "style"];
|
||
|
||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
||
|
||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
function Loading(props) {
|
||
var vertical = props.vertical,
|
||
_props$type = props.type,
|
||
type = _props$type === void 0 ? 'circular' : _props$type,
|
||
color = props.color,
|
||
size = props.size,
|
||
textSize = props.textSize,
|
||
className = props.className,
|
||
children = props.children,
|
||
style = props.style,
|
||
others = (0,_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_5__["default"])(props, _excluded);
|
||
|
||
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(Array.from({
|
||
length: 12
|
||
})),
|
||
_useState2 = (0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_6__["default"])(_useState, 1),
|
||
array12 = _useState2[0];
|
||
|
||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(_tarojs_components__WEBPACK_IMPORTED_MODULE_7__.View, _objectSpread(_objectSpread({
|
||
className: ' ' + _wxs_utils__WEBPACK_IMPORTED_MODULE_2__.bem('loading', {
|
||
vertical: vertical
|
||
}) + ' ' + className,
|
||
style: _wxs_utils__WEBPACK_IMPORTED_MODULE_2__.style([style])
|
||
}, others), {}, {
|
||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_7__.View, {
|
||
className: 'van-loading__spinner van-loading__spinner--' + type,
|
||
style: _wxs__WEBPACK_IMPORTED_MODULE_3__.spinnerStyle({
|
||
color: color,
|
||
size: size
|
||
}),
|
||
children: type === 'spinner' && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.Fragment, {
|
||
children: array12.map(function (_, index) {
|
||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_7__.View, {
|
||
className: "van-loading__dot"
|
||
}, "van-loading__dot_".concat(index));
|
||
})
|
||
})
|
||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_7__.View, {
|
||
className: "van-loading__text",
|
||
style: _wxs__WEBPACK_IMPORTED_MODULE_3__.textStyle({
|
||
textSize: textSize
|
||
}),
|
||
children: children
|
||
})]
|
||
}));
|
||
}
|
||
/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = (Loading);
|
||
|
||
/***/ }),
|
||
|
||
/***/ "./node_modules/@antmjs/vantui/es/loading/wxs.js":
|
||
/*!*******************************************************!*\
|
||
!*** ./node_modules/@antmjs/vantui/es/loading/wxs.js ***!
|
||
\*******************************************************/
|
||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||
|
||
"use strict";
|
||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||
/* harmony export */ "spinnerStyle": function() { return /* binding */ spinnerStyle; },
|
||
/* harmony export */ "textStyle": function() { return /* binding */ textStyle; }
|
||
/* harmony export */ });
|
||
/* harmony import */ var _wxs_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../wxs/utils */ "./node_modules/@antmjs/vantui/es/wxs/utils.js");
|
||
/* harmony import */ var _wxs_add_unit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../wxs/add-unit */ "./node_modules/@antmjs/vantui/es/wxs/add-unit.js");
|
||
|
||
|
||
|
||
function spinnerStyle(data) {
|
||
return (0,_wxs_utils__WEBPACK_IMPORTED_MODULE_0__.style)({
|
||
color: data.color,
|
||
width: (0,_wxs_add_unit__WEBPACK_IMPORTED_MODULE_1__.addUnit)(data.size),
|
||
height: (0,_wxs_add_unit__WEBPACK_IMPORTED_MODULE_1__.addUnit)(data.size)
|
||
});
|
||
}
|
||
|
||
function textStyle(data) {
|
||
return (0,_wxs_utils__WEBPACK_IMPORTED_MODULE_0__.style)({
|
||
'font-size': (0,_wxs_add_unit__WEBPACK_IMPORTED_MODULE_1__.addUnit)(data.textSize)
|
||
});
|
||
}
|
||
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ "./node_modules/@antmjs/vantui/es/wxs/add-unit.js":
|
||
/*!********************************************************!*\
|
||
!*** ./node_modules/@antmjs/vantui/es/wxs/add-unit.js ***!
|
||
\********************************************************/
|
||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||
|
||
"use strict";
|
||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||
/* harmony export */ "addUnit": function() { return /* binding */ addUnit; }
|
||
/* harmony export */ });
|
||
/* 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__);
|
||
|
||
|
||
function addUnit(value) {
|
||
if (value == null) {
|
||
return undefined;
|
||
}
|
||
|
||
return /^-?\d+(\.\d+)?$/.test('' + value) ? (0,_tarojs_taro__WEBPACK_IMPORTED_MODULE_0__.pxTransform)(value) : value;
|
||
}
|
||
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ "./node_modules/@antmjs/vantui/es/wxs/array.js":
|
||
/*!*****************************************************!*\
|
||
!*** ./node_modules/@antmjs/vantui/es/wxs/array.js ***!
|
||
\*****************************************************/
|
||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||
|
||
"use strict";
|
||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||
/* harmony export */ "isArray": function() { return /* binding */ isArray; }
|
||
/* harmony export */ });
|
||
function isArray(array) {
|
||
return array && toString.call(array) === '[object Array]';
|
||
}
|
||
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ "./node_modules/@antmjs/vantui/es/wxs/bem.js":
|
||
/*!***************************************************!*\
|
||
!*** ./node_modules/@antmjs/vantui/es/wxs/bem.js ***!
|
||
\***************************************************/
|
||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||
|
||
"use strict";
|
||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||
/* harmony export */ "_bem": function() { return /* binding */ _bem; }
|
||
/* harmony export */ });
|
||
/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
|
||
/* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./array */ "./node_modules/@antmjs/vantui/es/wxs/array.js");
|
||
/* harmony import */ var _object__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./object */ "./node_modules/@antmjs/vantui/es/wxs/object.js");
|
||
|
||
|
||
|
||
var PREFIX = 'van-';
|
||
|
||
function join(name, mods) {
|
||
name = PREFIX + name;
|
||
mods = mods.map(function (mod) {
|
||
return name + '--' + mod;
|
||
});
|
||
mods.unshift(name);
|
||
return mods.join(' ');
|
||
}
|
||
|
||
function traversing(mods, conf) {
|
||
if (!conf) {
|
||
return;
|
||
} // 加前缀
|
||
|
||
|
||
if (typeof conf === 'string' || typeof conf === 'number') {
|
||
mods.push(conf);
|
||
} else if (_array__WEBPACK_IMPORTED_MODULE_0__.isArray(conf)) {
|
||
// 加前缀
|
||
conf.forEach(function (item) {
|
||
traversing(mods, item);
|
||
});
|
||
} else if ((0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__["default"])(conf) === 'object') {
|
||
// 加属性
|
||
_object__WEBPACK_IMPORTED_MODULE_2__.keys(conf).forEach(function (key) {
|
||
conf[key] && mods.push(key);
|
||
});
|
||
}
|
||
}
|
||
|
||
function _bem(name, conf) {
|
||
var mods = [];
|
||
traversing(mods, conf);
|
||
return join(name, mods);
|
||
}
|
||
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ "./node_modules/@antmjs/vantui/es/wxs/memoize.js":
|
||
/*!*******************************************************!*\
|
||
!*** ./node_modules/@antmjs/vantui/es/wxs/memoize.js ***!
|
||
\*******************************************************/
|
||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||
|
||
"use strict";
|
||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||
/* harmony export */ "memoize": function() { return /* binding */ memoize; }
|
||
/* harmony export */ });
|
||
/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
|
||
|
||
|
||
/**
|
||
* Simple memoize
|
||
* wxs doesn't support fn.apply, so this memoize only support up to 2 args
|
||
*/
|
||
|
||
/* eslint-disable */
|
||
function isPrimitive(value) {
|
||
var type = (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__["default"])(value);
|
||
|
||
return type === 'boolean' || type === 'number' || type === 'string' || type === 'undefined' || value === null;
|
||
} // mock simple fn.call in wxs
|
||
|
||
|
||
function call(fn, args) {
|
||
if (args.length === 2) {
|
||
return fn(args[0], args[1]);
|
||
}
|
||
|
||
if (args.length === 1) {
|
||
return fn(args[0]);
|
||
}
|
||
|
||
return fn();
|
||
}
|
||
|
||
function serializer(args) {
|
||
if (args.length === 1 && isPrimitive(args[0])) {
|
||
return args[0];
|
||
}
|
||
|
||
var obj = {};
|
||
|
||
for (var i = 0; i < args.length; i++) {
|
||
obj['key' + i] = args[i];
|
||
}
|
||
|
||
return JSON.stringify(obj);
|
||
}
|
||
|
||
function memoize(fn) {
|
||
var cache = {};
|
||
return function () {
|
||
var key = serializer(arguments);
|
||
|
||
if (cache[key] === undefined) {
|
||
cache[key] = call(fn, arguments);
|
||
}
|
||
|
||
return cache[key];
|
||
};
|
||
}
|
||
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ "./node_modules/@antmjs/vantui/es/wxs/object.js":
|
||
/*!******************************************************!*\
|
||
!*** ./node_modules/@antmjs/vantui/es/wxs/object.js ***!
|
||
\******************************************************/
|
||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||
|
||
"use strict";
|
||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||
/* harmony export */ "keys": function() { return /* binding */ keys; }
|
||
/* harmony export */ });
|
||
var REGEXP = new RegExp('{|}|"', 'g');
|
||
|
||
function keys(obj) {
|
||
return JSON.stringify(obj).replace(REGEXP, '').split(',').map(function (item) {
|
||
return item.split(':')[0];
|
||
});
|
||
}
|
||
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ "./node_modules/@antmjs/vantui/es/wxs/style.js":
|
||
/*!*****************************************************!*\
|
||
!*** ./node_modules/@antmjs/vantui/es/wxs/style.js ***!
|
||
\*****************************************************/
|
||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||
|
||
"use strict";
|
||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||
/* harmony export */ "style": function() { return /* binding */ style; }
|
||
/* harmony export */ });
|
||
/* unused harmony export cssStyle */
|
||
/* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./array */ "./node_modules/@antmjs/vantui/es/wxs/array.js");
|
||
/* harmony import */ var _object__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./object */ "./node_modules/@antmjs/vantui/es/wxs/object.js");
|
||
|
||
|
||
|
||
function kebabCase(word) {
|
||
var _word$replace;
|
||
|
||
var newWord = (_word$replace = word.replace(new RegExp('[A-Z]', 'g'), function (i) {
|
||
return '-' + i;
|
||
})) === null || _word$replace === void 0 ? void 0 : _word$replace.toLowerCase();
|
||
return newWord;
|
||
}
|
||
|
||
function cssStyle(styles) {
|
||
if (_array__WEBPACK_IMPORTED_MODULE_0__.isArray(styles)) {
|
||
var obj = {};
|
||
styles.filter(function (item) {
|
||
return item != null && item !== '';
|
||
}).map(function (item) {
|
||
Object.assign(obj, cssStyle(item));
|
||
});
|
||
return obj;
|
||
}
|
||
|
||
if (toString.call(styles) === '[object String]') {
|
||
var _obj = {};
|
||
styles.split(';').map(function (item) {
|
||
var _property$, _property$2;
|
||
|
||
var property = item.split(':');
|
||
_obj[((_property$ = property[0]) === null || _property$ === void 0 ? void 0 : _property$.trim()) || ''] = (_property$2 = property[1]) === null || _property$2 === void 0 ? void 0 : _property$2.trim();
|
||
});
|
||
return _obj;
|
||
}
|
||
|
||
return styles;
|
||
}
|
||
|
||
function style(styles) {
|
||
if (_array__WEBPACK_IMPORTED_MODULE_0__.isArray(styles)) {
|
||
return styles.filter(function (item) {
|
||
return item != null && item !== '';
|
||
}).map(function (item) {
|
||
return style(item);
|
||
}).join(';') || '';
|
||
}
|
||
|
||
if (toString.call(styles) === '[object Object]') {
|
||
return _object__WEBPACK_IMPORTED_MODULE_1__.keys(styles).filter(function (key) {
|
||
return styles[key] != null && styles[key] !== '';
|
||
}).map(function (key) {
|
||
return [kebabCase(key), [styles[key]]].join(':');
|
||
}).join(';') || '';
|
||
}
|
||
|
||
return styles || '';
|
||
}
|
||
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ "./node_modules/@antmjs/vantui/es/wxs/utils.js":
|
||
/*!*****************************************************!*\
|
||
!*** ./node_modules/@antmjs/vantui/es/wxs/utils.js ***!
|
||
\*****************************************************/
|
||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||
|
||
"use strict";
|
||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||
/* harmony export */ "bem": function() { return /* binding */ bem; },
|
||
/* harmony export */ "style": function() { return /* reexport safe */ _style__WEBPACK_IMPORTED_MODULE_3__.style; }
|
||
/* harmony export */ });
|
||
/* harmony import */ var _bem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./bem */ "./node_modules/@antmjs/vantui/es/wxs/bem.js");
|
||
/* harmony import */ var _memoize__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./memoize */ "./node_modules/@antmjs/vantui/es/wxs/memoize.js");
|
||
/* harmony import */ var _add_unit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./add-unit */ "./node_modules/@antmjs/vantui/es/wxs/add-unit.js");
|
||
/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./style */ "./node_modules/@antmjs/vantui/es/wxs/style.js");
|
||
|
||
|
||
|
||
|
||
|
||
|
||
var bem = (0,_memoize__WEBPACK_IMPORTED_MODULE_1__.memoize)(_bem__WEBPACK_IMPORTED_MODULE_2__._bem);
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ "./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./src/pages/index/index.tsx":
|
||
/*!********************************************************************************************************!*\
|
||
!*** ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./src/pages/index/index.tsx ***!
|
||
\********************************************************************************************************/
|
||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||
|
||
"use strict";
|
||
/* harmony import */ var _antmjs_vantui_es_button__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @antmjs/vantui/es/button */ "./node_modules/@antmjs/vantui/es/button/index.js");
|
||
/* harmony import */ var taro_hooks_lib_useToast__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! taro-hooks/lib/useToast */ "./node_modules/taro-hooks/lib/useToast/index.js");
|
||
/* harmony import */ var taro_hooks_lib_useModal__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! taro-hooks/lib/useModal */ "./node_modules/taro-hooks/lib/useModal/index.js");
|
||
/* harmony import */ var taro_hooks_lib_useNavigationBar__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! taro-hooks/lib/useNavigationBar */ "./node_modules/taro-hooks/lib/useNavigationBar/index.js");
|
||
/* harmony import */ var _Users_eric_Desktop_citynew_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
||
/* harmony import */ var taro_hooks_lib_useEnv__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! taro-hooks/lib/useEnv */ "./node_modules/taro-hooks/lib/useEnv/index.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 _tarojs_components__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @tarojs/components */ "./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js");
|
||
/* harmony import */ var _hook_png__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./hook.png */ "./src/pages/index/hook.png");
|
||
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ "webpack/container/remote/react/jsx-runtime");
|
||
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__);
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
var Index = function Index() {
|
||
var env = (0,taro_hooks_lib_useEnv__WEBPACK_IMPORTED_MODULE_4__["default"])();
|
||
var _useNavigationBar = (0,taro_hooks_lib_useNavigationBar__WEBPACK_IMPORTED_MODULE_5__["default"])({
|
||
title: "Taro Hooks"
|
||
}),
|
||
_useNavigationBar2 = (0,_Users_eric_Desktop_citynew_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_6__["default"])(_useNavigationBar, 2),
|
||
_ = _useNavigationBar2[0],
|
||
setTitle = _useNavigationBar2[1].setTitle;
|
||
var _useModal = (0,taro_hooks_lib_useModal__WEBPACK_IMPORTED_MODULE_7__["default"])({
|
||
title: "Taro Hooks!",
|
||
showCancel: false,
|
||
confirmColor: "#8c2de9",
|
||
confirmText: "支持一下",
|
||
mask: true
|
||
}),
|
||
_useModal2 = (0,_Users_eric_Desktop_citynew_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_6__["default"])(_useModal, 1),
|
||
show = _useModal2[0];
|
||
var _useToast = (0,taro_hooks_lib_useToast__WEBPACK_IMPORTED_MODULE_8__["default"])({
|
||
mask: true
|
||
}),
|
||
_useToast2 = (0,_Users_eric_Desktop_citynew_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_6__["default"])(_useToast, 1),
|
||
showToast = _useToast2[0];
|
||
var handleModal = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function () {
|
||
show({
|
||
content: "不如给一个star⭐️!"
|
||
}).then(function () {
|
||
showToast({
|
||
title: "点击了支持!"
|
||
});
|
||
});
|
||
}, [show, showToast]);
|
||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(_tarojs_components__WEBPACK_IMPORTED_MODULE_9__.View, {
|
||
className: "wrapper",
|
||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_antmjs_vantui_es_button__WEBPACK_IMPORTED_MODULE_0__["default"], {
|
||
type: "default",
|
||
children: "\u9ED8\u8BA4\u6309\u94AE"
|
||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_antmjs_vantui_es_button__WEBPACK_IMPORTED_MODULE_0__["default"], {
|
||
type: "primary",
|
||
children: "\u4E3B\u8981\u6309\u94AE"
|
||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_antmjs_vantui_es_button__WEBPACK_IMPORTED_MODULE_0__["default"], {
|
||
type: "info",
|
||
children: "\u4FE1\u606F\u6309\u94AE"
|
||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_antmjs_vantui_es_button__WEBPACK_IMPORTED_MODULE_0__["default"], {
|
||
type: "warning",
|
||
children: "\u8B66\u544A\u6309\u94AE"
|
||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_antmjs_vantui_es_button__WEBPACK_IMPORTED_MODULE_0__["default"], {
|
||
type: "danger",
|
||
children: "\u5371\u9669\u6309\u94AE"
|
||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_antmjs_vantui_es_button__WEBPACK_IMPORTED_MODULE_0__["default"], {
|
||
plain: true,
|
||
type: "primary",
|
||
children: "\u6734\u7D20\u6309\u94AE"
|
||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_antmjs_vantui_es_button__WEBPACK_IMPORTED_MODULE_0__["default"], {
|
||
plain: true,
|
||
type: "info",
|
||
children: "\u6734\u7D20\u6309\u94AE"
|
||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_9__.Image, {
|
||
className: "logo",
|
||
src: _hook_png__WEBPACK_IMPORTED_MODULE_2__
|
||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_9__.Text, {
|
||
className: "title",
|
||
children: "\u4E3ATaro\u800C\u8BBE\u8BA1\u7684Hooks Library"
|
||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_9__.Text, {
|
||
className: "desc",
|
||
children: "\u76EE\u524D\u8986\u76D670%\u5B98\u65B9API. \u62B9\u5E73\u90E8\u5206API\u5728H5\u7AEF\u77ED\u677F. \u63D0\u4F9B\u8FD140+Hooks! \u5E76\u7ED3\u5408ahook\u9002\u914DTaro!"
|
||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(_tarojs_components__WEBPACK_IMPORTED_MODULE_9__.View, {
|
||
className: "list",
|
||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_9__.Text, {
|
||
className: "label",
|
||
children: "\u8FD0\u884C\u73AF\u5883"
|
||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_9__.Text, {
|
||
className: "note",
|
||
children: env
|
||
})]
|
||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_antmjs_vantui_es_button__WEBPACK_IMPORTED_MODULE_0__["default"], {
|
||
className: "button",
|
||
onClick: function onClick() {
|
||
return setTitle("Taro Hooks Nice!");
|
||
},
|
||
children: "\u8BBE\u7F6E\u6807\u9898"
|
||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_antmjs_vantui_es_button__WEBPACK_IMPORTED_MODULE_0__["default"], {
|
||
className: "button",
|
||
onClick: handleModal,
|
||
children: "\u4F7F\u7528Modal"
|
||
})]
|
||
});
|
||
};
|
||
/* harmony default export */ __webpack_exports__["default"] = (Index);
|
||
|
||
/***/ }),
|
||
|
||
/***/ "./node_modules/taro-hooks/lib/constant.js":
|
||
/*!*************************************************!*\
|
||
!*** ./node_modules/taro-hooks/lib/constant.js ***!
|
||
\*************************************************/
|
||
/***/ (function(__unused_webpack_module, exports) {
|
||
|
||
"use strict";
|
||
|
||
|
||
Object.defineProperty(exports, "__esModule", ({
|
||
value: true
|
||
}));
|
||
exports.ENV_TYPE = void 0;
|
||
var ENV_TYPE = {
|
||
WEAPP: 'WEAPP',
|
||
WEB: 'WEB',
|
||
RN: 'RN',
|
||
SWAN: 'SWAN',
|
||
ALIPAY: 'ALIPAY',
|
||
TT: 'TT',
|
||
QQ: 'QQ',
|
||
JD: 'JD'
|
||
};
|
||
exports.ENV_TYPE = ENV_TYPE;
|
||
|
||
/***/ }),
|
||
|
||
/***/ "./node_modules/taro-hooks/lib/useEnv/index.js":
|
||
/*!*****************************************************!*\
|
||
!*** ./node_modules/taro-hooks/lib/useEnv/index.js ***!
|
||
\*****************************************************/
|
||
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
||
Object.defineProperty(exports, "__esModule", ({
|
||
value: true
|
||
}));
|
||
exports["default"] = void 0;
|
||
var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/slicedToArray.js"));
|
||
var _taro = __webpack_require__(/*! @tarojs/taro */ "webpack/container/remote/@tarojs/taro");
|
||
var _react = __webpack_require__(/*! react */ "webpack/container/remote/react");
|
||
function useEnv() {
|
||
var _useState = (0, _react.useState)(''),
|
||
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
||
env = _useState2[0],
|
||
setEnv = _useState2[1];
|
||
(0, _react.useEffect)(function () {
|
||
setEnv((0, _taro.getEnv)());
|
||
}, []);
|
||
return env;
|
||
}
|
||
var _default = useEnv;
|
||
exports["default"] = _default;
|
||
|
||
/***/ }),
|
||
|
||
/***/ "./node_modules/taro-hooks/lib/useModal/index.js":
|
||
/*!*******************************************************!*\
|
||
!*** ./node_modules/taro-hooks/lib/useModal/index.js ***!
|
||
\*******************************************************/
|
||
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
var __webpack_unused_export__;
|
||
|
||
|
||
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
||
__webpack_unused_export__ = ({
|
||
value: true
|
||
});
|
||
exports["default"] = void 0;
|
||
var _objectSpread2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectSpread2 */ "./node_modules/@babel/runtime/helpers/objectSpread2.js"));
|
||
var _taro = __webpack_require__(/*! @tarojs/taro */ "webpack/container/remote/@tarojs/taro");
|
||
var _react = __webpack_require__(/*! react */ "webpack/container/remote/react");
|
||
function useModal(option) {
|
||
var initialOption = (0, _react.useRef)();
|
||
(0, _react.useEffect)(function () {
|
||
initialOption.current = option;
|
||
}, [option]);
|
||
var showModalAsync = (0, _react.useCallback)(function (option) {
|
||
return new Promise(function (resolve, reject) {
|
||
try {
|
||
if (!option && !initialOption.current) {
|
||
console.warn('please provide a option');
|
||
return reject(new Error('please provide a option'));
|
||
} else {
|
||
var options = Object.assign({}, initialOption.current || {}, option || {});
|
||
(0, _taro.showModal)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, options), {}, {
|
||
success: resolve,
|
||
fail: reject
|
||
})).catch(reject);
|
||
}
|
||
} catch (e) {
|
||
reject(e);
|
||
}
|
||
});
|
||
}, [initialOption]);
|
||
return [showModalAsync];
|
||
}
|
||
var _default = useModal;
|
||
exports["default"] = _default;
|
||
|
||
/***/ }),
|
||
|
||
/***/ "./node_modules/taro-hooks/lib/useNavigationBar/index.js":
|
||
/*!***************************************************************!*\
|
||
!*** ./node_modules/taro-hooks/lib/useNavigationBar/index.js ***!
|
||
\***************************************************************/
|
||
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
var __webpack_unused_export__;
|
||
|
||
|
||
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
||
__webpack_unused_export__ = ({
|
||
value: true
|
||
});
|
||
exports["default"] = void 0;
|
||
var _objectSpread2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectSpread2 */ "./node_modules/@babel/runtime/helpers/objectSpread2.js"));
|
||
var _taro = __webpack_require__(/*! @tarojs/taro */ "webpack/container/remote/@tarojs/taro");
|
||
var _react = __webpack_require__(/*! react */ "webpack/container/remote/react");
|
||
var _useEnv = _interopRequireDefault(__webpack_require__(/*! ../useEnv */ "./node_modules/taro-hooks/lib/useEnv/index.js"));
|
||
var _constant = __webpack_require__(/*! ../constant */ "./node_modules/taro-hooks/lib/constant.js");
|
||
function useNavigationBar(option) {
|
||
var _initialOption$curren2;
|
||
var initialOption = (0, _react.useRef)({});
|
||
var env = (0, _useEnv.default)();
|
||
(0, _react.useEffect)(function () {
|
||
if (option && env && env !== _constant.ENV_TYPE.WEB) {
|
||
var PromiseArray = [];
|
||
var loading = option.loading,
|
||
_title = option.title,
|
||
frontColor = option.frontColor,
|
||
backgroundColor = option.backgroundColor,
|
||
animation = option.animation,
|
||
_hideHomeButton = option.hideHomeButton;
|
||
loading && PromiseArray.push(toggleLoadingAsync());
|
||
_title && PromiseArray.push(setTitleAsync(_title));
|
||
_hideHomeButton && PromiseArray.push(hideHomeButtonAsync());
|
||
frontColor && backgroundColor && PromiseArray.push(setColorAsync({
|
||
backgroundColor: backgroundColor,
|
||
frontColor: frontColor,
|
||
animation: animation
|
||
}));
|
||
PromiseArray.length && Promise.all(PromiseArray).finally(function () {
|
||
initialOption.current = option;
|
||
});
|
||
}
|
||
}, [option, env]);
|
||
var toggleLoadingAsync = (0, _react.useCallback)(function () {
|
||
return new Promise(function (resolve, reject) {
|
||
try {
|
||
var _initialOption$curren;
|
||
var _Action = _taro.showNavigationBarLoading,
|
||
_option = {
|
||
loading: true
|
||
};
|
||
if ((_initialOption$curren = initialOption.current) === null || _initialOption$curren === void 0 ? void 0 : _initialOption$curren.loading) {
|
||
_Action = _taro.hideNavigationBarLoading;
|
||
_option = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, initialOption.current), {}, {
|
||
loading: false
|
||
});
|
||
}
|
||
_Action({
|
||
success: function success(res) {
|
||
initialOption.current = _option;
|
||
resolve(res);
|
||
},
|
||
fail: reject
|
||
});
|
||
} catch (e) {
|
||
reject(e);
|
||
}
|
||
});
|
||
}, [initialOption]);
|
||
var setTitleAsync = (0, _react.useCallback)(function (title) {
|
||
return new Promise(function (resolve, reject) {
|
||
try {
|
||
if (!title) {
|
||
throw new Error('you must provide a title');
|
||
}
|
||
(0, _taro.setNavigationBarTitle)({
|
||
title: title,
|
||
success: function success(res) {
|
||
initialOption.current = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, initialOption.current), {}, {
|
||
title: title
|
||
});
|
||
resolve(res);
|
||
}
|
||
}).catch(reject);
|
||
} catch (e) {
|
||
reject(e);
|
||
}
|
||
});
|
||
}, []);
|
||
var setColorAsync = (0, _react.useCallback)(function (option) {
|
||
return new Promise(function (resolve, reject) {
|
||
try {
|
||
if (!option.backgroundColor || !option.frontColor) {
|
||
throw new Error('you must provide backgroundColor or frontColor');
|
||
}
|
||
(0, _taro.setNavigationBarColor)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, option), {}, {
|
||
success: function success(res) {
|
||
var frontColor = option.frontColor,
|
||
backgroundColor = option.backgroundColor,
|
||
_option$animation = option.animation,
|
||
animation = _option$animation === void 0 ? false : _option$animation;
|
||
initialOption.current = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, initialOption.current), {}, {
|
||
frontColor: frontColor,
|
||
backgroundColor: backgroundColor,
|
||
animation: animation
|
||
});
|
||
resolve(res);
|
||
},
|
||
fail: reject
|
||
}));
|
||
} catch (e) {
|
||
reject(e);
|
||
}
|
||
});
|
||
}, []);
|
||
var hideHomeButtonAsync = (0, _react.useCallback)(function () {
|
||
return new Promise(function (resolve, reject) {
|
||
try {
|
||
(0, _taro.hideHomeButton)({
|
||
success: function success(res) {
|
||
initialOption.current = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, initialOption.current), {}, {
|
||
hideHomeButton: true
|
||
});
|
||
resolve(res);
|
||
},
|
||
fail: reject
|
||
});
|
||
} catch (e) {
|
||
reject(e);
|
||
}
|
||
});
|
||
}, []);
|
||
return [((_initialOption$curren2 = initialOption.current) === null || _initialOption$curren2 === void 0 ? void 0 : _initialOption$curren2.loading) || false, {
|
||
toggleLoading: toggleLoadingAsync,
|
||
hideHomeButton: hideHomeButtonAsync,
|
||
setTitle: setTitleAsync,
|
||
setColor: setColorAsync
|
||
}];
|
||
}
|
||
var _default = useNavigationBar;
|
||
exports["default"] = _default;
|
||
|
||
/***/ }),
|
||
|
||
/***/ "./node_modules/taro-hooks/lib/useToast/index.js":
|
||
/*!*******************************************************!*\
|
||
!*** ./node_modules/taro-hooks/lib/useToast/index.js ***!
|
||
\*******************************************************/
|
||
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
var __webpack_unused_export__;
|
||
|
||
|
||
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
||
__webpack_unused_export__ = ({
|
||
value: true
|
||
});
|
||
exports["default"] = void 0;
|
||
var _objectSpread2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectSpread2 */ "./node_modules/@babel/runtime/helpers/objectSpread2.js"));
|
||
var _taro = __webpack_require__(/*! @tarojs/taro */ "webpack/container/remote/@tarojs/taro");
|
||
var _react = __webpack_require__(/*! react */ "webpack/container/remote/react");
|
||
function useToast(option) {
|
||
var initialOption = (0, _react.useRef)();
|
||
(0, _react.useEffect)(function () {
|
||
initialOption.current = option;
|
||
}, [option]);
|
||
var showToastAsync = (0, _react.useCallback)(function (option) {
|
||
return new Promise(function (resolve, reject) {
|
||
try {
|
||
if (!option && !initialOption.current) {
|
||
console.warn('please provide a option');
|
||
return reject(new Error('please provide a option'));
|
||
} else {
|
||
var options = Object.assign({}, initialOption.current || {}, option || {});
|
||
if (!options.title) {
|
||
reject({
|
||
errMsg: 'showToast: fail'
|
||
});
|
||
} else {
|
||
(0, _taro.showToast)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, options), {}, {
|
||
success: resolve,
|
||
fail: reject
|
||
})).catch(reject);
|
||
}
|
||
}
|
||
} catch (e) {
|
||
reject(e);
|
||
}
|
||
});
|
||
}, [initialOption]);
|
||
var hideToastAsync = (0, _react.useCallback)(function () {
|
||
return new Promise(function (resolve, reject) {
|
||
try {
|
||
(0, _taro.hideToast)({
|
||
success: resolve,
|
||
fail: reject
|
||
});
|
||
} catch (e) {
|
||
reject(e);
|
||
}
|
||
});
|
||
}, []);
|
||
return [showToastAsync, hideToastAsync];
|
||
}
|
||
var _default = useToast;
|
||
exports["default"] = _default;
|
||
|
||
/***/ }),
|
||
|
||
/***/ "./src/pages/index/index.tsx":
|
||
/*!***********************************!*\
|
||
!*** ./src/pages/index/index.tsx ***!
|
||
\***********************************/
|
||
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
||
|
||
"use strict";
|
||
/* 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_babel_loader_lib_index_js_ruleSet_1_rules_5_use_0_index_tsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./index.tsx */ "./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./src/pages/index/index.tsx");
|
||
|
||
|
||
var config = {"navigationBarTitleText":"Taro-hooks","enableShareAppMessage":true};
|
||
|
||
_node_modules_babel_loader_lib_index_js_ruleSet_1_rules_5_use_0_index_tsx__WEBPACK_IMPORTED_MODULE_1__["default"].enableShareAppMessage = true
|
||
var inst = Page((0,_tarojs_runtime__WEBPACK_IMPORTED_MODULE_0__.createPageConfig)(_node_modules_babel_loader_lib_index_js_ruleSet_1_rules_5_use_0_index_tsx__WEBPACK_IMPORTED_MODULE_1__["default"], 'pages/index/index', {root:{cn:[]}}, config || {}))
|
||
|
||
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ "./src/pages/index/hook.png":
|
||
/*!**********************************!*\
|
||
!*** ./src/pages/index/hook.png ***!
|
||
\**********************************/
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
module.exports = __webpack_require__.p + "pages/index/hook.png";
|
||
|
||
/***/ }),
|
||
|
||
/***/ "./node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
|
||
/*!*****************************************************************!*\
|
||
!*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
|
||
\*****************************************************************/
|
||
/***/ (function(module) {
|
||
|
||
function _arrayLikeToArray(arr, len) {
|
||
if (len == null || len > arr.length) len = arr.length;
|
||
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
||
arr2[i] = arr[i];
|
||
}
|
||
return arr2;
|
||
}
|
||
module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||
|
||
/***/ }),
|
||
|
||
/***/ "./node_modules/@babel/runtime/helpers/arrayWithHoles.js":
|
||
/*!***************************************************************!*\
|
||
!*** ./node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
|
||
\***************************************************************/
|
||
/***/ (function(module) {
|
||
|
||
function _arrayWithHoles(arr) {
|
||
if (Array.isArray(arr)) return arr;
|
||
}
|
||
module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||
|
||
/***/ }),
|
||
|
||
/***/ "./node_modules/@babel/runtime/helpers/defineProperty.js":
|
||
/*!***************************************************************!*\
|
||
!*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***!
|
||
\***************************************************************/
|
||
/***/ (function(module) {
|
||
|
||
function _defineProperty(obj, key, value) {
|
||
if (key in obj) {
|
||
Object.defineProperty(obj, key, {
|
||
value: value,
|
||
enumerable: true,
|
||
configurable: true,
|
||
writable: true
|
||
});
|
||
} else {
|
||
obj[key] = value;
|
||
}
|
||
return obj;
|
||
}
|
||
module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||
|
||
/***/ }),
|
||
|
||
/***/ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js":
|
||
/*!**********************************************************************!*\
|
||
!*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
|
||
\**********************************************************************/
|
||
/***/ (function(module) {
|
||
|
||
function _interopRequireDefault(obj) {
|
||
return obj && obj.__esModule ? obj : {
|
||
"default": obj
|
||
};
|
||
}
|
||
module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||
|
||
/***/ }),
|
||
|
||
/***/ "./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":
|
||
/*!*********************************************************************!*\
|
||
!*** ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
|
||
\*********************************************************************/
|
||
/***/ (function(module) {
|
||
|
||
function _iterableToArrayLimit(arr, i) {
|
||
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
||
if (_i == null) return;
|
||
var _arr = [];
|
||
var _n = true;
|
||
var _d = false;
|
||
var _s, _e;
|
||
try {
|
||
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
||
_arr.push(_s.value);
|
||
if (i && _arr.length === i) break;
|
||
}
|
||
} catch (err) {
|
||
_d = true;
|
||
_e = err;
|
||
} finally {
|
||
try {
|
||
if (!_n && _i["return"] != null) _i["return"]();
|
||
} finally {
|
||
if (_d) throw _e;
|
||
}
|
||
}
|
||
return _arr;
|
||
}
|
||
module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||
|
||
/***/ }),
|
||
|
||
/***/ "./node_modules/@babel/runtime/helpers/nonIterableRest.js":
|
||
/*!****************************************************************!*\
|
||
!*** ./node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
|
||
\****************************************************************/
|
||
/***/ (function(module) {
|
||
|
||
function _nonIterableRest() {
|
||
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||
}
|
||
module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||
|
||
/***/ }),
|
||
|
||
/***/ "./node_modules/@babel/runtime/helpers/objectSpread2.js":
|
||
/*!**************************************************************!*\
|
||
!*** ./node_modules/@babel/runtime/helpers/objectSpread2.js ***!
|
||
\**************************************************************/
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var defineProperty = __webpack_require__(/*! ./defineProperty.js */ "./node_modules/@babel/runtime/helpers/defineProperty.js");
|
||
function ownKeys(object, enumerableOnly) {
|
||
var keys = Object.keys(object);
|
||
if (Object.getOwnPropertySymbols) {
|
||
var symbols = Object.getOwnPropertySymbols(object);
|
||
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
||
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
||
})), keys.push.apply(keys, symbols);
|
||
}
|
||
return keys;
|
||
}
|
||
function _objectSpread2(target) {
|
||
for (var i = 1; i < arguments.length; i++) {
|
||
var source = null != arguments[i] ? arguments[i] : {};
|
||
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
||
defineProperty(target, key, source[key]);
|
||
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
|
||
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
||
});
|
||
}
|
||
return target;
|
||
}
|
||
module.exports = _objectSpread2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||
|
||
/***/ }),
|
||
|
||
/***/ "./node_modules/@babel/runtime/helpers/slicedToArray.js":
|
||
/*!**************************************************************!*\
|
||
!*** ./node_modules/@babel/runtime/helpers/slicedToArray.js ***!
|
||
\**************************************************************/
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "./node_modules/@babel/runtime/helpers/arrayWithHoles.js");
|
||
var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js");
|
||
var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
|
||
var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "./node_modules/@babel/runtime/helpers/nonIterableRest.js");
|
||
function _slicedToArray(arr, i) {
|
||
return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
|
||
}
|
||
module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||
|
||
/***/ }),
|
||
|
||
/***/ "./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
|
||
/*!***************************************************************************!*\
|
||
!*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
|
||
\***************************************************************************/
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "./node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
|
||
function _unsupportedIterableToArray(o, minLen) {
|
||
if (!o) return;
|
||
if (typeof o === "string") return arrayLikeToArray(o, minLen);
|
||
var n = Object.prototype.toString.call(o).slice(8, -1);
|
||
if (n === "Object" && o.constructor) n = o.constructor.name;
|
||
if (n === "Map" || n === "Set") return Array.from(o);
|
||
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
|
||
}
|
||
module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||
|
||
/***/ }),
|
||
|
||
/***/ "./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":
|
||
/*!*********************************************************************!*\
|
||
!*** ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.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 */ _arrayLikeToArray; }
|
||
/* harmony export */ });
|
||
function _arrayLikeToArray(arr, len) {
|
||
if (len == null || len > arr.length) len = arr.length;
|
||
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
||
arr2[i] = arr[i];
|
||
}
|
||
return arr2;
|
||
}
|
||
|
||
/***/ }),
|
||
|
||
/***/ "./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js":
|
||
/*!*******************************************************************!*\
|
||
!*** ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.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 */ _arrayWithHoles; }
|
||
/* harmony export */ });
|
||
function _arrayWithHoles(arr) {
|
||
if (Array.isArray(arr)) return arr;
|
||
}
|
||
|
||
/***/ }),
|
||
|
||
/***/ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js":
|
||
/*!*******************************************************************!*\
|
||
!*** ./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 */ });
|
||
function _defineProperty(obj, key, value) {
|
||
if (key in obj) {
|
||
Object.defineProperty(obj, key, {
|
||
value: value,
|
||
enumerable: true,
|
||
configurable: true,
|
||
writable: true
|
||
});
|
||
} else {
|
||
obj[key] = value;
|
||
}
|
||
return obj;
|
||
}
|
||
|
||
/***/ }),
|
||
|
||
/***/ "./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js":
|
||
/*!*************************************************************************!*\
|
||
!*** ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.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 */ _iterableToArrayLimit; }
|
||
/* harmony export */ });
|
||
function _iterableToArrayLimit(arr, i) {
|
||
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
||
if (_i == null) return;
|
||
var _arr = [];
|
||
var _n = true;
|
||
var _d = false;
|
||
var _s, _e;
|
||
try {
|
||
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
||
_arr.push(_s.value);
|
||
if (i && _arr.length === i) break;
|
||
}
|
||
} catch (err) {
|
||
_d = true;
|
||
_e = err;
|
||
} finally {
|
||
try {
|
||
if (!_n && _i["return"] != null) _i["return"]();
|
||
} finally {
|
||
if (_d) throw _e;
|
||
}
|
||
}
|
||
return _arr;
|
||
}
|
||
|
||
/***/ }),
|
||
|
||
/***/ "./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js":
|
||
/*!********************************************************************!*\
|
||
!*** ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.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 */ _nonIterableRest; }
|
||
/* harmony export */ });
|
||
function _nonIterableRest() {
|
||
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||
}
|
||
|
||
/***/ }),
|
||
|
||
/***/ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js":
|
||
/*!****************************************************************************!*\
|
||
!*** ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.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 */ _objectWithoutProperties; }
|
||
/* harmony export */ });
|
||
/* harmony import */ var _objectWithoutPropertiesLoose_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./objectWithoutPropertiesLoose.js */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
|
||
|
||
function _objectWithoutProperties(source, excluded) {
|
||
if (source == null) return {};
|
||
var target = (0,_objectWithoutPropertiesLoose_js__WEBPACK_IMPORTED_MODULE_0__["default"])(source, excluded);
|
||
var key, i;
|
||
if (Object.getOwnPropertySymbols) {
|
||
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
||
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
||
key = sourceSymbolKeys[i];
|
||
if (excluded.indexOf(key) >= 0) continue;
|
||
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
||
target[key] = source[key];
|
||
}
|
||
}
|
||
return target;
|
||
}
|
||
|
||
/***/ }),
|
||
|
||
/***/ "./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js":
|
||
/*!*********************************************************************************!*\
|
||
!*** ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.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 */ _objectWithoutPropertiesLoose; }
|
||
/* harmony export */ });
|
||
function _objectWithoutPropertiesLoose(source, excluded) {
|
||
if (source == null) return {};
|
||
var target = {};
|
||
var sourceKeys = Object.keys(source);
|
||
var key, i;
|
||
for (i = 0; i < sourceKeys.length; i++) {
|
||
key = sourceKeys[i];
|
||
if (excluded.indexOf(key) >= 0) continue;
|
||
target[key] = source[key];
|
||
}
|
||
return target;
|
||
}
|
||
|
||
/***/ }),
|
||
|
||
/***/ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js":
|
||
/*!******************************************************************!*\
|
||
!*** ./node_modules/@babel/runtime/helpers/esm/slicedToArray.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 */ _slicedToArray; }
|
||
/* harmony export */ });
|
||
/* harmony import */ var _arrayWithHoles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayWithHoles.js */ "./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js");
|
||
/* harmony import */ var _iterableToArrayLimit_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./iterableToArrayLimit.js */ "./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js");
|
||
/* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js");
|
||
/* harmony import */ var _nonIterableRest_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./nonIterableRest.js */ "./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js");
|
||
|
||
|
||
|
||
|
||
function _slicedToArray(arr, i) {
|
||
return (0,_arrayWithHoles_js__WEBPACK_IMPORTED_MODULE_0__["default"])(arr) || (0,_iterableToArrayLimit_js__WEBPACK_IMPORTED_MODULE_1__["default"])(arr, i) || (0,_unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__["default"])(arr, i) || (0,_nonIterableRest_js__WEBPACK_IMPORTED_MODULE_3__["default"])();
|
||
}
|
||
|
||
/***/ }),
|
||
|
||
/***/ "./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js":
|
||
/*!*******************************************************************************!*\
|
||
!*** ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.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 */ _unsupportedIterableToArray; }
|
||
/* harmony export */ });
|
||
/* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayLikeToArray.js */ "./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js");
|
||
|
||
function _unsupportedIterableToArray(o, minLen) {
|
||
if (!o) return;
|
||
if (typeof o === "string") return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(o, minLen);
|
||
var n = Object.prototype.toString.call(o).slice(8, -1);
|
||
if (n === "Object" && o.constructor) n = o.constructor.name;
|
||
if (n === "Map" || n === "Set") return Array.from(o);
|
||
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(o, minLen);
|
||
}
|
||
|
||
/***/ })
|
||
|
||
},
|
||
/******/ function(__webpack_require__) { // webpackRuntimeModules
|
||
/******/ var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }
|
||
/******/ __webpack_require__.O(0, ["taro","vendors","common"], function() { return __webpack_exec__("./src/pages/index/index.tsx"); });
|
||
/******/ var __webpack_exports__ = __webpack_require__.O();
|
||
/******/ }
|
||
]);
|
||
//# sourceMappingURL=index.js.map
|