/*! For license information please see index.js.LICENSE.txt */ (wx.webpackJsonp=wx.webpackJsonp||[]).push([["pages/home/index"],{"./node_modules/@antmjs/vantui/es/field/index.js":function(e,t,n){"use strict";n.d(t,{Field:function(){return Field}});var o=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),a=n("webpack/container/remote/@tarojs/taro"),i=n("webpack/container/remote/react"),l=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),c=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),s=n("./node_modules/@antmjs/vantui/es/cell/index.js"),u=n("./node_modules/@antmjs/vantui/es/icon/index.js"),d=(n("./node_modules/@antmjs/vantui/es/utils/index.js"),n("./node_modules/@antmjs/vantui/es/field/wxs.js")),f=n("webpack/container/remote/react/jsx-runtime");n("webpack/container/remote/@tarojs/runtime").document;function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _objectSpread(e){for(var t=1;t=W}),children:b.length>=W?W:b.length}),"/"+W]}),U&&(0,f.jsx)(l.View,{className:c.bem("field__error-message",[H,{disabled:F,error:B}]),children:U})]})}},"./node_modules/@antmjs/vantui/es/field/wxs.js":function(e,t,n){"use strict";n.d(t,{inputStyle:function(){return inputStyle}});var o=n("./node_modules/@antmjs/vantui/es/wxs/style.js"),r=n("./node_modules/@antmjs/vantui/es/wxs/add-unit.js");function inputStyle(e){return e&&"Object"===e.constructor.name?(0,o.style)({"min-height":(0,r.addUnit)(e.minHeight),"max-height":(0,r.addUnit)(e.maxHeight)}):""}},"./node_modules/@antmjs/vantui/es/grid-item/index.js":function(e,t,n){"use strict";var o=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),r=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),a=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),i=n("webpack/container/remote/react"),l=n("./node_modules/@antmjs/vantui/es/common/jumpLink.js"),c=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),s=n("./node_modules/@antmjs/vantui/es/icon/index.js"),u=n("./node_modules/@antmjs/vantui/es/grid-item/wxs.js"),d=n("webpack/container/remote/react/jsx-runtime"),f=["icon","iconColor","iconPrefix","dot","info","badge","text","setChildrenInstance","parentInstance","index","url","linkType","style","className"];t.default=function GridItem(e){var t=e.icon,n=e.iconColor,m=e.iconPrefix,p=void 0===m?"van-icon":m,h=e.dot,v=e.info,g=e.badge,b=e.text,y=e.setChildrenInstance,j=e.parentInstance,w=e.index,x=e.url,_=e.linkType,S=e.style,k=e.className,C=(0,r.default)(e,f),O=(0,i.useState)({}),P=(0,o.default)(O,2),T=P[0],N=P[1];(0,i.useEffect)((function(){y(w,{updateStyle:I})}),[w,y]),(0,i.useEffect)((function(){I()}),[j.columnNum]);var I=(0,i.useCallback)((function(){var e=j.columnNum,t=j.border,n=j.square,o=j.gutter,r=j.clickable,a=j.center,i=j.direction,l=j.reverse,c=j.iconSize;N({center:a,border:t,square:n,gutter:o,clickable:r,direction:i,reverse:l,iconSize:c,index:w,columnNum:e})}),[j,w]);return(0,d.jsx)(a.View,{className:" "+c.bem("grid-item",{square:null==T?void 0:T.square})+" "+k,style:c.style([u.wrapperStyle({square:null==T?void 0:T.square,gutter:null==T?void 0:T.gutter,columnNum:null==T?void 0:T.columnNum,index:null==T?void 0:T.index}),S]),onClick:function onClick(e){var t;x&&(0,l.jumpLink)(x,_),null==C||null===(t=C.onClick)||void 0===t||t.call(C,e)},children:(0,d.jsx)(a.View,{className:"content-class "+c.bem("grid-item__content",[null==T?void 0:T.direction,{center:null==T?void 0:T.center,square:null==T?void 0:T.square,reverse:null==T?void 0:T.reverse,clickable:null==T?void 0:T.clickable,surround:(null==T?void 0:T.border)&&(null==T?void 0:T.gutter)}])+" "+(null!=T&&T.border?"van-hairline--surround":""),style:u.contentStyle({square:null==T?void 0:T.square,gutter:null==T?void 0:T.gutter}),children:C.children||(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(a.View,{className:"van-grid-item__icon icon-class",children:t?(0,d.jsx)(s.default,{name:t,color:n,classPrefix:p,dot:h,info:g||v,size:null==T?void 0:T.iconSize}):T.renderIcon}),(0,d.jsx)(a.View,{className:"van-grid-item__text text-class",children:b?(0,d.jsx)(a.Text,{children:b}):T.renderText})]})})})}},"./node_modules/@antmjs/vantui/es/grid-item/wxs.js":function(e,t,n){"use strict";n.d(t,{wrapperStyle:function(){return wrapperStyle},contentStyle:function(){return contentStyle}});var o=n("./node_modules/@antmjs/vantui/es/wxs/style.js"),r=n("./node_modules/@antmjs/vantui/es/wxs/add-unit.js");function wrapperStyle(e){var t=100/e.columnNum+"%";return(0,o.style)({width:t,"padding-top":e.square?t:null,"padding-right":(0,r.addUnit)(e.gutter),"margin-top":e.index>=e.columnNum&&!e.square?(0,r.addUnit)(e.gutter):null})}function contentStyle(e){return e.square?(0,o.style)({right:(0,r.addUnit)(e.gutter),bottom:(0,r.addUnit)(e.gutter),height:"auto"}):""}},"./node_modules/@antmjs/vantui/es/grid/index.js":function(e,t,n){"use strict";var o=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),r=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),a=n("webpack/container/remote/react"),i=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),l=n("./node_modules/@antmjs/vantui/es/grid/wxs.js"),c=n("webpack/container/remote/react/jsx-runtime"),s=["gutter","clickable","columnNum","center","border","direction","iconSize","square","reverse","className","style"];t.default=function Grid(e){var t=e.gutter,n=void 0===t?null:t,u=e.clickable,d=e.columnNum,f=void 0===d?4:d,m=e.center,p=void 0===m||m,h=e.border,v=void 0===h||h,g=e.direction,b=e.iconSize,y=void 0===b?"48":b,j=e.square,w=e.reverse,x=void 0!==w&&w,_=e.className,S=void 0===_?"":_,k=e.style,C=void 0===k?{}:k,O=(0,o.default)(e,s),P=(0,a.useRef)([]),T=(0,a.useCallback)((function(){P.current.forEach((function(e){e.updateStyle()}))}),[]);(0,a.useEffect)((function(){T()}),[T]);var N=(0,a.useCallback)((function(e,t){P.current[e]=t}),[]),I=(0,a.useMemo)((function(){var e=[];return O.children&&Array.isArray(O.children)&&O.children.forEach((function(t,o){e.push((0,a.cloneElement)(t,{setChildrenInstance:N,key:o,index:o,parentInstance:{columnNum:f,border:v,square:j,gutter:n,clickable:u,center:p,direction:g,reverse:x,iconSize:y}}))})),e}),[O.children,f]);return(0,c.jsx)(r.View,{className:"van-grid "+(v&&!n?"van-hairline--top":"")+" "+S,style:i.style([l.rootStyle({gutter:n}),C]),children:I})}},"./node_modules/@antmjs/vantui/es/grid/wxs.js":function(e,t,n){"use strict";n.d(t,{rootStyle:function(){return rootStyle}});var o=n("./node_modules/@antmjs/vantui/es/wxs/style.js"),r=n("./node_modules/@antmjs/vantui/es/wxs/add-unit.js");function rootStyle(e){return(0,o.style)({"padding-left":(0,r.addUnit)(e.gutter)})}},"./node_modules/@antmjs/vantui/es/notice-bar/index.js":function(e,t,n){"use strict";var o=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),a=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),i=n("webpack/container/remote/@tarojs/taro"),l=n("webpack/container/remote/react"),c=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),s=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),u=n("./node_modules/@antmjs/vantui/es/common/utils.js"),d=n("./node_modules/@antmjs/vantui/es/icon/index.js"),f=n("./node_modules/@antmjs/vantui/es/notice-bar/wxs.js"),m=n("webpack/container/remote/react/jsx-runtime"),p=["text","mode","url","openType","delay","speed","scrollable","leftIcon","color","backgroundColor","background","wrapable","renderLeftIcon","renderRightIcon","onClick","onClose","style","className","children"];function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _objectSpread(e){for(var t=1;t0&&void 0!==arguments[0]&&arguments[0];b.current.timer&&clearTimeout(b.current.timer),b.current.timer=null,v((function(t){return _objectSpread(_objectSpread({},t),{},{animationData:b.current.resetAnimation.translateX(e?0:b.current.wrapWidth).step().export()})})),setTimeout((function(){(0,u.requestAnimationFrame)((function(){v((function(e){return _objectSpread(_objectSpread({},e),{},{animationData:b.current.animation.translateX(-b.current.contentWidth).step().export()})}))}))}),10),b.current.timer=setTimeout((function(){U()}),b.current.duration)}),[]),$=(0,l.useCallback)((function(){(0,u.requestAnimationFrame)((function(){Promise.all([(0,u.getRect)(null,".van-notice-bar__content_".concat(o.unitag)),(0,u.getRect)(null,".van-notice-bar__wrap_".concat(o.unitag))]).then((function(e){var t=e[0],n=e[1];null!=t&&null!=n&&t.width&&n.width&&!1!==E&&(0,i.nextTick)((function(){(E||n.width<=t.width)&&(b.current.wrapWidth=n.width,b.current.contentWidth=t.width,b.current.duration=(n.width+t.width)/N*1e3,b.current.animation=(0,i.createAnimation)({duration:b.current.duration,timingFunction:"linear",delay:P}),U(!0))}))}))}))}),[o.unitag,E,N,P,U]),J=(0,l.useCallback)((function(e){"closeable"===x&&(b.current.timer&&clearTimeout(b.current.timer),b.current.timer=null,v((function(e){return _objectSpread(_objectSpread({},e),{},{show:!1})})),null==Y||Y(e))}),[x,Y]);return o.show&&(0,m.jsxs)(c.View,_objectSpread(_objectSpread({className:s.bem("notice-bar",{withicon:x,wrapable:G})+" ".concat(X||""),style:s.style([f.rootStyle({color:L,backgroundColor:M,background:R}),W])},B),{},{onClick:K,children:[D?(0,m.jsx)(d.default,{name:D,className:"van-notice-bar__left-icon"}):z,(0,m.jsx)(c.View,{className:"van-notice-bar__wrap van-notice-bar__wrap_".concat(o.unitag),children:(0,m.jsxs)(c.View,{className:"van-notice-bar__content van-notice-bar__content_".concat(o.unitag," ")+(!1!==E||G?"":"van-ellipsis"),animation:o.animationData,children:[j,!j&&H]})}),"closeable"===x?(0,m.jsx)(d.default,{className:"van-notice-bar__right-icon",name:"cross",onClick:J}):"link"===x?(0,m.jsx)(c.Navigator,{url:S,openType:C,children:(0,m.jsx)(d.default,{className:"van-notice-bar__right-icon",name:"arrow"})}):q]}))}},"./node_modules/@antmjs/vantui/es/notice-bar/wxs.js":function(e,t,n){"use strict";n.d(t,{rootStyle:function(){return rootStyle}});var o=n("./node_modules/@antmjs/vantui/es/wxs/style.js");function rootStyle(e){return(0,o.style)({color:e.color,"background-color":e.backgroundColor,background:e.background})}},"./node_modules/@antmjs/vantui/es/search/index.js":function(e,t,n){"use strict";var o=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),a=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),i=n("webpack/container/remote/react"),l=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),c=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),s=n("./node_modules/@antmjs/vantui/es/field/index.js"),u=n("webpack/container/remote/react/jsx-runtime"),d=["value","defaultValue","label","focus","error","disabled","readonly","inputAlign","showAction","leftIcon","rightIcon","placeholder","placeholderStyle","actionText","background","maxlength","shape","clearable","clearTrigger","clearIcon","renderLabel","renderLeftIcon","renderRightIcon","renderAction","onFocus","onBlur","onChange","onClear","onClickInput","onSearch","onCancel","style","className"];function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _objectSpread(e){for(var t=1;t=fe&&xe({pace:-fe})},ye=function prev(){be(),Oe(),ke((function(){ke((function(){T.current.moving=!1,xe({pace:-1,isEmit:!0})}))}))},je=function next(){be(),Oe(),ke((function(){ke((function(){T.current.moving=!1,xe({pace:1,isEmit:!0})}))}))},we=function to(e){be(),Oe(),ke((function(){ke((function(){var t;T.current.moving=!1,t=c.loop&&fe===e?0===R?0:e:e%fe,xe({pace:t-R,isEmit:!0})}))}))},xe=function move(e){var t=e.pace,n=void 0===t?0:t,o=e.offset,r=void 0===o?0:o,a=e.isEmit,i=void 0!==a&&a;if(!(fe<=1)){var l=_e(n),s=Se(l,r);if(c.loop){if(Array.isArray(d)&&d[0]&&s!==he){var u=s0;te[fe-1]=f?-me:0}ne(te)}i&&R!==l&&c.onChange&&c.onChange((l+fe)%fe),R=l,G(l),Q(s),Te(s)}},_e=function getActive(e){if(e){var t=R+e;return c.loop?Ce(t,-1,fe):Ce(t,0,fe-1)}return R},Se=function getOffset(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e*Number(le);c.loop||(n=Math.min(n,-he));var o=t-n;return c.loop||(o=Ce(o,he,0)),o},ke=function requestFrame(e){b.requestAnimationFrame.call(b,e)},Ce=function range(e,t,n){return Math.min(Math.max(e,t),n)},Oe=function touchReset(){se.startX=0,se.startY=0,se.deltaX=0,se.deltaY=0,se.offsetX=0,se.offsetY=0,se.delta=0,se.stateDirection="",se.touchTime=0},Pe=f()((n={},(0,i.default)(n,"van-swiper__inner",!0),(0,i.default)(n,"van-swiper__vertical",E),n)),Te=function getStyle(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:J,t=P.current,n=0;if(S){var o=E?H:K,r=E?(null==F?void 0:F.height)-o:(null==F?void 0:F.width)-o;n=e+(R!==fe-1||c.loop?r/2:-r/2)}else n=e;t.style.transitionDuration="".concat(T.current.moving?0:c.duration,"ms"),t.style[E?"height":"width"]="".concat(Number(le)*fe,"px"),t.style[E?"width":"height"]="".concat(E?K:H,"px"),t.style.transform="translate3D".concat(E?"(0,".concat(n,"px,0)"):"(".concat(n,"px,0,0)"))};(0,u.useEffect)((function(){T.current.activePagination=(R+fe)%fe}),[R]);var Ne=function queryRect(e){return new Promise((function(t){var n=(0,m.createSelectorQuery)();n.select("#".concat(e.id))&&n.select("#".concat(e.id)).boundingClientRect(),n.exec((function(e){t(e[0])}))}))},Ie=function(){var e=(0,o.default)(s().mark((function _callee(){var e,t,n,o,r,a,i=arguments;return s().wrap((function _callee$(l){for(;;)switch(l.prev=l.next){case 0:return e=i.length>0&&void 0!==i[0]?i[0]:+c.initPage,l.next=3,Ne(O.current);case 3:t=l.sent,n=Math.max(Math.min(fe-1,e),0),o=c.width?+c.width:null==t?void 0:t.width,r=c.height?+c.height:null==t?void 0:t.height,le=E?r:o,me=fe*Number(le),a=Se(n),T.current.moving=!0,ae&&(T.current.moving=!1),L(t),G(n),Y(o),B(r),Q(a),ie(!0);case 18:case"end":return l.stop()}}),_callee)})));return function init(){return e.apply(this,arguments)}}();(0,u.useEffect)((function(){ae&&Te()}),[E,K,H,J,ae]),(0,u.useEffect)((function(){return function(){ie(!1)}}),[]),(0,u.useEffect)((function(){ve(),ge()}),[d]),(0,u.useEffect)((function(){Ie()}),[c.initPage]),(0,u.useEffect)((function(){return function(){ve()}}),[]),(0,m.useReady)((function(){Ie(),p().nextTick((function(){setTimeout((function(){ve(),ge()}),16)}))}));var Ee=function itemStyle(e){var t={},n=c.direction||w,o=le;o&&(t["horizontal"===n?"width":"height"]="".concat(o,"px"));var r=te[e];return r&&(t.transform="translate3D".concat("horizontal"===n?"(".concat(r,"px,0,0)"):"(0,".concat(r,"px,0)"))),t};return(0,u.useImperativeHandle)(t,(function(){return{to:we,next:je,prev:ye}})),(0,g.jsx)(v.DataContext.Provider,{value:pe,children:(0,g.jsxs)(h.View,_objectSpread(_objectSpread({className:"van-swiper ".concat(x),ref:O},C),{},{id:"container-"+I,onTouchStart:function onTouchStart(e){c.isPreventDefault&&e.preventDefault(),c.isStopPropagation&&e.stopPropagation(),c.touchable&&(!function touchStart(e){var t,n;Oe(),se.startX=(null==e||null===(t=e.touches[0])||void 0===t?void 0:t.clientX)||0,se.startY=(null==e||null===(n=e.touches[0])||void 0===n?void 0:n.clientY)||0}(e),se.touchTime=Date.now(),ve(),be())},onTouchMove:function onTouchMove(e){c.touchable&&T.current.moving&&(!function touchMove(e){var t,n;se.deltaX=((null==e||null===(t=e.touches[0])||void 0===t?void 0:t.clientX)||0)-se.startX,se.deltaY=((null==e||null===(n=e.touches[0])||void 0===n?void 0:n.clientY)||0)-se.startY,se.offsetX=Math.abs(se.deltaX),se.offsetY=Math.abs(se.deltaY),se.delta=E?se.deltaY:se.deltaX,se.stateDirection||(se.stateDirection=function getDirection(e,t){return e>t&&e>5?"horizontal":t>e&&t>5?"vertical":""}(se.offsetX,se.offsetY))}(e),se.stateDirection===c.direction&&xe({offset:se.delta}))},onTouchEnd:function onTouchEnd(){if(c.touchable&&T.current.moving){var e=se.delta/(Date.now()-se.touchTime),t=Math.abs(e)>.3||Math.abs(se.delta)>+(le/2).toFixed(2),n=0;if(T.current.moving=!1,t&&se.stateDirection===c.direction){var o=E?se.offsetY:se.offsetX;n=c.loop?o>0?se.delta>0?-1:1:0:-Math[se.delta>0?"ceil":"floor"](se.delta/le),xe({pace:n,isEmit:!0})}else se.delta?xe({pace:0}):Te();ge()}},catchMove:E,style:_objectSpread(_objectSpread({},k),{},{height:H}),children:[(0,g.jsxs)(h.View,{className:Pe,ref:P,children:[u.Children.map(de,(function(e,t){return(0,g.jsx)(h.View,{className:"van-swiper-item-wrapper",style:Ee(t),children:e},t)})),(0,g.jsx)(h.View,{className:"van-swiper-item-wrapper",style:Ee(0),children:de&&de.length?de[0]:""})]}),c.paginationVisible&&!("pageContent"in c)?(0,g.jsx)(h.View,{className:f()((l={},(0,i.default)(l,"van-swiper__pagination",!0),(0,i.default)(l,"van-swiper__pagination-vertical",E),l)),children:u.Children.map(de,(function(e,t){var n;return(0,g.jsx)(h.Text,{style:(R+fe)%fe===t?{backgroundColor:c.paginationColor}:void 0,className:f()((n={},(0,i.default)(n,"van-swiper__pagination-item",!0),(0,i.default)(n,"active",(R+fe)%fe===t),n))},t)}))}):(0,g.jsx)(h.View,{children:_})]}))})},x=(0,u.forwardRef)(w);t.default=x},"./node_modules/@antmjs/vantui/es/utils/index.js":function(e,t,n){"use strict";n.d(t,{resizeTextarea:function(){return resizeTextarea}});n("./node_modules/@babel/runtime/helpers/esm/typeof.js"),n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),n("webpack/container/remote/react"),n("webpack/container/remote/@tarojs/taro");var o=n("./node_modules/@antmjs/vantui/es/utils/type.js"),r=n("webpack/container/remote/@tarojs/runtime").window,a=n("webpack/container/remote/@tarojs/runtime").document;function setScrollTop(e,t){"scrollTop"in e?e.scrollTop=t:e.scrollTo(e.scrollX,t)}function resizeTextarea(e,t){var n=function getRootScrollTop(){return r.pageYOffset||a.documentElement.scrollTop||a.body.scrollTop||0}();e.style.height="auto",e.style.lineHeight="inherit",e.rows=1;var i=e.scrollHeight;if(console.info(i),(0,o.isObject)(t)){var l=t.maxHeight,c=t.minHeight;void 0!==l&&(i=Math.min(i,"number"==typeof l?l:Number(l.replace("px","")))),void 0!==c&&(i=Math.max(i,"number"==typeof c?c:Number(c.replace("px",""))))}i&&(e.style.height="".concat(i,"px"),function setRootScrollTop(e){setScrollTop(r,e),setScrollTop(a.body,e)}(n))}},"./node_modules/classnames/index.js":function(e,t,n){var o,r=n("webpack/container/remote/@tarojs/runtime").window,a=n("./node_modules/@babel/runtime/helpers/typeof.js").default;!function(){"use strict";var i={}.hasOwnProperty;function classNames(){for(var e=[],t=0;t0&&(null!==(P=null==Z||null===(T=Z[0])||void 0===T?void 0:T.imagesArr)&&void 0!==P?P:[]).map((function(e,t){return(0,C.jsx)(i.default,{children:(0,C.jsx)(l.default,{src:null==e?void 0:e.url,fit:"cover",width:"100%",height:"200px"})},"swiper#demo1".concat(t))}))})}),(0,C.jsxs)(o.default,{children:[(0,C.jsx)(r.default,{icon:"star",text:"打卡",className:"iconStyle",onClick:(0,v.default)((0,h.default)().mark((function _callee8(){var e;return(0,h.default)().wrap((function _callee8$(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,S.phoneLogin)();case 2:e=t.sent,ce(!0),console.log("isin",e),e?x().getLocation({type:"gcj02",success:function success(e){console.log("lbs",e);null==e||e.latitude,null==e||e.longitude;var t={latitude:null==e?void 0:e.latitude,longitude:null==e?void 0:e.longitude};fe(t)},fail:function fail(){m.default.fail({message:"定位授权异常,无法签到打卡",selector:"#vanToast-demo2"})}}):m.default.fail({message:"请先登录",selector:"#vanToast-demo2"});case 6:case"end":return t.stop()}}),_callee8)})))}),(0,C.jsx)(r.default,{icon:"like",className:"iconStyle",text:"深圳十峰",onClick:function onClick(){x().navigateTo({url:"/pages/mountainPeak/index"})}}),(0,C.jsx)(r.default,{icon:"eye",className:"iconStyle",text:"活动",onClick:function onClick(){x().navigateTo({url:"/pages/activityList/index"})}}),(0,C.jsx)(r.default,{icon:"manager",className:"iconStyle",text:"组队",onClick:function onClick(){m.default.fail({message:"参加1次活动后,可发起组队",selector:"#vanToast-demo2"})}})]}),(null==U?void 0:U.length)>0&&(0,C.jsx)(b.View,{children:(null!==(N=null==U||null===(I=U.reverse())||void 0===I?void 0:I.splice(0,2))&&void 0!==N?N:[]).map((function(e,t){return(0,C.jsx)(b.View,{onClick:function onClick(){console.log("Card"),x().navigateTo({url:"/pages/activityList/components/details/index?id=".concat(null==e?void 0:e._id)})},children:(0,C.jsx)(k.default,{dataSource:e})})}))}),(0,C.jsxs)(b.View,{style:{marginTop:"20px"},children:[" ",(0,C.jsx)(b.OfficialAccount,{onLoad:function onLoad(e){console.log("加载成功",e)},onError:function onError(e){console.log("加载失败",e)}})]}),(0,C.jsx)(m.default,{id:"vanToast-demo2"}),(0,C.jsx)(_.default,{active:0})]})}},"./src/pages/home/index.tsx":function(e,t,n){"use strict";var o=n("webpack/container/remote/@tarojs/runtime"),r=n("./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[9].use[1]!./src/pages/home/index.tsx");r.default.enableShareTimeline=!0,r.default.enableShareAppMessage=!0;Page((0,o.createPageConfig)(r.default,"pages/home/index",{root:{cn:[]}},{navigationBarTitleText:"首页"}||{}))},"./node_modules/@babel/runtime/helpers/regeneratorRuntime.js":function(e,t,n){var o=n("./node_modules/@babel/runtime/helpers/typeof.js").default;function _regeneratorRuntime(){"use strict";e.exports=_regeneratorRuntime=function _regeneratorRuntime(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},l=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function define(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{define({},"")}catch(e){define=function define(e,t,n){return e[t]=n}}function wrap(e,t,n,o){var r=t&&t.prototype instanceof Generator?t:Generator,i=Object.create(r.prototype),l=new Context(o||[]);return a(i,"_invoke",{value:makeInvokeMethod(e,n,l)}),i}function tryCatch(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=wrap;var u={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var d={};define(d,l,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(values([])));m&&m!==n&&r.call(m,l)&&(d=m);var p=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(d);function defineIteratorMethods(e){["next","throw","return"].forEach((function(t){define(e,t,(function(e){return this._invoke(t,e)}))}))}function AsyncIterator(e,t){function invoke(n,a,i,l){var c=tryCatch(e[n],e,a);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==o(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){invoke("next",e,i,l)}),(function(e){invoke("throw",e,i,l)})):t.resolve(u).then((function(e){s.value=e,i(s)}),(function(e){return invoke("throw",e,i,l)}))}l(c.arg)}var n;a(this,"_invoke",{value:function value(e,o){function callInvokeWithMethodAndArg(){return new t((function(t,n){invoke(e,o,t,n)}))}return n=n?n.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,t,n){var o="suspendedStart";return function(r,a){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===r)throw a;return doneResult()}for(n.method=r,n.arg=a;;){var i=n.delegate;if(i){var l=maybeInvokeDelegate(i,n);if(l){if(l===u)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var c=tryCatch(e,t,n);if("normal"===c.type){if(o=n.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o="completed",n.method="throw",n.arg=c.arg)}}}function maybeInvokeDelegate(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,maybeInvokeDelegate(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var o=tryCatch(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,u;var r=o.arg;return r?r.done?(t[e.resultName]=r.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):r:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function pushTryEntry(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function resetTryEntry(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function Context(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function next(){for(;++n=0;--n){var o=this.tryEntries[n],a=o.completion;if("root"===o.tryLoc)return handle("end");if(o.tryLoc<=this.prev){var i=r.call(o,"catchLoc"),l=r.call(o,"finallyLoc");if(i&&l){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),resetTryEntry(n),u}},catch:function _catch(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;resetTryEntry(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,t,n){return this.delegate={iterator:values(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},t}e.exports=_regeneratorRuntime,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/regenerator/index.js":function(e,t,n){var o=n("./node_modules/@babel/runtime/helpers/regeneratorRuntime.js")();e.exports=o;try{regeneratorRuntime=o}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=o:Function("r","regeneratorRuntime = r")(o)}}},function(e){e.O(0,["taro","vendors","common"],(function(){return t="./src/pages/home/index.tsx",e(e.s=t);var t}));e.O()}]);