feat: 山峰导航
This commit is contained in:
2
dist/app.json
vendored
2
dist/app.json
vendored
@@ -1 +1 @@
|
||||
{"pages":["pages/home/index","pages/activityList/index"],"window":{"backgroundTextStyle":"light","navigationBarBackgroundColor":"#fff","navigationBarTitleText":"WeChat","navigationBarTextStyle":"black"}}
|
||||
{"pages":["pages/home/index","pages/activityList/index","pages/mountainPeak/index"],"window":{"backgroundTextStyle":"light","navigationBarBackgroundColor":"#fff","navigationBarTitleText":"WeChat","navigationBarTextStyle":"black"}}
|
||||
632
dist/pages/home/index.js
vendored
632
dist/pages/home/index.js
vendored
@@ -1720,6 +1720,262 @@ var Swiper_ = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(Swi
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/@antmjs/vantui/es/tabbar-item/index.js":
|
||||
/*!*************************************************************!*\
|
||||
!*** ./node_modules/@antmjs/vantui/es/tabbar-item/index.js ***!
|
||||
\*************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* unused harmony export TabbarItem */
|
||||
/* 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 _icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../icon */ "./node_modules/@antmjs/vantui/es/icon/index.js");
|
||||
/* harmony import */ var _info__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../info */ "./node_modules/@antmjs/vantui/es/info/index.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 = ["icon", "name", "iconPrefix", "dot", "info", "renderIconActive", "renderIcon", "index", "active", "activeColor", "inactiveColor", "onChange", "children", "style", "className", "onClick"];
|
||||
|
||||
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 TabbarItem(props) {
|
||||
var icon = props.icon,
|
||||
name = props.name,
|
||||
_props$iconPrefix = props.iconPrefix,
|
||||
iconPrefix = _props$iconPrefix === void 0 ? 'van-icon' : _props$iconPrefix,
|
||||
dot = props.dot,
|
||||
info = props.info,
|
||||
renderIconActive = props.renderIconActive,
|
||||
renderIcon = props.renderIcon,
|
||||
index = props.index,
|
||||
active = props.active,
|
||||
activeColor = props.activeColor,
|
||||
inactiveColor = props.inactiveColor,
|
||||
onChange = props.onChange,
|
||||
children = props.children,
|
||||
style = props.style,
|
||||
className = props.className,
|
||||
onClick = props.onClick,
|
||||
others = (0,_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_5__["default"])(props, _excluded);
|
||||
|
||||
var _click = function _click() {
|
||||
if (onChange) {
|
||||
var _active = name !== null && name !== void 0 ? name : index;
|
||||
|
||||
if (_active !== active) {
|
||||
onChange(_active);
|
||||
}
|
||||
}
|
||||
|
||||
onClick === null || onClick === void 0 ? void 0 : onClick(name !== null && name !== void 0 ? name : index);
|
||||
};
|
||||
|
||||
return onChange ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(_tarojs_components__WEBPACK_IMPORTED_MODULE_6__.View, _objectSpread(_objectSpread({
|
||||
className: _wxs_utils__WEBPACK_IMPORTED_MODULE_1__.bem('tabbar-item', {
|
||||
active: active === (name !== null && name !== void 0 ? name : index)
|
||||
}) + ' custom-class' + " ".concat(className || ''),
|
||||
style: _wxs_utils__WEBPACK_IMPORTED_MODULE_1__.style([{
|
||||
color: active === (name !== null && name !== void 0 ? name : index) ? activeColor : inactiveColor
|
||||
}, style])
|
||||
}, others), {}, {
|
||||
onClick: _click,
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(_tarojs_components__WEBPACK_IMPORTED_MODULE_6__.View, {
|
||||
className: "van-tabbar-item__icon",
|
||||
children: [icon ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_icon__WEBPACK_IMPORTED_MODULE_2__.Icon, {
|
||||
size: 38,
|
||||
name: icon,
|
||||
classPrefix: iconPrefix,
|
||||
className: "van-tabbar-item__icon__inner"
|
||||
}) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.Fragment, {
|
||||
children: active === (name !== null && name !== void 0 ? name : index) ? renderIconActive : renderIcon
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_info__WEBPACK_IMPORTED_MODULE_3__.Info, {
|
||||
dot: dot,
|
||||
info: info,
|
||||
className: "van-tabbar-item__info"
|
||||
})]
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_6__.View, {
|
||||
className: "van-tabbar-item__text",
|
||||
children: children
|
||||
})]
|
||||
})) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.Fragment, {});
|
||||
}
|
||||
/* harmony default export */ __webpack_exports__["default"] = (TabbarItem);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/@antmjs/vantui/es/tabbar/index.js":
|
||||
/*!********************************************************!*\
|
||||
!*** ./node_modules/@antmjs/vantui/es/tabbar/index.js ***!
|
||||
\********************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* unused harmony export Tabbar */
|
||||
/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
|
||||
/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
||||
/* 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 _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 react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "webpack/container/remote/react");
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
||||
/* harmony import */ var rc_util_lib_Children_toArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-util/lib/Children/toArray */ "./node_modules/rc-util/lib/Children/toArray.js");
|
||||
/* 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 _wxs_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../wxs/utils */ "./node_modules/@antmjs/vantui/es/wxs/utils.js");
|
||||
/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../common/utils */ "./node_modules/@antmjs/vantui/es/common/utils.js");
|
||||
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react/jsx-runtime */ "webpack/container/remote/react/jsx-runtime");
|
||||
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__);
|
||||
|
||||
|
||||
|
||||
var _excluded = ["active", "activeColor", "inactiveColor", "border", "fixed", "safeAreaInsetBottom", "zIndex", "placeholder", "onChange", "style", "className", "children"];
|
||||
|
||||
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 parseTabList(children) {
|
||||
return (0,rc_util_lib_Children_toArray__WEBPACK_IMPORTED_MODULE_3__["default"])(children).map(function (node) {
|
||||
if ( /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.isValidElement)(node)) {
|
||||
var key = node.key !== undefined ? String(node.key) : undefined;
|
||||
return _objectSpread(_objectSpread({
|
||||
key: key
|
||||
}, node.props), {}, {
|
||||
node: node
|
||||
});
|
||||
}
|
||||
|
||||
return null;
|
||||
}).filter(function (tab) {
|
||||
return tab;
|
||||
});
|
||||
}
|
||||
|
||||
function Tabbar(props) {
|
||||
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)({
|
||||
height: 50,
|
||||
current: 0
|
||||
}),
|
||||
_useState2 = (0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_7__["default"])(_useState, 2),
|
||||
state = _useState2[0],
|
||||
setState = _useState2[1];
|
||||
|
||||
var height = state.height,
|
||||
current = state.current;
|
||||
|
||||
var active = props.active,
|
||||
activeColor = props.activeColor,
|
||||
inactiveColor = props.inactiveColor,
|
||||
_props$border = props.border,
|
||||
border = _props$border === void 0 ? true : _props$border,
|
||||
_props$fixed = props.fixed,
|
||||
fixed = _props$fixed === void 0 ? true : _props$fixed,
|
||||
_props$safeAreaInsetB = props.safeAreaInsetBottom,
|
||||
safeAreaInsetBottom = _props$safeAreaInsetB === void 0 ? true : _props$safeAreaInsetB,
|
||||
zIndex = props.zIndex,
|
||||
placeholder = props.placeholder,
|
||||
onChange = props.onChange,
|
||||
style = props.style,
|
||||
className = props.className,
|
||||
children = props.children,
|
||||
others = (0,_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_8__["default"])(props, _excluded);
|
||||
|
||||
var _change = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (data) {
|
||||
setState(function (pre) {
|
||||
return _objectSpread(_objectSpread({}, pre), {}, {
|
||||
current: data
|
||||
});
|
||||
});
|
||||
onChange === null || onChange === void 0 ? void 0 : onChange({
|
||||
detail: data
|
||||
});
|
||||
}, [onChange]);
|
||||
|
||||
var newChildren = (0,react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function () {
|
||||
var tabs = parseTabList(children);
|
||||
return tabs.map(function (tab, index) {
|
||||
return /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.cloneElement)(tab.node, {
|
||||
key: index,
|
||||
index: index,
|
||||
active: current,
|
||||
activeColor: activeColor,
|
||||
inactiveColor: inactiveColor,
|
||||
onChange: _change
|
||||
});
|
||||
});
|
||||
}, [children, current, activeColor, inactiveColor, _change]);
|
||||
(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {
|
||||
setState(function (pre) {
|
||||
return _objectSpread(_objectSpread({}, pre), {}, {
|
||||
current: active
|
||||
});
|
||||
});
|
||||
}, [active]);
|
||||
(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {
|
||||
if (!fixed || !placeholder) {
|
||||
return;
|
||||
}
|
||||
|
||||
(0,_tarojs_taro__WEBPACK_IMPORTED_MODULE_1__.nextTick)(function () {
|
||||
(0,_common_utils__WEBPACK_IMPORTED_MODULE_5__.getRect)(null, '.van-tabbar').then(function (res) {
|
||||
setState(function (pre) {
|
||||
return _objectSpread(_objectSpread({}, pre), {}, {
|
||||
height: res.height
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
}, [fixed, placeholder]); // useEffect(
|
||||
// function () {
|
||||
// if (!Array.isArray(children) || !children.length) {
|
||||
// return
|
||||
// }
|
||||
// children.forEach((child) => child.updateFromParent())
|
||||
// },
|
||||
// // eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
// [active, activeColor, inactiveColor],
|
||||
// )
|
||||
|
||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.Fragment, {
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_9__.View, _objectSpread(_objectSpread({
|
||||
className: (border ? 'van-hairline--top-bottom' : '') + ' ' + _wxs_utils__WEBPACK_IMPORTED_MODULE_4__.bem('tabbar', {
|
||||
fixed: fixed,
|
||||
safe: safeAreaInsetBottom
|
||||
}) + ' custom-class' + " ".concat(className || ''),
|
||||
style: _wxs_utils__WEBPACK_IMPORTED_MODULE_4__.style([zIndex ? 'zIndex: ' + zIndex : '', style])
|
||||
}, others), {}, {
|
||||
children: newChildren
|
||||
})), fixed && placeholder && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_9__.View, {
|
||||
style: 'height: ' + height + 'px;'
|
||||
})]
|
||||
});
|
||||
}
|
||||
/* harmony default export */ __webpack_exports__["default"] = (Tabbar);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/@antmjs/vantui/es/tag/index.js":
|
||||
/*!*****************************************************!*\
|
||||
!*** ./node_modules/@antmjs/vantui/es/tag/index.js ***!
|
||||
@@ -1822,23 +2078,29 @@ function rootStyle(data) {
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony import */ var _antmjs_vantui_es_card__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @antmjs/vantui/es/card */ "./node_modules/@antmjs/vantui/es/card/index.js");
|
||||
/* harmony import */ var _antmjs_vantui_es_divider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @antmjs/vantui/es/divider */ "./node_modules/@antmjs/vantui/es/divider/index.js");
|
||||
/* harmony import */ var _antmjs_vantui_es_grid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @antmjs/vantui/es/grid */ "./node_modules/@antmjs/vantui/es/grid/index.js");
|
||||
/* harmony import */ var _antmjs_vantui_es_grid_item__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @antmjs/vantui/es/grid-item */ "./node_modules/@antmjs/vantui/es/grid-item/index.js");
|
||||
/* harmony import */ var _antmjs_vantui_es_swiper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @antmjs/vantui/es/swiper */ "./node_modules/@antmjs/vantui/es/swiper/index.js");
|
||||
/* harmony import */ var _antmjs_vantui_es_swiper_item__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @antmjs/vantui/es/swiper-item */ "./node_modules/@antmjs/vantui/es/swiper-item/index.js");
|
||||
/* harmony import */ var _antmjs_vantui_es_image__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @antmjs/vantui/es/image */ "./node_modules/@antmjs/vantui/es/image/index.js");
|
||||
/* harmony import */ var _antmjs_vantui_es_tag__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @antmjs/vantui/es/tag */ "./node_modules/@antmjs/vantui/es/tag/index.js");
|
||||
/* harmony import */ var _antmjs_vantui_es_notice_bar__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @antmjs/vantui/es/notice-bar */ "./node_modules/@antmjs/vantui/es/notice-bar/index.js");
|
||||
/* harmony import */ var _Users_eric_Desktop_citynew_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
||||
/* harmony import */ var _tarojs_components__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @tarojs/components */ "./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js");
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react */ "webpack/container/remote/react");
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_9__);
|
||||
/* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @tarojs/taro */ "webpack/container/remote/@tarojs/taro");
|
||||
/* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_tarojs_taro__WEBPACK_IMPORTED_MODULE_10__);
|
||||
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react/jsx-runtime */ "webpack/container/remote/react/jsx-runtime");
|
||||
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__);
|
||||
/* harmony import */ var _antmjs_vantui_es_tabbar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @antmjs/vantui/es/tabbar */ "./node_modules/@antmjs/vantui/es/tabbar/index.js");
|
||||
/* harmony import */ var _antmjs_vantui_es_tabbar_item__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @antmjs/vantui/es/tabbar-item */ "./node_modules/@antmjs/vantui/es/tabbar-item/index.js");
|
||||
/* harmony import */ var _antmjs_vantui_es_card__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @antmjs/vantui/es/card */ "./node_modules/@antmjs/vantui/es/card/index.js");
|
||||
/* harmony import */ var _antmjs_vantui_es_divider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @antmjs/vantui/es/divider */ "./node_modules/@antmjs/vantui/es/divider/index.js");
|
||||
/* harmony import */ var _antmjs_vantui_es_grid__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @antmjs/vantui/es/grid */ "./node_modules/@antmjs/vantui/es/grid/index.js");
|
||||
/* harmony import */ var _antmjs_vantui_es_grid_item__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @antmjs/vantui/es/grid-item */ "./node_modules/@antmjs/vantui/es/grid-item/index.js");
|
||||
/* harmony import */ var _antmjs_vantui_es_swiper__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @antmjs/vantui/es/swiper */ "./node_modules/@antmjs/vantui/es/swiper/index.js");
|
||||
/* harmony import */ var _antmjs_vantui_es_swiper_item__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @antmjs/vantui/es/swiper-item */ "./node_modules/@antmjs/vantui/es/swiper-item/index.js");
|
||||
/* harmony import */ var _antmjs_vantui_es_image__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @antmjs/vantui/es/image */ "./node_modules/@antmjs/vantui/es/image/index.js");
|
||||
/* harmony import */ var _antmjs_vantui_es_tag__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @antmjs/vantui/es/tag */ "./node_modules/@antmjs/vantui/es/tag/index.js");
|
||||
/* harmony import */ var _antmjs_vantui_es_notice_bar__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @antmjs/vantui/es/notice-bar */ "./node_modules/@antmjs/vantui/es/notice-bar/index.js");
|
||||
/* harmony import */ var _Users_eric_Desktop_citynew_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
||||
/* harmony import */ var _tarojs_components__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @tarojs/components */ "./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js");
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react */ "webpack/container/remote/react");
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_11__);
|
||||
/* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @tarojs/taro */ "webpack/container/remote/@tarojs/taro");
|
||||
/* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_tarojs_taro__WEBPACK_IMPORTED_MODULE_12__);
|
||||
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! react/jsx-runtime */ "webpack/container/remote/react/jsx-runtime");
|
||||
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1865,25 +2127,29 @@ function rootStyle(data) {
|
||||
|
||||
var Home = function Home() {
|
||||
// const { images } = COMMON
|
||||
var _react$useState = react__WEBPACK_IMPORTED_MODULE_9___default().useState(0),
|
||||
_react$useState2 = (0,_Users_eric_Desktop_citynew_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_12__["default"])(_react$useState, 2),
|
||||
var _react$useState = react__WEBPACK_IMPORTED_MODULE_11___default().useState(0),
|
||||
_react$useState2 = (0,_Users_eric_Desktop_citynew_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_14__["default"])(_react$useState, 2),
|
||||
initPage1 = _react$useState2[0],
|
||||
setInitPage1 = _react$useState2[1];
|
||||
var _react$useState3 = react__WEBPACK_IMPORTED_MODULE_11___default().useState(0),
|
||||
_react$useState4 = (0,_Users_eric_Desktop_citynew_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_14__["default"])(_react$useState3, 2),
|
||||
active = _react$useState4[0],
|
||||
setActive = _react$useState4[1];
|
||||
var onChange = function onChange(e) {};
|
||||
var images = ["cloud://cloud1-5g5xrgza12a0dd6d.636c-cloud1-5g5xrgza12a0dd6d-1253665791/download.jpg", "cloud://cloud1-5g5xrgza12a0dd6d.636c-cloud1-5g5xrgza12a0dd6d-1253665791/images.jpg"];
|
||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(_tarojs_components__WEBPACK_IMPORTED_MODULE_13__.View, {
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_antmjs_vantui_es_notice_bar__WEBPACK_IMPORTED_MODULE_8__["default"], {
|
||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)(_tarojs_components__WEBPACK_IMPORTED_MODULE_15__.View, {
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_antmjs_vantui_es_notice_bar__WEBPACK_IMPORTED_MODULE_10__["default"], {
|
||||
leftIcon: "volume-o",
|
||||
text: "\u5728\u4EE3\u7801\u9605\u8BFB\u8FC7\u7A0B\u4E2D\u4EBA\u4EEC\u8BF4\u810F\u8BDD\u7684\u9891\u7387\u662F\u8861\u91CF\u4EE3\u7801\u8D28\u91CF\u7684\u552F\u4E00\u6807\u51C6\u3002"
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_13__.View, {
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_antmjs_vantui_es_tag__WEBPACK_IMPORTED_MODULE_7__["default"], {
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_15__.View, {
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_antmjs_vantui_es_tag__WEBPACK_IMPORTED_MODULE_9__["default"], {
|
||||
plain: true,
|
||||
type: "primary",
|
||||
children: "\u6DF1\u5733"
|
||||
})
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_13__.View, {
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_15__.View, {
|
||||
className: "demo-box",
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_antmjs_vantui_es_swiper__WEBPACK_IMPORTED_MODULE_4__["default"], {
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_antmjs_vantui_es_swiper__WEBPACK_IMPORTED_MODULE_6__["default"], {
|
||||
height: 200,
|
||||
paginationColor: "#426543",
|
||||
autoPlay: "3000",
|
||||
@@ -1891,8 +2157,8 @@ var Home = function Home() {
|
||||
paginationVisible: true,
|
||||
onChange: onChange,
|
||||
children: images.map(function (item, index) {
|
||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_antmjs_vantui_es_swiper_item__WEBPACK_IMPORTED_MODULE_5__["default"], {
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_antmjs_vantui_es_image__WEBPACK_IMPORTED_MODULE_6__["default"], {
|
||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_antmjs_vantui_es_swiper_item__WEBPACK_IMPORTED_MODULE_7__["default"], {
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_antmjs_vantui_es_image__WEBPACK_IMPORTED_MODULE_8__["default"], {
|
||||
src: item,
|
||||
fit: "cover",
|
||||
width: "100%",
|
||||
@@ -1901,30 +2167,36 @@ var Home = function Home() {
|
||||
}, "swiper#demo1".concat(index));
|
||||
})
|
||||
})
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(_antmjs_vantui_es_grid__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_antmjs_vantui_es_grid_item__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)(_antmjs_vantui_es_grid__WEBPACK_IMPORTED_MODULE_4__["default"], {
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_antmjs_vantui_es_grid_item__WEBPACK_IMPORTED_MODULE_5__["default"], {
|
||||
icon: "photo-o",
|
||||
text: "\u5341\u5CF0",
|
||||
onClick: function onClick() {
|
||||
// 跳转到目的页面,打开新页面
|
||||
_tarojs_taro__WEBPACK_IMPORTED_MODULE_12___default().navigateTo({
|
||||
url: "/pages/mountainPeak/index"
|
||||
});
|
||||
}
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_antmjs_vantui_es_grid_item__WEBPACK_IMPORTED_MODULE_5__["default"], {
|
||||
icon: "photo-o",
|
||||
text: "\u6D3B\u52A8",
|
||||
onClick: function onClick() {
|
||||
// 跳转到目的页面,打开新页面
|
||||
_tarojs_taro__WEBPACK_IMPORTED_MODULE_10___default().navigateTo({
|
||||
_tarojs_taro__WEBPACK_IMPORTED_MODULE_12___default().navigateTo({
|
||||
url: "/pages/activityList/index"
|
||||
});
|
||||
}
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_antmjs_vantui_es_grid_item__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_antmjs_vantui_es_grid_item__WEBPACK_IMPORTED_MODULE_5__["default"], {
|
||||
icon: "photo-o",
|
||||
text: "\u6D3B\u52A8"
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_antmjs_vantui_es_grid_item__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
||||
icon: "photo-o",
|
||||
text: "\u6D3B\u52A8"
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_antmjs_vantui_es_grid_item__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_antmjs_vantui_es_grid_item__WEBPACK_IMPORTED_MODULE_5__["default"], {
|
||||
icon: "photo-o",
|
||||
text: "\u6D3B\u52A8"
|
||||
})]
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_13__.View, {
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_antmjs_vantui_es_divider__WEBPACK_IMPORTED_MODULE_1__["default"], {})
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_15__.View, {
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_antmjs_vantui_es_divider__WEBPACK_IMPORTED_MODULE_3__["default"], {})
|
||||
}), [1, 2].map(function (item) {
|
||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_antmjs_vantui_es_card__WEBPACK_IMPORTED_MODULE_0__["default"], {
|
||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_antmjs_vantui_es_card__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
||||
num: "",
|
||||
price: "",
|
||||
desc: "\u62A5\u540D\u4E2D",
|
||||
@@ -1937,10 +2209,25 @@ var Home = function Home() {
|
||||
// </View>
|
||||
// }
|
||||
});
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)(_antmjs_vantui_es_tabbar__WEBPACK_IMPORTED_MODULE_0__["default"], {
|
||||
active: active
|
||||
// onChange={(e) => setActive(e?.detail)}
|
||||
,
|
||||
|
||||
safeAreaInsetBottom: false,
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_antmjs_vantui_es_tabbar_item__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
||||
icon: "home-o",
|
||||
children: "\u9996\u9875"
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_antmjs_vantui_es_tabbar_item__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
||||
icon: "friends-o",
|
||||
children: "\u6D3B\u52A8"
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_antmjs_vantui_es_tabbar_item__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
||||
icon: "setting-o",
|
||||
children: "\u6211\u7684"
|
||||
})]
|
||||
})]
|
||||
});
|
||||
};
|
||||
|
||||
/* harmony default export */ __webpack_exports__["default"] = (Home);
|
||||
|
||||
/***/ }),
|
||||
@@ -2034,6 +2321,273 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
||||
}());
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/rc-util/lib/Children/toArray.js":
|
||||
/*!******************************************************!*\
|
||||
!*** ./node_modules/rc-util/lib/Children/toArray.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")["default"]);
|
||||
|
||||
__webpack_unused_export__ = ({
|
||||
value: true
|
||||
});
|
||||
exports["default"] = toArray;
|
||||
|
||||
var _react = _interopRequireDefault(__webpack_require__(/*! react */ "webpack/container/remote/react"));
|
||||
|
||||
var _reactIs = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js");
|
||||
|
||||
function toArray(children) {
|
||||
var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
||||
var ret = [];
|
||||
|
||||
_react.default.Children.forEach(children, function (child) {
|
||||
if ((child === undefined || child === null) && !option.keepEmpty) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (Array.isArray(child)) {
|
||||
ret = ret.concat(toArray(child));
|
||||
} else if ((0, _reactIs.isFragment)(child) && child.props) {
|
||||
ret = ret.concat(toArray(child.props.children, option));
|
||||
} else {
|
||||
ret.push(child);
|
||||
}
|
||||
});
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/react-is/cjs/react-is.development.js":
|
||||
/*!***********************************************************!*\
|
||||
!*** ./node_modules/react-is/cjs/react-is.development.js ***!
|
||||
\***********************************************************/
|
||||
/***/ (function(__unused_webpack_module, exports) {
|
||||
|
||||
"use strict";
|
||||
/** @license React v16.13.1
|
||||
* react-is.development.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if (true) {
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
||||
// nor polyfill, then a plain number is used for performance.
|
||||
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
||||
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
||||
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
||||
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
||||
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
||||
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
||||
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
||||
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
||||
// (unstable) APIs that have been removed. Can we remove the symbols?
|
||||
|
||||
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
||||
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
||||
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
||||
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
||||
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
||||
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
||||
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
||||
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
||||
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
||||
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
||||
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
||||
|
||||
function isValidElementType(type) {
|
||||
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
||||
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
||||
}
|
||||
|
||||
function typeOf(object) {
|
||||
if (typeof object === 'object' && object !== null) {
|
||||
var $$typeof = object.$$typeof;
|
||||
|
||||
switch ($$typeof) {
|
||||
case REACT_ELEMENT_TYPE:
|
||||
var type = object.type;
|
||||
|
||||
switch (type) {
|
||||
case REACT_ASYNC_MODE_TYPE:
|
||||
case REACT_CONCURRENT_MODE_TYPE:
|
||||
case REACT_FRAGMENT_TYPE:
|
||||
case REACT_PROFILER_TYPE:
|
||||
case REACT_STRICT_MODE_TYPE:
|
||||
case REACT_SUSPENSE_TYPE:
|
||||
return type;
|
||||
|
||||
default:
|
||||
var $$typeofType = type && type.$$typeof;
|
||||
|
||||
switch ($$typeofType) {
|
||||
case REACT_CONTEXT_TYPE:
|
||||
case REACT_FORWARD_REF_TYPE:
|
||||
case REACT_LAZY_TYPE:
|
||||
case REACT_MEMO_TYPE:
|
||||
case REACT_PROVIDER_TYPE:
|
||||
return $$typeofType;
|
||||
|
||||
default:
|
||||
return $$typeof;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
case REACT_PORTAL_TYPE:
|
||||
return $$typeof;
|
||||
}
|
||||
}
|
||||
|
||||
return undefined;
|
||||
} // AsyncMode is deprecated along with isAsyncMode
|
||||
|
||||
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
||||
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
||||
var ContextConsumer = REACT_CONTEXT_TYPE;
|
||||
var ContextProvider = REACT_PROVIDER_TYPE;
|
||||
var Element = REACT_ELEMENT_TYPE;
|
||||
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
||||
var Fragment = REACT_FRAGMENT_TYPE;
|
||||
var Lazy = REACT_LAZY_TYPE;
|
||||
var Memo = REACT_MEMO_TYPE;
|
||||
var Portal = REACT_PORTAL_TYPE;
|
||||
var Profiler = REACT_PROFILER_TYPE;
|
||||
var StrictMode = REACT_STRICT_MODE_TYPE;
|
||||
var Suspense = REACT_SUSPENSE_TYPE;
|
||||
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
||||
|
||||
function isAsyncMode(object) {
|
||||
{
|
||||
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
||||
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
||||
|
||||
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
||||
}
|
||||
}
|
||||
|
||||
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
||||
}
|
||||
function isConcurrentMode(object) {
|
||||
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
||||
}
|
||||
function isContextConsumer(object) {
|
||||
return typeOf(object) === REACT_CONTEXT_TYPE;
|
||||
}
|
||||
function isContextProvider(object) {
|
||||
return typeOf(object) === REACT_PROVIDER_TYPE;
|
||||
}
|
||||
function isElement(object) {
|
||||
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
||||
}
|
||||
function isForwardRef(object) {
|
||||
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
||||
}
|
||||
function isFragment(object) {
|
||||
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
||||
}
|
||||
function isLazy(object) {
|
||||
return typeOf(object) === REACT_LAZY_TYPE;
|
||||
}
|
||||
function isMemo(object) {
|
||||
return typeOf(object) === REACT_MEMO_TYPE;
|
||||
}
|
||||
function isPortal(object) {
|
||||
return typeOf(object) === REACT_PORTAL_TYPE;
|
||||
}
|
||||
function isProfiler(object) {
|
||||
return typeOf(object) === REACT_PROFILER_TYPE;
|
||||
}
|
||||
function isStrictMode(object) {
|
||||
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
||||
}
|
||||
function isSuspense(object) {
|
||||
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
||||
}
|
||||
|
||||
exports.AsyncMode = AsyncMode;
|
||||
exports.ConcurrentMode = ConcurrentMode;
|
||||
exports.ContextConsumer = ContextConsumer;
|
||||
exports.ContextProvider = ContextProvider;
|
||||
exports.Element = Element;
|
||||
exports.ForwardRef = ForwardRef;
|
||||
exports.Fragment = Fragment;
|
||||
exports.Lazy = Lazy;
|
||||
exports.Memo = Memo;
|
||||
exports.Portal = Portal;
|
||||
exports.Profiler = Profiler;
|
||||
exports.StrictMode = StrictMode;
|
||||
exports.Suspense = Suspense;
|
||||
exports.isAsyncMode = isAsyncMode;
|
||||
exports.isConcurrentMode = isConcurrentMode;
|
||||
exports.isContextConsumer = isContextConsumer;
|
||||
exports.isContextProvider = isContextProvider;
|
||||
exports.isElement = isElement;
|
||||
exports.isForwardRef = isForwardRef;
|
||||
exports.isFragment = isFragment;
|
||||
exports.isLazy = isLazy;
|
||||
exports.isMemo = isMemo;
|
||||
exports.isPortal = isPortal;
|
||||
exports.isProfiler = isProfiler;
|
||||
exports.isStrictMode = isStrictMode;
|
||||
exports.isSuspense = isSuspense;
|
||||
exports.isValidElementType = isValidElementType;
|
||||
exports.typeOf = typeOf;
|
||||
})();
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/react-is/index.js":
|
||||
/*!****************************************!*\
|
||||
!*** ./node_modules/react-is/index.js ***!
|
||||
\****************************************/
|
||||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
||||
|
||||
if (false) {} else {
|
||||
module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "./node_modules/react-is/cjs/react-is.development.js");
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./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/regeneratorRuntime.js":
|
||||
|
||||
2
dist/pages/home/index.js.map
vendored
2
dist/pages/home/index.js.map
vendored
File diff suppressed because one or more lines are too long
8
dist/pages/home/index.wxss
vendored
8
dist/pages/home/index.wxss
vendored
@@ -1,3 +1,11 @@
|
||||
/*!***********************************************************************************************************************************************************************************************************************!*\
|
||||
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[2]!./node_modules/@antmjs/vantui/es/tabbar/index.css ***!
|
||||
\***********************************************************************************************************************************************************************************************************************/
|
||||
.van-tabbar{display:-webkit-flex;display:flex;box-sizing:content-box;width:100%;z-index:805;height:100rpx;height:var(--tabbar-height,100rpx);background-color:#fff;background-color:var(--tabbar-background-color,#fff)}.van-tabbar--fixed{position:fixed!important;bottom:0;left:0}.van-tabbar--safe{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}
|
||||
/*!****************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[2]!./node_modules/@antmjs/vantui/es/tabbar-item/index.css ***!
|
||||
\****************************************************************************************************************************************************************************************************************************/
|
||||
.van-tabbar-item{display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;-webkit-flex:1;flex:1;height:100%;color:#646566;color:var(--tabbar-item-text-color,#646566);font-size:24rpx;font-size:var(--tabbar-item-font-size, 24rpx);line-height:1;line-height:var(--tabbar-item-line-height, 1)}.van-tabbar-item__icon{position:relative;margin-bottom:8rpx;margin-bottom:var(--tabbar-item-margin-bottom,8rpx);font-size:44rpx;font-size:var(--tabbar-item-icon-size, 44rpx)}.van-tabbar-item__icon__inner{display:block;min-width:1em}.van-tabbar-item--active{color:#1989fa;color:var(--tabbar-item-active-color,#1989fa)}.van-tabbar-item__info{margin-top:4rpx}
|
||||
/*!********************************************************************************************************************************************************************************************************************!*\
|
||||
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[2]!./node_modules/@antmjs/vantui/es/tag/index.css ***!
|
||||
\********************************************************************************************************************************************************************************************************************/
|
||||
|
||||
269
dist/pages/mountainPeak/index.js
vendored
Normal file
269
dist/pages/mountainPeak/index.js
vendored
Normal file
@@ -0,0 +1,269 @@
|
||||
"use strict";
|
||||
(wx["webpackJsonp"] = wx["webpackJsonp"] || []).push([["pages/mountainPeak/index"],{
|
||||
|
||||
/***/ "./node_modules/@antmjs/vantui/es/sidebar-item/index.js":
|
||||
/*!**************************************************************!*\
|
||||
!*** ./node_modules/@antmjs/vantui/es/sidebar-item/index.js ***!
|
||||
\**************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* unused harmony export SidebarItem */
|
||||
/* 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 _info_index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../info/index */ "./node_modules/@antmjs/vantui/es/info/index.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 = ["dot", "badge", "index", "renderTitle", "setChildren", "setAction", "onClick", "onChange", "info", "title", "disabled", "className", "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 SidebarItem(props) {
|
||||
var dot = props.dot,
|
||||
badge = props.badge,
|
||||
index = props.index,
|
||||
renderTitle = props.renderTitle,
|
||||
setChildren = props.setChildren,
|
||||
setAction = props.setAction,
|
||||
onClick = props.onClick,
|
||||
onChange = props.onChange,
|
||||
info = props.info,
|
||||
title = props.title,
|
||||
disabled = props.disabled,
|
||||
className = props.className,
|
||||
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)(),
|
||||
_useState2 = (0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_6__["default"])(_useState, 2),
|
||||
selected = _useState2[0],
|
||||
setselected = _useState2[1];
|
||||
|
||||
var setActive = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (selected) {
|
||||
return setselected(selected);
|
||||
}, []);
|
||||
(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
|
||||
setChildren === null || setChildren === void 0 ? void 0 : setChildren(index, {
|
||||
setActive: setActive,
|
||||
selected: selected
|
||||
});
|
||||
}, [setActive, index, setChildren, selected]);
|
||||
var onClick_ = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function () {
|
||||
if (disabled) return;
|
||||
setAction(index).then(function () {
|
||||
onChange === null || onChange === void 0 ? void 0 : onChange({
|
||||
detail: index
|
||||
});
|
||||
onClick === null || onClick === void 0 ? void 0 : onClick(index);
|
||||
});
|
||||
}, [disabled, index, onChange, onClick, setAction]);
|
||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_7__.View, _objectSpread(_objectSpread({
|
||||
className: _wxs_utils__WEBPACK_IMPORTED_MODULE_2__.bem('sidebar-item', {
|
||||
selected: selected,
|
||||
disabled: disabled
|
||||
}) + ' ' + (selected ? 'active-class' : '') + ' ' + (disabled ? 'disabled-class' : '') + ' custom-class' + ' ' + className,
|
||||
hoverClass: "van-sidebar-item--hover",
|
||||
hoverStayTime: 70,
|
||||
onClick: onClick_,
|
||||
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-sidebar-item__text",
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.Fragment, {
|
||||
children: [(badge != null || info !== null || dot) && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_info_index__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
||||
dot: dot,
|
||||
info: badge != null ? badge : info
|
||||
}), title ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_7__.View, {
|
||||
children: title
|
||||
}) : renderTitle]
|
||||
})
|
||||
})
|
||||
}));
|
||||
}
|
||||
/* harmony default export */ __webpack_exports__["default"] = (SidebarItem);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/@antmjs/vantui/es/sidebar/index.js":
|
||||
/*!*********************************************************!*\
|
||||
!*** ./node_modules/@antmjs/vantui/es/sidebar/index.js ***!
|
||||
\*********************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* unused harmony export Sidebar */
|
||||
/* 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_4__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
|
||||
/* harmony import */ var _tarojs_components__WEBPACK_IMPORTED_MODULE_5__ = __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 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 _excluded = ["activeKey", "onChange", "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 Sidebar(props) {
|
||||
var activeKey = props.activeKey,
|
||||
onChange = props.onChange,
|
||||
className = props.className,
|
||||
children = props.children,
|
||||
style = props.style,
|
||||
others = (0,_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_4__["default"])(props, _excluded);
|
||||
|
||||
var childrenInstance = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)([]);
|
||||
var setAction = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (activeKey) {
|
||||
var childrenInstance_ = childrenInstance.current;
|
||||
|
||||
if (!childrenInstance_ || !childrenInstance_.length) {
|
||||
return Promise.resolve();
|
||||
} // setcurrentActive(activeKey)
|
||||
|
||||
|
||||
childrenInstance_.forEach(function (item) {
|
||||
item.setActive(false);
|
||||
});
|
||||
|
||||
if (childrenInstance_[activeKey]) {
|
||||
childrenInstance_[activeKey].setActive(true);
|
||||
}
|
||||
|
||||
return Promise.resolve();
|
||||
}, []);
|
||||
(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
|
||||
setAction(activeKey);
|
||||
}, [setAction, activeKey]);
|
||||
var setChildren = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (index, instance) {
|
||||
childrenInstance.current[index] = instance;
|
||||
}, []);
|
||||
var ResetChildren = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
|
||||
var res = [];
|
||||
|
||||
if (children && Array.isArray(children)) {
|
||||
children.forEach(function (child, index) {
|
||||
res.push( /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(child, {
|
||||
key: index,
|
||||
setChildren: setChildren,
|
||||
index: index,
|
||||
setAction: setAction,
|
||||
onChange: onChange
|
||||
}));
|
||||
});
|
||||
}
|
||||
|
||||
return res;
|
||||
}, [children, onChange, setAction, setChildren]);
|
||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_5__.View, _objectSpread(_objectSpread({
|
||||
style: _wxs_utils__WEBPACK_IMPORTED_MODULE_2__.style([style]),
|
||||
className: "van-sidebar ".concat(className)
|
||||
}, others), {}, {
|
||||
children: ResetChildren
|
||||
}));
|
||||
}
|
||||
/* harmony default export */ __webpack_exports__["default"] = (Sidebar);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./src/pages/mountainPeak/index.tsx":
|
||||
/*!***************************************************************************************************************!*\
|
||||
!*** ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./src/pages/mountainPeak/index.tsx ***!
|
||||
\***************************************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony import */ var _antmjs_vantui_es_sidebar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @antmjs/vantui/es/sidebar */ "./node_modules/@antmjs/vantui/es/sidebar/index.js");
|
||||
/* harmony import */ var _antmjs_vantui_es_sidebar_item__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @antmjs/vantui/es/sidebar-item */ "./node_modules/@antmjs/vantui/es/sidebar-item/index.js");
|
||||
/* harmony import */ var _tarojs_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @tarojs/components */ "./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js");
|
||||
/* harmony import */ var react_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 mountainPeak = function mountainPeak() {
|
||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(_tarojs_components__WEBPACK_IMPORTED_MODULE_3__.View, {
|
||||
children: [" ", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(_antmjs_vantui_es_sidebar__WEBPACK_IMPORTED_MODULE_0__["default"], {
|
||||
activeKey: 0,
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_antmjs_vantui_es_sidebar_item__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
||||
title: "\u68A7\u6850\u5C71"
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_antmjs_vantui_es_sidebar_item__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
||||
title: "\u68A7\u6850\u5C71"
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_antmjs_vantui_es_sidebar_item__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
||||
title: "\u68A7\u6850\u5C71"
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_antmjs_vantui_es_sidebar_item__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
||||
title: "\u68A7\u6850\u5C71"
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_antmjs_vantui_es_sidebar_item__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
||||
title: "\u68A7\u6850\u5C71"
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_antmjs_vantui_es_sidebar_item__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
||||
title: "\u68A7\u6850\u5C71"
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_antmjs_vantui_es_sidebar_item__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
||||
title: "\u68A7\u6850\u5C71"
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_antmjs_vantui_es_sidebar_item__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
||||
title: "\u68A7\u6850\u5C71"
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_antmjs_vantui_es_sidebar_item__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
||||
title: "\u6807\u7B7E\u540D"
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_antmjs_vantui_es_sidebar_item__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
||||
title: "\u6807\u7B7E\u540D"
|
||||
})]
|
||||
})]
|
||||
});
|
||||
};
|
||||
/* harmony default export */ __webpack_exports__["default"] = (mountainPeak);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/pages/mountainPeak/index.tsx":
|
||||
/*!******************************************!*\
|
||||
!*** ./src/pages/mountainPeak/index.tsx ***!
|
||||
\******************************************/
|
||||
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony import */ var _tarojs_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tarojs/runtime */ "webpack/container/remote/@tarojs/runtime");
|
||||
/* harmony import */ var _tarojs_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_tarojs_runtime__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var _node_modules_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/mountainPeak/index.tsx");
|
||||
|
||||
|
||||
var config = {};
|
||||
|
||||
|
||||
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/mountainPeak/index', {root:{cn:[]}}, config || {}))
|
||||
|
||||
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
},
|
||||
/******/ 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/mountainPeak/index.tsx"); });
|
||||
/******/ var __webpack_exports__ = __webpack_require__.O();
|
||||
/******/ }
|
||||
]);
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
dist/pages/mountainPeak/index.js.map
vendored
Normal file
1
dist/pages/mountainPeak/index.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/pages/mountainPeak/index.json
vendored
Normal file
1
dist/pages/mountainPeak/index.json
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"usingComponents":{"comp":"../../comp"}}
|
||||
2
dist/pages/mountainPeak/index.wxml
vendored
Normal file
2
dist/pages/mountainPeak/index.wxml
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
<import src="../../base.wxml"/>
|
||||
<template is="taro_tmpl" data="{{root:root}}" />
|
||||
8
dist/pages/mountainPeak/index.wxss
vendored
Normal file
8
dist/pages/mountainPeak/index.wxss
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*!************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[2]!./node_modules/@antmjs/vantui/es/sidebar/index.css ***!
|
||||
\************************************************************************************************************************************************************************************************************************/
|
||||
.van-sidebar{width:160rpx;width:var(--sidebar-width,160rpx)}
|
||||
/*!*****************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[2]!./node_modules/@antmjs/vantui/es/sidebar-item/index.css ***!
|
||||
\*****************************************************************************************************************************************************************************************************************************/
|
||||
.van-sidebar-item{display:block;box-sizing:border-box;overflow:hidden;border-left:6rpx solid transparent;-webkit-user-select:none;user-select:none;padding:40rpx 24rpx 40rpx 16rpx;padding:var(--sidebar-padding,40rpx 24rpx 40rpx 16rpx);font-size:28rpx;font-size:var(--sidebar-font-size, 28rpx);line-height:40rpx;line-height:var(--sidebar-line-height, 40rpx);color:#323233;color:var(--sidebar-text-color,#323233);background-color:#f7f8fa;background-color:var(--sidebar-background-color,#f7f8fa)}.van-sidebar-item__text{position:relative;display:inline-block;word-break:break-all}.van-sidebar-item--hover:not(.van-sidebar-item--disabled){background-color:#f2f3f5;background-color:var(--sidebar-active-color,#f2f3f5)}.van-sidebar-item::after{border-bottom-width:2rpx}.van-sidebar-item--selected{color:#323233;color:var(--sidebar-selected-text-color,#323233);font-weight:500;font-weight:var(--sidebar-selected-font-weight,500);border-color:#ee0a24;border-color:var(--sidebar-selected-border-color,#ee0a24)}.van-sidebar-item--selected::after{border-right-width:2rpx}.van-sidebar-item--selected,.van-sidebar-item--selected.van-sidebar-item--hover{background-color:#fff;background-color:var(--sidebar-selected-background-color,#fff)}.van-sidebar-item--disabled{color:#c8c9cc;color:var(--sidebar-disabled-text-color,#c8c9cc)}
|
||||
12
dist/runtime.js
vendored
12
dist/runtime.js
vendored
@@ -203,8 +203,8 @@
|
||||
/******/ ],
|
||||
/******/ "common": [
|
||||
/******/ "webpack/container/remote/@tarojs/runtime",
|
||||
/******/ "webpack/container/remote/react",
|
||||
/******/ "webpack/container/remote/@tarojs/taro",
|
||||
/******/ "webpack/container/remote/react",
|
||||
/******/ "webpack/container/remote/react/jsx-runtime"
|
||||
/******/ ]
|
||||
/******/ };
|
||||
@@ -229,16 +229,16 @@
|
||||
/******/ "./@tarojs/runtime",
|
||||
/******/ null
|
||||
/******/ ],
|
||||
/******/ "webpack/container/remote/react": [
|
||||
/******/ "default",
|
||||
/******/ "./react",
|
||||
/******/ null
|
||||
/******/ ],
|
||||
/******/ "webpack/container/remote/@tarojs/taro": [
|
||||
/******/ "default",
|
||||
/******/ "./@tarojs/taro",
|
||||
/******/ null
|
||||
/******/ ],
|
||||
/******/ "webpack/container/remote/react": [
|
||||
/******/ "default",
|
||||
/******/ "./react",
|
||||
/******/ null
|
||||
/******/ ],
|
||||
/******/ "webpack/container/remote/react/jsx-runtime": [
|
||||
/******/ "default",
|
||||
/******/ "./react/jsx-runtime",
|
||||
|
||||
2
dist/runtime.js.map
vendored
2
dist/runtime.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/vendors.js
vendored
2
dist/vendors.js
vendored
@@ -467,7 +467,7 @@ function Info(props) {
|
||||
}))
|
||||
});
|
||||
}
|
||||
/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = (Info);
|
||||
/* harmony default export */ __webpack_exports__["default"] = (Info);
|
||||
|
||||
/***/ }),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user