diff --git a/dist/pages/home/index.js b/dist/pages/home/index.js index d520f3f..4952558 100644 --- a/dist/pages/home/index.js +++ b/dist/pages/home/index.js @@ -1,2 +1,2 @@ /*! 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"),s=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),c=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=Y}),children:g.length>=Y?Y:g.length}),"/"+Y]}),$&&(0,f.jsx)(l.View,{className:s.bem("field__error-message",[W,{disabled:V,error:U}]),children:$})]})}},"./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"),s=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),c=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,v=e.dot,h=e.info,b=e.badge,g=e.text,j=e.setChildrenInstance,y=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(){j(w,{updateStyle:I})}),[w,j]),(0,i.useEffect)((function(){I()}),[y.columnNum]);var I=(0,i.useCallback)((function(){var e=y.columnNum,t=y.border,n=y.square,o=y.gutter,r=y.clickable,a=y.center,i=y.direction,l=y.reverse,s=y.iconSize;N({center:a,border:t,square:n,gutter:o,clickable:r,direction:i,reverse:l,iconSize:s,index:w,columnNum:e})}),[y,w]);return(0,d.jsx)(a.View,{className:" "+s.bem("grid-item",{square:null==T?void 0:T.square})+" "+k,style:s.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 "+s.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)(c.default,{name:t,color:n,classPrefix:p,dot:v,info:b||h,size:null==T?void 0:T.iconSize}):T.renderIcon}),(0,d.jsx)(a.View,{className:"van-grid-item__text text-class",children:g?(0,d.jsx)(a.Text,{children:g}):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"),s=n("webpack/container/remote/react/jsx-runtime"),c=["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,v=e.border,h=void 0===v||v,b=e.direction,g=e.iconSize,j=void 0===g?"48":g,y=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,c),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:h,square:y,gutter:n,clickable:u,center:p,direction:b,reverse:x,iconSize:j}}))})),e}),[O.children,f]);return(0,s.jsx)(r.View,{className:"van-grid "+(h&&!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"),s=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),c=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];g.current.timer&&clearTimeout(g.current.timer),g.current.timer=null,h((function(t){return _objectSpread(_objectSpread({},t),{},{animationData:g.current.resetAnimation.translateX(e?0:g.current.wrapWidth).step().export()})})),setTimeout((function(){(0,u.requestAnimationFrame)((function(){h((function(e){return _objectSpread(_objectSpread({},e),{},{animationData:g.current.animation.translateX(-g.current.contentWidth).step().export()})}))}))}),10),g.current.timer=setTimeout((function(){$()}),g.current.duration)}),[]),Q=(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!==A&&(0,i.nextTick)((function(){(A||n.width<=t.width)&&(g.current.wrapWidth=n.width,g.current.contentWidth=t.width,g.current.duration=(n.width+t.width)/N*1e3,g.current.animation=(0,i.createAnimation)({duration:g.current.duration,timingFunction:"linear",delay:P}),$(!0))}))}))}))}),[o.unitag,A,N,P,$]),G=(0,l.useCallback)((function(e){"closeable"===x&&(g.current.timer&&clearTimeout(g.current.timer),g.current.timer=null,h((function(e){return _objectSpread(_objectSpread({},e),{},{show:!1})})),null==H||H(e))}),[x,H]);return o.show&&(0,m.jsxs)(s.View,_objectSpread(_objectSpread({className:c.bem("notice-bar",{withicon:x,wrapable:R})+" ".concat(B||""),style:c.style([f.rootStyle({color:F,backgroundColor:M,background:L}),Y])},U),{},{onClick:X,children:[D?(0,m.jsx)(d.default,{name:D,className:"van-notice-bar__left-icon"}):q,(0,m.jsx)(s.View,{className:"van-notice-bar__wrap van-notice-bar__wrap_".concat(o.unitag),children:(0,m.jsxs)(s.View,{className:"van-notice-bar__content van-notice-bar__content_".concat(o.unitag," ")+(!1!==A||R?"":"van-ellipsis"),animation:o.animationData,children:[y,!y&&W]})}),"closeable"===x?(0,m.jsx)(d.default,{className:"van-notice-bar__right-icon",name:"cross",onClick:G}):"link"===x?(0,m.jsx)(s.Navigator,{url:S,openType:C,children:(0,m.jsx)(d.default,{className:"van-notice-bar__right-icon",name:"arrow"})}):K]}))}},"./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"),s=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),c=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})},je=function prev(){ge(),Oe(),ke((function(){ke((function(){T.current.moving=!1,xe({pace:-1,isEmit:!0})}))}))},ye=function next(){ge(),Oe(),ke((function(){ke((function(){T.current.moving=!1,xe({pace:1,isEmit:!0})}))}))},we=function to(e){ge(),Oe(),ke((function(){ke((function(){var t;T.current.moving=!1,t=s.loop&&fe===e?0===L?0:e:e%fe,xe({pace:t-L,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),c=Se(l,r);if(s.loop){if(Array.isArray(d)&&d[0]&&c!==ve){var u=c0;te[fe-1]=f?-me:0}ne(te)}i&&L!==l&&s.onChange&&s.onChange((l+fe)%fe),L=l,R(l),J(c),Te(c)}},_e=function getActive(e){if(e){var t=L+e;return s.loop?Ce(t,-1,fe):Ce(t,0,fe-1)}return L},Se=function getOffset(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e*Number(le);s.loop||(n=Math.min(n,-ve));var o=t-n;return s.loop||(o=Ce(o,ve,0)),o},ke=function requestFrame(e){g.requestAnimationFrame.call(g,e)},Ce=function range(e,t,n){return Math.min(Math.max(e,t),n)},Oe=function touchReset(){ce.startX=0,ce.startY=0,ce.deltaX=0,ce.deltaY=0,ce.offsetX=0,ce.offsetY=0,ce.delta=0,ce.stateDirection="",ce.touchTime=0},Pe=f()((n={},(0,i.default)(n,"van-swiper__inner",!0),(0,i.default)(n,"van-swiper__vertical",A),n)),Te=function getStyle(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:G,t=P.current,n=0;if(S){var o=A?W:X,r=A?(null==V?void 0:V.height)-o:(null==V?void 0:V.width)-o;n=e+(L!==fe-1||s.loop?r/2:-r/2)}else n=e;t.style.transitionDuration="".concat(T.current.moving?0:s.duration,"ms"),t.style[A?"height":"width"]="".concat(Number(le)*fe,"px"),t.style[A?"width":"height"]="".concat(A?X:W,"px"),t.style.transform="translate3D".concat(A?"(0,".concat(n,"px,0)"):"(".concat(n,"px,0,0)"))};(0,u.useEffect)((function(){T.current.activePagination=(L+fe)%fe}),[L]);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)(c().mark((function _callee(){var e,t,n,o,r,a,i=arguments;return c().wrap((function _callee$(l){for(;;)switch(l.prev=l.next){case 0:return e=i.length>0&&void 0!==i[0]?i[0]:+s.initPage,l.next=3,Ne(O.current);case 3:t=l.sent,n=Math.max(Math.min(fe-1,e),0),o=s.width?+s.width:null==t?void 0:t.width,r=s.height?+s.height:null==t?void 0:t.height,le=A?r:o,me=fe*Number(le),a=Se(n),T.current.moving=!0,ae&&(T.current.moving=!1),F(t),R(n),H(o),U(r),J(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()}),[A,X,W,G,ae]),(0,u.useEffect)((function(){return function(){ie(!1)}}),[]),(0,u.useEffect)((function(){he(),be()}),[d]),(0,u.useEffect)((function(){Ie()}),[s.initPage]),(0,u.useEffect)((function(){return function(){he()}}),[]),(0,m.useReady)((function(){Ie(),p().nextTick((function(){setTimeout((function(){he(),be()}),16)}))}));var Ae=function itemStyle(e){var t={},n=s.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:ye,prev:je}})),(0,b.jsx)(h.DataContext.Provider,{value:pe,children:(0,b.jsxs)(v.View,_objectSpread(_objectSpread({className:"van-swiper ".concat(x),ref:O},C),{},{id:"container-"+I,onTouchStart:function onTouchStart(e){s.isPreventDefault&&e.preventDefault(),s.isStopPropagation&&e.stopPropagation(),s.touchable&&(!function touchStart(e){var t,n;Oe(),ce.startX=(null==e||null===(t=e.touches[0])||void 0===t?void 0:t.clientX)||0,ce.startY=(null==e||null===(n=e.touches[0])||void 0===n?void 0:n.clientY)||0}(e),ce.touchTime=Date.now(),he(),ge())},onTouchMove:function onTouchMove(e){s.touchable&&T.current.moving&&(!function touchMove(e){var t,n;ce.deltaX=((null==e||null===(t=e.touches[0])||void 0===t?void 0:t.clientX)||0)-ce.startX,ce.deltaY=((null==e||null===(n=e.touches[0])||void 0===n?void 0:n.clientY)||0)-ce.startY,ce.offsetX=Math.abs(ce.deltaX),ce.offsetY=Math.abs(ce.deltaY),ce.delta=A?ce.deltaY:ce.deltaX,ce.stateDirection||(ce.stateDirection=function getDirection(e,t){return e>t&&e>5?"horizontal":t>e&&t>5?"vertical":""}(ce.offsetX,ce.offsetY))}(e),ce.stateDirection===s.direction&&xe({offset:ce.delta}))},onTouchEnd:function onTouchEnd(){if(s.touchable&&T.current.moving){var e=ce.delta/(Date.now()-ce.touchTime),t=Math.abs(e)>.3||Math.abs(ce.delta)>+(le/2).toFixed(2),n=0;if(T.current.moving=!1,t&&ce.stateDirection===s.direction){var o=A?ce.offsetY:ce.offsetX;n=s.loop?o>0?ce.delta>0?-1:1:0:-Math[ce.delta>0?"ceil":"floor"](ce.delta/le),xe({pace:n,isEmit:!0})}else ce.delta?xe({pace:0}):Te();be()}},catchMove:A,style:_objectSpread(_objectSpread({},k),{},{height:W}),children:[(0,b.jsxs)(v.View,{className:Pe,ref:P,children:[u.Children.map(de,(function(e,t){return(0,b.jsx)(v.View,{className:"van-swiper-item-wrapper",style:Ae(t),children:e},t)})),(0,b.jsx)(v.View,{className:"van-swiper-item-wrapper",style:Ae(0),children:de&&de.length?de[0]:""})]}),s.paginationVisible&&!("pageContent"in s)?(0,b.jsx)(v.View,{className:f()((l={},(0,i.default)(l,"van-swiper__pagination",!0),(0,i.default)(l,"van-swiper__pagination-vertical",A),l)),children:u.Children.map(de,(function(e,t){var n;return(0,b.jsx)(v.Text,{style:(L+fe)%fe===t?{backgroundColor:s.paginationColor}:void 0,className:f()((n={},(0,i.default)(n,"van-swiper__pagination-item",!0),(0,i.default)(n,"active",(L+fe)%fe===t),n))},t)}))}):(0,b.jsx)(v.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,s=t.minHeight;void 0!==l&&(i=Math.min(i,"number"==typeof l?l:Number(l.replace("px","")))),void 0!==s&&(i=Math.max(i,"number"==typeof s?s:Number(s.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!==(T=null==ee||null===(N=ee[0])||void 0===N?void 0:N.imagesArr)&&void 0!==T?T:[]).map((function(e,t){return(0,O.jsx)(l.default,{children:(0,O.jsx)(s.default,{src:null==e?void 0:e.url,fit:"cover",width:"100%",height:"200px"})},"swiper#demo1".concat(t))}))})}),(0,O.jsxs)(r.default,{children:[(0,O.jsx)(a.default,{icon:"star",text:"打卡",className:"iconStyle",onClick:(0,b.default)((0,h.default)().mark((function _callee9(){return(0,h.default)().wrap((function _callee9$(e){for(;;)switch(e.prev=e.next){case 0:if(!se){e.next=4;break}_().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};pe(t)},fail:function fail(){p.default.fail({message:"定位授权异常,无法签到打卡",selector:"#vanToast-demo2"})}}),e.next=7;break;case 4:return e.next=6,de();case 6:p.default.fail({message:"请先登录",selector:"#vanToast-demo2",duration:2e3,onClose:function onClose(){_().navigateTo({url:"/pages/my/index"})}});case 7:case"end":return e.stop()}}),_callee9)})))}),(0,O.jsx)(a.default,{icon:"like",className:"iconStyle",text:"深圳十峰",onClick:function onClick(){_().navigateTo({url:"/pages/mountainPeak/index"})}}),(0,O.jsx)(a.default,{icon:"eye",className:"iconStyle",text:"活动",onClick:function onClick(){_().navigateTo({url:"/pages/activityList/index"})}}),(0,O.jsx)(a.default,{icon:"manager",className:"iconStyle",text:"组队",onClick:function onClick(){p.default.fail({message:"参加1次活动后,可发起组队",selector:"#vanToast-demo2"})}})]}),(null==Q?void 0:Q.length)>0?(0,O.jsx)(j.View,{children:(null!==(I=null==Q||null===(A=Q.reverse())||void 0===A?void 0:A.splice(0,2))&&void 0!==I?I:[]).map((function(e,t){return(0,O.jsx)(j.View,{onClick:function onClick(){console.log("Card"),_().navigateTo({url:"/pages/activityList/components/details/index?id=".concat(null==e?void 0:e._id)})},children:(0,O.jsx)(C.default,{dataSource:e})})}))}):(0,O.jsx)(o.default,{title:!0,row:4}),(0,O.jsxs)(j.View,{style:{marginTop:"20px"},children:[" ",(0,O.jsx)(j.OfficialAccount,{onLoad:function onLoad(e){console.log("加载成功",e)},onError:function onError(e){console.log("加载失败",e)}})]}),(0,O.jsx)(p.default,{id:"vanToast-demo2"}),(0,O.jsx)(j.View,{onClick:function onClick(){_().openChannelsActivity({finderUserName:"sphqzUmI0BlppCI",feedId:"export/UzFfAgtgekIEAQAAAAAAeIIQA5S-0wAAAAstQy6ubaLX4KHWvLEZgBPEj6MUcExXaL37zNPgMJpEUVVnZ9njxR_hb9_u-bQj",success:function success(e){console.log("res",e)}})},children:"打开视频号"}),(0,O.jsx)(S.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:"首页"}||{}))}},function(e){e.O(0,["taro","vendors","common"],(function(){return t="./src/pages/home/index.tsx",e(e.s=t);var t}));e.O()}]); \ No newline at end of file +(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"),s=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),c=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=Y}),children:g.length>=Y?Y:g.length}),"/"+Y]}),$&&(0,f.jsx)(l.View,{className:s.bem("field__error-message",[W,{disabled:V,error:U}]),children:$})]})}},"./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"),s=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),c=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,v=e.dot,h=e.info,b=e.badge,g=e.text,j=e.setChildrenInstance,y=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(){j(w,{updateStyle:I})}),[w,j]),(0,i.useEffect)((function(){I()}),[y.columnNum]);var I=(0,i.useCallback)((function(){var e=y.columnNum,t=y.border,n=y.square,o=y.gutter,r=y.clickable,a=y.center,i=y.direction,l=y.reverse,s=y.iconSize;N({center:a,border:t,square:n,gutter:o,clickable:r,direction:i,reverse:l,iconSize:s,index:w,columnNum:e})}),[y,w]);return(0,d.jsx)(a.View,{className:" "+s.bem("grid-item",{square:null==T?void 0:T.square})+" "+k,style:s.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 "+s.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)(c.default,{name:t,color:n,classPrefix:p,dot:v,info:b||h,size:null==T?void 0:T.iconSize}):T.renderIcon}),(0,d.jsx)(a.View,{className:"van-grid-item__text text-class",children:g?(0,d.jsx)(a.Text,{children:g}):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"),s=n("webpack/container/remote/react/jsx-runtime"),c=["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,v=e.border,h=void 0===v||v,b=e.direction,g=e.iconSize,j=void 0===g?"48":g,y=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,c),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:h,square:y,gutter:n,clickable:u,center:p,direction:b,reverse:x,iconSize:j}}))})),e}),[O.children,f]);return(0,s.jsx)(r.View,{className:"van-grid "+(h&&!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"),s=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),c=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];g.current.timer&&clearTimeout(g.current.timer),g.current.timer=null,h((function(t){return _objectSpread(_objectSpread({},t),{},{animationData:g.current.resetAnimation.translateX(e?0:g.current.wrapWidth).step().export()})})),setTimeout((function(){(0,u.requestAnimationFrame)((function(){h((function(e){return _objectSpread(_objectSpread({},e),{},{animationData:g.current.animation.translateX(-g.current.contentWidth).step().export()})}))}))}),10),g.current.timer=setTimeout((function(){$()}),g.current.duration)}),[]),Q=(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!==A&&(0,i.nextTick)((function(){(A||n.width<=t.width)&&(g.current.wrapWidth=n.width,g.current.contentWidth=t.width,g.current.duration=(n.width+t.width)/N*1e3,g.current.animation=(0,i.createAnimation)({duration:g.current.duration,timingFunction:"linear",delay:P}),$(!0))}))}))}))}),[o.unitag,A,N,P,$]),G=(0,l.useCallback)((function(e){"closeable"===x&&(g.current.timer&&clearTimeout(g.current.timer),g.current.timer=null,h((function(e){return _objectSpread(_objectSpread({},e),{},{show:!1})})),null==H||H(e))}),[x,H]);return o.show&&(0,m.jsxs)(s.View,_objectSpread(_objectSpread({className:c.bem("notice-bar",{withicon:x,wrapable:R})+" ".concat(B||""),style:c.style([f.rootStyle({color:F,backgroundColor:M,background:L}),Y])},U),{},{onClick:X,children:[D?(0,m.jsx)(d.default,{name:D,className:"van-notice-bar__left-icon"}):q,(0,m.jsx)(s.View,{className:"van-notice-bar__wrap van-notice-bar__wrap_".concat(o.unitag),children:(0,m.jsxs)(s.View,{className:"van-notice-bar__content van-notice-bar__content_".concat(o.unitag," ")+(!1!==A||R?"":"van-ellipsis"),animation:o.animationData,children:[y,!y&&W]})}),"closeable"===x?(0,m.jsx)(d.default,{className:"van-notice-bar__right-icon",name:"cross",onClick:G}):"link"===x?(0,m.jsx)(s.Navigator,{url:S,openType:C,children:(0,m.jsx)(d.default,{className:"van-notice-bar__right-icon",name:"arrow"})}):K]}))}},"./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"),s=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),c=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})},je=function prev(){ge(),Oe(),ke((function(){ke((function(){T.current.moving=!1,xe({pace:-1,isEmit:!0})}))}))},ye=function next(){ge(),Oe(),ke((function(){ke((function(){T.current.moving=!1,xe({pace:1,isEmit:!0})}))}))},we=function to(e){ge(),Oe(),ke((function(){ke((function(){var t;T.current.moving=!1,t=s.loop&&fe===e?0===L?0:e:e%fe,xe({pace:t-L,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),c=Se(l,r);if(s.loop){if(Array.isArray(d)&&d[0]&&c!==ve){var u=c0;te[fe-1]=f?-me:0}ne(te)}i&&L!==l&&s.onChange&&s.onChange((l+fe)%fe),L=l,R(l),J(c),Te(c)}},_e=function getActive(e){if(e){var t=L+e;return s.loop?Ce(t,-1,fe):Ce(t,0,fe-1)}return L},Se=function getOffset(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e*Number(le);s.loop||(n=Math.min(n,-ve));var o=t-n;return s.loop||(o=Ce(o,ve,0)),o},ke=function requestFrame(e){g.requestAnimationFrame.call(g,e)},Ce=function range(e,t,n){return Math.min(Math.max(e,t),n)},Oe=function touchReset(){ce.startX=0,ce.startY=0,ce.deltaX=0,ce.deltaY=0,ce.offsetX=0,ce.offsetY=0,ce.delta=0,ce.stateDirection="",ce.touchTime=0},Pe=f()((n={},(0,i.default)(n,"van-swiper__inner",!0),(0,i.default)(n,"van-swiper__vertical",A),n)),Te=function getStyle(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:G,t=P.current,n=0;if(S){var o=A?W:X,r=A?(null==V?void 0:V.height)-o:(null==V?void 0:V.width)-o;n=e+(L!==fe-1||s.loop?r/2:-r/2)}else n=e;t.style.transitionDuration="".concat(T.current.moving?0:s.duration,"ms"),t.style[A?"height":"width"]="".concat(Number(le)*fe,"px"),t.style[A?"width":"height"]="".concat(A?X:W,"px"),t.style.transform="translate3D".concat(A?"(0,".concat(n,"px,0)"):"(".concat(n,"px,0,0)"))};(0,u.useEffect)((function(){T.current.activePagination=(L+fe)%fe}),[L]);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)(c().mark((function _callee(){var e,t,n,o,r,a,i=arguments;return c().wrap((function _callee$(l){for(;;)switch(l.prev=l.next){case 0:return e=i.length>0&&void 0!==i[0]?i[0]:+s.initPage,l.next=3,Ne(O.current);case 3:t=l.sent,n=Math.max(Math.min(fe-1,e),0),o=s.width?+s.width:null==t?void 0:t.width,r=s.height?+s.height:null==t?void 0:t.height,le=A?r:o,me=fe*Number(le),a=Se(n),T.current.moving=!0,ae&&(T.current.moving=!1),F(t),R(n),H(o),U(r),J(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()}),[A,X,W,G,ae]),(0,u.useEffect)((function(){return function(){ie(!1)}}),[]),(0,u.useEffect)((function(){he(),be()}),[d]),(0,u.useEffect)((function(){Ie()}),[s.initPage]),(0,u.useEffect)((function(){return function(){he()}}),[]),(0,m.useReady)((function(){Ie(),p().nextTick((function(){setTimeout((function(){he(),be()}),16)}))}));var Ae=function itemStyle(e){var t={},n=s.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:ye,prev:je}})),(0,b.jsx)(h.DataContext.Provider,{value:pe,children:(0,b.jsxs)(v.View,_objectSpread(_objectSpread({className:"van-swiper ".concat(x),ref:O},C),{},{id:"container-"+I,onTouchStart:function onTouchStart(e){s.isPreventDefault&&e.preventDefault(),s.isStopPropagation&&e.stopPropagation(),s.touchable&&(!function touchStart(e){var t,n;Oe(),ce.startX=(null==e||null===(t=e.touches[0])||void 0===t?void 0:t.clientX)||0,ce.startY=(null==e||null===(n=e.touches[0])||void 0===n?void 0:n.clientY)||0}(e),ce.touchTime=Date.now(),he(),ge())},onTouchMove:function onTouchMove(e){s.touchable&&T.current.moving&&(!function touchMove(e){var t,n;ce.deltaX=((null==e||null===(t=e.touches[0])||void 0===t?void 0:t.clientX)||0)-ce.startX,ce.deltaY=((null==e||null===(n=e.touches[0])||void 0===n?void 0:n.clientY)||0)-ce.startY,ce.offsetX=Math.abs(ce.deltaX),ce.offsetY=Math.abs(ce.deltaY),ce.delta=A?ce.deltaY:ce.deltaX,ce.stateDirection||(ce.stateDirection=function getDirection(e,t){return e>t&&e>5?"horizontal":t>e&&t>5?"vertical":""}(ce.offsetX,ce.offsetY))}(e),ce.stateDirection===s.direction&&xe({offset:ce.delta}))},onTouchEnd:function onTouchEnd(){if(s.touchable&&T.current.moving){var e=ce.delta/(Date.now()-ce.touchTime),t=Math.abs(e)>.3||Math.abs(ce.delta)>+(le/2).toFixed(2),n=0;if(T.current.moving=!1,t&&ce.stateDirection===s.direction){var o=A?ce.offsetY:ce.offsetX;n=s.loop?o>0?ce.delta>0?-1:1:0:-Math[ce.delta>0?"ceil":"floor"](ce.delta/le),xe({pace:n,isEmit:!0})}else ce.delta?xe({pace:0}):Te();be()}},catchMove:A,style:_objectSpread(_objectSpread({},k),{},{height:W}),children:[(0,b.jsxs)(v.View,{className:Pe,ref:P,children:[u.Children.map(de,(function(e,t){return(0,b.jsx)(v.View,{className:"van-swiper-item-wrapper",style:Ae(t),children:e},t)})),(0,b.jsx)(v.View,{className:"van-swiper-item-wrapper",style:Ae(0),children:de&&de.length?de[0]:""})]}),s.paginationVisible&&!("pageContent"in s)?(0,b.jsx)(v.View,{className:f()((l={},(0,i.default)(l,"van-swiper__pagination",!0),(0,i.default)(l,"van-swiper__pagination-vertical",A),l)),children:u.Children.map(de,(function(e,t){var n;return(0,b.jsx)(v.Text,{style:(L+fe)%fe===t?{backgroundColor:s.paginationColor}:void 0,className:f()((n={},(0,i.default)(n,"van-swiper__pagination-item",!0),(0,i.default)(n,"active",(L+fe)%fe===t),n))},t)}))}):(0,b.jsx)(v.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,s=t.minHeight;void 0!==l&&(i=Math.min(i,"number"==typeof l?l:Number(l.replace("px","")))),void 0!==s&&(i=Math.max(i,"number"==typeof s?s:Number(s.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!==(T=null==ee||null===(N=ee[0])||void 0===N?void 0:N.imagesArr)&&void 0!==T?T:[]).map((function(e,t){return(0,O.jsx)(l.default,{children:(0,O.jsx)(s.default,{src:null==e?void 0:e.url,fit:"cover",width:"100%",height:"200px"})},"swiper#demo1".concat(t))}))})}),(0,O.jsxs)(r.default,{children:[(0,O.jsx)(a.default,{icon:"star",text:"打卡",className:"iconStyle",onClick:(0,b.default)((0,h.default)().mark((function _callee9(){return(0,h.default)().wrap((function _callee9$(e){for(;;)switch(e.prev=e.next){case 0:if(!se){e.next=4;break}_().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};pe(t)},fail:function fail(){p.default.fail({message:"定位授权异常,无法签到打卡",selector:"#vanToast-demo2"})}}),e.next=7;break;case 4:return e.next=6,de();case 6:p.default.fail({message:"请先登录",selector:"#vanToast-demo2",duration:2e3,onClose:function onClose(){_().navigateTo({url:"/pages/my/index"})}});case 7:case"end":return e.stop()}}),_callee9)})))}),(0,O.jsx)(a.default,{icon:"like",className:"iconStyle",text:"深圳十峰",onClick:function onClick(){_().navigateTo({url:"/pages/mountainPeak/index"})}}),(0,O.jsx)(a.default,{icon:"eye",className:"iconStyle",text:"活动",onClick:function onClick(){_().navigateTo({url:"/pages/activityList/index"})}}),(0,O.jsx)(a.default,{icon:"manager",className:"iconStyle",text:"视频",onClick:function onClick(){_().openChannelsActivity({finderUserName:"sphqzUmI0BlppCI",feedId:"export/UzFfAgtgekIEAQAAAAAAeIIQA5S-0wAAAAstQy6ubaLX4KHWvLEZgBPEj6MUcExXaL37zNPgMJpEUVVnZ9njxR_hb9_u-bQj",success:function success(e){console.log("res",e)}})}})]}),(null==Q?void 0:Q.length)>0?(0,O.jsx)(j.View,{children:(null!==(I=null==Q||null===(A=Q.reverse())||void 0===A?void 0:A.splice(0,2))&&void 0!==I?I:[]).map((function(e,t){return(0,O.jsx)(j.View,{onClick:function onClick(){console.log("Card"),_().navigateTo({url:"/pages/activityList/components/details/index?id=".concat(null==e?void 0:e._id)})},children:(0,O.jsx)(C.default,{dataSource:e})})}))}):(0,O.jsx)(o.default,{title:!0,row:4}),(0,O.jsxs)(j.View,{style:{marginTop:"20px"},children:[" ",(0,O.jsx)(j.OfficialAccount,{onLoad:function onLoad(e){console.log("加载成功",e)},onError:function onError(e){console.log("加载失败",e)}})]}),(0,O.jsx)(p.default,{id:"vanToast-demo2"}),(0,O.jsx)(S.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:"首页"}||{}))}},function(e){e.O(0,["taro","vendors","common"],(function(){return t="./src/pages/home/index.tsx",e(e.s=t);var t}));e.O()}]); \ No newline at end of file diff --git a/src/pages/home/index.tsx b/src/pages/home/index.tsx index 3349678..b49012b 100644 --- a/src/pages/home/index.tsx +++ b/src/pages/home/index.tsx @@ -459,7 +459,7 @@ const Home = () => { }} /> - { // url: "/pages/formSubmit/index", // }); }} + /> */} + + { + // 打开视频号-指定视频 + Taro.openChannelsActivity({ + finderUserName: "sphqzUmI0BlppCI", //视频号id + feedId: + "export/UzFfAgtgekIEAQAAAAAAeIIQA5S-0wAAAAstQy6ubaLX4KHWvLEZgBPEj6MUcExXaL37zNPgMJpEUVVnZ9njxR_hb9_u-bQj", //视频 feedId + success: (res: any) => { + console.log("res", res); + }, + }); + + // 打开视频号主页 [接口异常] + // Taro.openChannelsUserProfile({ + // finderUserName: "sphqzUmI0BlppCI", //视频号id + // success: (res: any) => { + // console.log("res", res); + // }, + // }); + }} /> {/* { - { Taro.openChannelsActivity({ finderUserName: "sphqzUmI0BlppCI", //视频号id @@ -608,7 +634,7 @@ const Home = () => { }} > 打开视频号 - + */} {/* @ts-ignore */} {/* */} @@ -616,7 +642,6 @@ const Home = () => { {/* @ts-ignore */} {/* */} - );