From 91baccc9cba4e35363a7ab7354698ed89d29d745 Mon Sep 17 00:00:00 2001 From: eric Date: Wed, 14 Dec 2022 15:16:00 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E7=94=A8=E6=88=B7=E6=B3=A8?= =?UTF-8?q?=E5=86=8C=E9=A3=9E=E4=B9=A6=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/pages/home/index.js | 2 +- dist/pages/my/index.js | 2 +- dist/pages/my/index.js.LICENSE.txt | 4 ++-- src/pages/home/index.tsx | 7 ++++--- src/pages/my/index.tsx | 8 ++++++-- 5 files changed, 14 insertions(+), 9 deletions(-) diff --git a/dist/pages/home/index.js b/dist/pages/home/index.js index dc44d16..18e20de 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 */ -"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([["pages/home/index"],{"./node_modules/@antmjs/vantui/es/field/index.js":function(e,n,t){t.d(n,{Field:function(){return Field}});var o=t("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=t("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),a=t("webpack/container/remote/@tarojs/taro"),l=t("webpack/container/remote/react"),i=t("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),c=t("./node_modules/@antmjs/vantui/es/wxs/utils.js"),s=t("./node_modules/@antmjs/vantui/es/cell/index.js"),u=t("./node_modules/@antmjs/vantui/es/icon/index.js"),d=(t("./node_modules/@antmjs/vantui/es/utils/index.js"),t("./node_modules/@antmjs/vantui/es/field/wxs.js")),m=t("webpack/container/remote/react/jsx-runtime");t("webpack/container/remote/@tarojs/runtime").document;function ownKeys(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var n=1;n=W}),children:j.length>=W?W:j.length}),"/"+W]}),Q&&(0,m.jsx)(i.View,{className:c.bem("field__error-message",[$,{disabled:F,error:X}]),children:Q})]})}},"./node_modules/@antmjs/vantui/es/field/wxs.js":function(e,n,t){t.d(n,{inputStyle:function(){return inputStyle}});var o=t("./node_modules/@antmjs/vantui/es/wxs/style.js"),r=t("./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,n,t){var o=t("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),r=t("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),a=t("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),l=t("webpack/container/remote/react"),i=t("./node_modules/@antmjs/vantui/es/common/jumpLink.js"),c=t("./node_modules/@antmjs/vantui/es/wxs/utils.js"),s=t("./node_modules/@antmjs/vantui/es/icon/index.js"),u=t("./node_modules/@antmjs/vantui/es/grid-item/wxs.js"),d=t("webpack/container/remote/react/jsx-runtime"),m=["icon","iconColor","iconPrefix","dot","info","badge","text","setChildrenInstance","parentInstance","index","url","linkType","style","className"];n.default=function GridItem(e){var n=e.icon,t=e.iconColor,f=e.iconPrefix,p=void 0===f?"van-icon":f,v=e.dot,h=e.info,b=e.badge,j=e.text,g=e.setChildrenInstance,x=e.parentInstance,y=e.index,_=e.url,w=e.linkType,k=e.style,S=e.className,C=(0,r.default)(e,m),T=(0,l.useState)({}),I=(0,o.default)(T,2),N=I[0],O=I[1];(0,l.useEffect)((function(){g(y,{updateStyle:P})}),[y,g]),(0,l.useEffect)((function(){P()}),[x.columnNum]);var P=(0,l.useCallback)((function(){var e=x.columnNum,n=x.border,t=x.square,o=x.gutter,r=x.clickable,a=x.center,l=x.direction,i=x.reverse,c=x.iconSize;O({center:a,border:n,square:t,gutter:o,clickable:r,direction:l,reverse:i,iconSize:c,index:y,columnNum:e})}),[x,y]);return(0,d.jsx)(a.View,{className:" "+c.bem("grid-item",{square:null==N?void 0:N.square})+" "+S,style:c.style([u.wrapperStyle({square:null==N?void 0:N.square,gutter:null==N?void 0:N.gutter,columnNum:null==N?void 0:N.columnNum,index:null==N?void 0:N.index}),k]),onClick:function onClick(e){var n;_&&(0,i.jumpLink)(_,w),null==C||null===(n=C.onClick)||void 0===n||n.call(C,e)},children:(0,d.jsx)(a.View,{className:"content-class "+c.bem("grid-item__content",[null==N?void 0:N.direction,{center:null==N?void 0:N.center,square:null==N?void 0:N.square,reverse:null==N?void 0:N.reverse,clickable:null==N?void 0:N.clickable,surround:(null==N?void 0:N.border)&&(null==N?void 0:N.gutter)}])+" "+(null!=N&&N.border?"van-hairline--surround":""),style:u.contentStyle({square:null==N?void 0:N.square,gutter:null==N?void 0:N.gutter}),children:C.children||(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(a.View,{className:"van-grid-item__icon icon-class",children:n?(0,d.jsx)(s.default,{name:n,color:t,classPrefix:p,dot:v,info:b||h,size:null==N?void 0:N.iconSize}):N.renderIcon}),(0,d.jsx)(a.View,{className:"van-grid-item__text text-class",children:j?(0,d.jsx)(a.Text,{children:j}):N.renderText})]})})})}},"./node_modules/@antmjs/vantui/es/grid-item/wxs.js":function(e,n,t){t.d(n,{wrapperStyle:function(){return wrapperStyle},contentStyle:function(){return contentStyle}});var o=t("./node_modules/@antmjs/vantui/es/wxs/style.js"),r=t("./node_modules/@antmjs/vantui/es/wxs/add-unit.js");function wrapperStyle(e){var n=100/e.columnNum+"%";return(0,o.style)({width:n,"padding-top":e.square?n: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,n,t){var o=t("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),r=t("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),a=t("webpack/container/remote/react"),l=t("./node_modules/@antmjs/vantui/es/wxs/utils.js"),i=t("./node_modules/@antmjs/vantui/es/grid/wxs.js"),c=t("webpack/container/remote/react/jsx-runtime"),s=["gutter","clickable","columnNum","center","border","direction","iconSize","square","reverse","className","style"];n.default=function Grid(e){var n=e.gutter,t=void 0===n?null:n,u=e.clickable,d=e.columnNum,m=void 0===d?4:d,f=e.center,p=void 0===f||f,v=e.border,h=void 0===v||v,b=e.direction,j=e.iconSize,g=void 0===j?"48":j,x=e.square,y=e.reverse,_=void 0!==y&&y,w=e.className,k=void 0===w?"":w,S=e.style,C=void 0===S?{}:S,T=(0,o.default)(e,s),I=(0,a.useRef)([]),N=(0,a.useCallback)((function(){I.current.forEach((function(e){e.updateStyle()}))}),[]);(0,a.useEffect)((function(){N()}),[N]);var O=(0,a.useCallback)((function(e,n){I.current[e]=n}),[]),P=(0,a.useMemo)((function(){var e=[];return T.children&&Array.isArray(T.children)&&T.children.forEach((function(n,o){e.push((0,a.cloneElement)(n,{setChildrenInstance:O,key:o,index:o,parentInstance:{columnNum:m,border:h,square:x,gutter:t,clickable:u,center:p,direction:b,reverse:_,iconSize:g}}))})),e}),[T.children,m]);return(0,c.jsx)(r.View,{className:"van-grid "+(h&&!t?"van-hairline--top":"")+" "+k,style:l.style([i.rootStyle({gutter:t}),C]),children:P})}},"./node_modules/@antmjs/vantui/es/grid/wxs.js":function(e,n,t){t.d(n,{rootStyle:function(){return rootStyle}});var o=t("./node_modules/@antmjs/vantui/es/wxs/style.js"),r=t("./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,n,t){var o=t("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=t("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),a=t("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),l=t("webpack/container/remote/@tarojs/taro"),i=t("webpack/container/remote/react"),c=t("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),s=t("./node_modules/@antmjs/vantui/es/wxs/utils.js"),u=t("./node_modules/@antmjs/vantui/es/common/utils.js"),d=t("./node_modules/@antmjs/vantui/es/icon/index.js"),m=t("./node_modules/@antmjs/vantui/es/notice-bar/wxs.js"),f=t("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,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var n=1;n0&&void 0!==arguments[0]&&arguments[0];j.current.timer&&clearTimeout(j.current.timer),j.current.timer=null,h((function(n){return _objectSpread(_objectSpread({},n),{},{animationData:j.current.resetAnimation.translateX(e?0:j.current.wrapWidth).step().export()})})),setTimeout((function(){(0,u.requestAnimationFrame)((function(){h((function(e){return _objectSpread(_objectSpread({},e),{},{animationData:j.current.animation.translateX(-j.current.contentWidth).step().export()})}))}))}),10),j.current.timer=setTimeout((function(){Q()}),j.current.duration)}),[]),G=(0,i.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 n=e[0],t=e[1];null!=n&&null!=t&&n.width&&t.width&&!1!==A&&(0,l.nextTick)((function(){(A||t.width<=n.width)&&(j.current.wrapWidth=t.width,j.current.contentWidth=n.width,j.current.duration=(t.width+n.width)/O*1e3,j.current.animation=(0,l.createAnimation)({duration:j.current.duration,timingFunction:"linear",delay:I}),Q(!0))}))}))}))}),[o.unitag,A,O,I,Q]),J=(0,i.useCallback)((function(e){"closeable"===_&&(j.current.timer&&clearTimeout(j.current.timer),j.current.timer=null,h((function(e){return _objectSpread(_objectSpread({},e),{},{show:!1})})),null==U||U(e))}),[_,U]);return o.show&&(0,f.jsxs)(c.View,_objectSpread(_objectSpread({className:s.bem("notice-bar",{withicon:_,wrapable:R})+" ".concat(M||""),style:s.style([m.rootStyle({color:D,backgroundColor:q,background:z}),W])},X),{},{onClick:K,children:[V?(0,f.jsx)(d.default,{name:V,className:"van-notice-bar__left-icon"}):B,(0,f.jsx)(c.View,{className:"van-notice-bar__wrap van-notice-bar__wrap_".concat(o.unitag),children:(0,f.jsxs)(c.View,{className:"van-notice-bar__content van-notice-bar__content_".concat(o.unitag," ")+(!1!==A||R?"":"van-ellipsis"),animation:o.animationData,children:[x,!x&&$]})}),"closeable"===_?(0,f.jsx)(d.default,{className:"van-notice-bar__right-icon",name:"cross",onClick:J}):"link"===_?(0,f.jsx)(c.Navigator,{url:k,openType:C,children:(0,f.jsx)(d.default,{className:"van-notice-bar__right-icon",name:"arrow"})}):H]}))}},"./node_modules/@antmjs/vantui/es/notice-bar/wxs.js":function(e,n,t){t.d(n,{rootStyle:function(){return rootStyle}});var o=t("./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,n,t){var o=t("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=t("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),a=t("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),l=t("webpack/container/remote/react"),i=t("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),c=t("./node_modules/@antmjs/vantui/es/wxs/utils.js"),s=t("./node_modules/@antmjs/vantui/es/field/index.js"),u=t("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,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var n=1;n0&&(0,S.jsx)(b.Swiper,{className:"Swiper",indicatorActiveColor:"#333",circular:!0,indicatorDots:!0,autoplay:!0,children:(null!==(T=null==J||null===(I=J[0])||void 0===I?void 0:I.imagesArr)&&void 0!==T?T:[]).map((function(e,n){return(0,S.jsx)(b.SwiperItem,{children:(0,S.jsx)(l.default,{className:"SwiperImg",src:null==e?void 0:e.url,fit:"cover",width:"100%",height:"150px"})})}))})}),(0,S.jsxs)(r.default,{children:[(0,S.jsx)(a.default,{icon:"star",text:"打卡",className:"iconStyle",onClick:(0,v.default)((0,p.default)().mark((function _callee10(){return(0,p.default)().wrap((function _callee10$(e){for(;;)switch(e.prev=e.next){case 0:if(!ae){e.next=4;break}y().getLocation({type:"gcj02",success:function success(e){console.log("lbs",e);null==e||e.latitude,null==e||e.longitude;var n={latitude:null==e?void 0:e.latitude,longitude:null==e?void 0:e.longitude};me(n)},fail:function fail(){m.default.fail({message:"定位授权异常,无法签到打卡",selector:"#vanToast-demo2"})}}),e.next=7;break;case 4:return e.next=6,se();case 6:m.default.fail({message:"请先登录",selector:"#vanToast-demo2",duration:2e3,onClose:function onClose(){y().navigateTo({url:"/pages/my/index"})}});case 7:case"end":return e.stop()}}),_callee10)})))}),(0,S.jsx)(a.default,{icon:"like",className:"iconStyle",text:"深圳十峰",onClick:function onClick(){y().navigateTo({url:"/pages/mountainPeak/index"})}}),(0,S.jsx)(a.default,{icon:"eye",className:"iconStyle",text:"活动",onClick:function onClick(){y().navigateTo({url:"/pages/activityList/index"})}}),(0,S.jsx)(a.default,{icon:"video",className:"iconStyle",text:"视频",onClick:function onClick(){var e,n,t,o,r,a;y().openChannelsActivity({finderUserName:null!==(e=null==J||null===(n=J[0])||void 0===n||null===(t=n.videoObj)||void 0===t?void 0:t.finderUserName)&&void 0!==e?e:"sphqzUmI0BlppCI",feedId:null!==(o=null==J||null===(r=J[0])||void 0===r||null===(a=r.videoObj)||void 0===a?void 0:a.feedId)&&void 0!==o?o:"export/UzFfAgtgekIEAQAAAAAAeIIQA5S-0wAAAAstQy6ubaLX4KHWvLEZgBPEj6MUcExXaL37zNPgMJpEUVVnZ9njxR_hb9_u-bQj",success:function success(e){console.log("res",e)}})}})]}),(null==$?void 0:$.length)>0?(0,S.jsx)(b.View,{children:(null!==(N=null==$||null===(O=$.reverse())||void 0===O?void 0:O.splice(0,2))&&void 0!==N?N:[]).map((function(e,n){return(0,S.jsx)(b.View,{onClick:function onClick(){console.log("Card"),y().navigateTo({url:"/pages/activityList/components/details/index?id=".concat(null==e?void 0:e._id)})},children:(0,S.jsx)(k.default,{dataSource:e})})}))}):(0,S.jsx)(o.default,{title:!0,row:4}),(0,S.jsxs)(b.View,{style:{marginTop:"20px"},children:[" ",(0,S.jsx)(b.OfficialAccount,{onLoad:function onLoad(e){console.log("加载成功",e)},onError:function onError(e){console.log("加载失败",e)}})]}),(0,S.jsx)(m.default,{id:"vanToast-demo2"}),(0,S.jsx)(_.default,{active:0})]})}},"./src/pages/home/index.tsx":function(e,n,t){var o=t("webpack/container/remote/@tarojs/runtime"),r=t("./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 n="./src/pages/home/index.tsx",e(e.s=n);var n}));e.O()}]); \ No newline at end of file +"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([["pages/home/index"],{"./node_modules/@antmjs/vantui/es/field/index.js":function(e,n,t){t.d(n,{Field:function(){return Field}});var o=t("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=t("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),a=t("webpack/container/remote/@tarojs/taro"),l=t("webpack/container/remote/react"),i=t("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),c=t("./node_modules/@antmjs/vantui/es/wxs/utils.js"),s=t("./node_modules/@antmjs/vantui/es/cell/index.js"),u=t("./node_modules/@antmjs/vantui/es/icon/index.js"),d=(t("./node_modules/@antmjs/vantui/es/utils/index.js"),t("./node_modules/@antmjs/vantui/es/field/wxs.js")),m=t("webpack/container/remote/react/jsx-runtime");t("webpack/container/remote/@tarojs/runtime").document;function ownKeys(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var n=1;n=W}),children:j.length>=W?W:j.length}),"/"+W]}),Q&&(0,m.jsx)(i.View,{className:c.bem("field__error-message",[$,{disabled:F,error:X}]),children:Q})]})}},"./node_modules/@antmjs/vantui/es/field/wxs.js":function(e,n,t){t.d(n,{inputStyle:function(){return inputStyle}});var o=t("./node_modules/@antmjs/vantui/es/wxs/style.js"),r=t("./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,n,t){var o=t("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),r=t("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),a=t("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),l=t("webpack/container/remote/react"),i=t("./node_modules/@antmjs/vantui/es/common/jumpLink.js"),c=t("./node_modules/@antmjs/vantui/es/wxs/utils.js"),s=t("./node_modules/@antmjs/vantui/es/icon/index.js"),u=t("./node_modules/@antmjs/vantui/es/grid-item/wxs.js"),d=t("webpack/container/remote/react/jsx-runtime"),m=["icon","iconColor","iconPrefix","dot","info","badge","text","setChildrenInstance","parentInstance","index","url","linkType","style","className"];n.default=function GridItem(e){var n=e.icon,t=e.iconColor,f=e.iconPrefix,p=void 0===f?"van-icon":f,v=e.dot,h=e.info,b=e.badge,j=e.text,g=e.setChildrenInstance,x=e.parentInstance,y=e.index,_=e.url,w=e.linkType,k=e.style,S=e.className,C=(0,r.default)(e,m),T=(0,l.useState)({}),I=(0,o.default)(T,2),N=I[0],O=I[1];(0,l.useEffect)((function(){g(y,{updateStyle:P})}),[y,g]),(0,l.useEffect)((function(){P()}),[x.columnNum]);var P=(0,l.useCallback)((function(){var e=x.columnNum,n=x.border,t=x.square,o=x.gutter,r=x.clickable,a=x.center,l=x.direction,i=x.reverse,c=x.iconSize;O({center:a,border:n,square:t,gutter:o,clickable:r,direction:l,reverse:i,iconSize:c,index:y,columnNum:e})}),[x,y]);return(0,d.jsx)(a.View,{className:" "+c.bem("grid-item",{square:null==N?void 0:N.square})+" "+S,style:c.style([u.wrapperStyle({square:null==N?void 0:N.square,gutter:null==N?void 0:N.gutter,columnNum:null==N?void 0:N.columnNum,index:null==N?void 0:N.index}),k]),onClick:function onClick(e){var n;_&&(0,i.jumpLink)(_,w),null==C||null===(n=C.onClick)||void 0===n||n.call(C,e)},children:(0,d.jsx)(a.View,{className:"content-class "+c.bem("grid-item__content",[null==N?void 0:N.direction,{center:null==N?void 0:N.center,square:null==N?void 0:N.square,reverse:null==N?void 0:N.reverse,clickable:null==N?void 0:N.clickable,surround:(null==N?void 0:N.border)&&(null==N?void 0:N.gutter)}])+" "+(null!=N&&N.border?"van-hairline--surround":""),style:u.contentStyle({square:null==N?void 0:N.square,gutter:null==N?void 0:N.gutter}),children:C.children||(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(a.View,{className:"van-grid-item__icon icon-class",children:n?(0,d.jsx)(s.default,{name:n,color:t,classPrefix:p,dot:v,info:b||h,size:null==N?void 0:N.iconSize}):N.renderIcon}),(0,d.jsx)(a.View,{className:"van-grid-item__text text-class",children:j?(0,d.jsx)(a.Text,{children:j}):N.renderText})]})})})}},"./node_modules/@antmjs/vantui/es/grid-item/wxs.js":function(e,n,t){t.d(n,{wrapperStyle:function(){return wrapperStyle},contentStyle:function(){return contentStyle}});var o=t("./node_modules/@antmjs/vantui/es/wxs/style.js"),r=t("./node_modules/@antmjs/vantui/es/wxs/add-unit.js");function wrapperStyle(e){var n=100/e.columnNum+"%";return(0,o.style)({width:n,"padding-top":e.square?n: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,n,t){var o=t("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),r=t("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),a=t("webpack/container/remote/react"),l=t("./node_modules/@antmjs/vantui/es/wxs/utils.js"),i=t("./node_modules/@antmjs/vantui/es/grid/wxs.js"),c=t("webpack/container/remote/react/jsx-runtime"),s=["gutter","clickable","columnNum","center","border","direction","iconSize","square","reverse","className","style"];n.default=function Grid(e){var n=e.gutter,t=void 0===n?null:n,u=e.clickable,d=e.columnNum,m=void 0===d?4:d,f=e.center,p=void 0===f||f,v=e.border,h=void 0===v||v,b=e.direction,j=e.iconSize,g=void 0===j?"48":j,x=e.square,y=e.reverse,_=void 0!==y&&y,w=e.className,k=void 0===w?"":w,S=e.style,C=void 0===S?{}:S,T=(0,o.default)(e,s),I=(0,a.useRef)([]),N=(0,a.useCallback)((function(){I.current.forEach((function(e){e.updateStyle()}))}),[]);(0,a.useEffect)((function(){N()}),[N]);var O=(0,a.useCallback)((function(e,n){I.current[e]=n}),[]),P=(0,a.useMemo)((function(){var e=[];return T.children&&Array.isArray(T.children)&&T.children.forEach((function(n,o){e.push((0,a.cloneElement)(n,{setChildrenInstance:O,key:o,index:o,parentInstance:{columnNum:m,border:h,square:x,gutter:t,clickable:u,center:p,direction:b,reverse:_,iconSize:g}}))})),e}),[T.children,m]);return(0,c.jsx)(r.View,{className:"van-grid "+(h&&!t?"van-hairline--top":"")+" "+k,style:l.style([i.rootStyle({gutter:t}),C]),children:P})}},"./node_modules/@antmjs/vantui/es/grid/wxs.js":function(e,n,t){t.d(n,{rootStyle:function(){return rootStyle}});var o=t("./node_modules/@antmjs/vantui/es/wxs/style.js"),r=t("./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,n,t){var o=t("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=t("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),a=t("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),l=t("webpack/container/remote/@tarojs/taro"),i=t("webpack/container/remote/react"),c=t("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),s=t("./node_modules/@antmjs/vantui/es/wxs/utils.js"),u=t("./node_modules/@antmjs/vantui/es/common/utils.js"),d=t("./node_modules/@antmjs/vantui/es/icon/index.js"),m=t("./node_modules/@antmjs/vantui/es/notice-bar/wxs.js"),f=t("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,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var n=1;n0&&void 0!==arguments[0]&&arguments[0];j.current.timer&&clearTimeout(j.current.timer),j.current.timer=null,h((function(n){return _objectSpread(_objectSpread({},n),{},{animationData:j.current.resetAnimation.translateX(e?0:j.current.wrapWidth).step().export()})})),setTimeout((function(){(0,u.requestAnimationFrame)((function(){h((function(e){return _objectSpread(_objectSpread({},e),{},{animationData:j.current.animation.translateX(-j.current.contentWidth).step().export()})}))}))}),10),j.current.timer=setTimeout((function(){Q()}),j.current.duration)}),[]),G=(0,i.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 n=e[0],t=e[1];null!=n&&null!=t&&n.width&&t.width&&!1!==A&&(0,l.nextTick)((function(){(A||t.width<=n.width)&&(j.current.wrapWidth=t.width,j.current.contentWidth=n.width,j.current.duration=(t.width+n.width)/O*1e3,j.current.animation=(0,l.createAnimation)({duration:j.current.duration,timingFunction:"linear",delay:I}),Q(!0))}))}))}))}),[o.unitag,A,O,I,Q]),J=(0,i.useCallback)((function(e){"closeable"===_&&(j.current.timer&&clearTimeout(j.current.timer),j.current.timer=null,h((function(e){return _objectSpread(_objectSpread({},e),{},{show:!1})})),null==U||U(e))}),[_,U]);return o.show&&(0,f.jsxs)(c.View,_objectSpread(_objectSpread({className:s.bem("notice-bar",{withicon:_,wrapable:R})+" ".concat(M||""),style:s.style([m.rootStyle({color:D,backgroundColor:q,background:z}),W])},X),{},{onClick:K,children:[V?(0,f.jsx)(d.default,{name:V,className:"van-notice-bar__left-icon"}):B,(0,f.jsx)(c.View,{className:"van-notice-bar__wrap van-notice-bar__wrap_".concat(o.unitag),children:(0,f.jsxs)(c.View,{className:"van-notice-bar__content van-notice-bar__content_".concat(o.unitag," ")+(!1!==A||R?"":"van-ellipsis"),animation:o.animationData,children:[x,!x&&$]})}),"closeable"===_?(0,f.jsx)(d.default,{className:"van-notice-bar__right-icon",name:"cross",onClick:J}):"link"===_?(0,f.jsx)(c.Navigator,{url:k,openType:C,children:(0,f.jsx)(d.default,{className:"van-notice-bar__right-icon",name:"arrow"})}):H]}))}},"./node_modules/@antmjs/vantui/es/notice-bar/wxs.js":function(e,n,t){t.d(n,{rootStyle:function(){return rootStyle}});var o=t("./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,n,t){var o=t("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=t("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),a=t("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),l=t("webpack/container/remote/react"),i=t("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),c=t("./node_modules/@antmjs/vantui/es/wxs/utils.js"),s=t("./node_modules/@antmjs/vantui/es/field/index.js"),u=t("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,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var n=1;n0&&(0,S.jsx)(b.Swiper,{className:"Swiper",indicatorActiveColor:"#333",circular:!0,indicatorDots:!0,autoplay:!0,children:(null!==(T=null==J||null===(I=J[0])||void 0===I?void 0:I.imagesArr)&&void 0!==T?T:[]).map((function(e,n){return(0,S.jsx)(b.SwiperItem,{children:(0,S.jsx)(l.default,{className:"SwiperImg",src:null==e?void 0:e.url,fit:"cover",width:"100%",height:"150px"})})}))})}),(0,S.jsxs)(r.default,{children:[(0,S.jsx)(a.default,{icon:"star",text:"打卡",className:"iconStyle",onClick:(0,v.default)((0,p.default)().mark((function _callee10(){return(0,p.default)().wrap((function _callee10$(e){for(;;)switch(e.prev=e.next){case 0:if(!ae){e.next=4;break}y().getLocation({type:"gcj02",success:function success(e){console.log("lbs",e);null==e||e.latitude,null==e||e.longitude;var n={latitude:null==e?void 0:e.latitude,longitude:null==e?void 0:e.longitude};de(n)},fail:function fail(){m.default.fail({message:"定位授权异常,无法签到打卡",selector:"#vanToast-demo2"})}}),e.next=7;break;case 4:return e.next=6,ce();case 6:m.default.fail({message:"请先登录",selector:"#vanToast-demo2",duration:2e3,onClose:function onClose(){y().navigateTo({url:"/pages/my/index"})}});case 7:case"end":return e.stop()}}),_callee10)})))}),(0,S.jsx)(a.default,{icon:"like",className:"iconStyle",text:"深圳十峰",onClick:function onClick(){y().navigateTo({url:"/pages/mountainPeak/index"})}}),(0,S.jsx)(a.default,{icon:"eye",className:"iconStyle",text:"活动",onClick:function onClick(){y().navigateTo({url:"/pages/activityList/index"})}}),(0,S.jsx)(a.default,{icon:"video",className:"iconStyle",text:"视频",onClick:function onClick(){var e,n,t,o,r,a;y().openChannelsActivity({finderUserName:null!==(e=null==J||null===(n=J[0])||void 0===n||null===(t=n.videoObj)||void 0===t?void 0:t.finderUserName)&&void 0!==e?e:"sphqzUmI0BlppCI",feedId:null!==(o=null==J||null===(r=J[0])||void 0===r||null===(a=r.videoObj)||void 0===a?void 0:a.feedId)&&void 0!==o?o:"export/UzFfAgtgekIEAQAAAAAAeIIQA5S-0wAAAAstQy6ubaLX4KHWvLEZgBPEj6MUcExXaL37zNPgMJpEUVVnZ9njxR_hb9_u-bQj",success:function success(e){console.log("res",e)}})}})]}),(null==$?void 0:$.length)>0?(0,S.jsx)(b.View,{children:(null!==(N=null==$||null===(O=$.reverse())||void 0===O?void 0:O.splice(0,2))&&void 0!==N?N:[]).map((function(e,n){return(0,S.jsx)(b.View,{onClick:function onClick(){console.log("Card"),y().navigateTo({url:"/pages/activityList/components/details/index?id=".concat(null==e?void 0:e._id)})},children:(0,S.jsx)(k.default,{dataSource:e})})}))}):(0,S.jsx)(o.default,{title:!0,row:4}),(0,S.jsxs)(b.View,{style:{marginTop:"20px"},children:[" ",(0,S.jsx)(b.OfficialAccount,{onLoad:function onLoad(e){console.log("加载成功",e)},onError:function onError(e){console.log("加载失败",e)}})]}),(0,S.jsx)(m.default,{id:"vanToast-demo2"}),(0,S.jsx)(_.default,{active:0})]})}},"./src/pages/home/index.tsx":function(e,n,t){var o=t("webpack/container/remote/@tarojs/runtime"),r=t("./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 n="./src/pages/home/index.tsx",e(e.s=n);var n}));e.O()}]); \ No newline at end of file diff --git a/dist/pages/my/index.js b/dist/pages/my/index.js index 307af64..20d7174 100644 --- a/dist/pages/my/index.js +++ b/dist/pages/my/index.js @@ -1,2 +1,2 @@ /*! For license information please see index.js.LICENSE.txt */ -(wx.webpackJsonp=wx.webpackJsonp||[]).push([["pages/my/index"],{"./node_modules/@antmjs/vantui/es/mixins/page-scroll.js":function(e,t,n){"use strict";n.d(t,{usePageScroll:function(){return usePageScroll}});var r=n("webpack/container/remote/react"),o=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,o.usePageScroll)((function(t){e(t)}))}},"./node_modules/@antmjs/vantui/es/sticky/index.js":function(e,t,n){"use strict";n.d(t,{Sticky:function(){return Sticky}});var r=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),i=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),a=n("webpack/container/remote/react"),s=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),l=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),c=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"),p=n("webpack/container/remote/react/jsx-runtime"),m=["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]),P=(0,a.useCallback)((function(e){var t=Object.keys(e).reduce((function(t,n){return e[n]!==h[n]&&(t[n]=e[n]),t}),{});Object.keys(t).length>0&&v((function(e){return _objectSpread(_objectSpread({},e),t)})),null==_||_({detail:{scrollTop:C.current.scrollTop,isFixed:e.fixed||h.fixed}})}),[_,h]),E=(0,a.useCallback)((function(e){j?P({fixed:!1,transform:0}):(C.current.scrollTop=e||C.current.scrollTop,"function"!=typeof w?(0,c.getRect)(null,"#sticky-com-index".concat(t.current)).then((function(e){(0,u.isDef)(e)&&(x>=e.top?P({fixed:!0,height:e.height}):P({fixed:!1}))})):Promise.all([(0,c.getRect)(null,"#sticky-com-index".concat(t.current)),I()]).then((function(e){var t=(0,i.default)(e,2),n=t[0],r=t[1];n&&r&&(x+n.height>r.height+r.top?P({fixed:!1,transform:r.height-n.height}):x>=n.top?P({fixed:!0,height:n.height,transform:0}):P({fixed:!1,transform:0}))})).catch((function(e){console.log(e)})))}),[w,j,I,x,P]);return(0,a.useEffect)((function(){E(g)}),[g,w,j,x]),(0,d.usePageScroll)((function(e){E(e.scrollTop)})),(0,p.jsx)(s.View,_objectSpread(_objectSpread({id:"sticky-com-index".concat(t.current),className:" van-sticky "+(S||""),style:l.style([f.containerStyle({fixed:h.fixed,height:h.height,zIndex:b}),k])},O),{},{children:(0,p.jsx)(s.View,{className:l.bem("sticky-wrap",{fixed:h.fixed})+" ".concat(S||""),style:l.style([f.wrapStyle({fixed:h.fixed,offsetTop:x,transform:h.transform,zIndex:b}),k]),children:T})}))}},"./node_modules/@antmjs/vantui/es/sticky/wxs.js":function(e,t,n){"use strict";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){"use strict";var r=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),i=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),a=n("webpack/container/remote/react"),s=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),l=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),c=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=je.length||e<0)&&e!==N){var t=null!==N;P((function(t){return _objectSpread(_objectSpread({},t),{},{currentIndex:e})})),(0,v.requestAnimationFrame)((function(){Te(e),Ce(e)})),(0,c.nextTick)((function(){t&&we("onChange",je[e])}))}},Se=function setCurrentIndexByName(e){var t=je.filter((function(t){return(t.props.name||t.props.index)===e}));t.length&&ke(t[0].props.index)},Te=function resize(e){var r;"line"===Y&&(e=null!==(r=e)&&void 0!==r?r:N,(0,c.nextTick)((function(){Promise.all([(0,v.getAllRect)(null,".tabs-com-index".concat(n.current," .van-tab")),(0,v.getRect)(null,".tabs-com-index".concat(n.current," .van-tabs__line"))]).then((function(n){var r=(0,i.default)(n,2),o=r[0],a=void 0===o?[]:o,s=r[1];if(a&&s){var l=a[e];if(null==l)return;var u=a.slice(0,e).reduce((function(e,t){return e+t.width}),0);u+=(l.width-s.width)/2+(Q?0:8),P((function(e){return _objectSpread(_objectSpread({},e),{},{lineOffsetLeft:u})})),t.current.swiping=!0,A&&(0,c.nextTick)((function(){P((function(e){return _objectSpread(_objectSpread({},e),{},{skipTransition:!1})}))}))}}))})))},Oe=function onTap(e){var t=e.currentTarget.dataset.index;t=parseInt(t);var n=je[t];n.props.disabled?we("onDisabled",n):(ke(t),(0,c.nextTick)((function(){we("onClick",n)})))},Ce=function scrollIntoView(e){var t;L&&(e=null!==(t=e)&&void 0!==t?t:N,Promise.all([(0,v.getAllRect)(null,".tabs-com-index".concat(n.current," .van-tab")),(0,v.getRect)(null,".tabs-com-index".concat(n.current," .van-tabs__nav"))]).then((function(t){var n=(0,i.default)(t,2),r=n[0],o=n[1];if(r&&o){var a=r[e],s=r.slice(0,e).reduce((function(e,t){return e+t.width}),0);P((function(e){return _objectSpread(_objectSpread({},e),{},{scrollLeft:s-(o.width-a.width)/2})})),R||(0,c.nextTick)((function(){P((function(e){return _objectSpread(_objectSpread({},e),{},{scrollWithAnimation:!0})}))}))}})))},Ie=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},Pe=function onTouchEnd(){if(V&&t.current.swiping){var e=t.current,n=e.direction,r=e.deltaX,o=e.offsetX;if("horizontal"===n&&o>=50){var i=function getAvaiableTab(e){for(var t=e>0?-1:1,n=t;N+n=0;n+=t){var r=N+n;if(r>=0&&rle||!Q})}))}),[le,je,Q]),(0,u.useEffect)((function(){(0,c.nextTick)((function(){Te()}))}),[je]);var Ee=(0,u.useCallback)((0,r.default)(l().mark((function _callee(){var e,t,r;return l().wrap((function _callee$(o){for(;;)switch(o.prev=o.next){case 0:if(e=0,!ue||!j){o.next=6;break}return o.next=4,(0,v.getAllRect)(null,"."+p.bem("renderNavLeft"+n.current));case 4:(t=o.sent).length&&(e+=t[0].width);case 6:if(!de||!j){o.next=11;break}return o.next=9,(0,v.getAllRect)(null,"."+p.bem("renderNavRight"+n.current));case 9:(r=o.sent).length&&(e+=r[0].width);case 11:e&&T("calc(100% - ".concat(e,"px)"));case 12:case"end":return o.stop()}}),_callee)}))),[ue,j,de]);return(0,u.useEffect)((function(){setTimeout((function(){Ee()}))}),[Ee,j]),(0,x.jsxs)(f.View,_objectSpread(_objectSpread({className:"tabs-com-index".concat(n.current," ")+" "+p.bem("tabs",[Y]+" ".concat(be||"")),style:ve},xe),{},{children:[(0,x.jsx)(h.Sticky,{disabled:!W,zIndex:$,offsetTop:q,container:K,onScroll:fe,children:(0,x.jsxs)(f.View,{className:p.bem("tabs__wrap",{scrollable:L})+" "+("line"===Y&&U?"van-hairline--top-bottom":""),children:[(0,x.jsx)(f.View,{className:p.bem("renderNavLeft"+n.current),children:ue}),(0,x.jsx)(f.ScrollView,{scrollX:L,scrollWithAnimation:R,scrollLeft:E,className:p.bem("tabs__scroll",[Y]),style:{width:S,borderColor:B},children:(0,x.jsxs)(f.View,{className:p.bem("tabs__nav",[Y,{complete:!Q}])+" nav-class",style:y.navStyle(B,Y),children:["line"===Y&&(0,x.jsx)(f.View,{className:"van-tabs__line",style:y.lineStyle({color:B,lineOffsetLeft:F,lineHeight:ee,skipTransition:A,duration:ne,lineWidth:oe})}),ge.map((function(e,t){return(0,x.jsx)(f.View,{"data-index":t,className:y.tabClass(t===N,Q)+" "+p.bem("tab",{active:t===N,disabled:e.disabled,complete:!Q}),style:y.tabStyle({active:t===N,ellipsis:Q,color:B,type:Y,disabled:e.disabled,titleActiveColor:ie,titleInactiveColor:ae,swipeThreshold:le,scrollable:L}),onClick:Oe,children:(0,x.jsxs)(f.View,{className:Q?"van-ellipsis":"",style:e.titleStyle,children:[e.title,(null!==e.info||e.dot)&&(0,x.jsx)(b.Info,{info:e.info,dot:e.dot,className:"van-tab__title__info"})]})},t)}))]})}),(0,x.jsx)(f.View,{className:p.bem("renderNavRight"+n.current),children:de})]})}),(0,x.jsx)(f.View,{className:"van-tabs__content",onTouchStart:function onTouchStart(e){V&&(t.current.swiping=!0,Ie(e))},onTouchMove:function onTouchMove(e){V&&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:Pe,onTouchCancel:Pe,children:(0,x.jsx)(f.View,{className:p.bem("tabs__track",[{animated:ce}])+" van-tabs__track",style:y.trackStyle({duration:ne,currentIndex:N,animated:ce}),children:je})})]}))}},"./node_modules/@antmjs/vantui/es/tabs/wxs.js":function(e,t,n){"use strict";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"),o=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:o.addUnit(e.lineWidth),transform:"translateX("+e.lineOffsetLeft+"px)","-webkit-transform":"translateX("+e.lineOffsetLeft+"px)","background-color":e.color,height:-1!==e.lineHeight?o.addUnit(e.lineHeight):null,"border-radius":-1!==e.lineHeight?o.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){"use strict";var r=n("./node_modules/@antmjs/vantui/es/icon/index.js"),o=n("./node_modules/@antmjs/vantui/es/cell/index.js"),i=n("./node_modules/@antmjs/vantui/es/toast/index.js"),a=n("./node_modules/@antmjs/vantui/es/tabs/index.js"),s=n("./node_modules/@antmjs/vantui/es/tab/index.js"),l=n("./node_modules/@antmjs/vantui/es/button/index.js"),c=n("./node_modules/@antmjs/vantui/es/image/index.js"),u=n("./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"),d=n("./node_modules/@antmjs/vantui/es/empty/index.js"),f=n("./node_modules/@babel/runtime/helpers/esm/objectSpread2.js"),p=n("./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js"),m=n("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),h=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),v=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),b=n("webpack/container/remote/react"),y=n("./src/pages/components/TabbarCom/index.tsx"),x=n("webpack/container/remote/@tarojs/taro"),g=n.n(x),j=n("./src/pages/components/ActiveCard/index.tsx"),w=n("./src/utils/index.ts"),_=n("./config.js"),k=n("webpack/container/remote/react/jsx-runtime");t.default=function my(e){var t=(0,b.useState)({}),n=(0,h.default)(t,2),x=(n[0],n[1]),S=(0,b.useState)(""),T=(0,h.default)(S,2),O=T[0],C=T[1],I=(0,b.useState)([]),P=(0,h.default)(I,2),E=(P[0],P[1]),L=(0,b.useState)([]),N=(0,h.default)(L,2),A=N[0],R=N[1],F=(0,b.useState)(0),V=(0,h.default)(F,2),D=V[0],G=V[1],z=(0,b.useState)(!1),M=(0,h.default)(z,2),X=M[0],Y=M[1],W=(0,b.useState)(!1),K=(0,h.default)(W,2),$=K[0],H=K[1];(0,b.useEffect)((function(){q()}),[]);var q=function(){var e=(0,m.default)((0,p.default)().mark((function _callee(){var e;return(0,p.default)().wrap((function _callee$(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,w.phoneLogin)();case 2:e=t.sent,console.log("isLogin",e),Y(e),H(!0);case 6:case"end":return t.stop()}}),_callee)})));return function getLogin(){return e.apply(this,arguments)}}();(0,b.useEffect)((function(){X&&U()}),[X]);var U=function getUserInfo(){var e;g().cloud.callFunction({name:"getOpenid",complete:(e=(0,m.default)((0,p.default)().mark((function _callee2(e){var t,n,r,o,i;return(0,p.default)().wrap((function _callee2$(a){for(;;)switch(a.prev=a.next){case 0:console.log("callFunction test result: ",e),o=null==e||null===(t=e.result)||void 0===t||null===(n=t.event)||void 0===n||null===(r=n.userInfo)||void 0===r?void 0:r.openId,C(o),i={tableName:"userInfo",keyValue:{openId:o},okFun:function okFun(e){var t,n,r,i;console.log("userinfo--",e),x(null!==(t=null==e||null===(n=e.data)||void 0===n?void 0:n[0])&&void 0!==t?t:{}),E(null!==(r=null==e||null===(i=e.data)||void 0===i?void 0:i.activeidArr)&&void 0!==r?r:[]),B(o,"1")}},(0,w.getTable)(i);case 5:case"end":return a.stop()}}),_callee2)}))),function complete(t){return e.apply(this,arguments)})})},B=function getDetails(e,t){var n=g().cloud.database({}).command,r=t?{peopleArr:n.elemMatch({openid:n.eq(e),status:n.eq(t)})}:{peopleArr:n.elemMatch({openid:n.eq(e)})},o={tableName:"details",keyValue:(0,f.default)({},r),okFun:function okFun(e){var t;console.log("detailsData/usero--",e),R(null!==(t=null==e?void 0:e.data)&&void 0!==t?t:[])}};(0,w.getTable)(o)};(0,b.useEffect)((function(){}),[]);return(0,k.jsxs)(v.View,{className:"myContent",children:[(0,k.jsxs)(v.View,{className:"myImage",children:[(0,k.jsx)(c.default,{round:!0,width:"100px",height:"100px",src:"cloud://citynew-0givkbre03955d8c.6369-citynew-0givkbre03955d8c-1253655588/images/touxiang/images.jpg"}),!X&&$&&(0,k.jsx)(v.View,{className:"loginBtn",children:(0,k.jsx)(l.default,{type:"primary",size:"mini",lang:"zh_CN",onClick:(0,m.default)((0,p.default)().mark((function _callee8(){return(0,p.default)().wrap((function _callee8$(e){for(;;)switch(e.prev=e.next){case 0:g().chooseAddress({success:function success(e){var t;console.log("AddressRes",e),g().cloud.callFunction({name:"getOpenid",complete:(t=(0,m.default)((0,p.default)().mark((function _callee7(t){var n,r,o,i,a;return(0,p.default)().wrap((function _callee7$(s){for(;;)switch(s.prev=s.next){case 0:return i=null==t||null===(n=t.result)||void 0===n||null===(r=n.event)||void 0===r||null===(o=r.userInfo)||void 0===o?void 0:o.openId,console.log("openid",i),a={tableName:"userInfo",keyValue:{openId:i},okFun:function(){var t=(0,m.default)((0,p.default)().mark((function _callee6(t){var n,r,o,i,a,s;return(0,p.default)().wrap((function _callee6$(l){for(;;)switch(l.prev=l.next){case 0:return console.log("userRes",t),s={tableName:"userInfo",id:null==t||null===(n=t.data)||void 0===n||null===(r=n[0])||void 0===r?void 0:r._id,objData:{authInfo:[].concat((0,u.default)(null!==(o=null==t||null===(i=t.data)||void 0===i||null===(a=i[0])||void 0===a?void 0:a.authInfo)&&void 0!==o?o:[]),[e])},okFun:function(){var e=(0,m.default)((0,p.default)().mark((function _callee5(e){return(0,p.default)().wrap((function _callee5$(t){for(;;)switch(t.prev=t.next){case 0:console.log("添加用户认证信息",e),Y(!0);case 2:case"end":return t.stop()}}),_callee5)})));return function okFun(t){return e.apply(this,arguments)}}()},l.next=4,(0,w.updateTableid)((0,f.default)({},s));case 4:case"end":return l.stop()}}),_callee6)})));return function okFun(e){return t.apply(this,arguments)}}()},s.next=5,(0,w.getTable)((0,f.default)({},a));case 5:case"end":return s.stop()}}),_callee7)}))),function complete(e){return t.apply(this,arguments)})}),console.log(e.telNumber)}});case 1:case"end":return e.stop()}}),_callee8)}))),children:"登录"})})]}),(0,k.jsxs)(v.View,{children:[(0,k.jsxs)(a.default,{sticky:!0,active:D,onClick:function(){var e=(0,m.default)((0,p.default)().mark((function _callee9(e){var t,n;return(0,p.default)().wrap((function _callee9$(r){for(;;)switch(r.prev=r.next){case 0:return console.log("e",e),G(null==e||null===(t=e.detail)||void 0===t?void 0:t.index),r.next=4,B(O,null==e||null===(n=e.detail)||void 0===n?void 0:n.name);case 4:case"end":return r.stop()}}),_callee9)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,k.jsx)(s.default,{title:"待审核",name:"1"}),(0,k.jsx)(s.default,{title:"待参加",name:"2"}),(0,k.jsx)(s.default,{title:"已取消",name:"4"})]}),(0,k.jsx)(v.View,{children:function CardCom(){return(0,k.jsx)(v.View,{children:(null==A?void 0:A.length)>0?(0,k.jsx)(v.View,{children:A.splice(0,2).map((function(e,t){return(0,k.jsx)(v.View,{onClick:function onClick(){console.log("Card"),g().navigateTo({url:"/pages/activityList/components/details/index?id=".concat(null==e?void 0:e._id)})},children:(0,k.jsx)(j.default,{dataSource:e})})}))}):(0,k.jsx)(v.View,{children:(0,k.jsx)(d.default,{className:"customImage",image:"https://img.yzcdn.cn/vant/custom-empty-image.png"})})})}()})]}),(0,k.jsxs)(v.View,{className:"cellArr",children:[(0,k.jsx)(o.default,{icon:"star",title:"打卡记录",isLink:!0,onClick:function onClick(){X?g().navigateTo({url:"/pages/my/components/CheckinDetail/index"}):i.default.fail({message:"请先登录",selector:"#vanToast-demo2"})}}),(0,k.jsx)(o.default,{icon:"manager",title:"申请成为领队",isLink:!0,onClick:function onClick(){i.default.fail({message:"首次参加活动后,可申请成为领队",selector:"#vanToast-demo2"})}}),(0,k.jsxs)(v.View,{className:"wechat",children:[(0,k.jsx)(r.default,{name:"wechat",size:"16px",className:"icon"}),(0,k.jsx)(l.default,{"open-type":"contact",className:"wecahtBtn",children:"联系客服"})]}),"people"!==_.type&&(0,k.jsx)(o.default,{title:"微信客服",icon:"wechat",isLink:!0,value:"",onClick:function onClick(){g().openCustomerServiceChat({corpId:"wwb04af9a97514271c",extInfo:{url:"https://work.weixin.qq.com/kfid/kfc70f3f112c97a54c5"},success:function success(e){}})}}),(0,k.jsx)(o.default,{icon:"friends",title:"关于我们",isLink:!0,onClick:function onClick(){g().navigateTo({url:"/pages/my/components/AbountUs/index"})}}),(0,k.jsx)(o.default,{icon:"setting",title:"版本日志",isLink:!0,onClick:function onClick(){g().navigateTo({url:"/pages/my/components/Version/index"})}})]}),(0,k.jsx)(i.default,{id:"vanToast-demo2"}),(0,k.jsx)(y.default,{active:2})]})}},"./src/pages/my/index.tsx":function(e,t,n){"use strict";var r=n("webpack/container/remote/@tarojs/runtime"),o=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)(o.default,"pages/my/index",{root:{cn:[]}},{navigationBarTitleText:"我的"}||{}))},"./node_modules/@babel/runtime/helpers/regeneratorRuntime.js":function(e,t,n){var r=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,o=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",c=a.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,r){var o=t&&t.prototype instanceof Generator?t:Generator,a=Object.create(o.prototype),s=new Context(r||[]);return i(a,"_invoke",{value:makeInvokeMethod(e,n,s)}),a}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,s,(function(){return this}));var f=Object.getPrototypeOf,p=f&&f(f(values([])));p&&p!==n&&o.call(p,s)&&(d=p);var m=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,i,a,s){var l=tryCatch(e[n],e,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==r(u)&&o.call(u,"__await")?t.resolve(u.__await).then((function(e){invoke("next",e,a,s)}),(function(e){invoke("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return invoke("throw",e,a,s)}))}s(l.arg)}var n;i(this,"_invoke",{value:function value(e,r){function callInvokeWithMethodAndArg(){return new t((function(t,n){invoke(e,r,t,n)}))}return n=n?n.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return doneResult()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=maybeInvokeDelegate(a,n);if(s){if(s===u)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=tryCatch(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.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 r=tryCatch(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):o:(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[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function next(){for(;++n=0;--n){var r=this.tryEntries[n],i=r.completion;if("root"===r.tryLoc)return handle("end");if(r.tryLoc<=this.prev){var a=o.call(r,"catchLoc"),s=o.call(r,"finallyLoc");if(a&&s){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"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 r=n.completion;if("throw"===r.type){var o=r.arg;resetTryEntry(n)}return o}}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 r=n("./node_modules/@babel/runtime/helpers/regeneratorRuntime.js")();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}},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 +(wx.webpackJsonp=wx.webpackJsonp||[]).push([["pages/my/index"],{"./node_modules/@antmjs/vantui/es/mixins/page-scroll.js":function(e,t,n){"use strict";n.d(t,{usePageScroll:function(){return usePageScroll}});var r=n("webpack/container/remote/react"),o=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,o.usePageScroll)((function(t){e(t)}))}},"./node_modules/@antmjs/vantui/es/sticky/index.js":function(e,t,n){"use strict";n.d(t,{Sticky:function(){return Sticky}});var r=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),i=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),a=n("webpack/container/remote/react"),s=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),l=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),c=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"),p=n("webpack/container/remote/react/jsx-runtime"),m=["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]),P=(0,a.useCallback)((function(e){var t=Object.keys(e).reduce((function(t,n){return e[n]!==h[n]&&(t[n]=e[n]),t}),{});Object.keys(t).length>0&&v((function(e){return _objectSpread(_objectSpread({},e),t)})),null==_||_({detail:{scrollTop:C.current.scrollTop,isFixed:e.fixed||h.fixed}})}),[_,h]),E=(0,a.useCallback)((function(e){j?P({fixed:!1,transform:0}):(C.current.scrollTop=e||C.current.scrollTop,"function"!=typeof w?(0,c.getRect)(null,"#sticky-com-index".concat(t.current)).then((function(e){(0,u.isDef)(e)&&(x>=e.top?P({fixed:!0,height:e.height}):P({fixed:!1}))})):Promise.all([(0,c.getRect)(null,"#sticky-com-index".concat(t.current)),I()]).then((function(e){var t=(0,i.default)(e,2),n=t[0],r=t[1];n&&r&&(x+n.height>r.height+r.top?P({fixed:!1,transform:r.height-n.height}):x>=n.top?P({fixed:!0,height:n.height,transform:0}):P({fixed:!1,transform:0}))})).catch((function(e){console.log(e)})))}),[w,j,I,x,P]);return(0,a.useEffect)((function(){E(g)}),[g,w,j,x]),(0,d.usePageScroll)((function(e){E(e.scrollTop)})),(0,p.jsx)(s.View,_objectSpread(_objectSpread({id:"sticky-com-index".concat(t.current),className:" van-sticky "+(S||""),style:l.style([f.containerStyle({fixed:h.fixed,height:h.height,zIndex:b}),k])},O),{},{children:(0,p.jsx)(s.View,{className:l.bem("sticky-wrap",{fixed:h.fixed})+" ".concat(S||""),style:l.style([f.wrapStyle({fixed:h.fixed,offsetTop:x,transform:h.transform,zIndex:b}),k]),children:T})}))}},"./node_modules/@antmjs/vantui/es/sticky/wxs.js":function(e,t,n){"use strict";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){"use strict";var r=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),i=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),a=n("webpack/container/remote/react"),s=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),l=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),c=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=je.length||e<0)&&e!==N){var t=null!==N;P((function(t){return _objectSpread(_objectSpread({},t),{},{currentIndex:e})})),(0,v.requestAnimationFrame)((function(){Te(e),Ce(e)})),(0,c.nextTick)((function(){t&&we("onChange",je[e])}))}},Se=function setCurrentIndexByName(e){var t=je.filter((function(t){return(t.props.name||t.props.index)===e}));t.length&&ke(t[0].props.index)},Te=function resize(e){var r;"line"===Y&&(e=null!==(r=e)&&void 0!==r?r:N,(0,c.nextTick)((function(){Promise.all([(0,v.getAllRect)(null,".tabs-com-index".concat(n.current," .van-tab")),(0,v.getRect)(null,".tabs-com-index".concat(n.current," .van-tabs__line"))]).then((function(n){var r=(0,i.default)(n,2),o=r[0],a=void 0===o?[]:o,s=r[1];if(a&&s){var l=a[e];if(null==l)return;var u=a.slice(0,e).reduce((function(e,t){return e+t.width}),0);u+=(l.width-s.width)/2+(Q?0:8),P((function(e){return _objectSpread(_objectSpread({},e),{},{lineOffsetLeft:u})})),t.current.swiping=!0,A&&(0,c.nextTick)((function(){P((function(e){return _objectSpread(_objectSpread({},e),{},{skipTransition:!1})}))}))}}))})))},Oe=function onTap(e){var t=e.currentTarget.dataset.index;t=parseInt(t);var n=je[t];n.props.disabled?we("onDisabled",n):(ke(t),(0,c.nextTick)((function(){we("onClick",n)})))},Ce=function scrollIntoView(e){var t;L&&(e=null!==(t=e)&&void 0!==t?t:N,Promise.all([(0,v.getAllRect)(null,".tabs-com-index".concat(n.current," .van-tab")),(0,v.getRect)(null,".tabs-com-index".concat(n.current," .van-tabs__nav"))]).then((function(t){var n=(0,i.default)(t,2),r=n[0],o=n[1];if(r&&o){var a=r[e],s=r.slice(0,e).reduce((function(e,t){return e+t.width}),0);P((function(e){return _objectSpread(_objectSpread({},e),{},{scrollLeft:s-(o.width-a.width)/2})})),R||(0,c.nextTick)((function(){P((function(e){return _objectSpread(_objectSpread({},e),{},{scrollWithAnimation:!0})}))}))}})))},Ie=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},Pe=function onTouchEnd(){if(V&&t.current.swiping){var e=t.current,n=e.direction,r=e.deltaX,o=e.offsetX;if("horizontal"===n&&o>=50){var i=function getAvaiableTab(e){for(var t=e>0?-1:1,n=t;N+n=0;n+=t){var r=N+n;if(r>=0&&rle||!Q})}))}),[le,je,Q]),(0,u.useEffect)((function(){(0,c.nextTick)((function(){Te()}))}),[je]);var Ee=(0,u.useCallback)((0,r.default)(l().mark((function _callee(){var e,t,r;return l().wrap((function _callee$(o){for(;;)switch(o.prev=o.next){case 0:if(e=0,!ue||!j){o.next=6;break}return o.next=4,(0,v.getAllRect)(null,"."+p.bem("renderNavLeft"+n.current));case 4:(t=o.sent).length&&(e+=t[0].width);case 6:if(!de||!j){o.next=11;break}return o.next=9,(0,v.getAllRect)(null,"."+p.bem("renderNavRight"+n.current));case 9:(r=o.sent).length&&(e+=r[0].width);case 11:e&&T("calc(100% - ".concat(e,"px)"));case 12:case"end":return o.stop()}}),_callee)}))),[ue,j,de]);return(0,u.useEffect)((function(){setTimeout((function(){Ee()}))}),[Ee,j]),(0,x.jsxs)(f.View,_objectSpread(_objectSpread({className:"tabs-com-index".concat(n.current," ")+" "+p.bem("tabs",[Y]+" ".concat(be||"")),style:ve},xe),{},{children:[(0,x.jsx)(h.Sticky,{disabled:!W,zIndex:$,offsetTop:q,container:K,onScroll:fe,children:(0,x.jsxs)(f.View,{className:p.bem("tabs__wrap",{scrollable:L})+" "+("line"===Y&&U?"van-hairline--top-bottom":""),children:[(0,x.jsx)(f.View,{className:p.bem("renderNavLeft"+n.current),children:ue}),(0,x.jsx)(f.ScrollView,{scrollX:L,scrollWithAnimation:R,scrollLeft:E,className:p.bem("tabs__scroll",[Y]),style:{width:S,borderColor:B},children:(0,x.jsxs)(f.View,{className:p.bem("tabs__nav",[Y,{complete:!Q}])+" nav-class",style:y.navStyle(B,Y),children:["line"===Y&&(0,x.jsx)(f.View,{className:"van-tabs__line",style:y.lineStyle({color:B,lineOffsetLeft:F,lineHeight:ee,skipTransition:A,duration:ne,lineWidth:oe})}),ge.map((function(e,t){return(0,x.jsx)(f.View,{"data-index":t,className:y.tabClass(t===N,Q)+" "+p.bem("tab",{active:t===N,disabled:e.disabled,complete:!Q}),style:y.tabStyle({active:t===N,ellipsis:Q,color:B,type:Y,disabled:e.disabled,titleActiveColor:ie,titleInactiveColor:ae,swipeThreshold:le,scrollable:L}),onClick:Oe,children:(0,x.jsxs)(f.View,{className:Q?"van-ellipsis":"",style:e.titleStyle,children:[e.title,(null!==e.info||e.dot)&&(0,x.jsx)(b.Info,{info:e.info,dot:e.dot,className:"van-tab__title__info"})]})},t)}))]})}),(0,x.jsx)(f.View,{className:p.bem("renderNavRight"+n.current),children:de})]})}),(0,x.jsx)(f.View,{className:"van-tabs__content",onTouchStart:function onTouchStart(e){V&&(t.current.swiping=!0,Ie(e))},onTouchMove:function onTouchMove(e){V&&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:Pe,onTouchCancel:Pe,children:(0,x.jsx)(f.View,{className:p.bem("tabs__track",[{animated:ce}])+" van-tabs__track",style:y.trackStyle({duration:ne,currentIndex:N,animated:ce}),children:je})})]}))}},"./node_modules/@antmjs/vantui/es/tabs/wxs.js":function(e,t,n){"use strict";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"),o=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:o.addUnit(e.lineWidth),transform:"translateX("+e.lineOffsetLeft+"px)","-webkit-transform":"translateX("+e.lineOffsetLeft+"px)","background-color":e.color,height:-1!==e.lineHeight?o.addUnit(e.lineHeight):null,"border-radius":-1!==e.lineHeight?o.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){"use strict";var r=n("./node_modules/@antmjs/vantui/es/icon/index.js"),o=n("./node_modules/@antmjs/vantui/es/cell/index.js"),i=n("./node_modules/@antmjs/vantui/es/toast/index.js"),a=n("./node_modules/@antmjs/vantui/es/tabs/index.js"),s=n("./node_modules/@antmjs/vantui/es/tab/index.js"),l=n("./node_modules/@antmjs/vantui/es/button/index.js"),c=n("./node_modules/@antmjs/vantui/es/image/index.js"),u=n("./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"),d=n("./node_modules/@antmjs/vantui/es/empty/index.js"),f=n("./node_modules/@babel/runtime/helpers/esm/objectSpread2.js"),p=n("./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js"),m=n("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),h=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),v=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),b=n("webpack/container/remote/react"),y=n("./src/pages/components/TabbarCom/index.tsx"),x=n("webpack/container/remote/@tarojs/taro"),g=n.n(x),j=n("./src/pages/components/ActiveCard/index.tsx"),w=n("./src/utils/index.ts"),_=n("./config.js"),k=n("webpack/container/remote/react/jsx-runtime");t.default=function my(e){var t=(0,b.useState)({}),n=(0,h.default)(t,2),x=(n[0],n[1]),S=(0,b.useState)(""),T=(0,h.default)(S,2),O=T[0],C=T[1],I=(0,b.useState)([]),P=(0,h.default)(I,2),E=(P[0],P[1]),L=(0,b.useState)([]),N=(0,h.default)(L,2),A=N[0],R=N[1],F=(0,b.useState)(0),V=(0,h.default)(F,2),D=V[0],G=V[1],z=(0,b.useState)(!1),M=(0,h.default)(z,2),X=M[0],Y=M[1],W=(0,b.useState)(!1),K=(0,h.default)(W,2),$=K[0],H=K[1];(0,b.useEffect)((function(){q()}),[]);var q=function(){var e=(0,m.default)((0,p.default)().mark((function _callee(){var e;return(0,p.default)().wrap((function _callee$(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,w.phoneLogin)();case 2:e=t.sent,console.log("isLogin",e),Y(e),H(!0);case 6:case"end":return t.stop()}}),_callee)})));return function getLogin(){return e.apply(this,arguments)}}();(0,b.useEffect)((function(){X&&U()}),[X]);var U=function getUserInfo(){var e;g().cloud.callFunction({name:"getOpenid",complete:(e=(0,m.default)((0,p.default)().mark((function _callee2(e){var t,n,r,o,i;return(0,p.default)().wrap((function _callee2$(a){for(;;)switch(a.prev=a.next){case 0:console.log("callFunction test result: ",e),o=null==e||null===(t=e.result)||void 0===t||null===(n=t.event)||void 0===n||null===(r=n.userInfo)||void 0===r?void 0:r.openId,C(o),i={tableName:"userInfo",keyValue:{openId:o},okFun:function okFun(e){var t,n,r,i;console.log("userinfo--",e),x(null!==(t=null==e||null===(n=e.data)||void 0===n?void 0:n[0])&&void 0!==t?t:{}),E(null!==(r=null==e||null===(i=e.data)||void 0===i?void 0:i.activeidArr)&&void 0!==r?r:[]),B(o,"1")}},(0,w.getTable)(i);case 5:case"end":return a.stop()}}),_callee2)}))),function complete(t){return e.apply(this,arguments)})})},B=function getDetails(e,t){var n=g().cloud.database({}).command,r=t?{peopleArr:n.elemMatch({openid:n.eq(e),status:n.eq(t)})}:{peopleArr:n.elemMatch({openid:n.eq(e)})},o={tableName:"details",keyValue:(0,f.default)({},r),okFun:function okFun(e){var t;console.log("detailsData/usero--",e),R(null!==(t=null==e?void 0:e.data)&&void 0!==t?t:[])}};(0,w.getTable)(o)};(0,b.useEffect)((function(){}),[]);return(0,k.jsxs)(v.View,{className:"myContent",children:[(0,k.jsxs)(v.View,{className:"myImage",children:[(0,k.jsx)(c.default,{round:!0,width:"100px",height:"100px",src:"cloud://citynew-0givkbre03955d8c.6369-citynew-0givkbre03955d8c-1253655588/images/touxiang/images.jpg"}),!X&&$&&(0,k.jsx)(v.View,{className:"loginBtn",children:(0,k.jsx)(l.default,{type:"primary",size:"mini",lang:"zh_CN",onClick:(0,m.default)((0,p.default)().mark((function _callee9(){return(0,p.default)().wrap((function _callee9$(e){for(;;)switch(e.prev=e.next){case 0:g().chooseAddress({success:function(){var e=(0,m.default)((0,p.default)().mark((function _callee8(e){return(0,p.default)().wrap((function _callee8$(t){for(;;)switch(t.prev=t.next){case 0:return console.log("AddressRes",e),t.next=3,(0,w.cloudcall)({path:"/feishu"});case 3:g().cloud.callFunction({name:"getOpenid",complete:function(){var t=(0,m.default)((0,p.default)().mark((function _callee7(t){var n,r,o,i,a;return(0,p.default)().wrap((function _callee7$(s){for(;;)switch(s.prev=s.next){case 0:return i=null==t||null===(n=t.result)||void 0===n||null===(r=n.event)||void 0===r||null===(o=r.userInfo)||void 0===o?void 0:o.openId,console.log("openid",i),a={tableName:"userInfo",keyValue:{openId:i},okFun:function(){var t=(0,m.default)((0,p.default)().mark((function _callee6(t){var n,r,o,i,a,s;return(0,p.default)().wrap((function _callee6$(l){for(;;)switch(l.prev=l.next){case 0:return console.log("userRes",t),s={tableName:"userInfo",id:null==t||null===(n=t.data)||void 0===n||null===(r=n[0])||void 0===r?void 0:r._id,objData:{authInfo:[].concat((0,u.default)(null!==(o=null==t||null===(i=t.data)||void 0===i||null===(a=i[0])||void 0===a?void 0:a.authInfo)&&void 0!==o?o:[]),[e])},okFun:function(){var e=(0,m.default)((0,p.default)().mark((function _callee5(e){return(0,p.default)().wrap((function _callee5$(t){for(;;)switch(t.prev=t.next){case 0:console.log("添加用户认证信息",e),Y(!0);case 2:case"end":return t.stop()}}),_callee5)})));return function okFun(t){return e.apply(this,arguments)}}()},l.next=4,(0,w.updateTableid)((0,f.default)({},s));case 4:case"end":return l.stop()}}),_callee6)})));return function okFun(e){return t.apply(this,arguments)}}()},s.next=5,(0,w.getTable)((0,f.default)({},a));case 5:case"end":return s.stop()}}),_callee7)})));return function complete(e){return t.apply(this,arguments)}}()}),console.log(e.telNumber);case 5:case"end":return t.stop()}}),_callee8)})));return function success(t){return e.apply(this,arguments)}}()});case 1:case"end":return e.stop()}}),_callee9)}))),children:"登录"})})]}),(0,k.jsxs)(v.View,{children:[(0,k.jsxs)(a.default,{sticky:!0,active:D,onClick:function(){var e=(0,m.default)((0,p.default)().mark((function _callee10(e){var t,n;return(0,p.default)().wrap((function _callee10$(r){for(;;)switch(r.prev=r.next){case 0:return console.log("e",e),G(null==e||null===(t=e.detail)||void 0===t?void 0:t.index),r.next=4,B(O,null==e||null===(n=e.detail)||void 0===n?void 0:n.name);case 4:case"end":return r.stop()}}),_callee10)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,k.jsx)(s.default,{title:"待审核",name:"1"}),(0,k.jsx)(s.default,{title:"待参加",name:"2"}),(0,k.jsx)(s.default,{title:"已取消",name:"4"})]}),(0,k.jsx)(v.View,{children:function CardCom(){return(0,k.jsx)(v.View,{children:(null==A?void 0:A.length)>0?(0,k.jsx)(v.View,{children:A.splice(0,2).map((function(e,t){return(0,k.jsx)(v.View,{onClick:function onClick(){console.log("Card"),g().navigateTo({url:"/pages/activityList/components/details/index?id=".concat(null==e?void 0:e._id)})},children:(0,k.jsx)(j.default,{dataSource:e})})}))}):(0,k.jsx)(v.View,{children:(0,k.jsx)(d.default,{className:"customImage",image:"https://img.yzcdn.cn/vant/custom-empty-image.png"})})})}()})]}),(0,k.jsxs)(v.View,{className:"cellArr",children:[(0,k.jsx)(o.default,{icon:"star",title:"打卡记录",isLink:!0,onClick:function onClick(){X?g().navigateTo({url:"/pages/my/components/CheckinDetail/index"}):i.default.fail({message:"请先登录",selector:"#vanToast-demo2"})}}),(0,k.jsx)(o.default,{icon:"manager",title:"申请成为领队",isLink:!0,onClick:function onClick(){i.default.fail({message:"首次参加活动后,可申请成为领队",selector:"#vanToast-demo2"})}}),(0,k.jsxs)(v.View,{className:"wechat",children:[(0,k.jsx)(r.default,{name:"wechat",size:"16px",className:"icon"}),(0,k.jsx)(l.default,{"open-type":"contact",className:"wecahtBtn",children:"联系客服"})]}),"people"!==_.type&&(0,k.jsx)(o.default,{title:"微信客服",icon:"wechat",isLink:!0,value:"",onClick:function onClick(){g().openCustomerServiceChat({corpId:"wwb04af9a97514271c",extInfo:{url:"https://work.weixin.qq.com/kfid/kfc70f3f112c97a54c5"},success:function success(e){}})}}),(0,k.jsx)(o.default,{icon:"friends",title:"关于我们",isLink:!0,onClick:function onClick(){g().navigateTo({url:"/pages/my/components/AbountUs/index"})}}),(0,k.jsx)(o.default,{icon:"setting",title:"版本日志",isLink:!0,onClick:function onClick(){g().navigateTo({url:"/pages/my/components/Version/index"})}})]}),(0,k.jsx)(i.default,{id:"vanToast-demo2"}),(0,k.jsx)(y.default,{active:2})]})}},"./src/pages/my/index.tsx":function(e,t,n){"use strict";var r=n("webpack/container/remote/@tarojs/runtime"),o=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)(o.default,"pages/my/index",{root:{cn:[]}},{navigationBarTitleText:"我的"}||{}))},"./node_modules/@babel/runtime/helpers/regeneratorRuntime.js":function(e,t,n){var r=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,o=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",c=a.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,r){var o=t&&t.prototype instanceof Generator?t:Generator,a=Object.create(o.prototype),s=new Context(r||[]);return i(a,"_invoke",{value:makeInvokeMethod(e,n,s)}),a}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,s,(function(){return this}));var f=Object.getPrototypeOf,p=f&&f(f(values([])));p&&p!==n&&o.call(p,s)&&(d=p);var m=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,i,a,s){var l=tryCatch(e[n],e,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==r(u)&&o.call(u,"__await")?t.resolve(u.__await).then((function(e){invoke("next",e,a,s)}),(function(e){invoke("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return invoke("throw",e,a,s)}))}s(l.arg)}var n;i(this,"_invoke",{value:function value(e,r){function callInvokeWithMethodAndArg(){return new t((function(t,n){invoke(e,r,t,n)}))}return n=n?n.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return doneResult()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=maybeInvokeDelegate(a,n);if(s){if(s===u)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=tryCatch(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.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 r=tryCatch(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):o:(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[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function next(){for(;++n=0;--n){var r=this.tryEntries[n],i=r.completion;if("root"===r.tryLoc)return handle("end");if(r.tryLoc<=this.prev){var a=o.call(r,"catchLoc"),s=o.call(r,"finallyLoc");if(a&&s){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"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 r=n.completion;if("throw"===r.type){var o=r.arg;resetTryEntry(n)}return o}}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 r=n("./node_modules/@babel/runtime/helpers/regeneratorRuntime.js")();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}},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/dist/pages/my/index.js.LICENSE.txt b/dist/pages/my/index.js.LICENSE.txt index bea669c..8474181 100644 --- a/dist/pages/my/index.js.LICENSE.txt +++ b/dist/pages/my/index.js.LICENSE.txt @@ -2,8 +2,6 @@ /*! ../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??ruleSet[1].rules[9].use[1]!./index.tsx */ -/*! ../../utils/index */ - /*! ../common/utils */ /*! ../common/validator */ @@ -38,6 +36,8 @@ /*! ./wxs */ +/*! @/utils/index */ + /*! @antmjs/vantui/es/button */ /*! @antmjs/vantui/es/cell */ diff --git a/src/pages/home/index.tsx b/src/pages/home/index.tsx index f01a695..6479097 100644 --- a/src/pages/home/index.tsx +++ b/src/pages/home/index.tsx @@ -94,15 +94,16 @@ const Home = () => { }; }); - const testCloud = async () => { + // 云托管测试 + const testCloud = async () => { const res = await cloudcall({ - path:'/' + path:'/feishu' }) console.log('业务返回结果',res) }; useEffect(() => { - testCloud(); + // testCloud(); }, []); useEffect(() => { diff --git a/src/pages/my/index.tsx b/src/pages/my/index.tsx index 8e3a00b..c286d3d 100644 --- a/src/pages/my/index.tsx +++ b/src/pages/my/index.tsx @@ -21,13 +21,14 @@ import Taro from "@tarojs/taro"; import ActiveCard from "../components/ActiveCard"; import { addTable, + cloudcall, getOpenid, getTable, getTableid, isLogin, phoneLogin, updateTableid, -} from "../../utils/index"; +} from "@/utils/index"; import { type } from "../../../config"; import { Divider } from "@antmjs/vantui"; @@ -198,8 +199,11 @@ const my = (props: any) => { onClick={async () => { // 获取收获地址 Taro.chooseAddress({ - success: function (AddressRes) { + success: async (AddressRes) =>{ console.log("AddressRes", AddressRes); + await cloudcall({ + path:'/feishu' + }) Taro.cloud.callFunction({ name: "getOpenid", complete: async (opemRes: any) => {