diff --git a/dist/pages/activityList/index.js b/dist/pages/activityList/index.js index 4e5f2cf..10ccf51 100644 --- a/dist/pages/activityList/index.js +++ b/dist/pages/activityList/index.js @@ -1,2 +1,2 @@ /*! For license information please see index.js.LICENSE.txt */ -"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([["pages/activityList/index"],{"./node_modules/@antmjs/vantui/es/dropdown-item/index.js":function(e,t,n){var o=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),s=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),a=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),r=n("webpack/container/remote/react"),i=n("webpack/container/remote/@tarojs/taro"),l=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),u=n("./node_modules/@antmjs/vantui/es/icon/index.js"),c=n("./node_modules/@antmjs/vantui/es/cell/index.js"),d=n("./node_modules/@antmjs/vantui/es/popup/index.js"),p=n("webpack/container/remote/react/jsx-runtime"),m=["title","titleClass","value","popupStyle","disabled","setChildrenInstance","parentInstance","index","onOpen","onOpened","onClose","onClosed","onChange","options","className","style"];function Index(e,t){var n=e.title,v=e.titleClass,f=e.value,j=e.popupStyle,b=e.disabled,y=void 0!==b&&b,w=e.setChildrenInstance,h=e.parentInstance,x=e.index,O=e.onOpen,C=e.onOpened,_=e.onClose,g=e.onClosed,k=e.onChange,S=void 0===k?function(){}:k,T=e.options,P=void 0===T?[]:T,E=e.className,A=void 0===E?"":E,L=e.style,I=(0,s.default)(e,m),D=(0,r.useState)({}),N=(0,o.default)(D,2),B=N[0],z=N[1],V=(0,r.useState)(!0),K=(0,o.default)(V,2),F=K[0],M=K[1],W=(0,r.useState)(!1),R=(0,o.default)(W,2),Y=R[0],J=R[1],q=(0,r.useState)(!0),H=(0,o.default)(q,2),X=H[0],Z=H[1],G=(0,r.useState)(""),Q=(0,o.default)(G,2),U=Q[0],$=Q[1],ee=(0,r.useState)(""),te=(0,o.default)(ee,2),ne=te[0],oe=te[1];(0,r.useEffect)((function(){oe(f)}),[f]);var se=(0,r.useCallback)((function(){(0,i.nextTick)((function(){h&&h.updateItemListData()}))}),[h]),ae=(0,r.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"boolean"!=typeof e&&(e=!Y),e!==Y&&(M(!t.immediate),J(e),e?h&&h.getChildWrapperStyle().then((function(e){var t=e.rect;delete e.rect,e&&(e.width="100vw",e.position="absolute"),"down"===h.direction&&(e.top=t.height+"PX",e.height="100vh",z(e),Z(!0),se()),"up"===h.direction&&(e.height="100vh",e.top=0,e.transform="translateY(-100%)",e.WebkitTransform="translateY(-100%)",e.MozTransform="translateY(-100%)",e.OTransform="translateY(-100%)",z(e),Z(!0),se())})):se())}),[Y,h,se]);(0,r.useEffect)((function(){w(x,{title:n,titleClass:v,disabled:y,transition:F,showPopup:Y,index:x,setDisplayTitle:$,displayTitle:U,options:P,value:ne,toggle:ae})}),[n,v,x,w,y,F,Y,$,U,P,ne,ae]);var re=(0,r.useCallback)((function(){g&&g(),setTimeout((function(){Z(!1)}),10)}),[g]);return(0,r.useImperativeHandle)(t,(function(){return{toggle:ae}})),X?(0,p.jsx)(a.View,{className:l.bem("dropdown-item",h.direction)+" "+A,style:l.style([B,L]),children:(0,p.jsx)(d.default,{show:Y,style:l.style([{position:"absolute"},j]),overlayStyle:"position: absolute;",overlay:!!h.overlay,position:"down"===h.direction?"top":"bottom",duration:F?h.duration:0,closeOnClickOverlay:h.closeOnClickOverlay,onEnter:O,onLeave:_,onClose:ae,onAfterEnter:C,onAfterLeave:re,children:(0,p.jsxs)(a.View,{children:[(P||[]).map((function(e,t){return(0,p.jsx)(c.default,{"data-option":e,className:l.bem("dropdown-item__option",{active:e.value===ne}),clickable:!0,icon:e.icon,onClick:function onClick(t){return function onOptionTap(e,t){var n=ne!==t.value;J(!1),oe(t.value),_&&_(),se(),n&&S(t.value)}(0,e)},renderTitle:(0,p.jsx)(p.Fragment,{children:(0,p.jsx)(a.View,{className:"van-dropdown-item__title",style:e.value===ne?"color:"+h.activeColor:"",children:e.text})}),children:e.value===ne&&(0,p.jsx)(u.default,{name:"success",className:"van-dropdown-item__icon",color:h.activeColor})},"".concat(t,"VanCell"))})),I.children]})})}):(0,p.jsx)(p.Fragment,{})}var v=(0,r.memo)((0,r.forwardRef)(Index));t.default=v},"./node_modules/@antmjs/vantui/es/dropdown-menu/index.js":function(e,t,n){var o=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),s=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),a=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),r=n("webpack/container/remote/react"),i=n("./node_modules/@antmjs/vantui/es/common/utils.js"),l=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),u=n("./node_modules/@antmjs/vantui/es/dropdown-menu/wxs.js"),c=n("webpack/container/remote/react/jsx-runtime"),d=["activeColor","overlay","zIndex","duration","direction","closeOnClickOverlay","closeOnClickOutside","className","style"],p=[];t.default=function DropdownMenu(e){var t=e.activeColor,n=e.overlay,m=void 0===n||n,v=e.zIndex,f=e.duration,j=void 0===f?200:f,b=e.direction,y=void 0===b?"down":b,w=e.closeOnClickOverlay,h=void 0===w||w,x=e.closeOnClickOutside,O=void 0===x||x,C=e.className,_=e.style,g=(0,s.default)(e,d),k=(0,r.useState)([]),S=(0,o.default)(k,2),T=S[0],P=S[1],E=(0,r.useRef)([]),A=(0,r.useRef)(),L=(0,r.useRef)("".concat(+new Date).concat(Math.ceil(1e4*Math.random()))),I=(0,r.useCallback)((function(){E.current.forEach((function(e){e.toggle(!1,{immediate:!0})}))}),[]);(0,r.useLayoutEffect)((function(){A.current=new Date,p.push({closeOnClickOutside:O,TimerKey:A,close:I})}),[O,I]),(0,r.useLayoutEffect)((function(){D()}),[g.children]),(0,r.useEffect)((function(){return function(){p=(p||[]).filter((function(e){return e&&e.TimerKey!==A}))}}),[]);var D=function updateItemListData(){setTimeout((function(){E.current&&P(E.current.map((function(e){return e})))}),333)},N=(0,r.useCallback)((function(e){E.current.forEach((function(t,n){var o=t.showPopup;n===Number(e)?t.toggle():o&&t.toggle(!1,{immediate:!0})}))}),[]),B=(0,r.useCallback)((function(e){var t=e.currentTarget.dataset.index;E.current[t].disabled||(p.forEach((function(e){e&&e.closeOnClickOutside&&e.TimerKey!==A&&e.close()})),setTimeout((function(){N(t)})))}),[N]),z=(0,r.useCallback)((function(e,t){E.current[e]=t}),[]),V=(0,r.useCallback)((function(){return(0,i.getRect)(null,".van-dropdown-menu".concat(L.current)).then((function(e){var t={rect:e};return"number"==typeof v&&(t.zIndex=v),t}))}),[v]),K=(0,r.useMemo)((function(){var e=[];return r.Children.map(g.children,(function(n,o){e.push((0,r.cloneElement)(n,{direction:y,key:o,setChildrenInstance:z,index:o,parentInstance:{overlay:m,duration:j,activeColor:t,closeOnClickOverlay:h,direction:y,getChildWrapperStyle:V,updateItemListData:D}}))})),e}),[t,h,y,j,V,g.children,m,z]);return(0,c.jsxs)(a.View,{className:"van-dropdown-menu van-dropdown-menu".concat(L.current," van-dropdown-menu--top-bottom ").concat(C),style:l.style([_,{position:"relative"}]),children:[(T||[]).map((function(e,n){return(0,c.jsx)(a.View,{"data-index":n,className:l.bem("dropdown-menu__item",{disabled:e.disabled}),onClick:B,children:(0,c.jsx)(a.View,{className:e.titleClass+" "+l.bem("dropdown-menu__title",{active:e.showPopup,down:e.showPopup===("down"===y)}),style:e.showPopup?"color:"+t:"",children:(0,c.jsx)(a.View,{className:"van-ellipsis ".concat(e.titleClass||""),children:u.displayTitle(e)})})},e.index)})),K]})}},"./node_modules/@antmjs/vantui/es/dropdown-menu/wxs.js":function(e,t,n){function displayTitle(e){var t=(e.options||[]).filter((function(t){return t.value===e.value})),n=t.length?t[0].text:"";return null==n||""===n?e.title||"":n}n.d(t,{displayTitle:function(){return displayTitle}})},"./node_modules/@antmjs/vantui/es/mixins/transition.js":function(e,t,n){n.d(t,{useTransition:function(){return useTransition}});var o=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),s=n("webpack/container/remote/react"),a=n("./node_modules/@antmjs/vantui/es/common/validator.js"),r=n("webpack/container/remote/@tarojs/runtime").requestAnimationFrame;function useTransition(e){var t=e.show,n=void 0!==t&&t,i=e.duration,l=void 0===i?300:i,u=e.name,c=void 0===u?"fade":u,d=e.onBeforeEnter,p=e.onBeforeLeave,m=e.onAfterEnter,v=e.onAfterLeave,f=e.onEnter,j=e.onLeave,b=e.enterClass,y=e.enterActiveClass,w=e.enterToClass,h=e.leaveClass,x=e.leaveActiveClass,O=e.leaveToClass,C=(0,s.useRef)(!1),_=(0,s.useRef)(""),g=(0,s.useState)(!1),k=(0,o.default)(g,2),S=k[0],T=k[1],P=(0,s.useState)(!1),E=(0,o.default)(P,2),A=E[0],L=E[1],I=(0,s.useState)(0),D=(0,o.default)(I,2),N=D[0],B=D[1],z=(0,s.useState)(""),V=(0,o.default)(z,2),K=V[0],F=V[1],M=(0,s.useMemo)((function(){var e=function getClassNames(e){return{enter:"van-".concat(e,"-enter van-").concat(e,"-enter-active enter-class enter-active-class"),"enter-to":"van-".concat(e,"-enter-to van-").concat(e,"-enter-active enter-to-class enter-active-class"),leave:"van-".concat(e,"-leave van-").concat(e,"-leave-active leave-class leave-active-class"),"leave-to":"van-".concat(e,"-leave-to van-").concat(e,"-leave-active leave-to-class leave-active-class")}}(c);return c||(e.enter+=" ".concat(null!=b?b:""),e["enter-to"]+="".concat(null!=w?w:""," ").concat(null!=y?y:""," "),e.leave+=" ".concat(null!=h?h:""),e["leave-to"]+=" ".concat(null!=O?O:""," ").concat(null!=x?x:"")),e}),[y,b,w,x,h,O,c]),W=(0,s.useCallback)((function(){C.current||(C.current=!0,"enter"===_.current?null==m||m():null==v||v(),!n&&S&&T(!1))}),[S,m,v,n]),R=(0,s.useCallback)((function(){var e=(0,a.isObj)(l)?l.enter:l;_.current="enter",null==d||d(),r((function(){"enter"===_.current&&(null==f||f(),L(!0),T(!0),F(M.enter),B(e),r((function(){"enter"===_.current&&(C.current=!1,setTimeout((function(){return W()}),e),F(M["enter-to"]))})))}))}),[l,d,f,M,W]),Y=(0,s.useCallback)((function(){if(S){var e=(0,a.isObj)(l)?l.leave:l;_.current="leave",null==p||p(),r((function(){"leave"===_.current&&(null==j||j(),F(M.leave),B(e),r((function(){"leave"===_.current&&(C.current=!1,setTimeout((function(){return W()}),e),F(M["leave-to"]))})))}))}}),[M,S,l,p,j,W]);return(0,s.useEffect)((function(){!n||K&&K.includes(M["enter-to"])||R(),n||Y()}),[n]),{display:S,inited:A,currentDuration:N,classes:K,onTransitionEnd:W}}},"./node_modules/@antmjs/vantui/es/overlay/index.js":function(e,t,n){var o=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),s=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),a=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),r=n("webpack/container/remote/react"),i=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),l=n("./node_modules/@antmjs/vantui/es/transition/index.js"),u=n("webpack/container/remote/react/jsx-runtime"),c=["show","zIndex","style","className","lockScroll","duration","setOuterShow","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;t1&&void 0!==arguments[1]?arguments[1]:{};"boolean"!=typeof e&&(e=!Y),e!==Y&&(M(!t.immediate),J(e),e?h&&h.getChildWrapperStyle().then((function(e){var t=e.rect;delete e.rect,e&&(e.width="100vw",e.position="absolute"),"down"===h.direction&&(e.top=t.height+"PX",e.height="100vh",z(e),Z(!0),se()),"up"===h.direction&&(e.height="100vh",e.top=0,e.transform="translateY(-100%)",e.WebkitTransform="translateY(-100%)",e.MozTransform="translateY(-100%)",e.OTransform="translateY(-100%)",z(e),Z(!0),se())})):se())}),[Y,h,se]);(0,r.useEffect)((function(){w(x,{title:n,titleClass:v,disabled:y,transition:F,showPopup:Y,index:x,setDisplayTitle:$,displayTitle:U,options:P,value:ne,toggle:ae})}),[n,v,x,w,y,F,Y,$,U,P,ne,ae]);var re=(0,r.useCallback)((function(){g&&g(),setTimeout((function(){Z(!1)}),10)}),[g]);return(0,r.useImperativeHandle)(t,(function(){return{toggle:ae}})),X?(0,p.jsx)(a.View,{className:l.bem("dropdown-item",h.direction)+" "+A,style:l.style([B,L]),children:(0,p.jsx)(d.default,{show:Y,style:l.style([{position:"absolute"},j]),overlayStyle:"position: absolute;",overlay:!!h.overlay,position:"down"===h.direction?"top":"bottom",duration:F?h.duration:0,closeOnClickOverlay:h.closeOnClickOverlay,onEnter:O,onLeave:_,onClose:ae,onAfterEnter:C,onAfterLeave:re,children:(0,p.jsxs)(a.View,{children:[(P||[]).map((function(e,t){return(0,p.jsx)(c.default,{"data-option":e,className:l.bem("dropdown-item__option",{active:e.value===ne}),clickable:!0,icon:e.icon,onClick:function onClick(t){return function onOptionTap(e,t){var n=ne!==t.value;J(!1),oe(t.value),_&&_(),se(),n&&S(t.value)}(0,e)},renderTitle:(0,p.jsx)(p.Fragment,{children:(0,p.jsx)(a.View,{className:"van-dropdown-item__title",style:e.value===ne?"color:"+h.activeColor:"",children:e.text})}),children:e.value===ne&&(0,p.jsx)(u.default,{name:"success",className:"van-dropdown-item__icon",color:h.activeColor})},"".concat(t,"VanCell"))})),I.children]})})}):(0,p.jsx)(p.Fragment,{})}var v=(0,r.memo)((0,r.forwardRef)(Index));t.default=v},"./node_modules/@antmjs/vantui/es/dropdown-menu/index.js":function(e,t,n){var o=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),s=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),a=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),r=n("webpack/container/remote/react"),i=n("./node_modules/@antmjs/vantui/es/common/utils.js"),l=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),u=n("./node_modules/@antmjs/vantui/es/dropdown-menu/wxs.js"),c=n("webpack/container/remote/react/jsx-runtime"),d=["activeColor","overlay","zIndex","duration","direction","closeOnClickOverlay","closeOnClickOutside","className","style"],p=[];t.default=function DropdownMenu(e){var t=e.activeColor,n=e.overlay,m=void 0===n||n,v=e.zIndex,f=e.duration,j=void 0===f?200:f,b=e.direction,y=void 0===b?"down":b,w=e.closeOnClickOverlay,h=void 0===w||w,x=e.closeOnClickOutside,O=void 0===x||x,C=e.className,_=e.style,g=(0,s.default)(e,d),k=(0,r.useState)([]),S=(0,o.default)(k,2),T=S[0],P=S[1],E=(0,r.useRef)([]),A=(0,r.useRef)(),L=(0,r.useRef)("".concat(+new Date).concat(Math.ceil(1e4*Math.random()))),I=(0,r.useCallback)((function(){E.current.forEach((function(e){e.toggle(!1,{immediate:!0})}))}),[]);(0,r.useLayoutEffect)((function(){A.current=new Date,p.push({closeOnClickOutside:O,TimerKey:A,close:I})}),[O,I]),(0,r.useLayoutEffect)((function(){D()}),[g.children]),(0,r.useEffect)((function(){return function(){p=(p||[]).filter((function(e){return e&&e.TimerKey!==A}))}}),[]);var D=function updateItemListData(){setTimeout((function(){E.current&&P(E.current.map((function(e){return e})))}),333)},N=(0,r.useCallback)((function(e){E.current.forEach((function(t,n){var o=t.showPopup;n===Number(e)?t.toggle():o&&t.toggle(!1,{immediate:!0})}))}),[]),B=(0,r.useCallback)((function(e){var t=e.currentTarget.dataset.index;E.current[t].disabled||(p.forEach((function(e){e&&e.closeOnClickOutside&&e.TimerKey!==A&&e.close()})),setTimeout((function(){N(t)})))}),[N]),z=(0,r.useCallback)((function(e,t){E.current[e]=t}),[]),V=(0,r.useCallback)((function(){return(0,i.getRect)(null,".van-dropdown-menu".concat(L.current)).then((function(e){var t={rect:e};return"number"==typeof v&&(t.zIndex=v),t}))}),[v]),K=(0,r.useMemo)((function(){var e=[];return r.Children.map(g.children,(function(n,o){e.push((0,r.cloneElement)(n,{direction:y,key:o,setChildrenInstance:z,index:o,parentInstance:{overlay:m,duration:j,activeColor:t,closeOnClickOverlay:h,direction:y,getChildWrapperStyle:V,updateItemListData:D}}))})),e}),[t,h,y,j,V,g.children,m,z]);return(0,c.jsxs)(a.View,{className:"van-dropdown-menu van-dropdown-menu".concat(L.current," van-dropdown-menu--top-bottom ").concat(C),style:l.style([_,{position:"relative"}]),children:[(T||[]).map((function(e,n){return(0,c.jsx)(a.View,{"data-index":n,className:l.bem("dropdown-menu__item",{disabled:e.disabled}),onClick:B,children:(0,c.jsx)(a.View,{className:e.titleClass+" "+l.bem("dropdown-menu__title",{active:e.showPopup,down:e.showPopup===("down"===y)}),style:e.showPopup?"color:"+t:"",children:(0,c.jsx)(a.View,{className:"van-ellipsis ".concat(e.titleClass||""),children:u.displayTitle(e)})})},e.index)})),K]})}},"./node_modules/@antmjs/vantui/es/dropdown-menu/wxs.js":function(e,t,n){function displayTitle(e){var t=(e.options||[]).filter((function(t){return t.value===e.value})),n=t.length?t[0].text:"";return null==n||""===n?e.title||"":n}n.d(t,{displayTitle:function(){return displayTitle}})},"./node_modules/@antmjs/vantui/es/mixins/transition.js":function(e,t,n){n.d(t,{useTransition:function(){return useTransition}});var o=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),s=n("webpack/container/remote/react"),a=n("./node_modules/@antmjs/vantui/es/common/validator.js"),r=n("webpack/container/remote/@tarojs/runtime").requestAnimationFrame;function useTransition(e){var t=e.show,n=void 0!==t&&t,i=e.duration,l=void 0===i?300:i,u=e.name,c=void 0===u?"fade":u,d=e.onBeforeEnter,p=e.onBeforeLeave,m=e.onAfterEnter,v=e.onAfterLeave,f=e.onEnter,j=e.onLeave,b=e.enterClass,y=e.enterActiveClass,w=e.enterToClass,h=e.leaveClass,x=e.leaveActiveClass,O=e.leaveToClass,C=(0,s.useRef)(!1),_=(0,s.useRef)(""),g=(0,s.useState)(!1),k=(0,o.default)(g,2),S=k[0],T=k[1],P=(0,s.useState)(!1),E=(0,o.default)(P,2),A=E[0],L=E[1],I=(0,s.useState)(0),D=(0,o.default)(I,2),N=D[0],B=D[1],z=(0,s.useState)(""),V=(0,o.default)(z,2),K=V[0],F=V[1],M=(0,s.useMemo)((function(){var e=function getClassNames(e){return{enter:"van-".concat(e,"-enter van-").concat(e,"-enter-active enter-class enter-active-class"),"enter-to":"van-".concat(e,"-enter-to van-").concat(e,"-enter-active enter-to-class enter-active-class"),leave:"van-".concat(e,"-leave van-").concat(e,"-leave-active leave-class leave-active-class"),"leave-to":"van-".concat(e,"-leave-to van-").concat(e,"-leave-active leave-to-class leave-active-class")}}(c);return c||(e.enter+=" ".concat(null!=b?b:""),e["enter-to"]+="".concat(null!=w?w:""," ").concat(null!=y?y:""," "),e.leave+=" ".concat(null!=h?h:""),e["leave-to"]+=" ".concat(null!=O?O:""," ").concat(null!=x?x:"")),e}),[y,b,w,x,h,O,c]),W=(0,s.useCallback)((function(){C.current||(C.current=!0,"enter"===_.current?null==m||m():null==v||v(),!n&&S&&T(!1))}),[S,m,v,n]),R=(0,s.useCallback)((function(){var e=(0,a.isObj)(l)?l.enter:l;_.current="enter",null==d||d(),r((function(){"enter"===_.current&&(null==f||f(),L(!0),T(!0),F(M.enter),B(e),r((function(){"enter"===_.current&&(C.current=!1,setTimeout((function(){return W()}),e),F(M["enter-to"]))})))}))}),[l,d,f,M,W]),Y=(0,s.useCallback)((function(){if(S){var e=(0,a.isObj)(l)?l.leave:l;_.current="leave",null==p||p(),r((function(){"leave"===_.current&&(null==j||j(),F(M.leave),B(e),r((function(){"leave"===_.current&&(C.current=!1,setTimeout((function(){return W()}),e),F(M["leave-to"]))})))}))}}),[M,S,l,p,j,W]);return(0,s.useEffect)((function(){!n||K&&K.includes(M["enter-to"])||R(),n||Y()}),[n]),{display:S,inited:A,currentDuration:N,classes:K,onTransitionEnd:W}}},"./node_modules/@antmjs/vantui/es/overlay/index.js":function(e,t,n){var o=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),s=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),a=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),r=n("webpack/container/remote/react"),i=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),l=n("./node_modules/@antmjs/vantui/es/transition/index.js"),u=n("webpack/container/remote/react/jsx-runtime"),c=["show","zIndex","style","className","lockScroll","duration","setOuterShow","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]:[];return t(e[0])}))}))}),[g]),N=(0,s.useCallback)((function(e){var t=Object.keys(e).reduce((function(t,n){return e[n]!==b[n]&&(t[n]=e[n]),t}),{});Object.keys(t).length>0&&j((function(e){return _objectSpread(_objectSpread({},e),t)})),null==_||_({detail:{scrollTop:P.current.scrollTop,isFixed:e.fixed||b.fixed}})}),[_,b]),I=(0,s.useCallback)((function(e){w?N({fixed:!1,transform:0}):(P.current.scrollTop=e||P.current.scrollTop,"function"!=typeof g?(0,l.getRect)(null,"#sticky-com-index".concat(t.current)).then((function(e){(0,u.isDef)(e)&&(x>=e.top?N({fixed:!0,height:e.height}):N({fixed:!1}))})):Promise.all([(0,l.getRect)(null,"#sticky-com-index".concat(t.current)),C()]).then((function(e){var t=(0,o.default)(e,2),n=t[0],r=t[1];n&&r&&(x+n.height>r.height+r.top?N({fixed:!1,transform:r.height-n.height}):x>=n.top?N({fixed:!0,height:n.height,transform:0}):N({fixed:!1,transform:0}))})).catch((function(e){console.log(e)})))}),[g,w,C,x,N]);return(0,s.useEffect)((function(){I(y)}),[y,g,w,x]),(0,d.usePageScroll)((function(e){I(e.scrollTop)})),(0,m.jsx)(a.View,_objectSpread(_objectSpread({id:"sticky-com-index".concat(t.current),className:" van-sticky "+(k||""),style:c.style([f.containerStyle({fixed:b.fixed,height:b.height,zIndex:h}),S])},T),{},{children:(0,m.jsx)(a.View,{className:c.bem("sticky-wrap",{fixed:b.fixed})+" ".concat(k||""),style:c.style([f.wrapStyle({fixed:b.fixed,offsetTop:x,transform:b.transform,zIndex:h}),S]),children:O})}))}},"./node_modules/@antmjs/vantui/es/sticky/wxs.js":function(e,t,n){n.d(t,{wrapStyle:function(){return wrapStyle},containerStyle:function(){return containerStyle}});var r=n("./node_modules/@antmjs/vantui/es/wxs/style.js");function wrapStyle(e){return(0,r.style)({transform:e.transform?"translate3d(0, "+e.transform+"px, 0)":"",top:e.fixed?e.offsetTop+"px":"","z-index":e.zIndex})}function containerStyle(e){return(0,r.style)({height:e.fixed?e.height+"px":"","z-index":e.zIndex})}},"./node_modules/@antmjs/vantui/es/tab/index.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),i=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),o=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),s=n("webpack/container/remote/react"),a=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),c=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),l=n("webpack/container/remote/react/jsx-runtime"),u=["children","style","className","active","lazyRender","lazyTimeout","animated","title"];function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t=we.length||e<0)&&e!==D){var t=null!==D;N((function(t){return _objectSpread(_objectSpread({},t),{},{currentIndex:e})})),(0,j.requestAnimationFrame)((function(){Oe(e),Pe(e)})),(0,l.nextTick)((function(){t&&ge("onChange",we[e])}))}},ke=function setCurrentIndexByName(e){var t=we.filter((function(t){return(t.props.name||t.props.index)===e}));t.length&&Se(t[0].props.index)},Oe=function resize(e){var r;"line"===K&&(e=null!==(r=e)&&void 0!==r?r:D,(0,l.nextTick)((function(){Promise.all([(0,j.getAllRect)(null,".tabs-com-index".concat(n.current," .van-tab")),(0,j.getRect)(null,".tabs-com-index".concat(n.current," .van-tabs__line"))]).then((function(n){var r=(0,o.default)(n,2),i=r[0],s=void 0===i?[]:i,a=r[1];if(s&&a){var c=s[e];if(null==c)return;var u=s.slice(0,e).reduce((function(e,t){return e+t.width}),0);u+=(c.width-a.width)/2+(Q?0:8),N((function(e){return _objectSpread(_objectSpread({},e),{},{lineOffsetLeft:u})})),t.current.swiping=!0,R&&(0,l.nextTick)((function(){N((function(e){return _objectSpread(_objectSpread({},e),{},{skipTransition:!1})}))}))}}))})))},Te=function onTap(e){var t=e.currentTarget.dataset.index;t=parseInt(t);var n=we[t];n.props.disabled?ge("onDisabled",n):(Se(t),(0,l.nextTick)((function(){ge("onClick",n)})))},Pe=function scrollIntoView(e){var t;z&&(e=null!==(t=e)&&void 0!==t?t:D,Promise.all([(0,j.getAllRect)(null,".tabs-com-index".concat(n.current," .van-tab")),(0,j.getRect)(null,".tabs-com-index".concat(n.current," .van-tabs__nav"))]).then((function(t){var n=(0,o.default)(t,2),r=n[0],i=n[1];if(r&&i){var s=r[e],a=r.slice(0,e).reduce((function(e,t){return e+t.width}),0);N((function(e){return _objectSpread(_objectSpread({},e),{},{scrollLeft:a-(i.width-s.width)/2})})),E||(0,l.nextTick)((function(){N((function(e){return _objectSpread(_objectSpread({},e),{},{scrollWithAnimation:!0})}))}))}})))},Ce=function touchStart(e){!function resetTouchStatus(){t.current.direction="",t.current.deltaX=0,t.current.deltaY=0,t.current.offsetX=0,t.current.offsetY=0}();var n=e.touches[0];t.current.startX=n.clientX,t.current.startY=n.clientY},Ne=function onTouchEnd(){if(L&&t.current.swiping){var e=t.current,n=e.direction,r=e.deltaX,i=e.offsetX;if("horizontal"===n&&i>=50){var o=function getAvaiableTab(e){for(var t=e>0?-1:1,n=t;D+n=0;n+=t){var r=D+n;if(r>=0&&rce||!Q})}))}),[ce,we,Q]),(0,u.useEffect)((function(){(0,l.nextTick)((function(){Oe()}))}),[we]);var Ie=(0,u.useCallback)((0,r.default)(c().mark((function _callee(){var e,t,r;return c().wrap((function _callee$(i){for(;;)switch(i.prev=i.next){case 0:if(e=0,!ue||!w){i.next=6;break}return i.next=4,(0,j.getAllRect)(null,"."+m.bem("renderNavLeft"+n.current));case 4:(t=i.sent).length&&(e+=t[0].width);case 6:if(!de||!w){i.next=11;break}return i.next=9,(0,j.getAllRect)(null,"."+m.bem("renderNavRight"+n.current));case 9:(r=i.sent).length&&(e+=r[0].width);case 11:e&&O("calc(100% - ".concat(e,"px)"));case 12:case"end":return i.stop()}}),_callee)}))),[ue,w,de]);return(0,u.useEffect)((function(){setTimeout((function(){Ie()}))}),[Ie,w]),(0,x.jsxs)(f.View,_objectSpread(_objectSpread({className:"tabs-com-index".concat(n.current," ")+" "+m.bem("tabs",[K]+" ".concat(he||"")),style:je},xe),{},{children:[(0,x.jsx)(b.Sticky,{disabled:!H,zIndex:F,offsetTop:q,container:U,onScroll:fe,children:(0,x.jsxs)(f.View,{className:m.bem("tabs__wrap",{scrollable:z})+" "+("line"===K&&B?"van-hairline--top-bottom":""),children:[(0,x.jsx)(f.View,{className:m.bem("renderNavLeft"+n.current),children:ue}),(0,x.jsx)(f.ScrollView,{scrollX:z,scrollWithAnimation:E,scrollLeft:I,className:m.bem("tabs__scroll",[K]),style:{width:k,borderColor:G},children:(0,x.jsxs)(f.View,{className:m.bem("tabs__nav",[K,{complete:!Q}])+" nav-class",style:v.navStyle(G,K),children:["line"===K&&(0,x.jsx)(f.View,{className:"van-tabs__line",style:v.lineStyle({color:G,lineOffsetLeft:V,lineHeight:ee,skipTransition:R,duration:ne,lineWidth:ie})}),ye.map((function(e,t){return(0,x.jsx)(f.View,{"data-index":t,className:v.tabClass(t===D,Q)+" "+m.bem("tab",{active:t===D,disabled:e.disabled,complete:!Q}),style:v.tabStyle({active:t===D,ellipsis:Q,color:G,type:K,disabled:e.disabled,titleActiveColor:oe,titleInactiveColor:se,swipeThreshold:ce,scrollable:z}),onClick:Te,children:(0,x.jsxs)(f.View,{className:Q?"van-ellipsis":"",style:e.titleStyle,children:[e.title,(null!==e.info||e.dot)&&(0,x.jsx)(h.Info,{info:e.info,dot:e.dot,className:"van-tab__title__info"})]})},t)}))]})}),(0,x.jsx)(f.View,{className:m.bem("renderNavRight"+n.current),children:de})]})}),(0,x.jsx)(f.View,{className:"van-tabs__content",onTouchStart:function onTouchStart(e){L&&(t.current.swiping=!0,Ce(e))},onTouchMove:function onTouchMove(e){L&&t.current.swiping&&function touchMove(e){var n=e.touches[0];t.current.deltaX=n.clientX-t.current.startX,t.current.deltaY=n.clientY-t.current.startY,t.current.offsetX=Math.abs(t.current.deltaX),t.current.offsetY=Math.abs(t.current.deltaY),t.current.direction=t.current.direction||function getDirection(e,t){return e>t&&e>10?"horizontal":t>e&&t>10?"vertical":""}(t.current.offsetX,t.current.offsetY)}(e)},onTouchEnd:Ne,onTouchCancel:Ne,children:(0,x.jsx)(f.View,{className:m.bem("tabs__track",[{animated:le}])+" van-tabs__track",style:v.trackStyle({duration:ne,currentIndex:D,animated:le}),children:we})})]}))}},"./node_modules/@antmjs/vantui/es/tabs/wxs.js":function(e,t,n){n.d(t,{tabClass:function(){return tabClass},tabStyle:function(){return tabStyle},trackStyle:function(){return trackStyle},lineStyle:function(){return lineStyle},navStyle:function(){return navStyle}});var r=n("./node_modules/@antmjs/vantui/es/wxs/style.js"),i=n("./node_modules/@antmjs/vantui/es/wxs/utils.js");function tabClass(e,t){var n=["tab-class"];return e&&n.push("tab-active-class"),t&&n.push("van-ellipsis"),n.join(" ")}function tabStyle(e){var t=e.active?e.titleActiveColor:e.titleInactiveColor,n=e.scrollable&&e.ellipsis;return"card"===e.type?(0,r.style)({"border-color":e.color,"background-color":!e.disabled&&e.active?e.color:null,color:t||(e.disabled||e.active?null:e.color),"flex-basis":n?88/e.swipeThreshold+"%":null}):(0,r.style)({color:t,"flex-basis":n?88/e.swipeThreshold+"%":null})}function navStyle(e,t){return(0,r.style)({"border-color":"card"===t&&e?e:null})}function trackStyle(e){return e.animated?(0,r.style)({transform:"translate3d(".concat(-100*e.currentIndex,"%, 0px, 0px)"),"-webkit-transform":"translate3d(".concat(-100*e.currentIndex,"%, 0px, 0px)"),"transition-duration":e.duration+"s","-webkit-transition-duration":e.duration+"s",transition:e.duration+"s"}):""}function lineStyle(e){return(0,r.style)({visibility:0===e.lineOffsetLeft?"hidden":"visible",width:i.addUnit(e.lineWidth),transform:"translateX("+e.lineOffsetLeft+"px)","-webkit-transform":"translateX("+e.lineOffsetLeft+"px)","background-color":e.color,height:-1!==e.lineHeight?i.addUnit(e.lineHeight):null,"border-radius":-1!==e.lineHeight?i.addUnit(e.lineHeight):null,"transition-duration":e.skipTransition?null:e.duration+"s","-webkit-transition-duration":e.skipTransition?null:e.duration+"s"})}},"./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[9].use[1]!./src/pages/my/index.tsx":function(e,t,n){var r=n("./node_modules/@antmjs/vantui/es/cell/index.js"),i=n("./node_modules/@antmjs/vantui/es/tabs/index.js"),o=n("./node_modules/@antmjs/vantui/es/tab/index.js"),s=n("./node_modules/@antmjs/vantui/es/image/index.js"),a=n("./node_modules/@antmjs/vantui/es/card/index.js"),c=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),l=n("./src/pages/components/TabbarCom/index.tsx"),u=n("webpack/container/remote/react/jsx-runtime");t.default=function my(e){var t=function CardCom(){return(0,u.jsx)(a.default,{num:"",price:"",desc:"活动描述信息",title:"活动标题",thumb:"https://img.yzcdn.cn/upload_files/2017/07/02/af5b9f44deaeb68000d7e4a711160c53.jpg"})};return(0,u.jsxs)(c.View,{children:[(0,u.jsx)(c.View,{className:"myContent",children:(0,u.jsx)(s.default,{round:!0,width:"100px",height:"100px",src:"https://img.yzcdn.cn/vant/cat.jpeg"})}),(0,u.jsx)(c.View,{children:(0,u.jsxs)(i.default,{sticky:!0,children:[(0,u.jsx)(o.default,{title:"待审核",children:t()}),(0,u.jsx)(o.default,{title:"已报名",children:t()}),(0,u.jsx)(o.default,{title:"待参加",children:t()}),(0,u.jsx)(o.default,{title:"已结束",children:t()})]})}),(0,u.jsxs)(c.View,{children:[(0,u.jsx)(r.default,{title:"个人资料",isLink:!0}),(0,u.jsx)(r.default,{title:"收藏",isLink:!0}),(0,u.jsx)(r.default,{title:"客服",isLink:!0,value:""})]}),(0,u.jsx)(l.default,{active:2})]})}},"./src/pages/my/index.tsx":function(e,t,n){var r=n("webpack/container/remote/@tarojs/runtime"),i=n("./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[9].use[1]!./src/pages/my/index.tsx");Page((0,r.createPageConfig)(i.default,"pages/my/index",{root:{cn:[]}},{}||{}))}},function(e){e.O(0,["taro","vendors","common"],(function(){return t="./src/pages/my/index.tsx",e(e.s=t);var t}));e.O()}]); \ No newline at end of file +"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([["pages/my/index"],{"./node_modules/@antmjs/vantui/es/mixins/page-scroll.js":function(e,t,n){n.d(t,{usePageScroll:function(){return usePageScroll}});var r=n("webpack/container/remote/react"),i=n("webpack/container/remote/@tarojs/taro");n("webpack/container/remote/@tarojs/runtime"),n("webpack/container/remote/@tarojs/runtime").document;function usePageScroll(e){(0,r.useEffect)((function(){return void 0}),[e]),(0,i.usePageScroll)((function(t){e(t)}))}},"./node_modules/@antmjs/vantui/es/sticky/index.js":function(e,t,n){n.d(t,{Sticky:function(){return Sticky}});var r=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),i=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),o=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),s=n("webpack/container/remote/react"),a=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),c=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),l=n("./node_modules/@antmjs/vantui/es/common/utils.js"),u=n("./node_modules/@antmjs/vantui/es/common/validator.js"),d=n("./node_modules/@antmjs/vantui/es/mixins/page-scroll.js"),f=n("./node_modules/@antmjs/vantui/es/sticky/wxs.js"),m=n("webpack/container/remote/react/jsx-runtime"),p=["zIndex","offsetTop","scrollTop","disabled","container","onScroll","style","className","children"];function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[];return t(e[0])}))}))}),[w]),N=(0,s.useCallback)((function(e){var t=Object.keys(e).reduce((function(t,n){return e[n]!==b[n]&&(t[n]=e[n]),t}),{});Object.keys(t).length>0&&j((function(e){return _objectSpread(_objectSpread({},e),t)})),null==_||_({detail:{scrollTop:P.current.scrollTop,isFixed:e.fixed||b.fixed}})}),[_,b]),I=(0,s.useCallback)((function(e){g?N({fixed:!1,transform:0}):(P.current.scrollTop=e||P.current.scrollTop,"function"!=typeof w?(0,l.getRect)(null,"#sticky-com-index".concat(t.current)).then((function(e){(0,u.isDef)(e)&&(x>=e.top?N({fixed:!0,height:e.height}):N({fixed:!1}))})):Promise.all([(0,l.getRect)(null,"#sticky-com-index".concat(t.current)),C()]).then((function(e){var t=(0,o.default)(e,2),n=t[0],r=t[1];n&&r&&(x+n.height>r.height+r.top?N({fixed:!1,transform:r.height-n.height}):x>=n.top?N({fixed:!0,height:n.height,transform:0}):N({fixed:!1,transform:0}))})).catch((function(e){console.log(e)})))}),[w,g,C,x,N]);return(0,s.useEffect)((function(){I(y)}),[y,w,g,x]),(0,d.usePageScroll)((function(e){I(e.scrollTop)})),(0,m.jsx)(a.View,_objectSpread(_objectSpread({id:"sticky-com-index".concat(t.current),className:" van-sticky "+(k||""),style:c.style([f.containerStyle({fixed:b.fixed,height:b.height,zIndex:h}),S])},T),{},{children:(0,m.jsx)(a.View,{className:c.bem("sticky-wrap",{fixed:b.fixed})+" ".concat(k||""),style:c.style([f.wrapStyle({fixed:b.fixed,offsetTop:x,transform:b.transform,zIndex:h}),S]),children:O})}))}},"./node_modules/@antmjs/vantui/es/sticky/wxs.js":function(e,t,n){n.d(t,{wrapStyle:function(){return wrapStyle},containerStyle:function(){return containerStyle}});var r=n("./node_modules/@antmjs/vantui/es/wxs/style.js");function wrapStyle(e){return(0,r.style)({transform:e.transform?"translate3d(0, "+e.transform+"px, 0)":"",top:e.fixed?e.offsetTop+"px":"","z-index":e.zIndex})}function containerStyle(e){return(0,r.style)({height:e.fixed?e.height+"px":"","z-index":e.zIndex})}},"./node_modules/@antmjs/vantui/es/tab/index.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),i=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),o=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),s=n("webpack/container/remote/react"),a=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),c=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),l=n("webpack/container/remote/react/jsx-runtime"),u=["children","style","className","active","lazyRender","lazyTimeout","animated","title"];function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t=ge.length||e<0)&&e!==D){var t=null!==D;N((function(t){return _objectSpread(_objectSpread({},t),{},{currentIndex:e})})),(0,j.requestAnimationFrame)((function(){Oe(e),Pe(e)})),(0,l.nextTick)((function(){t&&we("onChange",ge[e])}))}},ke=function setCurrentIndexByName(e){var t=ge.filter((function(t){return(t.props.name||t.props.index)===e}));t.length&&Se(t[0].props.index)},Oe=function resize(e){var r;"line"===K&&(e=null!==(r=e)&&void 0!==r?r:D,(0,l.nextTick)((function(){Promise.all([(0,j.getAllRect)(null,".tabs-com-index".concat(n.current," .van-tab")),(0,j.getRect)(null,".tabs-com-index".concat(n.current," .van-tabs__line"))]).then((function(n){var r=(0,o.default)(n,2),i=r[0],s=void 0===i?[]:i,a=r[1];if(s&&a){var c=s[e];if(null==c)return;var u=s.slice(0,e).reduce((function(e,t){return e+t.width}),0);u+=(c.width-a.width)/2+(Q?0:8),N((function(e){return _objectSpread(_objectSpread({},e),{},{lineOffsetLeft:u})})),t.current.swiping=!0,R&&(0,l.nextTick)((function(){N((function(e){return _objectSpread(_objectSpread({},e),{},{skipTransition:!1})}))}))}}))})))},Te=function onTap(e){var t=e.currentTarget.dataset.index;t=parseInt(t);var n=ge[t];n.props.disabled?we("onDisabled",n):(Se(t),(0,l.nextTick)((function(){we("onClick",n)})))},Pe=function scrollIntoView(e){var t;z&&(e=null!==(t=e)&&void 0!==t?t:D,Promise.all([(0,j.getAllRect)(null,".tabs-com-index".concat(n.current," .van-tab")),(0,j.getRect)(null,".tabs-com-index".concat(n.current," .van-tabs__nav"))]).then((function(t){var n=(0,o.default)(t,2),r=n[0],i=n[1];if(r&&i){var s=r[e],a=r.slice(0,e).reduce((function(e,t){return e+t.width}),0);N((function(e){return _objectSpread(_objectSpread({},e),{},{scrollLeft:a-(i.width-s.width)/2})})),E||(0,l.nextTick)((function(){N((function(e){return _objectSpread(_objectSpread({},e),{},{scrollWithAnimation:!0})}))}))}})))},Ce=function touchStart(e){!function resetTouchStatus(){t.current.direction="",t.current.deltaX=0,t.current.deltaY=0,t.current.offsetX=0,t.current.offsetY=0}();var n=e.touches[0];t.current.startX=n.clientX,t.current.startY=n.clientY},Ne=function onTouchEnd(){if(L&&t.current.swiping){var e=t.current,n=e.direction,r=e.deltaX,i=e.offsetX;if("horizontal"===n&&i>=50){var o=function getAvaiableTab(e){for(var t=e>0?-1:1,n=t;D+n=0;n+=t){var r=D+n;if(r>=0&&rce||!Q})}))}),[ce,ge,Q]),(0,u.useEffect)((function(){(0,l.nextTick)((function(){Oe()}))}),[ge]);var Ie=(0,u.useCallback)((0,r.default)(c().mark((function _callee(){var e,t,r;return c().wrap((function _callee$(i){for(;;)switch(i.prev=i.next){case 0:if(e=0,!ue||!g){i.next=6;break}return i.next=4,(0,j.getAllRect)(null,"."+m.bem("renderNavLeft"+n.current));case 4:(t=i.sent).length&&(e+=t[0].width);case 6:if(!de||!g){i.next=11;break}return i.next=9,(0,j.getAllRect)(null,"."+m.bem("renderNavRight"+n.current));case 9:(r=i.sent).length&&(e+=r[0].width);case 11:e&&O("calc(100% - ".concat(e,"px)"));case 12:case"end":return i.stop()}}),_callee)}))),[ue,g,de]);return(0,u.useEffect)((function(){setTimeout((function(){Ie()}))}),[Ie,g]),(0,x.jsxs)(f.View,_objectSpread(_objectSpread({className:"tabs-com-index".concat(n.current," ")+" "+m.bem("tabs",[K]+" ".concat(he||"")),style:je},xe),{},{children:[(0,x.jsx)(b.Sticky,{disabled:!H,zIndex:F,offsetTop:q,container:U,onScroll:fe,children:(0,x.jsxs)(f.View,{className:m.bem("tabs__wrap",{scrollable:z})+" "+("line"===K&&B?"van-hairline--top-bottom":""),children:[(0,x.jsx)(f.View,{className:m.bem("renderNavLeft"+n.current),children:ue}),(0,x.jsx)(f.ScrollView,{scrollX:z,scrollWithAnimation:E,scrollLeft:I,className:m.bem("tabs__scroll",[K]),style:{width:k,borderColor:G},children:(0,x.jsxs)(f.View,{className:m.bem("tabs__nav",[K,{complete:!Q}])+" nav-class",style:v.navStyle(G,K),children:["line"===K&&(0,x.jsx)(f.View,{className:"van-tabs__line",style:v.lineStyle({color:G,lineOffsetLeft:V,lineHeight:ee,skipTransition:R,duration:ne,lineWidth:ie})}),ye.map((function(e,t){return(0,x.jsx)(f.View,{"data-index":t,className:v.tabClass(t===D,Q)+" "+m.bem("tab",{active:t===D,disabled:e.disabled,complete:!Q}),style:v.tabStyle({active:t===D,ellipsis:Q,color:G,type:K,disabled:e.disabled,titleActiveColor:oe,titleInactiveColor:se,swipeThreshold:ce,scrollable:z}),onClick:Te,children:(0,x.jsxs)(f.View,{className:Q?"van-ellipsis":"",style:e.titleStyle,children:[e.title,(null!==e.info||e.dot)&&(0,x.jsx)(h.Info,{info:e.info,dot:e.dot,className:"van-tab__title__info"})]})},t)}))]})}),(0,x.jsx)(f.View,{className:m.bem("renderNavRight"+n.current),children:de})]})}),(0,x.jsx)(f.View,{className:"van-tabs__content",onTouchStart:function onTouchStart(e){L&&(t.current.swiping=!0,Ce(e))},onTouchMove:function onTouchMove(e){L&&t.current.swiping&&function touchMove(e){var n=e.touches[0];t.current.deltaX=n.clientX-t.current.startX,t.current.deltaY=n.clientY-t.current.startY,t.current.offsetX=Math.abs(t.current.deltaX),t.current.offsetY=Math.abs(t.current.deltaY),t.current.direction=t.current.direction||function getDirection(e,t){return e>t&&e>10?"horizontal":t>e&&t>10?"vertical":""}(t.current.offsetX,t.current.offsetY)}(e)},onTouchEnd:Ne,onTouchCancel:Ne,children:(0,x.jsx)(f.View,{className:m.bem("tabs__track",[{animated:le}])+" van-tabs__track",style:v.trackStyle({duration:ne,currentIndex:D,animated:le}),children:ge})})]}))}},"./node_modules/@antmjs/vantui/es/tabs/wxs.js":function(e,t,n){n.d(t,{tabClass:function(){return tabClass},tabStyle:function(){return tabStyle},trackStyle:function(){return trackStyle},lineStyle:function(){return lineStyle},navStyle:function(){return navStyle}});var r=n("./node_modules/@antmjs/vantui/es/wxs/style.js"),i=n("./node_modules/@antmjs/vantui/es/wxs/utils.js");function tabClass(e,t){var n=["tab-class"];return e&&n.push("tab-active-class"),t&&n.push("van-ellipsis"),n.join(" ")}function tabStyle(e){var t=e.active?e.titleActiveColor:e.titleInactiveColor,n=e.scrollable&&e.ellipsis;return"card"===e.type?(0,r.style)({"border-color":e.color,"background-color":!e.disabled&&e.active?e.color:null,color:t||(e.disabled||e.active?null:e.color),"flex-basis":n?88/e.swipeThreshold+"%":null}):(0,r.style)({color:t,"flex-basis":n?88/e.swipeThreshold+"%":null})}function navStyle(e,t){return(0,r.style)({"border-color":"card"===t&&e?e:null})}function trackStyle(e){return e.animated?(0,r.style)({transform:"translate3d(".concat(-100*e.currentIndex,"%, 0px, 0px)"),"-webkit-transform":"translate3d(".concat(-100*e.currentIndex,"%, 0px, 0px)"),"transition-duration":e.duration+"s","-webkit-transition-duration":e.duration+"s",transition:e.duration+"s"}):""}function lineStyle(e){return(0,r.style)({visibility:0===e.lineOffsetLeft?"hidden":"visible",width:i.addUnit(e.lineWidth),transform:"translateX("+e.lineOffsetLeft+"px)","-webkit-transform":"translateX("+e.lineOffsetLeft+"px)","background-color":e.color,height:-1!==e.lineHeight?i.addUnit(e.lineHeight):null,"border-radius":-1!==e.lineHeight?i.addUnit(e.lineHeight):null,"transition-duration":e.skipTransition?null:e.duration+"s","-webkit-transition-duration":e.skipTransition?null:e.duration+"s"})}},"./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[9].use[1]!./src/pages/my/index.tsx":function(e,t,n){var r=n("./node_modules/@antmjs/vantui/es/cell/index.js"),i=n("./node_modules/@antmjs/vantui/es/tabs/index.js"),o=n("./node_modules/@antmjs/vantui/es/tab/index.js"),s=n("./node_modules/@antmjs/vantui/es/image/index.js"),a=n("./node_modules/@antmjs/vantui/es/card/index.js"),c=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),l=n("./src/pages/components/TabbarCom/index.tsx"),u=n("webpack/container/remote/react/jsx-runtime");t.default=function my(e){var t=function CardCom(){return(0,u.jsx)(a.default,{num:"",price:"",desc:"活动描述信息",title:"活动标题",thumb:"cloud://cloud1-5g5xrgza12a0dd6d.636c-cloud1-5g5xrgza12a0dd6d-1253665791/images.jpg"})};return(0,u.jsxs)(c.View,{children:[(0,u.jsx)(c.View,{className:"myContent",children:(0,u.jsx)(s.default,{round:!0,width:"100px",height:"100px",src:"https://img.yzcdn.cn/vant/cat.jpeg"})}),(0,u.jsx)(c.View,{children:(0,u.jsxs)(i.default,{sticky:!0,children:[(0,u.jsx)(o.default,{title:"待审核",children:t()}),(0,u.jsx)(o.default,{title:"已报名",children:t()}),(0,u.jsx)(o.default,{title:"待参加",children:t()}),(0,u.jsx)(o.default,{title:"已结束",children:t()})]})}),(0,u.jsxs)(c.View,{children:[(0,u.jsx)(r.default,{title:"个人资料",isLink:!0}),(0,u.jsx)(r.default,{title:"收藏",isLink:!0}),(0,u.jsx)(r.default,{title:"客服",isLink:!0,value:""})]}),(0,u.jsx)(l.default,{active:2})]})}},"./src/pages/my/index.tsx":function(e,t,n){var r=n("webpack/container/remote/@tarojs/runtime"),i=n("./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[9].use[1]!./src/pages/my/index.tsx");Page((0,r.createPageConfig)(i.default,"pages/my/index",{root:{cn:[]}},{}||{}))}},function(e){e.O(0,["taro","vendors","common"],(function(){return t="./src/pages/my/index.tsx",e(e.s=t);var t}));e.O()}]); \ No newline at end of file diff --git a/src/pages/activityList/index.tsx b/src/pages/activityList/index.tsx index 6cb01ca..6ae0efb 100644 --- a/src/pages/activityList/index.tsx +++ b/src/pages/activityList/index.tsx @@ -8,17 +8,13 @@ const activityList = () => { const [state, setState] = react.useState({ option1: [ { - text: "全部商品", + text: "全部活动", value: 0, }, { - text: "新款商品", + text: "附近活动", value: 1, - }, - { - text: "活动商品", - value: 2, - }, + } ], option2: [ { @@ -26,11 +22,11 @@ const activityList = () => { value: "a", }, { - text: "好评排序", + text: "最近距离", value: "b", }, { - text: "销量排序", + text: "参与最多", value: "c", }, ], diff --git a/src/pages/my/index.tsx b/src/pages/my/index.tsx index e9bab24..c95dbf9 100644 --- a/src/pages/my/index.tsx +++ b/src/pages/my/index.tsx @@ -19,7 +19,7 @@ const my = (props: any) => { price="" desc="活动描述信息" title="活动标题" - thumb="https://img.yzcdn.cn/upload_files/2017/07/02/af5b9f44deaeb68000d7e4a711160c53.jpg" + thumb="cloud://cloud1-5g5xrgza12a0dd6d.636c-cloud1-5g5xrgza12a0dd6d-1253665791/images.jpg" /> } return (