diff --git a/dist/common.js b/dist/common.js index 1010358..b3783f5 100644 --- a/dist/common.js +++ b/dist/common.js @@ -1,2 +1,2 @@ /*! For license information please see common.js.LICENSE.txt */ -"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([["common"],{"./config.js":function(e,n,t){t.d(n,{type:function(){return a},envConfig:function(){return o}});var a="people",o="people"===a?"citynew-0givkbre03955d8c":"cloud1-5g5xrgza12a0dd6d"},"./src/pages/components/ActiveCard/index.tsx":function(e,n,t){var a=t("./node_modules/@antmjs/vantui/es/button/index.js"),o=t("./node_modules/@antmjs/vantui/es/image/index.js"),l=t("./node_modules/@antmjs/vantui/es/tag/index.js"),s=t("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),i=t("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),c=t("webpack/container/remote/react"),u=t("webpack/container/remote/moment"),r=t.n(u),d=t("webpack/container/remote/react/jsx-runtime");n.default=function ActiveCard(e){var n,t=(0,c.useState)({}),u=(0,s.default)(t,2),m=(u[0],u[1],null==e?void 0:e.dataSource),p=m.title,v=m.address,f=m.date,b=m.tagName,j=(m.tagCode,m.Status,m.images);m.isDelete;return(0,d.jsxs)(i.View,{className:"activeCard",children:[(0,d.jsxs)(i.View,{className:"left",children:[!1,(0,d.jsx)(i.View,{className:"leftImage",children:(0,d.jsx)(o.default,{width:"100%",height:"100px",fit:"cover",src:null==j||null===(n=j[0])||void 0===n?void 0:n.url})})]}),(0,d.jsxs)(i.View,{className:"middle",children:[(0,d.jsxs)(i.View,{className:"title",children:[(0,d.jsx)(l.default,{round:!0,type:"warning",style:{marginRight:"5px"},children:b}),(0,d.jsx)(i.Text,{children:p})]}),(0,d.jsxs)(i.View,{className:"down",children:[(0,d.jsxs)(i.View,{className:"date",children:[(0,d.jsx)(i.View,{className:"",children:v}),(0,d.jsx)(i.View,{className:"",children:r()(f).format("YYYY-MM-DD")})]}),(0,d.jsx)(i.View,{className:"btn",children:(0,d.jsx)(a.default,{plain:!0,hairline:!0,type:"primary",children:"立即查看"})})]})]})]})}},"./src/pages/components/TabbarCom/index.tsx":function(e,n,t){var a=t("./node_modules/@antmjs/vantui/es/tabbar/index.js"),o=t("./node_modules/@antmjs/vantui/es/tabbar-item/index.js"),l=t("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),s=t("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),i=t("webpack/container/remote/@tarojs/taro"),c=t.n(i),u=t("webpack/container/remote/react"),r=t.n(u),d=t("webpack/container/remote/react/jsx-runtime");n.default=function TabbarCom(e){var n,t=r().useState(null!==(n=null==e?void 0:e.active)&&void 0!==n?n:0),i=(0,l.default)(t,2),u=i[0],m=i[1];return(0,d.jsx)(s.View,{style:{marginTop:"40px"},children:(0,d.jsxs)(a.default,{active:u,onChange:function onChange(e){console.log("e",e),m(null==e?void 0:e.detail),0===(null==e?void 0:e.detail)&&c().redirectTo({url:"/pages/home/index"}),1===(null==e?void 0:e.detail)&&c().redirectTo({url:"/pages/activityList/index"}),2===(null==e?void 0:e.detail)&&c().redirectTo({url:"/pages/my/index"})},safeAreaInsetBottom:!0,children:[(0,d.jsx)(o.default,{icon:"home-o",children:"首页"}),(0,d.jsx)(o.default,{icon:"friends-o",children:"活动"}),(0,d.jsx)(o.default,{icon:"setting-o",children:"我的"})]})})}},"./src/utils/index.ts":function(e,n,t){t.d(n,{getTable:function(){return u},getTableid:function(){return r},updateTableid:function(){return d},phoneLogin:function(){return m}});var a=t("./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js"),o=t("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),l=t("webpack/container/remote/@tarojs/taro"),s=t.n(l),i=t("./config.js"),c=function addTable(e){var n=e.env,t=e.tableName,a=e.objData,o=e.okFun,l=s().cloud.database({env:n}),i=null==l?void 0:l.collection(t);null==i||i.add({data:a,success:function success(e){o(e)}})},u=function getTable(e){var n,t=e.env,a=e.tableName,o=e.keyValue,l=void 0===o?{}:o,i=e.okFun,c=s().cloud.database({env:t}),u=null==c?void 0:c.collection(a);(null===(n=Object.keys(l))||void 0===n?void 0:n.length)>0?null==u||u.where(l).get({success:function success(e){i(e)}}):null==u||u.get({success:function success(e){i(e)}})},r=function getTableid(e){var n,t,a=e.env,o=e.tableName,l=e.id,i=e.keyValue,c=void 0===i?{}:i,u=e.okFun,r=s().cloud.database({env:a}),d=null==r?void 0:r.collection(o);(null===(n=Object.keys(c))||void 0===n?void 0:n.length)>0?null==d||d.doc(l).where(c).get({success:function success(e){u(e)}}):null==d||null===(t=d.doc(l))||void 0===t||t.get({success:function success(e){u(e)}})},d=function updateTableid(e){var n=e.env,t=e.tableName,a=e.objData,o=e.id,l=e.okFun,i=s().cloud.database({env:n});(null==i?void 0:i.collection(t)).doc(o).update({data:a,success:function success(e){l(e)}})},m=function(){var e=(0,o.default)((0,a.default)().mark((function _callee4(){return(0,a.default)().wrap((function _callee4$(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,n){var t,l=s().cloud.database({}).command,r="";s().cloud.callFunction({name:"getOpenid",complete:(t=(0,o.default)((0,a.default)().mark((function _callee3(n){var t,o,s;return(0,a.default)().wrap((function _callee3$(a){for(;;)switch(a.prev=a.next){case 0:console.log("callFunction test result: ",n),r=null==n||null===(t=n.result)||void 0===t||null===(o=t.event)||void 0===o||null===(s=o.userInfo)||void 0===s?void 0:s.openId,console.log("openId--",r),u({tableName:"userInfo",keyValue:{openId:l.eq(r)},okFun:function okFun(n){var t;console.log("res",n);var a,o,l=null!==(t=null==n?void 0:n.data)&&void 0!==t?t:[];if(0!==(null==l?void 0:l.length))return null!=l&&null!==(a=l[0])&&void 0!==a&&null!==(o=a.authInfo)&&void 0!==o&&o.authPhonenum||"people"===i.type?(e(!0),!0):(e(!1),!1);c({tableName:"userInfo",objData:{openId:r},okFun:function okFun(e){}})}});case 4:case"end":return a.stop()}}),_callee3)}))),function complete(e){return t.apply(this,arguments)})})})));case 1:case"end":return e.stop()}}),_callee4)})));return function phoneLogin(){return e.apply(this,arguments)}}()}}]); \ No newline at end of file +"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([["common"],{"./config.js":function(e,n,t){t.d(n,{type:function(){return a},envConfig:function(){return o}});var a="people",o="people"===a?"citynew-0givkbre03955d8c":"cloud1-5g5xrgza12a0dd6d"},"./src/pages/components/ActiveCard/index.tsx":function(e,n,t){var a=t("./node_modules/@antmjs/vantui/es/button/index.js"),o=t("./node_modules/@antmjs/vantui/es/image/index.js"),l=t("./node_modules/@antmjs/vantui/es/tag/index.js"),s=t("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),i=t("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),c=t("webpack/container/remote/react"),u=t("webpack/container/remote/moment"),r=t.n(u),d=t("webpack/container/remote/react/jsx-runtime");n.default=function ActiveCard(e){var n,t=(0,c.useState)({}),u=(0,s.default)(t,2),m=(u[0],u[1],null==e?void 0:e.dataSource),f=m.title,p=m.address,v=m.date,b=m.tagName,g=(m.tagCode,m.Status,m.images);m.isDelete;return(0,d.jsxs)(i.View,{className:"activeCard",children:[(0,d.jsxs)(i.View,{className:"left",children:[!1,(0,d.jsx)(i.View,{className:"leftImage",children:(0,d.jsx)(o.default,{width:"100%",height:"100px",fit:"cover",src:null==g||null===(n=g[0])||void 0===n?void 0:n.url})})]}),(0,d.jsxs)(i.View,{className:"middle",children:[(0,d.jsxs)(i.View,{className:"title",children:[(0,d.jsx)(l.default,{round:!0,type:"warning",style:{marginRight:"5px"},children:b}),(0,d.jsx)(i.Text,{children:f})]}),(0,d.jsxs)(i.View,{className:"down",children:[(0,d.jsxs)(i.View,{className:"date",children:[(0,d.jsx)(i.View,{className:"",children:p}),(0,d.jsx)(i.View,{className:"",children:r()(v).format("YYYY-MM-DD")})]}),(0,d.jsx)(i.View,{className:"btn",children:(0,d.jsx)(a.default,{plain:!0,hairline:!0,type:"primary",children:"立即查看"})})]})]})]})}},"./src/pages/components/TabbarCom/index.tsx":function(e,n,t){var a=t("./node_modules/@antmjs/vantui/es/tabbar/index.js"),o=t("./node_modules/@antmjs/vantui/es/tabbar-item/index.js"),l=t("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),s=t("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),i=t("webpack/container/remote/@tarojs/taro"),c=t.n(i),u=t("webpack/container/remote/react"),r=t.n(u),d=t("webpack/container/remote/react/jsx-runtime");n.default=function TabbarCom(e){var n,t=r().useState(null!==(n=null==e?void 0:e.active)&&void 0!==n?n:0),i=(0,l.default)(t,2),u=i[0],m=i[1];return(0,d.jsx)(s.View,{style:{marginTop:"40px"},children:(0,d.jsxs)(a.default,{active:u,onChange:function onChange(e){console.log("e",e),m(null==e?void 0:e.detail),0===(null==e?void 0:e.detail)&&c().redirectTo({url:"/pages/home/index"}),1===(null==e?void 0:e.detail)&&c().redirectTo({url:"/pages/activityList/index"}),2===(null==e?void 0:e.detail)&&c().redirectTo({url:"/pages/my/index"})},safeAreaInsetBottom:!0,children:[(0,d.jsx)(o.default,{icon:"home-o",children:"首页"}),(0,d.jsx)(o.default,{icon:"friends-o",children:"活动"}),(0,d.jsx)(o.default,{icon:"setting-o",children:"我的"})]})})}},"./src/utils/index.ts":function(e,n,t){t.d(n,{getTable:function(){return u},getTableid:function(){return r},updateTableid:function(){return d},phoneLogin:function(){return m}});var a=t("./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js"),o=t("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),l=t("webpack/container/remote/@tarojs/taro"),s=t.n(l),i=t("./config.js"),c=function addTable(e){var n=e.env,t=e.tableName,a=e.objData,o=e.okFun,l=s().cloud.database({env:n}),i=null==l?void 0:l.collection(t);null==i||i.add({data:a,success:function success(e){o(e)},fail:function fail(e){console.log("err",e)}})},u=function getTable(e){var n,t=e.env,a=e.tableName,o=e.keyValue,l=void 0===o?{}:o,i=e.okFun,c=s().cloud.database({env:t}),u=null==c?void 0:c.collection(a);(null===(n=Object.keys(l))||void 0===n?void 0:n.length)>0?null==u||u.where(l).get({success:function success(e){i(e)}}):null==u||u.get({success:function success(e){i(e)}})},r=function getTableid(e){var n,t,a=e.env,o=e.tableName,l=e.id,i=e.keyValue,c=void 0===i?{}:i,u=e.okFun,r=s().cloud.database({env:a}),d=null==r?void 0:r.collection(o);(null===(n=Object.keys(c))||void 0===n?void 0:n.length)>0?null==d||d.doc(l).where(c).get({success:function success(e){u(e)},fail:function fail(e){console.log("err",e)}}):null==d||null===(t=d.doc(l))||void 0===t||t.get({success:function success(e){u(e)},fail:function fail(e){console.log("err",e)}})},d=function updateTableid(e){var n=e.env,t=e.tableName,a=e.objData,o=e.id,l=e.okFun,i=s().cloud.database({env:n});(null==i?void 0:i.collection(t)).doc(o).update({data:a,success:function success(e){l(e)},fail:function fail(e){console.log("err",e)}})},m=function(){var e=(0,o.default)((0,a.default)().mark((function _callee4(){return(0,a.default)().wrap((function _callee4$(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,n){var t,l=s().cloud.database({}).command,r="";s().cloud.callFunction({name:"getOpenid",complete:(t=(0,o.default)((0,a.default)().mark((function _callee3(n){var t,o,s;return(0,a.default)().wrap((function _callee3$(a){for(;;)switch(a.prev=a.next){case 0:console.log("callFunction test result: ",n),r=null==n||null===(t=n.result)||void 0===t||null===(o=t.event)||void 0===o||null===(s=o.userInfo)||void 0===s?void 0:s.openId,console.log("openId--",r),u({tableName:"userInfo",keyValue:{openId:l.eq(r)},okFun:function okFun(n){var t;console.log("res",n);var a,o,l=null!==(t=null==n?void 0:n.data)&&void 0!==t?t:[];if(0!==(null==l?void 0:l.length))return null!=l&&null!==(a=l[0])&&void 0!==a&&null!==(o=a.authInfo)&&void 0!==o&&o.authPhonenum||"people"===i.type?(e(!0),!0):(e(!1),!1);c({tableName:"userInfo",objData:{openId:r},okFun:function okFun(e){}})}});case 4:case"end":return a.stop()}}),_callee3)}))),function complete(e){return t.apply(this,arguments)})})})));case 1:case"end":return e.stop()}}),_callee4)})));return function phoneLogin(){return e.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/dist/pages/activityList/components/details/index.js b/dist/pages/activityList/components/details/index.js index e12b146..b891de8 100644 --- a/dist/pages/activityList/components/details/index.js +++ b/dist/pages/activityList/components/details/index.js @@ -1,2 +1,2 @@ /*! For license information please see index.js.LICENSE.txt */ -"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([["pages/activityList/components/details/index"],{"./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[9].use[1]!./src/pages/activityList/components/details/index.tsx":function(e,n,t){var l=t("./node_modules/@antmjs/vantui/es/skeleton/index.js"),o=t("./node_modules/@antmjs/vantui/es/dialog/index.js"),a=t("./node_modules/@antmjs/vantui/es/button/index.js"),i=t("./node_modules/@antmjs/vantui/es/cell/index.js"),s=t("./node_modules/@antmjs/vantui/es/image/index.js"),u=t("./node_modules/@antmjs/vantui/es/toast/index.js"),d=t("./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"),r=t("./node_modules/@babel/runtime/helpers/esm/objectSpread2.js"),c=t("./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js"),f=t("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),v=t("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),m=t("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),p=t("webpack/container/remote/@tarojs/taro"),h=t.n(p),x=t("webpack/container/remote/react"),j=t.n(x),g=t("./src/utils/index.ts"),b=t("webpack/container/remote/lodash"),w=t.n(b),k=t("webpack/container/remote/moment"),C=t.n(k),T=t("webpack/container/remote/react/jsx-runtime");n.default=function details(){var e,n,t,b,k,S,y,_=(0,x.useState)([]),A=(0,v.default)(_,2),D=A[0],V=A[1],L=(0,x.useState)("0"),E=(0,v.default)(L,2),F=E[0],N=E[1],Y=(0,x.useState)(),M=(0,v.default)(Y,2),B=M[0],H=M[1],I=(0,x.useState)(!1),O=(0,v.default)(I,2),R=O[0],J=O[1],P=(0,x.useState)(""),q=(0,v.default)(P,2),z=(q[0],q[1],(0,x.useState)(0)),G=(0,v.default)(z,2),$=G[0],K=G[1],Q=(0,p.getCurrentInstance)(),U=(null!==(e=null==Q||null===(n=Q.router)||void 0===n?void 0:n.params)&&void 0!==e?e:{}).id,W=(0,x.useState)(!1),X=(0,v.default)(W,2),Z=(X[0],X[1]),ee=(0,x.useState)(""),ne=(0,v.default)(ee,2),te=ne[0],le=ne[1],oe=j().useState(!1),ae=(0,v.default)(oe,2),ie=ae[0],se=ae[1],ue=j().useState(!1),de=(0,v.default)(ue,2),re=de[0],ce=de[1],fe=j().useState(""),ve=(0,v.default)(fe,2);ve[0],ve[1];(0,x.useEffect)((function(){J("1"===F||"1"!==B)}),[F,B]),(0,x.useEffect)((function(){}),[]),(0,p.useShareTimeline)((function(){return{title:"分享朋友圈"}})),(0,x.useEffect)((function(){h().showShareMenu({withShareTicket:!0}),h().updateShareMenu({withShareTicket:!0,success:function success(){}})}),[]),(0,x.useEffect)((function(){var e;h().cloud.callFunction({name:"getOpenid",complete:(e=(0,f.default)((0,c.default)().mark((function _callee(e){var n,t,l,o;return(0,c.default)().wrap((function _callee$(a){for(;;)switch(a.prev=a.next){case 0:console.log("callFunction test result: ",e),o=null==e||null===(n=e.result)||void 0===n||null===(t=n.event)||void 0===t||null===(l=t.userInfo)||void 0===l?void 0:l.openId,le(o);case 3:case"end":return a.stop()}}),_callee)}))),function complete(n){return e.apply(this,arguments)})})}),[]),(0,x.useEffect)((function(){var e,n=h().getSystemInfoSync(),t=n.screenHeight,l=n.safeArea,o=void 0===l?{}:l,a=null!==(e=t-(null==o?void 0:o.bottom))&&void 0!==e?e:0;K(a)}),[]),(0,x.useEffect)((function(){te&&me()}),[te]);var me=function getDetail(){var e={tableName:"details",id:U,okFun:function okFun(e){var n,t,l,o,a,i,s;console.log("res",e),V(null!==(n=null==e?void 0:e.data)&&void 0!==n?n:{}),console.log("dataSource ",D),H(null!==(t=null==e||null===(l=e.data)||void 0===l?void 0:l.Status)&&void 0!==t?t:"");var u=null!==(o=null==e||null===(a=e.data)||void 0===a?void 0:a.peopleArr)&&void 0!==o?o:[];(null==u?void 0:u.length)>0?u.forEach((function(e){var n;(null==e?void 0:e.openid)===te&&N(null!==(n=null==e?void 0:e.status)&&void 0!==n?n:"0")})):N("0"),(null!==(i=null==e||null===(s=e.data)||void 0===s?void 0:s.useridArr)&&void 0!==i?i:[]).includes(te)?Z(!0):Z(!1)}};(0,g.getTableid)(e)},pe=[{label:"活动待开放",value:"0"},{label:"活动已取消",value:"2"},{label:"活动进行中",value:"3"},{label:"活动已结束",value:"4"},{label:"活动已关闭",value:"5"}];return(0,T.jsx)(m.View,{children:(null===(t=Object.keys(D))||void 0===t?void 0:t.length)>0?(0,T.jsxs)(m.View,{className:"detailContent",children:[(0,T.jsxs)(m.View,{children:[(0,T.jsx)(m.View,{children:null==D?void 0:D.title}),(0,T.jsx)(s.default,{width:"100%",height:"180px",fit:"cover",src:null==D||null===(b=D.images)||void 0===b||null===(k=b[0])||void 0===k?void 0:k.url}),(0,T.jsxs)(m.View,{children:[(0,T.jsx)(i.default,{icon:"clock",title:"开始时间 ".concat(null!=D&&D.startTime?C()(null==D?void 0:D.startTime).format("YYYY-MM-DD HH:mm:ss"):"")}),(0,T.jsx)(i.default,{icon:"clock",title:"结束时间 ".concat(null!=D&&D.endTime?C()(null==D?void 0:D.endTime).format("YYYY-MM-DD HH:mm:ss"):"")}),(0,T.jsx)(i.default,{isLink:!0,icon:"location",title:"".concat(null==D?void 0:D.address),linkType:"navigateTo",url:"/pages/dashboard/index",onClick:function onClick(){h().openLocation({latitude:null==D?void 0:D.latitude,longitude:null==D?void 0:D.longitude,scale:18})}}),(0,T.jsx)(i.default,{icon:"friends",title:"已报名人数 ".concat((null===(S=(null!==(y=null==D?void 0:D.peopleArr)&&void 0!==y?y:[]).filter((function(e){return"2"===(null==e?void 0:e.status)||"1"===(null==e?void 0:e.status)})))||void 0===S?void 0:S.length)>>0)})]})]}),(0,T.jsx)(m.View,{onClick:function onClick(){},className:"RichText",children:(0,T.jsx)(m.RichText,{nodes:null==D?void 0:D.richText})}),(0,T.jsx)(m.View,{children:(0,T.jsx)(o.default,{id:"vanDialog3",title:"长按二维码识别",showCancelButton:!1,showConfirmButton:!1,show:ie,onClose:function onClose(){return se(!1)},children:(0,T.jsxs)(m.View,{className:"wechatCode",children:[(0,T.jsx)(s.default,{showMenuByLongpress:!0,width:300,height:300,src:null==D?void 0:D.qrCode}),(0,T.jsx)(a.default,{style:{width:"130px",marginTop:"20px"},type:"primary",round:!0,size:"small",onClick:function onClick(){se(!1)},children:"关闭"})]})})}),(0,T.jsx)(m.View,{children:(0,T.jsx)(o.default,{id:"vanDialog4",title:"取消后,再次报名,会严格审核",show:re,onClose:function onClose(){return se(!1)},onConfirm:function onConfirm(){!function canelActive(){var e,n=(null!==(e=null==D?void 0:D.peopleArr)&&void 0!==e?e:[]).map((function(e,n,t){return(null==e?void 0:e.openid)===te?(0,r.default)((0,r.default)({},e),{},{status:"4"}):(0,r.default)({},e)}));(0,g.updateTableid)({tableName:"details",id:U,objData:{peopleArr:(0,d.default)(n)},okFun:function okFun(e){u.default.success({message:"取消成功",selector:"#vanToast-demo2",onClose:function onClose(){me()}})}})}()},children:(0,T.jsx)(m.View,{className:"wechatCode"})})}),(0,T.jsxs)(m.View,{className:"detailBtn",style:{bottom:"".concat(null!=$?$:0,"px")},children:[(0,T.jsx)(a.default,{type:R?"warning":"primary",block:!0,onClick:function onClick(){if(R)return se(!0),!1;if("2"===F)return ce(!0),!1;if("4"===F)return u.default.fail({message:"再次报名需审核!",selector:"#vanToast-demo2",duration:2e3,onClose:function onClose(){se(!0)}}),!1;if((0,g.phoneLogin)()){var e,n;console.log("id",U);var t={id:U,tableName:"details",objData:{useridArr:[].concat((0,d.default)(w().cloneDeep(null!==(e=null==D?void 0:D.useridArr)&&void 0!==e?e:[])),[te]),peopleArr:[].concat((0,d.default)(w().cloneDeep(null!==(n=null==D?void 0:D.peopleArr)&&void 0!==n?n:[])),[{openid:te,status:"1"}])},okFun:function okFun(e){console.log("res333",e),u.default.success({message:"报名成功,审核中",selector:"#vanToast-demo2",onClose:function onClose(){se(!0),me()}})}};console.log("postData",t),(0,g.updateTableid)((0,r.default)({},t))}else u.default.fail({message:"请先登录",selector:"#vanToast-demo2",duration:2e3,onClose:function onClose(){h().navigateTo({url:"/pages/my/index"})}})},children:function btnContent(){console.log("detailStatus,status,openid",B,F,te);var e="立即报名";return"1"===B?("0"===F&&(e="立即报名"),"4"===F&&(e="再次报名"),"2"===F&&(e="取消报名"),"1"===F&&(e="待审核")):pe.forEach((function(n){var t=null==D?void 0:D.Status;(null==n?void 0:n.value)===t&&(e=null==n?void 0:n.label)})),e}()}),(0,T.jsx)(u.default,{id:"vanToast-demo2"})]})]}):(0,T.jsx)(m.View,{children:(0,T.jsx)(l.default,{title:!0,row:16})})})}},"./src/pages/activityList/components/details/index.tsx":function(e,n,t){var l=t("webpack/container/remote/@tarojs/runtime"),o=t("./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[9].use[1]!./src/pages/activityList/components/details/index.tsx");o.default.enableShareTimeline=!0;Page((0,l.createPageConfig)(o.default,"pages/activityList/components/details/index",{root:{cn:[]}},{navigationBarTitleText:"活动详情"}||{}))}},function(e){e.O(0,["taro","vendors","common"],(function(){return n="./src/pages/activityList/components/details/index.tsx",e(e.s=n);var n}));e.O()}]); \ No newline at end of file +"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([["pages/activityList/components/details/index"],{"./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[9].use[1]!./src/pages/activityList/components/details/index.tsx":function(e,n,t){var l=t("./node_modules/@antmjs/vantui/es/skeleton/index.js"),o=t("./node_modules/@antmjs/vantui/es/dialog/index.js"),a=t("./node_modules/@antmjs/vantui/es/button/index.js"),i=t("./node_modules/@antmjs/vantui/es/cell/index.js"),s=t("./node_modules/@antmjs/vantui/es/image/index.js"),u=t("./node_modules/@antmjs/vantui/es/toast/index.js"),d=t("./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"),c=t("./node_modules/@babel/runtime/helpers/esm/objectSpread2.js"),r=t("./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js"),f=t("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),v=t("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),m=t("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),p=t("webpack/container/remote/@tarojs/taro"),h=t.n(p),j=t("webpack/container/remote/react"),x=t.n(j),b=t("./src/utils/index.ts"),g=t("webpack/container/remote/lodash"),w=t.n(g),k=t("webpack/container/remote/moment"),C=t.n(k),T=t("webpack/container/remote/react/jsx-runtime");n.default=function details(){var e,n,t,g,k,S,y,_=(0,j.useState)([]),A=(0,v.default)(_,2),D=A[0],V=A[1],F=(0,j.useState)("0"),L=(0,v.default)(F,2),N=L[0],E=L[1],Y=(0,j.useState)(),I=(0,v.default)(Y,2),M=I[0],B=I[1],H=(0,j.useState)(!1),O=(0,v.default)(H,2),P=O[0],R=O[1],J=(0,j.useState)(""),q=(0,v.default)(J,2),z=(q[0],q[1],(0,j.useState)(0)),G=(0,v.default)(z,2),$=G[0],K=G[1],Q=(0,p.getCurrentInstance)(),U=(null!==(e=null==Q||null===(n=Q.router)||void 0===n?void 0:n.params)&&void 0!==e?e:{}).id,W=(0,j.useState)(!1),X=(0,v.default)(W,2),Z=(X[0],X[1]),ee=(0,j.useState)(""),ne=(0,v.default)(ee,2),te=ne[0],le=ne[1],oe=x().useState(!1),ae=(0,v.default)(oe,2),ie=ae[0],se=ae[1],ue=x().useState(!1),de=(0,v.default)(ue,2),ce=de[0],re=de[1],fe=x().useState(""),ve=(0,v.default)(fe,2);ve[0],ve[1];(0,j.useEffect)((function(){R("1"===N||"1"!==M)}),[N,M]),(0,j.useEffect)((function(){}),[]),(0,p.useShareTimeline)((function(){return{title:"分享朋友圈"}})),(0,j.useEffect)((function(){h().showShareMenu({withShareTicket:!0}),h().updateShareMenu({withShareTicket:!0,success:function success(){}})}),[]),(0,j.useEffect)((function(){var e;h().cloud.callFunction({name:"getOpenid",complete:(e=(0,f.default)((0,r.default)().mark((function _callee(e){var n,t,l,o;return(0,r.default)().wrap((function _callee$(a){for(;;)switch(a.prev=a.next){case 0:console.log("callFunction test result: ",e),o=null==e||null===(n=e.result)||void 0===n||null===(t=n.event)||void 0===t||null===(l=t.userInfo)||void 0===l?void 0:l.openId,le(o);case 3:case"end":return a.stop()}}),_callee)}))),function complete(n){return e.apply(this,arguments)})})}),[]),(0,j.useEffect)((function(){var e,n=h().getSystemInfoSync(),t=n.screenHeight,l=n.safeArea,o=void 0===l?{}:l,a=null!==(e=t-(null==o?void 0:o.bottom))&&void 0!==e?e:0;K(a)}),[]),(0,j.useEffect)((function(){te&&me()}),[te]);var me=function getDetail(){var e={tableName:"details",id:U,okFun:function okFun(e){var n,t,l,o,a,i,s;console.log("res",e),V(null!==(n=null==e?void 0:e.data)&&void 0!==n?n:{}),console.log("dataSource ",D),B(null!==(t=null==e||null===(l=e.data)||void 0===l?void 0:l.Status)&&void 0!==t?t:"");var u=null!==(o=null==e||null===(a=e.data)||void 0===a?void 0:a.peopleArr)&&void 0!==o?o:[];(null==u?void 0:u.length)>0?u.forEach((function(e){var n;(null==e?void 0:e.openid)===te&&E(null!==(n=null==e?void 0:e.status)&&void 0!==n?n:"0")})):E("0"),(null!==(i=null==e||null===(s=e.data)||void 0===s?void 0:s.useridArr)&&void 0!==i?i:[]).includes(te)?Z(!0):Z(!1)}};(0,b.getTableid)(e)},pe=[{label:"活动待开放",value:"0"},{label:"活动已取消",value:"2"},{label:"活动进行中",value:"3"},{label:"活动已结束",value:"4"},{label:"活动已关闭",value:"5"}],he=function userinfoPost(){var e={tableName:"userInfo",keyValue:{openId:te},okFun:function okFun(e){var n,t,l,o,a={tableName:"userInfo",id:null==e||null===(n=e.data)||void 0===n||null===(t=n[0])||void 0===t?void 0:t._id,objData:{activeidArr:[].concat((0,d.default)(null!==(l=null==e||null===(o=e.data)||void 0===o?void 0:o.activeidArr)&&void 0!==l?l:[]),[te])},okFun:function okFun(e){console.log("添加用户记录",e)}};(0,b.updateTableid)((0,c.default)({},a))}};(0,b.getTable)((0,c.default)({},e))};return(0,T.jsx)(m.View,{children:(null===(t=Object.keys(D))||void 0===t?void 0:t.length)>0?(0,T.jsxs)(m.View,{className:"detailContent",children:[(0,T.jsxs)(m.View,{children:[(0,T.jsx)(m.View,{children:null==D?void 0:D.title}),(0,T.jsx)(s.default,{width:"100%",height:"180px",fit:"cover",src:null==D||null===(g=D.images)||void 0===g||null===(k=g[0])||void 0===k?void 0:k.url}),(0,T.jsxs)(m.View,{children:[(0,T.jsx)(i.default,{icon:"clock",title:"开始时间 ".concat(null!=D&&D.startTime?C()(null==D?void 0:D.startTime).format("YYYY-MM-DD HH:mm:ss"):"")}),(0,T.jsx)(i.default,{icon:"clock",title:"结束时间 ".concat(null!=D&&D.endTime?C()(null==D?void 0:D.endTime).format("YYYY-MM-DD HH:mm:ss"):"")}),(0,T.jsx)(i.default,{isLink:!0,icon:"location",title:"".concat(null==D?void 0:D.address),linkType:"navigateTo",url:"/pages/dashboard/index",onClick:function onClick(){h().openLocation({latitude:null==D?void 0:D.latitude,longitude:null==D?void 0:D.longitude,scale:18})}}),(0,T.jsx)(i.default,{icon:"friends",title:"已报名人数 ".concat((null===(S=(null!==(y=null==D?void 0:D.peopleArr)&&void 0!==y?y:[]).filter((function(e){return"2"===(null==e?void 0:e.status)||"1"===(null==e?void 0:e.status)})))||void 0===S?void 0:S.length)>>0)})]})]}),(0,T.jsx)(m.View,{onClick:function onClick(){},className:"RichText",children:(0,T.jsx)(m.RichText,{nodes:null==D?void 0:D.richText})}),(0,T.jsx)(m.View,{children:(0,T.jsx)(o.default,{id:"vanDialog3",title:"长按二维码识别",showCancelButton:!1,showConfirmButton:!1,show:ie,onClose:function onClose(){return se(!1)},children:(0,T.jsxs)(m.View,{className:"wechatCode",children:[(0,T.jsx)(s.default,{showMenuByLongpress:!0,width:300,height:300,src:null==D?void 0:D.qrCode}),(0,T.jsx)(a.default,{style:{width:"130px",marginTop:"20px"},type:"primary",round:!0,size:"small",onClick:function onClick(){se(!1)},children:"关闭"})]})})}),(0,T.jsx)(m.View,{children:(0,T.jsx)(o.default,{id:"vanDialog4",title:"取消后,再次报名,会严格审核",show:ce,onClose:function onClose(){return se(!1)},onConfirm:function onConfirm(){!function canelActive(){var e,n=(null!==(e=null==D?void 0:D.peopleArr)&&void 0!==e?e:[]).map((function(e,n,t){return(null==e?void 0:e.openid)===te?(0,c.default)((0,c.default)({},e),{},{status:"4"}):(0,c.default)({},e)}));(0,b.updateTableid)({tableName:"details",id:U,objData:{peopleArr:(0,d.default)(n)},okFun:function okFun(e){u.default.success({message:"取消成功",selector:"#vanToast-demo2",onClose:function onClose(){me()}})}})}()},children:(0,T.jsx)(m.View,{className:"wechatCode"})})}),(0,T.jsxs)(m.View,{className:"detailBtn",style:{bottom:"".concat(null!=$?$:0,"px")},children:[(0,T.jsx)(a.default,{type:P?"warning":"primary",block:!0,onClick:function onClick(){return P?(se(!0),!1):"2"===N?(re(!0),!1):"4"===N?(u.default.fail({message:"再次报名需审核!",selector:"#vanToast-demo2",duration:2e3,onClose:function onClose(){se(!0)}}),!1):void((0,b.phoneLogin)()?(console.log("id",U),function detailPost(){var e,n,t={id:U,tableName:"details",objData:{useridArr:[].concat((0,d.default)(w().cloneDeep(null!==(e=null==D?void 0:D.useridArr)&&void 0!==e?e:[])),[te]),peopleArr:[].concat((0,d.default)(w().cloneDeep(null!==(n=null==D?void 0:D.peopleArr)&&void 0!==n?n:[])),[{openid:te,status:"1"}])},okFun:function okFun(e){console.log("res333",e),u.default.success({message:"报名成功,审核中",selector:"#vanToast-demo2",onClose:function onClose(){he(),se(!0),me()}})}};console.log("postData",t),(0,b.updateTableid)((0,c.default)({},t))}()):u.default.fail({message:"请先登录",selector:"#vanToast-demo2",duration:2e3,onClose:function onClose(){h().navigateTo({url:"/pages/my/index"})}}))},children:function btnContent(){console.log("detailStatus,status,openid",M,N,te);var e="立即报名";return"1"===M?("0"===N&&(e="立即报名"),"4"===N&&(e="再次报名"),"2"===N&&(e="取消报名"),"1"===N&&(e="待审核")):pe.forEach((function(n){var t=null==D?void 0:D.Status;(null==n?void 0:n.value)===t&&(e=null==n?void 0:n.label)})),e}()}),(0,T.jsx)(u.default,{id:"vanToast-demo2"})]})]}):(0,T.jsx)(m.View,{children:(0,T.jsx)(l.default,{title:!0,row:16})})})}},"./src/pages/activityList/components/details/index.tsx":function(e,n,t){var l=t("webpack/container/remote/@tarojs/runtime"),o=t("./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[9].use[1]!./src/pages/activityList/components/details/index.tsx");o.default.enableShareTimeline=!0;Page((0,l.createPageConfig)(o.default,"pages/activityList/components/details/index",{root:{cn:[]}},{navigationBarTitleText:"活动详情"}||{}))}},function(e){e.O(0,["taro","vendors","common"],(function(){return n="./src/pages/activityList/components/details/index.tsx",e(e.s=n);var n}));e.O()}]); \ No newline at end of file diff --git a/dist/pages/home/index.js b/dist/pages/home/index.js index e3d614b..c4b13ab 100644 --- a/dist/pages/home/index.js +++ b/dist/pages/home/index.js @@ -1,2 +1,2 @@ /*! For license information please see index.js.LICENSE.txt */ -(wx.webpackJsonp=wx.webpackJsonp||[]).push([["pages/home/index"],{"./node_modules/@antmjs/vantui/es/field/index.js":function(e,t,n){"use strict";n.d(t,{Field:function(){return Field}});var o=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),a=n("webpack/container/remote/@tarojs/taro"),i=n("webpack/container/remote/react"),l=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),c=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),s=n("./node_modules/@antmjs/vantui/es/cell/index.js"),u=n("./node_modules/@antmjs/vantui/es/icon/index.js"),d=(n("./node_modules/@antmjs/vantui/es/utils/index.js"),n("./node_modules/@antmjs/vantui/es/field/wxs.js")),f=n("webpack/container/remote/react/jsx-runtime");n("webpack/container/remote/@tarojs/runtime").document;function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _objectSpread(e){for(var t=1;t=W}),children:b.length>=W?W:b.length}),"/"+W]}),U&&(0,f.jsx)(l.View,{className:c.bem("field__error-message",[H,{disabled:F,error:B}]),children:U})]})}},"./node_modules/@antmjs/vantui/es/field/wxs.js":function(e,t,n){"use strict";n.d(t,{inputStyle:function(){return inputStyle}});var o=n("./node_modules/@antmjs/vantui/es/wxs/style.js"),r=n("./node_modules/@antmjs/vantui/es/wxs/add-unit.js");function inputStyle(e){return e&&"Object"===e.constructor.name?(0,o.style)({"min-height":(0,r.addUnit)(e.minHeight),"max-height":(0,r.addUnit)(e.maxHeight)}):""}},"./node_modules/@antmjs/vantui/es/grid-item/index.js":function(e,t,n){"use strict";var o=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),r=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),a=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),i=n("webpack/container/remote/react"),l=n("./node_modules/@antmjs/vantui/es/common/jumpLink.js"),c=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),s=n("./node_modules/@antmjs/vantui/es/icon/index.js"),u=n("./node_modules/@antmjs/vantui/es/grid-item/wxs.js"),d=n("webpack/container/remote/react/jsx-runtime"),f=["icon","iconColor","iconPrefix","dot","info","badge","text","setChildrenInstance","parentInstance","index","url","linkType","style","className"];t.default=function GridItem(e){var t=e.icon,n=e.iconColor,m=e.iconPrefix,p=void 0===m?"van-icon":m,h=e.dot,v=e.info,g=e.badge,b=e.text,y=e.setChildrenInstance,j=e.parentInstance,w=e.index,x=e.url,_=e.linkType,S=e.style,k=e.className,C=(0,r.default)(e,f),O=(0,i.useState)({}),P=(0,o.default)(O,2),T=P[0],N=P[1];(0,i.useEffect)((function(){y(w,{updateStyle:I})}),[w,y]),(0,i.useEffect)((function(){I()}),[j.columnNum]);var I=(0,i.useCallback)((function(){var e=j.columnNum,t=j.border,n=j.square,o=j.gutter,r=j.clickable,a=j.center,i=j.direction,l=j.reverse,c=j.iconSize;N({center:a,border:t,square:n,gutter:o,clickable:r,direction:i,reverse:l,iconSize:c,index:w,columnNum:e})}),[j,w]);return(0,d.jsx)(a.View,{className:" "+c.bem("grid-item",{square:null==T?void 0:T.square})+" "+k,style:c.style([u.wrapperStyle({square:null==T?void 0:T.square,gutter:null==T?void 0:T.gutter,columnNum:null==T?void 0:T.columnNum,index:null==T?void 0:T.index}),S]),onClick:function onClick(e){var t;x&&(0,l.jumpLink)(x,_),null==C||null===(t=C.onClick)||void 0===t||t.call(C,e)},children:(0,d.jsx)(a.View,{className:"content-class "+c.bem("grid-item__content",[null==T?void 0:T.direction,{center:null==T?void 0:T.center,square:null==T?void 0:T.square,reverse:null==T?void 0:T.reverse,clickable:null==T?void 0:T.clickable,surround:(null==T?void 0:T.border)&&(null==T?void 0:T.gutter)}])+" "+(null!=T&&T.border?"van-hairline--surround":""),style:u.contentStyle({square:null==T?void 0:T.square,gutter:null==T?void 0:T.gutter}),children:C.children||(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(a.View,{className:"van-grid-item__icon icon-class",children:t?(0,d.jsx)(s.default,{name:t,color:n,classPrefix:p,dot:h,info:g||v,size:null==T?void 0:T.iconSize}):T.renderIcon}),(0,d.jsx)(a.View,{className:"van-grid-item__text text-class",children:b?(0,d.jsx)(a.Text,{children:b}):T.renderText})]})})})}},"./node_modules/@antmjs/vantui/es/grid-item/wxs.js":function(e,t,n){"use strict";n.d(t,{wrapperStyle:function(){return wrapperStyle},contentStyle:function(){return contentStyle}});var o=n("./node_modules/@antmjs/vantui/es/wxs/style.js"),r=n("./node_modules/@antmjs/vantui/es/wxs/add-unit.js");function wrapperStyle(e){var t=100/e.columnNum+"%";return(0,o.style)({width:t,"padding-top":e.square?t:null,"padding-right":(0,r.addUnit)(e.gutter),"margin-top":e.index>=e.columnNum&&!e.square?(0,r.addUnit)(e.gutter):null})}function contentStyle(e){return e.square?(0,o.style)({right:(0,r.addUnit)(e.gutter),bottom:(0,r.addUnit)(e.gutter),height:"auto"}):""}},"./node_modules/@antmjs/vantui/es/grid/index.js":function(e,t,n){"use strict";var o=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),r=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),a=n("webpack/container/remote/react"),i=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),l=n("./node_modules/@antmjs/vantui/es/grid/wxs.js"),c=n("webpack/container/remote/react/jsx-runtime"),s=["gutter","clickable","columnNum","center","border","direction","iconSize","square","reverse","className","style"];t.default=function Grid(e){var t=e.gutter,n=void 0===t?null:t,u=e.clickable,d=e.columnNum,f=void 0===d?4:d,m=e.center,p=void 0===m||m,h=e.border,v=void 0===h||h,g=e.direction,b=e.iconSize,y=void 0===b?"48":b,j=e.square,w=e.reverse,x=void 0!==w&&w,_=e.className,S=void 0===_?"":_,k=e.style,C=void 0===k?{}:k,O=(0,o.default)(e,s),P=(0,a.useRef)([]),T=(0,a.useCallback)((function(){P.current.forEach((function(e){e.updateStyle()}))}),[]);(0,a.useEffect)((function(){T()}),[T]);var N=(0,a.useCallback)((function(e,t){P.current[e]=t}),[]),I=(0,a.useMemo)((function(){var e=[];return O.children&&Array.isArray(O.children)&&O.children.forEach((function(t,o){e.push((0,a.cloneElement)(t,{setChildrenInstance:N,key:o,index:o,parentInstance:{columnNum:f,border:v,square:j,gutter:n,clickable:u,center:p,direction:g,reverse:x,iconSize:y}}))})),e}),[O.children,f]);return(0,c.jsx)(r.View,{className:"van-grid "+(v&&!n?"van-hairline--top":"")+" "+S,style:i.style([l.rootStyle({gutter:n}),C]),children:I})}},"./node_modules/@antmjs/vantui/es/grid/wxs.js":function(e,t,n){"use strict";n.d(t,{rootStyle:function(){return rootStyle}});var o=n("./node_modules/@antmjs/vantui/es/wxs/style.js"),r=n("./node_modules/@antmjs/vantui/es/wxs/add-unit.js");function rootStyle(e){return(0,o.style)({"padding-left":(0,r.addUnit)(e.gutter)})}},"./node_modules/@antmjs/vantui/es/notice-bar/index.js":function(e,t,n){"use strict";var o=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),a=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),i=n("webpack/container/remote/@tarojs/taro"),l=n("webpack/container/remote/react"),c=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),s=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),u=n("./node_modules/@antmjs/vantui/es/common/utils.js"),d=n("./node_modules/@antmjs/vantui/es/icon/index.js"),f=n("./node_modules/@antmjs/vantui/es/notice-bar/wxs.js"),m=n("webpack/container/remote/react/jsx-runtime"),p=["text","mode","url","openType","delay","speed","scrollable","leftIcon","color","backgroundColor","background","wrapable","renderLeftIcon","renderRightIcon","onClick","onClose","style","className","children"];function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _objectSpread(e){for(var t=1;t0&&void 0!==arguments[0]&&arguments[0];b.current.timer&&clearTimeout(b.current.timer),b.current.timer=null,v((function(t){return _objectSpread(_objectSpread({},t),{},{animationData:b.current.resetAnimation.translateX(e?0:b.current.wrapWidth).step().export()})})),setTimeout((function(){(0,u.requestAnimationFrame)((function(){v((function(e){return _objectSpread(_objectSpread({},e),{},{animationData:b.current.animation.translateX(-b.current.contentWidth).step().export()})}))}))}),10),b.current.timer=setTimeout((function(){U()}),b.current.duration)}),[]),$=(0,l.useCallback)((function(){(0,u.requestAnimationFrame)((function(){Promise.all([(0,u.getRect)(null,".van-notice-bar__content_".concat(o.unitag)),(0,u.getRect)(null,".van-notice-bar__wrap_".concat(o.unitag))]).then((function(e){var t=e[0],n=e[1];null!=t&&null!=n&&t.width&&n.width&&!1!==E&&(0,i.nextTick)((function(){(E||n.width<=t.width)&&(b.current.wrapWidth=n.width,b.current.contentWidth=t.width,b.current.duration=(n.width+t.width)/N*1e3,b.current.animation=(0,i.createAnimation)({duration:b.current.duration,timingFunction:"linear",delay:P}),U(!0))}))}))}))}),[o.unitag,E,N,P,U]),J=(0,l.useCallback)((function(e){"closeable"===x&&(b.current.timer&&clearTimeout(b.current.timer),b.current.timer=null,v((function(e){return _objectSpread(_objectSpread({},e),{},{show:!1})})),null==Y||Y(e))}),[x,Y]);return o.show&&(0,m.jsxs)(c.View,_objectSpread(_objectSpread({className:s.bem("notice-bar",{withicon:x,wrapable:G})+" ".concat(X||""),style:s.style([f.rootStyle({color:L,backgroundColor:M,background:R}),W])},B),{},{onClick:K,children:[D?(0,m.jsx)(d.default,{name:D,className:"van-notice-bar__left-icon"}):z,(0,m.jsx)(c.View,{className:"van-notice-bar__wrap van-notice-bar__wrap_".concat(o.unitag),children:(0,m.jsxs)(c.View,{className:"van-notice-bar__content van-notice-bar__content_".concat(o.unitag," ")+(!1!==E||G?"":"van-ellipsis"),animation:o.animationData,children:[j,!j&&H]})}),"closeable"===x?(0,m.jsx)(d.default,{className:"van-notice-bar__right-icon",name:"cross",onClick:J}):"link"===x?(0,m.jsx)(c.Navigator,{url:S,openType:C,children:(0,m.jsx)(d.default,{className:"van-notice-bar__right-icon",name:"arrow"})}):q]}))}},"./node_modules/@antmjs/vantui/es/notice-bar/wxs.js":function(e,t,n){"use strict";n.d(t,{rootStyle:function(){return rootStyle}});var o=n("./node_modules/@antmjs/vantui/es/wxs/style.js");function rootStyle(e){return(0,o.style)({color:e.color,"background-color":e.backgroundColor,background:e.background})}},"./node_modules/@antmjs/vantui/es/search/index.js":function(e,t,n){"use strict";var o=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),a=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),i=n("webpack/container/remote/react"),l=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),c=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),s=n("./node_modules/@antmjs/vantui/es/field/index.js"),u=n("webpack/container/remote/react/jsx-runtime"),d=["value","defaultValue","label","focus","error","disabled","readonly","inputAlign","showAction","leftIcon","rightIcon","placeholder","placeholderStyle","actionText","background","maxlength","shape","clearable","clearTrigger","clearIcon","renderLabel","renderLeftIcon","renderRightIcon","renderAction","onFocus","onBlur","onChange","onClear","onClickInput","onSearch","onCancel","style","className"];function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _objectSpread(e){for(var t=1;t=fe&&xe({pace:-fe})},ye=function prev(){be(),Oe(),ke((function(){ke((function(){T.current.moving=!1,xe({pace:-1,isEmit:!0})}))}))},je=function next(){be(),Oe(),ke((function(){ke((function(){T.current.moving=!1,xe({pace:1,isEmit:!0})}))}))},we=function to(e){be(),Oe(),ke((function(){ke((function(){var t;T.current.moving=!1,t=c.loop&&fe===e?0===R?0:e:e%fe,xe({pace:t-R,isEmit:!0})}))}))},xe=function move(e){var t=e.pace,n=void 0===t?0:t,o=e.offset,r=void 0===o?0:o,a=e.isEmit,i=void 0!==a&&a;if(!(fe<=1)){var l=_e(n),s=Se(l,r);if(c.loop){if(Array.isArray(d)&&d[0]&&s!==he){var u=s0;te[fe-1]=f?-me:0}ne(te)}i&&R!==l&&c.onChange&&c.onChange((l+fe)%fe),R=l,G(l),Q(s),Te(s)}},_e=function getActive(e){if(e){var t=R+e;return c.loop?Ce(t,-1,fe):Ce(t,0,fe-1)}return R},Se=function getOffset(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e*Number(le);c.loop||(n=Math.min(n,-he));var o=t-n;return c.loop||(o=Ce(o,he,0)),o},ke=function requestFrame(e){b.requestAnimationFrame.call(b,e)},Ce=function range(e,t,n){return Math.min(Math.max(e,t),n)},Oe=function touchReset(){se.startX=0,se.startY=0,se.deltaX=0,se.deltaY=0,se.offsetX=0,se.offsetY=0,se.delta=0,se.stateDirection="",se.touchTime=0},Pe=f()((n={},(0,i.default)(n,"van-swiper__inner",!0),(0,i.default)(n,"van-swiper__vertical",E),n)),Te=function getStyle(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:J,t=P.current,n=0;if(S){var o=E?H:K,r=E?(null==F?void 0:F.height)-o:(null==F?void 0:F.width)-o;n=e+(R!==fe-1||c.loop?r/2:-r/2)}else n=e;t.style.transitionDuration="".concat(T.current.moving?0:c.duration,"ms"),t.style[E?"height":"width"]="".concat(Number(le)*fe,"px"),t.style[E?"width":"height"]="".concat(E?K:H,"px"),t.style.transform="translate3D".concat(E?"(0,".concat(n,"px,0)"):"(".concat(n,"px,0,0)"))};(0,u.useEffect)((function(){T.current.activePagination=(R+fe)%fe}),[R]);var Ne=function queryRect(e){return new Promise((function(t){var n=(0,m.createSelectorQuery)();n.select("#".concat(e.id))&&n.select("#".concat(e.id)).boundingClientRect(),n.exec((function(e){t(e[0])}))}))},Ie=function(){var e=(0,o.default)(s().mark((function _callee(){var e,t,n,o,r,a,i=arguments;return s().wrap((function _callee$(l){for(;;)switch(l.prev=l.next){case 0:return e=i.length>0&&void 0!==i[0]?i[0]:+c.initPage,l.next=3,Ne(O.current);case 3:t=l.sent,n=Math.max(Math.min(fe-1,e),0),o=c.width?+c.width:null==t?void 0:t.width,r=c.height?+c.height:null==t?void 0:t.height,le=E?r:o,me=fe*Number(le),a=Se(n),T.current.moving=!0,ae&&(T.current.moving=!1),L(t),G(n),Y(o),B(r),Q(a),ie(!0);case 18:case"end":return l.stop()}}),_callee)})));return function init(){return e.apply(this,arguments)}}();(0,u.useEffect)((function(){ae&&Te()}),[E,K,H,J,ae]),(0,u.useEffect)((function(){return function(){ie(!1)}}),[]),(0,u.useEffect)((function(){ve(),ge()}),[d]),(0,u.useEffect)((function(){Ie()}),[c.initPage]),(0,u.useEffect)((function(){return function(){ve()}}),[]),(0,m.useReady)((function(){Ie(),p().nextTick((function(){setTimeout((function(){ve(),ge()}),16)}))}));var Ee=function itemStyle(e){var t={},n=c.direction||w,o=le;o&&(t["horizontal"===n?"width":"height"]="".concat(o,"px"));var r=te[e];return r&&(t.transform="translate3D".concat("horizontal"===n?"(".concat(r,"px,0,0)"):"(0,".concat(r,"px,0)"))),t};return(0,u.useImperativeHandle)(t,(function(){return{to:we,next:je,prev:ye}})),(0,g.jsx)(v.DataContext.Provider,{value:pe,children:(0,g.jsxs)(h.View,_objectSpread(_objectSpread({className:"van-swiper ".concat(x),ref:O},C),{},{id:"container-"+I,onTouchStart:function onTouchStart(e){c.isPreventDefault&&e.preventDefault(),c.isStopPropagation&&e.stopPropagation(),c.touchable&&(!function touchStart(e){var t,n;Oe(),se.startX=(null==e||null===(t=e.touches[0])||void 0===t?void 0:t.clientX)||0,se.startY=(null==e||null===(n=e.touches[0])||void 0===n?void 0:n.clientY)||0}(e),se.touchTime=Date.now(),ve(),be())},onTouchMove:function onTouchMove(e){c.touchable&&T.current.moving&&(!function touchMove(e){var t,n;se.deltaX=((null==e||null===(t=e.touches[0])||void 0===t?void 0:t.clientX)||0)-se.startX,se.deltaY=((null==e||null===(n=e.touches[0])||void 0===n?void 0:n.clientY)||0)-se.startY,se.offsetX=Math.abs(se.deltaX),se.offsetY=Math.abs(se.deltaY),se.delta=E?se.deltaY:se.deltaX,se.stateDirection||(se.stateDirection=function getDirection(e,t){return e>t&&e>5?"horizontal":t>e&&t>5?"vertical":""}(se.offsetX,se.offsetY))}(e),se.stateDirection===c.direction&&xe({offset:se.delta}))},onTouchEnd:function onTouchEnd(){if(c.touchable&&T.current.moving){var e=se.delta/(Date.now()-se.touchTime),t=Math.abs(e)>.3||Math.abs(se.delta)>+(le/2).toFixed(2),n=0;if(T.current.moving=!1,t&&se.stateDirection===c.direction){var o=E?se.offsetY:se.offsetX;n=c.loop?o>0?se.delta>0?-1:1:0:-Math[se.delta>0?"ceil":"floor"](se.delta/le),xe({pace:n,isEmit:!0})}else se.delta?xe({pace:0}):Te();ge()}},catchMove:E,style:_objectSpread(_objectSpread({},k),{},{height:H}),children:[(0,g.jsxs)(h.View,{className:Pe,ref:P,children:[u.Children.map(de,(function(e,t){return(0,g.jsx)(h.View,{className:"van-swiper-item-wrapper",style:Ee(t),children:e},t)})),(0,g.jsx)(h.View,{className:"van-swiper-item-wrapper",style:Ee(0),children:de&&de.length?de[0]:""})]}),c.paginationVisible&&!("pageContent"in c)?(0,g.jsx)(h.View,{className:f()((l={},(0,i.default)(l,"van-swiper__pagination",!0),(0,i.default)(l,"van-swiper__pagination-vertical",E),l)),children:u.Children.map(de,(function(e,t){var n;return(0,g.jsx)(h.Text,{style:(R+fe)%fe===t?{backgroundColor:c.paginationColor}:void 0,className:f()((n={},(0,i.default)(n,"van-swiper__pagination-item",!0),(0,i.default)(n,"active",(R+fe)%fe===t),n))},t)}))}):(0,g.jsx)(h.View,{children:_})]}))})},x=(0,u.forwardRef)(w);t.default=x},"./node_modules/@antmjs/vantui/es/utils/index.js":function(e,t,n){"use strict";n.d(t,{resizeTextarea:function(){return resizeTextarea}});n("./node_modules/@babel/runtime/helpers/esm/typeof.js"),n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),n("webpack/container/remote/react"),n("webpack/container/remote/@tarojs/taro");var o=n("./node_modules/@antmjs/vantui/es/utils/type.js"),r=n("webpack/container/remote/@tarojs/runtime").window,a=n("webpack/container/remote/@tarojs/runtime").document;function setScrollTop(e,t){"scrollTop"in e?e.scrollTop=t:e.scrollTo(e.scrollX,t)}function resizeTextarea(e,t){var n=function getRootScrollTop(){return r.pageYOffset||a.documentElement.scrollTop||a.body.scrollTop||0}();e.style.height="auto",e.style.lineHeight="inherit",e.rows=1;var i=e.scrollHeight;if(console.info(i),(0,o.isObject)(t)){var l=t.maxHeight,c=t.minHeight;void 0!==l&&(i=Math.min(i,"number"==typeof l?l:Number(l.replace("px","")))),void 0!==c&&(i=Math.max(i,"number"==typeof c?c:Number(c.replace("px",""))))}i&&(e.style.height="".concat(i,"px"),function setRootScrollTop(e){setScrollTop(r,e),setScrollTop(a.body,e)}(n))}},"./node_modules/classnames/index.js":function(e,t,n){var o,r=n("webpack/container/remote/@tarojs/runtime").window,a=n("./node_modules/@babel/runtime/helpers/typeof.js").default;!function(){"use strict";var i={}.hasOwnProperty;function classNames(){for(var e=[],t=0;t0&&(null!==(T=null==ee||null===(N=ee[0])||void 0===N?void 0:N.imagesArr)&&void 0!==T?T:[]).map((function(e,t){return(0,O.jsx)(l.default,{children:(0,O.jsx)(c.default,{src:null==e?void 0:e.url,fit:"cover",width:"100%",height:"200px"})},"swiper#demo1".concat(t))}))})}),(0,O.jsxs)(r.default,{children:[(0,O.jsx)(a.default,{icon:"star",text:"打卡",className:"iconStyle",onClick:(0,g.default)((0,v.default)().mark((function _callee8(){var e;return(0,v.default)().wrap((function _callee8$(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,k.phoneLogin)();case 2:e=t.sent,se(!0),console.log("isin",e),e?_().getLocation({type:"gcj02",success:function success(e){console.log("lbs",e);null==e||e.latitude,null==e||e.longitude;var t={latitude:null==e?void 0:e.latitude,longitude:null==e?void 0:e.longitude};me(t)},fail:function fail(){p.default.fail({message:"定位授权异常,无法签到打卡",selector:"#vanToast-demo2"})}}):p.default.fail({message:"请先登录",selector:"#vanToast-demo2"});case 6:case"end":return t.stop()}}),_callee8)})))}),(0,O.jsx)(a.default,{icon:"like",className:"iconStyle",text:"深圳十峰",onClick:function onClick(){_().navigateTo({url:"/pages/mountainPeak/index"})}}),(0,O.jsx)(a.default,{icon:"eye",className:"iconStyle",text:"活动",onClick:function onClick(){_().navigateTo({url:"/pages/activityList/index"})}}),(0,O.jsx)(a.default,{icon:"manager",className:"iconStyle",text:"组队",onClick:function onClick(){p.default.fail({message:"参加1次活动后,可发起组队",selector:"#vanToast-demo2"})}})]}),(null==$?void 0:$.length)>0?(0,O.jsx)(y.View,{children:(null!==(I=null==$||null===(E=$.reverse())||void 0===E?void 0:E.splice(0,2))&&void 0!==I?I:[]).map((function(e,t){return(0,O.jsx)(y.View,{onClick:function onClick(){console.log("Card"),_().navigateTo({url:"/pages/activityList/components/details/index?id=".concat(null==e?void 0:e._id)})},children:(0,O.jsx)(C.default,{dataSource:e})})}))}):(0,O.jsx)(o.default,{title:!0,row:4}),(0,O.jsxs)(y.View,{style:{marginTop:"20px"},children:[" ",(0,O.jsx)(y.OfficialAccount,{onLoad:function onLoad(e){console.log("加载成功",e)},onError:function onError(e){console.log("加载失败",e)}})]}),(0,O.jsx)(p.default,{id:"vanToast-demo2"}),(0,O.jsx)(S.default,{active:0})]})}},"./src/pages/home/index.tsx":function(e,t,n){"use strict";var o=n("webpack/container/remote/@tarojs/runtime"),r=n("./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[9].use[1]!./src/pages/home/index.tsx");r.default.enableShareTimeline=!0,r.default.enableShareAppMessage=!0;Page((0,o.createPageConfig)(r.default,"pages/home/index",{root:{cn:[]}},{navigationBarTitleText:"首页"}||{}))},"./node_modules/@babel/runtime/helpers/regeneratorRuntime.js":function(e,t,n){var o=n("./node_modules/@babel/runtime/helpers/typeof.js").default;function _regeneratorRuntime(){"use strict";e.exports=_regeneratorRuntime=function _regeneratorRuntime(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},l=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function define(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{define({},"")}catch(e){define=function define(e,t,n){return e[t]=n}}function wrap(e,t,n,o){var r=t&&t.prototype instanceof Generator?t:Generator,i=Object.create(r.prototype),l=new Context(o||[]);return a(i,"_invoke",{value:makeInvokeMethod(e,n,l)}),i}function tryCatch(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=wrap;var u={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var d={};define(d,l,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(values([])));m&&m!==n&&r.call(m,l)&&(d=m);var p=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(d);function defineIteratorMethods(e){["next","throw","return"].forEach((function(t){define(e,t,(function(e){return this._invoke(t,e)}))}))}function AsyncIterator(e,t){function invoke(n,a,i,l){var c=tryCatch(e[n],e,a);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==o(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){invoke("next",e,i,l)}),(function(e){invoke("throw",e,i,l)})):t.resolve(u).then((function(e){s.value=e,i(s)}),(function(e){return invoke("throw",e,i,l)}))}l(c.arg)}var n;a(this,"_invoke",{value:function value(e,o){function callInvokeWithMethodAndArg(){return new t((function(t,n){invoke(e,o,t,n)}))}return n=n?n.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,t,n){var o="suspendedStart";return function(r,a){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===r)throw a;return doneResult()}for(n.method=r,n.arg=a;;){var i=n.delegate;if(i){var l=maybeInvokeDelegate(i,n);if(l){if(l===u)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var c=tryCatch(e,t,n);if("normal"===c.type){if(o=n.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o="completed",n.method="throw",n.arg=c.arg)}}}function maybeInvokeDelegate(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,maybeInvokeDelegate(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var o=tryCatch(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,u;var r=o.arg;return r?r.done?(t[e.resultName]=r.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):r:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function pushTryEntry(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function resetTryEntry(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function Context(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function next(){for(;++n=0;--n){var o=this.tryEntries[n],a=o.completion;if("root"===o.tryLoc)return handle("end");if(o.tryLoc<=this.prev){var i=r.call(o,"catchLoc"),l=r.call(o,"finallyLoc");if(i&&l){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),resetTryEntry(n),u}},catch:function _catch(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;resetTryEntry(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,t,n){return this.delegate={iterator:values(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},t}e.exports=_regeneratorRuntime,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/regenerator/index.js":function(e,t,n){var o=n("./node_modules/@babel/runtime/helpers/regeneratorRuntime.js")();e.exports=o;try{regeneratorRuntime=o}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=o:Function("r","regeneratorRuntime = r")(o)}}},function(e){e.O(0,["taro","vendors","common"],(function(){return t="./src/pages/home/index.tsx",e(e.s=t);var t}));e.O()}]); \ No newline at end of file +(wx.webpackJsonp=wx.webpackJsonp||[]).push([["pages/home/index"],{"./node_modules/@antmjs/vantui/es/field/index.js":function(e,t,n){"use strict";n.d(t,{Field:function(){return Field}});var o=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),a=n("webpack/container/remote/@tarojs/taro"),i=n("webpack/container/remote/react"),l=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),s=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),c=n("./node_modules/@antmjs/vantui/es/cell/index.js"),u=n("./node_modules/@antmjs/vantui/es/icon/index.js"),d=(n("./node_modules/@antmjs/vantui/es/utils/index.js"),n("./node_modules/@antmjs/vantui/es/field/wxs.js")),m=n("webpack/container/remote/react/jsx-runtime");n("webpack/container/remote/@tarojs/runtime").document;function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _objectSpread(e){for(var t=1;t=H}),children:j.length>=H?H:j.length}),"/"+H]}),$&&(0,m.jsx)(l.View,{className:s.bem("field__error-message",[B,{disabled:A,error:U}]),children:$})]})}},"./node_modules/@antmjs/vantui/es/field/wxs.js":function(e,t,n){"use strict";n.d(t,{inputStyle:function(){return inputStyle}});var o=n("./node_modules/@antmjs/vantui/es/wxs/style.js"),r=n("./node_modules/@antmjs/vantui/es/wxs/add-unit.js");function inputStyle(e){return e&&"Object"===e.constructor.name?(0,o.style)({"min-height":(0,r.addUnit)(e.minHeight),"max-height":(0,r.addUnit)(e.maxHeight)}):""}},"./node_modules/@antmjs/vantui/es/grid-item/index.js":function(e,t,n){"use strict";var o=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),r=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),a=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),i=n("webpack/container/remote/react"),l=n("./node_modules/@antmjs/vantui/es/common/jumpLink.js"),s=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),c=n("./node_modules/@antmjs/vantui/es/icon/index.js"),u=n("./node_modules/@antmjs/vantui/es/grid-item/wxs.js"),d=n("webpack/container/remote/react/jsx-runtime"),m=["icon","iconColor","iconPrefix","dot","info","badge","text","setChildrenInstance","parentInstance","index","url","linkType","style","className"];t.default=function GridItem(e){var t=e.icon,n=e.iconColor,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,y=e.parentInstance,w=e.index,x=e.url,_=e.linkType,S=e.style,k=e.className,C=(0,r.default)(e,m),O=(0,i.useState)({}),T=(0,o.default)(O,2),P=T[0],N=T[1];(0,i.useEffect)((function(){g(w,{updateStyle:I})}),[w,g]),(0,i.useEffect)((function(){I()}),[y.columnNum]);var I=(0,i.useCallback)((function(){var e=y.columnNum,t=y.border,n=y.square,o=y.gutter,r=y.clickable,a=y.center,i=y.direction,l=y.reverse,s=y.iconSize;N({center:a,border:t,square:n,gutter:o,clickable:r,direction:i,reverse:l,iconSize:s,index:w,columnNum:e})}),[y,w]);return(0,d.jsx)(a.View,{className:" "+s.bem("grid-item",{square:null==P?void 0:P.square})+" "+k,style:s.style([u.wrapperStyle({square:null==P?void 0:P.square,gutter:null==P?void 0:P.gutter,columnNum:null==P?void 0:P.columnNum,index:null==P?void 0:P.index}),S]),onClick:function onClick(e){var t;x&&(0,l.jumpLink)(x,_),null==C||null===(t=C.onClick)||void 0===t||t.call(C,e)},children:(0,d.jsx)(a.View,{className:"content-class "+s.bem("grid-item__content",[null==P?void 0:P.direction,{center:null==P?void 0:P.center,square:null==P?void 0:P.square,reverse:null==P?void 0:P.reverse,clickable:null==P?void 0:P.clickable,surround:(null==P?void 0:P.border)&&(null==P?void 0:P.gutter)}])+" "+(null!=P&&P.border?"van-hairline--surround":""),style:u.contentStyle({square:null==P?void 0:P.square,gutter:null==P?void 0:P.gutter}),children:C.children||(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(a.View,{className:"van-grid-item__icon icon-class",children:t?(0,d.jsx)(c.default,{name:t,color:n,classPrefix:p,dot:v,info:b||h,size:null==P?void 0:P.iconSize}):P.renderIcon}),(0,d.jsx)(a.View,{className:"van-grid-item__text text-class",children:j?(0,d.jsx)(a.Text,{children:j}):P.renderText})]})})})}},"./node_modules/@antmjs/vantui/es/grid-item/wxs.js":function(e,t,n){"use strict";n.d(t,{wrapperStyle:function(){return wrapperStyle},contentStyle:function(){return contentStyle}});var o=n("./node_modules/@antmjs/vantui/es/wxs/style.js"),r=n("./node_modules/@antmjs/vantui/es/wxs/add-unit.js");function wrapperStyle(e){var t=100/e.columnNum+"%";return(0,o.style)({width:t,"padding-top":e.square?t:null,"padding-right":(0,r.addUnit)(e.gutter),"margin-top":e.index>=e.columnNum&&!e.square?(0,r.addUnit)(e.gutter):null})}function contentStyle(e){return e.square?(0,o.style)({right:(0,r.addUnit)(e.gutter),bottom:(0,r.addUnit)(e.gutter),height:"auto"}):""}},"./node_modules/@antmjs/vantui/es/grid/index.js":function(e,t,n){"use strict";var o=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),r=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),a=n("webpack/container/remote/react"),i=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),l=n("./node_modules/@antmjs/vantui/es/grid/wxs.js"),s=n("webpack/container/remote/react/jsx-runtime"),c=["gutter","clickable","columnNum","center","border","direction","iconSize","square","reverse","className","style"];t.default=function Grid(e){var t=e.gutter,n=void 0===t?null:t,u=e.clickable,d=e.columnNum,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,y=e.square,w=e.reverse,x=void 0!==w&&w,_=e.className,S=void 0===_?"":_,k=e.style,C=void 0===k?{}:k,O=(0,o.default)(e,c),T=(0,a.useRef)([]),P=(0,a.useCallback)((function(){T.current.forEach((function(e){e.updateStyle()}))}),[]);(0,a.useEffect)((function(){P()}),[P]);var N=(0,a.useCallback)((function(e,t){T.current[e]=t}),[]),I=(0,a.useMemo)((function(){var e=[];return O.children&&Array.isArray(O.children)&&O.children.forEach((function(t,o){e.push((0,a.cloneElement)(t,{setChildrenInstance:N,key:o,index:o,parentInstance:{columnNum:m,border:h,square:y,gutter:n,clickable:u,center:p,direction:b,reverse:x,iconSize:g}}))})),e}),[O.children,m]);return(0,s.jsx)(r.View,{className:"van-grid "+(h&&!n?"van-hairline--top":"")+" "+S,style:i.style([l.rootStyle({gutter:n}),C]),children:I})}},"./node_modules/@antmjs/vantui/es/grid/wxs.js":function(e,t,n){"use strict";n.d(t,{rootStyle:function(){return rootStyle}});var o=n("./node_modules/@antmjs/vantui/es/wxs/style.js"),r=n("./node_modules/@antmjs/vantui/es/wxs/add-unit.js");function rootStyle(e){return(0,o.style)({"padding-left":(0,r.addUnit)(e.gutter)})}},"./node_modules/@antmjs/vantui/es/notice-bar/index.js":function(e,t,n){"use strict";var o=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),a=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),i=n("webpack/container/remote/@tarojs/taro"),l=n("webpack/container/remote/react"),s=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),c=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),u=n("./node_modules/@antmjs/vantui/es/common/utils.js"),d=n("./node_modules/@antmjs/vantui/es/icon/index.js"),m=n("./node_modules/@antmjs/vantui/es/notice-bar/wxs.js"),f=n("webpack/container/remote/react/jsx-runtime"),p=["text","mode","url","openType","delay","speed","scrollable","leftIcon","color","backgroundColor","background","wrapable","renderLeftIcon","renderRightIcon","onClick","onClose","style","className","children"];function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _objectSpread(e){for(var t=1;t0&&void 0!==arguments[0]&&arguments[0];j.current.timer&&clearTimeout(j.current.timer),j.current.timer=null,h((function(t){return _objectSpread(_objectSpread({},t),{},{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(){$()}),j.current.duration)}),[]),G=(0,l.useCallback)((function(){(0,u.requestAnimationFrame)((function(){Promise.all([(0,u.getRect)(null,".van-notice-bar__content_".concat(o.unitag)),(0,u.getRect)(null,".van-notice-bar__wrap_".concat(o.unitag))]).then((function(e){var t=e[0],n=e[1];null!=t&&null!=n&&t.width&&n.width&&!1!==D&&(0,i.nextTick)((function(){(D||n.width<=t.width)&&(j.current.wrapWidth=n.width,j.current.contentWidth=t.width,j.current.duration=(n.width+t.width)/N*1e3,j.current.animation=(0,i.createAnimation)({duration:j.current.duration,timingFunction:"linear",delay:T}),$(!0))}))}))}))}),[o.unitag,D,N,T,$]),J=(0,l.useCallback)((function(e){"closeable"===x&&(j.current.timer&&clearTimeout(j.current.timer),j.current.timer=null,h((function(e){return _objectSpread(_objectSpread({},e),{},{show:!1})})),null==Y||Y(e))}),[x,Y]);return o.show&&(0,f.jsxs)(s.View,_objectSpread(_objectSpread({className:c.bem("notice-bar",{withicon:x,wrapable:q})+" ".concat(W||""),style:c.style([m.rootStyle({color:F,backgroundColor:M,background:R}),H])},U),{},{onClick:X,children:[V?(0,f.jsx)(d.default,{name:V,className:"van-notice-bar__left-icon"}):L,(0,f.jsx)(s.View,{className:"van-notice-bar__wrap van-notice-bar__wrap_".concat(o.unitag),children:(0,f.jsxs)(s.View,{className:"van-notice-bar__content van-notice-bar__content_".concat(o.unitag," ")+(!1!==D||q?"":"van-ellipsis"),animation:o.animationData,children:[y,!y&&B]})}),"closeable"===x?(0,f.jsx)(d.default,{className:"van-notice-bar__right-icon",name:"cross",onClick:J}):"link"===x?(0,f.jsx)(s.Navigator,{url:S,openType:C,children:(0,f.jsx)(d.default,{className:"van-notice-bar__right-icon",name:"arrow"})}):K]}))}},"./node_modules/@antmjs/vantui/es/notice-bar/wxs.js":function(e,t,n){"use strict";n.d(t,{rootStyle:function(){return rootStyle}});var o=n("./node_modules/@antmjs/vantui/es/wxs/style.js");function rootStyle(e){return(0,o.style)({color:e.color,"background-color":e.backgroundColor,background:e.background})}},"./node_modules/@antmjs/vantui/es/search/index.js":function(e,t,n){"use strict";var o=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),a=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),i=n("webpack/container/remote/react"),l=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),s=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),c=n("./node_modules/@antmjs/vantui/es/field/index.js"),u=n("webpack/container/remote/react/jsx-runtime"),d=["value","defaultValue","label","focus","error","disabled","readonly","inputAlign","showAction","leftIcon","rightIcon","placeholder","placeholderStyle","actionText","background","maxlength","shape","clearable","clearTrigger","clearIcon","renderLabel","renderLeftIcon","renderRightIcon","renderAction","onFocus","onBlur","onChange","onClear","onClickInput","onSearch","onCancel","style","className"];function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _objectSpread(e){for(var t=1;t=me&&xe({pace:-me})},ge=function prev(){je(),Oe(),ke((function(){ke((function(){P.current.moving=!1,xe({pace:-1,isEmit:!0})}))}))},ye=function next(){je(),Oe(),ke((function(){ke((function(){P.current.moving=!1,xe({pace:1,isEmit:!0})}))}))},we=function to(e){je(),Oe(),ke((function(){ke((function(){var t;P.current.moving=!1,t=s.loop&&me===e?0===R?0:e:e%me,xe({pace:t-R,isEmit:!0})}))}))},xe=function move(e){var t=e.pace,n=void 0===t?0:t,o=e.offset,r=void 0===o?0:o,a=e.isEmit,i=void 0!==a&&a;if(!(me<=1)){var l=_e(n),c=Se(l,r);if(s.loop){if(Array.isArray(d)&&d[0]&&c!==ve){var u=c0;te[me-1]=m?-fe:0}ne(te)}i&&R!==l&&s.onChange&&s.onChange((l+me)%me),R=l,q(l),Q(c),Pe(c)}},_e=function getActive(e){if(e){var t=R+e;return s.loop?Ce(t,-1,me):Ce(t,0,me-1)}return R},Se=function getOffset(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e*Number(le);s.loop||(n=Math.min(n,-ve));var o=t-n;return s.loop||(o=Ce(o,ve,0)),o},ke=function requestFrame(e){j.requestAnimationFrame.call(j,e)},Ce=function range(e,t,n){return Math.min(Math.max(e,t),n)},Oe=function touchReset(){ce.startX=0,ce.startY=0,ce.deltaX=0,ce.deltaY=0,ce.offsetX=0,ce.offsetY=0,ce.delta=0,ce.stateDirection="",ce.touchTime=0},Te=m()((n={},(0,i.default)(n,"van-swiper__inner",!0),(0,i.default)(n,"van-swiper__vertical",D),n)),Pe=function getStyle(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:J,t=T.current,n=0;if(S){var o=D?B:X,r=D?(null==A?void 0:A.height)-o:(null==A?void 0:A.width)-o;n=e+(R!==me-1||s.loop?r/2:-r/2)}else n=e;t.style.transitionDuration="".concat(P.current.moving?0:s.duration,"ms"),t.style[D?"height":"width"]="".concat(Number(le)*me,"px"),t.style[D?"width":"height"]="".concat(D?X:B,"px"),t.style.transform="translate3D".concat(D?"(0,".concat(n,"px,0)"):"(".concat(n,"px,0,0)"))};(0,u.useEffect)((function(){P.current.activePagination=(R+me)%me}),[R]);var Ne=function queryRect(e){return new Promise((function(t){var n=(0,f.createSelectorQuery)();n.select("#".concat(e.id))&&n.select("#".concat(e.id)).boundingClientRect(),n.exec((function(e){t(e[0])}))}))},Ie=function(){var e=(0,o.default)(c().mark((function _callee(){var e,t,n,o,r,a,i=arguments;return c().wrap((function _callee$(l){for(;;)switch(l.prev=l.next){case 0:return e=i.length>0&&void 0!==i[0]?i[0]:+s.initPage,l.next=3,Ne(O.current);case 3:t=l.sent,n=Math.max(Math.min(me-1,e),0),o=s.width?+s.width:null==t?void 0:t.width,r=s.height?+s.height:null==t?void 0:t.height,le=D?r:o,fe=me*Number(le),a=Se(n),P.current.moving=!0,ae&&(P.current.moving=!1),F(t),q(n),Y(o),U(r),Q(a),ie(!0);case 18:case"end":return l.stop()}}),_callee)})));return function init(){return e.apply(this,arguments)}}();(0,u.useEffect)((function(){ae&&Pe()}),[D,X,B,J,ae]),(0,u.useEffect)((function(){return function(){ie(!1)}}),[]),(0,u.useEffect)((function(){he(),be()}),[d]),(0,u.useEffect)((function(){Ie()}),[s.initPage]),(0,u.useEffect)((function(){return function(){he()}}),[]),(0,f.useReady)((function(){Ie(),p().nextTick((function(){setTimeout((function(){he(),be()}),16)}))}));var De=function itemStyle(e){var t={},n=s.direction||w,o=le;o&&(t["horizontal"===n?"width":"height"]="".concat(o,"px"));var r=te[e];return r&&(t.transform="translate3D".concat("horizontal"===n?"(".concat(r,"px,0,0)"):"(0,".concat(r,"px,0)"))),t};return(0,u.useImperativeHandle)(t,(function(){return{to:we,next:ye,prev:ge}})),(0,b.jsx)(h.DataContext.Provider,{value:pe,children:(0,b.jsxs)(v.View,_objectSpread(_objectSpread({className:"van-swiper ".concat(x),ref:O},C),{},{id:"container-"+I,onTouchStart:function onTouchStart(e){s.isPreventDefault&&e.preventDefault(),s.isStopPropagation&&e.stopPropagation(),s.touchable&&(!function touchStart(e){var t,n;Oe(),ce.startX=(null==e||null===(t=e.touches[0])||void 0===t?void 0:t.clientX)||0,ce.startY=(null==e||null===(n=e.touches[0])||void 0===n?void 0:n.clientY)||0}(e),ce.touchTime=Date.now(),he(),je())},onTouchMove:function onTouchMove(e){s.touchable&&P.current.moving&&(!function touchMove(e){var t,n;ce.deltaX=((null==e||null===(t=e.touches[0])||void 0===t?void 0:t.clientX)||0)-ce.startX,ce.deltaY=((null==e||null===(n=e.touches[0])||void 0===n?void 0:n.clientY)||0)-ce.startY,ce.offsetX=Math.abs(ce.deltaX),ce.offsetY=Math.abs(ce.deltaY),ce.delta=D?ce.deltaY:ce.deltaX,ce.stateDirection||(ce.stateDirection=function getDirection(e,t){return e>t&&e>5?"horizontal":t>e&&t>5?"vertical":""}(ce.offsetX,ce.offsetY))}(e),ce.stateDirection===s.direction&&xe({offset:ce.delta}))},onTouchEnd:function onTouchEnd(){if(s.touchable&&P.current.moving){var e=ce.delta/(Date.now()-ce.touchTime),t=Math.abs(e)>.3||Math.abs(ce.delta)>+(le/2).toFixed(2),n=0;if(P.current.moving=!1,t&&ce.stateDirection===s.direction){var o=D?ce.offsetY:ce.offsetX;n=s.loop?o>0?ce.delta>0?-1:1:0:-Math[ce.delta>0?"ceil":"floor"](ce.delta/le),xe({pace:n,isEmit:!0})}else ce.delta?xe({pace:0}):Pe();be()}},catchMove:D,style:_objectSpread(_objectSpread({},k),{},{height:B}),children:[(0,b.jsxs)(v.View,{className:Te,ref:T,children:[u.Children.map(de,(function(e,t){return(0,b.jsx)(v.View,{className:"van-swiper-item-wrapper",style:De(t),children:e},t)})),(0,b.jsx)(v.View,{className:"van-swiper-item-wrapper",style:De(0),children:de&&de.length?de[0]:""})]}),s.paginationVisible&&!("pageContent"in s)?(0,b.jsx)(v.View,{className:m()((l={},(0,i.default)(l,"van-swiper__pagination",!0),(0,i.default)(l,"van-swiper__pagination-vertical",D),l)),children:u.Children.map(de,(function(e,t){var n;return(0,b.jsx)(v.Text,{style:(R+me)%me===t?{backgroundColor:s.paginationColor}:void 0,className:m()((n={},(0,i.default)(n,"van-swiper__pagination-item",!0),(0,i.default)(n,"active",(R+me)%me===t),n))},t)}))}):(0,b.jsx)(v.View,{children:_})]}))})},x=(0,u.forwardRef)(w);t.default=x},"./node_modules/@antmjs/vantui/es/utils/index.js":function(e,t,n){"use strict";n.d(t,{resizeTextarea:function(){return resizeTextarea}});n("./node_modules/@babel/runtime/helpers/esm/typeof.js"),n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),n("webpack/container/remote/react"),n("webpack/container/remote/@tarojs/taro");var o=n("./node_modules/@antmjs/vantui/es/utils/type.js"),r=n("webpack/container/remote/@tarojs/runtime").window,a=n("webpack/container/remote/@tarojs/runtime").document;function setScrollTop(e,t){"scrollTop"in e?e.scrollTop=t:e.scrollTo(e.scrollX,t)}function resizeTextarea(e,t){var n=function getRootScrollTop(){return r.pageYOffset||a.documentElement.scrollTop||a.body.scrollTop||0}();e.style.height="auto",e.style.lineHeight="inherit",e.rows=1;var i=e.scrollHeight;if(console.info(i),(0,o.isObject)(t)){var l=t.maxHeight,s=t.minHeight;void 0!==l&&(i=Math.min(i,"number"==typeof l?l:Number(l.replace("px","")))),void 0!==s&&(i=Math.max(i,"number"==typeof s?s:Number(s.replace("px",""))))}i&&(e.style.height="".concat(i,"px"),function setRootScrollTop(e){setScrollTop(r,e),setScrollTop(a.body,e)}(n))}},"./node_modules/classnames/index.js":function(e,t,n){var o,r=n("webpack/container/remote/@tarojs/runtime").window,a=n("./node_modules/@babel/runtime/helpers/typeof.js").default;!function(){"use strict";var i={}.hasOwnProperty;function classNames(){for(var e=[],t=0;t0&&(null!==(P=null==ee||null===(N=ee[0])||void 0===N?void 0:N.imagesArr)&&void 0!==P?P:[]).map((function(e,t){return(0,O.jsx)(l.default,{children:(0,O.jsx)(s.default,{src:null==e?void 0:e.url,fit:"cover",width:"100%",height:"200px"})},"swiper#demo1".concat(t))}))})}),(0,O.jsxs)(r.default,{children:[(0,O.jsx)(a.default,{icon:"star",text:"打卡",className:"iconStyle",onClick:(0,b.default)((0,h.default)().mark((function _callee8(){var e;return(0,h.default)().wrap((function _callee8$(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,k.phoneLogin)();case 2:e=t.sent,ce(!0),console.log("isin",e),e?_().getLocation({type:"gcj02",success:function success(e){console.log("lbs",e);null==e||e.latitude,null==e||e.longitude;var t={latitude:null==e?void 0:e.latitude,longitude:null==e?void 0:e.longitude};fe(t)},fail:function fail(){p.default.fail({message:"定位授权异常,无法签到打卡",selector:"#vanToast-demo2"})}}):p.default.fail({message:"请先登录",selector:"#vanToast-demo2"});case 6:case"end":return t.stop()}}),_callee8)})))}),(0,O.jsx)(a.default,{icon:"like",className:"iconStyle",text:"深圳十峰",onClick:function onClick(){_().navigateTo({url:"/pages/mountainPeak/index"})}}),(0,O.jsx)(a.default,{icon:"eye",className:"iconStyle",text:"活动",onClick:function onClick(){_().navigateTo({url:"/pages/activityList/index"})}}),(0,O.jsx)(a.default,{icon:"manager",className:"iconStyle",text:"组队",onClick:function onClick(){p.default.fail({message:"参加1次活动后,可发起组队",selector:"#vanToast-demo2"})}})]}),(null==G?void 0:G.length)>0?(0,O.jsx)(g.View,{children:(null!==(I=null==G||null===(D=G.reverse())||void 0===D?void 0:D.splice(0,2))&&void 0!==I?I:[]).map((function(e,t){return(0,O.jsx)(g.View,{onClick:function onClick(){console.log("Card"),_().navigateTo({url:"/pages/activityList/components/details/index?id=".concat(null==e?void 0:e._id)})},children:(0,O.jsx)(C.default,{dataSource:e})})}))}):(0,O.jsx)(o.default,{title:!0,row:4}),(0,O.jsxs)(g.View,{style:{marginTop:"20px"},children:[" ",(0,O.jsx)(g.OfficialAccount,{onLoad:function onLoad(e){console.log("加载成功",e)},onError:function onError(e){console.log("加载失败",e)}})]}),(0,O.jsx)(p.default,{id:"vanToast-demo2"}),(0,O.jsx)(S.default,{active:0})]})}},"./src/pages/home/index.tsx":function(e,t,n){"use strict";var o=n("webpack/container/remote/@tarojs/runtime"),r=n("./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[9].use[1]!./src/pages/home/index.tsx");r.default.enableShareTimeline=!0,r.default.enableShareAppMessage=!0;Page((0,o.createPageConfig)(r.default,"pages/home/index",{root:{cn:[]}},{navigationBarTitleText:"首页"}||{}))}},function(e){e.O(0,["taro","vendors","common"],(function(){return t="./src/pages/home/index.tsx",e(e.s=t);var t}));e.O()}]); \ No newline at end of file diff --git a/dist/pages/home/index.js.LICENSE.txt b/dist/pages/home/index.js.LICENSE.txt index 06137e3..a5c1f03 100644 --- a/dist/pages/home/index.js.LICENSE.txt +++ b/dist/pages/home/index.js.LICENSE.txt @@ -20,8 +20,6 @@ /*! ../field */ -/*! ../helpers/regeneratorRuntime */ - /*! ../icon */ /*! ../icon/index */ @@ -54,8 +52,6 @@ /*! ./type */ -/*! ./typeof.js */ - /*! ./wxs */ /*! @antmjs/vantui/es/dialog */ @@ -104,8 +100,6 @@ /*! react/jsx-runtime */ -/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ - /*!**********************************!*\ !*** ./src/pages/home/index.tsx ***! \**********************************/ @@ -158,10 +152,6 @@ !*** ./node_modules/@antmjs/vantui/es/swiper/context.js ***! \**********************************************************/ -/*!**********************************************************!*\ - !*** ./node_modules/@babel/runtime/regenerator/index.js ***! - \**********************************************************/ - /*!***********************************************************!*\ !*** ./node_modules/@antmjs/vantui/es/grid-item/index.js ***! \***********************************************************/ @@ -174,10 +164,6 @@ !*** ./node_modules/@antmjs/vantui/es/swiper-item/index.js ***! \*************************************************************/ -/*!*******************************************************************!*\ - !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***! - \*******************************************************************/ - /*!************************************************************************************************************************************************!*\ !*** ./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 ***! \************************************************************************************************************************************************/ diff --git a/dist/pages/my/index.js b/dist/pages/my/index.js index 8151b6a..616ee81 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 */ -"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([["pages/my/index"],{"./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,n,o){var t=o("./node_modules/@antmjs/vantui/es/icon/index.js"),s=o("./node_modules/@antmjs/vantui/es/cell/index.js"),a=o("./node_modules/@antmjs/vantui/es/toast/index.js"),l=o("./node_modules/@antmjs/vantui/es/button/index.js"),i=o("./node_modules/@antmjs/vantui/es/image/index.js"),c=o("./node_modules/@babel/runtime/helpers/esm/objectSpread2.js"),u=o("./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js"),d=o("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),r=o("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),m=o("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),f=o("webpack/container/remote/react"),p=o("./src/pages/components/TabbarCom/index.tsx"),g=o("webpack/container/remote/@tarojs/taro"),x=o.n(g),v=(o("./src/pages/components/ActiveCard/index.tsx"),o("./src/utils/index.ts")),j=o("./config.js"),h=o("webpack/container/remote/react/jsx-runtime");n.default=function my(e){var n=(0,f.useState)({}),o=(0,r.default)(n,2),g=(o[0],o[1],(0,f.useState)([])),b=(0,r.default)(g,2),k=(b[0],b[1],(0,f.useState)(0)),w=(0,r.default)(k,2),y=(w[0],w[1],(0,f.useState)(!0)),N=(0,r.default)(y,2),_=N[0],C=N[1];(0,f.useEffect)((function(){I()}),[]);var I=function(){var e=(0,d.default)((0,u.default)().mark((function _callee(){var e;return(0,u.default)().wrap((function _callee$(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,v.phoneLogin)();case 2:e=n.sent,console.log("isok",e),C(e);case 5:case"end":return n.stop()}}),_callee)})));return function getok(){return e.apply(this,arguments)}}();(0,f.useEffect)((function(){}),[]);var T=function getPhoneNumber(e){console.log("点击获取手机事件",e.detail.cloudID),function getLogin(e){x().cloud.callFunction({name:"getPhoneNum",data:{weRunData:x().cloud.CloudID(e.detail.cloudID)}}).then((function(e){var n,o,t,s,a,l,i,u,d;console.log("res222",e);var r=null==e||null===(n=e.result)||void 0===n||null===(o=n.event)||void 0===o||null===(t=o.weRunData)||void 0===t||null===(s=t.data)||void 0===s?void 0:s.phoneNumber,m=null==e||null===(a=e.result)||void 0===a||null===(l=a.context)||void 0===l?void 0:l.tencentcloud_uin,f={tableName:"userInfo",keyValue:{openId:null==e||null===(i=e.result)||void 0===i||null===(u=i.event)||void 0===u||null===(d=u.userInfo)||void 0===d?void 0:d.openId},okFun:function okFun(e){var n,o;console.log("q",e),(0,v.updateTableid)({id:null==e||null===(n=e.data)||void 0===n||null===(o=n[0])||void 0===o?void 0:o._id,tableName:"userInfo",objData:{tencentcloud_uin:m,authInfo:{authPhonenum:r}},okFun:function okFun(e){I()}})}};(0,v.getTable)((0,c.default)({},f))}))}(e)};return(0,h.jsxs)(m.View,{className:"myContent",children:[(0,h.jsxs)(m.View,{className:"myImage",children:[(0,h.jsx)(i.default,{round:!0,width:"100px",height:"100px",src:"cloud://citynew-0givkbre03955d8c.6369-citynew-0givkbre03955d8c-1253655588/images/touxiang/images.jpg"}),!_&&(0,h.jsx)(m.View,{className:"loginBtn",children:(0,h.jsx)(l.default,{type:"primary",size:"mini","open-type":"getPhoneNumber",lang:"zh_CN",onGetPhoneNumber:function onGetPhoneNumber(e){console.log("info",e),T(e)},children:"登录"})})]}),(0,h.jsxs)(m.View,{className:"cellArr",children:[(0,h.jsx)(s.default,{icon:"star",title:"打卡记录",isLink:!0,onClick:function onClick(){_?x().navigateTo({url:"/pages/my/components/CheckinDetail/index"}):a.default.fail({message:"请先登录",selector:"#vanToast-demo2"})}}),(0,h.jsx)(s.default,{icon:"coupon",title:"更新收货地址",isLink:!0,onClick:function onClick(){x().chooseAddress({success:function success(e){console.log(e.userName),console.log(e.postalCode),console.log(e.provinceName),console.log(e.cityName),console.log(e.countyName),console.log(e.detailInfo),console.log(e.nationalCode),console.log(e.telNumber)}})}}),(0,h.jsx)(s.default,{icon:"manager",title:"申请成为领队",isLink:!0,onClick:function onClick(){a.default.fail({message:"首次参加活动后,可申请成为领队",selector:"#vanToast-demo2"})}}),(0,h.jsxs)(m.View,{className:"wechat",children:[(0,h.jsx)(t.default,{name:"wechat",size:"16px",className:"icon"}),(0,h.jsx)(l.default,{"open-type":"contact",className:"wecahtBtn",children:"联系我们"})]}),"people"!==j.type&&(0,h.jsx)(s.default,{title:"微信客服",icon:"wechat",isLink:!0,value:"",onClick:function onClick(){x().openCustomerServiceChat({corpId:"wwb04af9a97514271c",extInfo:{url:"https://work.weixin.qq.com/kfid/kfc70f3f112c97a54c5"},success:function success(e){}})}})]}),(0,h.jsx)(a.default,{id:"vanToast-demo2"}),(0,h.jsx)(p.default,{active:2})]})}},"./src/pages/my/index.tsx":function(e,n,o){var t=o("webpack/container/remote/@tarojs/runtime"),s=o("./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,t.createPageConfig)(s.default,"pages/my/index",{root:{cn:[]}},{navigationBarTitleText:"我的"}||{}))}},function(e){e.O(0,["taro","vendors","common"],(function(){return n="./src/pages/my/index.tsx",e(e.s=n);var n}));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 o=n("webpack/container/remote/react"),r=n("webpack/container/remote/@tarojs/taro");n("webpack/container/remote/@tarojs/runtime"),n("webpack/container/remote/@tarojs/runtime").document;function usePageScroll(e){(0,o.useEffect)((function(){return void 0}),[e]),(0,r.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 o=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=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"),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 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])}))}))}),[w]),P=(0,a.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&&v((function(e){return _objectSpread(_objectSpread({},e),t)})),null==_||_({detail:{scrollTop:C.current.scrollTop,isFixed:e.fixed||b.fixed}})}),[_,b]),I=(0,a.useCallback)((function(e){g?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)),N()]).then((function(e){var t=(0,i.default)(e,2),n=t[0],o=t[1];n&&o&&(x+n.height>o.height+o.top?P({fixed:!1,transform:o.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,g,N,x,P]);return(0,a.useEffect)((function(){I(y)}),[y,w,g,x]),(0,d.usePageScroll)((function(e){I(e.scrollTop)})),(0,m.jsx)(s.View,_objectSpread(_objectSpread({id:"sticky-com-index".concat(t.current),className:" van-sticky "+(S||""),style:l.style([f.containerStyle({fixed:b.fixed,height:b.height,zIndex:j}),k])},O),{},{children:(0,m.jsx)(s.View,{className:l.bem("sticky-wrap",{fixed:b.fixed})+" ".concat(S||""),style:l.style([f.wrapStyle({fixed:b.fixed,offsetTop:x,transform:b.transform,zIndex:j}),k]),children:T})}))}},"./node_modules/@antmjs/vantui/es/sticky/wxs.js":function(e,t,n){n.d(t,{wrapStyle:function(){return wrapStyle},containerStyle:function(){return containerStyle}});var o=n("./node_modules/@antmjs/vantui/es/wxs/style.js");function wrapStyle(e){return(0,o.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,o.style)({height:e.fixed?e.height+"px":"","z-index":e.zIndex})}},"./node_modules/@antmjs/vantui/es/tab/index.js":function(e,t,n){var o=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=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 o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _objectSpread(e){for(var t=1;t=ge.length||e<0)&&e!==V){var t=null!==V;P((function(t){return _objectSpread(_objectSpread({},t),{},{currentIndex:e})})),(0,v.requestAnimationFrame)((function(){Te(e),Ce(e)})),(0,c.nextTick)((function(){t&&we("onChange",ge[e])}))}},Se=function setCurrentIndexByName(e){var t=ge.filter((function(t){return(t.props.name||t.props.index)===e}));t.length&&ke(t[0].props.index)},Te=function resize(e){var o;"line"===K&&(e=null!==(o=e)&&void 0!==o?o:V,(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 o=(0,i.default)(n,2),r=o[0],a=void 0===r?[]:r,s=o[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,R&&(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=ge[t];n.props.disabled?we("onDisabled",n):(ke(t),(0,c.nextTick)((function(){we("onClick",n)})))},Ce=function scrollIntoView(e){var t;D&&(e=null!==(t=e)&&void 0!==t?t:V,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),o=n[0],r=n[1];if(o&&r){var a=o[e],s=o.slice(0,e).reduce((function(e,t){return e+t.width}),0);P((function(e){return _objectSpread(_objectSpread({},e),{},{scrollLeft:s-(r.width-a.width)/2})})),z||(0,c.nextTick)((function(){P((function(e){return _objectSpread(_objectSpread({},e),{},{scrollWithAnimation:!0})}))}))}})))},Ne=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(L&&t.current.swiping){var e=t.current,n=e.direction,o=e.deltaX,r=e.offsetX;if("horizontal"===n&&r>=50){var i=function getAvaiableTab(e){for(var t=e>0?-1:1,n=t;V+n=0;n+=t){var o=V+n;if(o>=0&&ole||!Q})}))}),[le,ge,Q]),(0,u.useEffect)((function(){(0,c.nextTick)((function(){Te()}))}),[ge]);var Ie=(0,u.useCallback)((0,o.default)(l().mark((function _callee(){var e,t,o;return l().wrap((function _callee$(r){for(;;)switch(r.prev=r.next){case 0:if(e=0,!ue||!g){r.next=6;break}return r.next=4,(0,v.getAllRect)(null,"."+m.bem("renderNavLeft"+n.current));case 4:(t=r.sent).length&&(e+=t[0].width);case 6:if(!de||!g){r.next=11;break}return r.next=9,(0,v.getAllRect)(null,"."+m.bem("renderNavRight"+n.current));case 9:(o=r.sent).length&&(e+=o[0].width);case 11:e&&T("calc(100% - ".concat(e,"px)"));case 12:case"end":return r.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(je||"")),style:ve},xe),{},{children:[(0,x.jsx)(b.Sticky,{disabled:!F,zIndex:q,offsetTop:G,container:H,onScroll:fe,children:(0,x.jsxs)(f.View,{className:m.bem("tabs__wrap",{scrollable:D})+" "+("line"===K&&U?"van-hairline--top-bottom":""),children:[(0,x.jsx)(f.View,{className:m.bem("renderNavLeft"+n.current),children:ue}),(0,x.jsx)(f.ScrollView,{scrollX:D,scrollWithAnimation:z,scrollLeft:I,className:m.bem("tabs__scroll",[K]),style:{width:S,borderColor:J},children:(0,x.jsxs)(f.View,{className:m.bem("tabs__nav",[K,{complete:!Q}])+" nav-class",style:h.navStyle(J,K),children:["line"===K&&(0,x.jsx)(f.View,{className:"van-tabs__line",style:h.lineStyle({color:J,lineOffsetLeft:E,lineHeight:ee,skipTransition:R,duration:ne,lineWidth:re})}),ye.map((function(e,t){return(0,x.jsx)(f.View,{"data-index":t,className:h.tabClass(t===V,Q)+" "+m.bem("tab",{active:t===V,disabled:e.disabled,complete:!Q}),style:h.tabStyle({active:t===V,ellipsis:Q,color:J,type:K,disabled:e.disabled,titleActiveColor:ie,titleInactiveColor:ae,swipeThreshold:le,scrollable:D}),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)(j.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,Ne(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:Pe,onTouchCancel:Pe,children:(0,x.jsx)(f.View,{className:m.bem("tabs__track",[{animated:ce}])+" van-tabs__track",style:h.trackStyle({duration:ne,currentIndex:V,animated:ce}),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 o=n("./node_modules/@antmjs/vantui/es/wxs/style.js"),r=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,o.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,o.style)({color:t,"flex-basis":n?88/e.swipeThreshold+"%":null})}function navStyle(e,t){return(0,o.style)({"border-color":"card"===t&&e?e:null})}function trackStyle(e){return e.animated?(0,o.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,o.style)({visibility:0===e.lineOffsetLeft?"hidden":"visible",width:r.addUnit(e.lineWidth),transform:"translateX("+e.lineOffsetLeft+"px)","-webkit-transform":"translateX("+e.lineOffsetLeft+"px)","background-color":e.color,height:-1!==e.lineHeight?r.addUnit(e.lineHeight):null,"border-radius":-1!==e.lineHeight?r.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 o=n("./node_modules/@antmjs/vantui/es/icon/index.js"),r=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/objectSpread2.js"),d=n("./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js"),f=n("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),m=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),p=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),b=n("webpack/container/remote/react"),v=n("./src/pages/components/TabbarCom/index.tsx"),j=n("webpack/container/remote/@tarojs/taro"),h=n.n(j),x=n("./src/pages/components/ActiveCard/index.tsx"),y=n("./src/utils/index.ts"),g=n("./config.js"),w=n("webpack/container/remote/react/jsx-runtime");t.default=function my(e){var t=(0,b.useState)({}),n=(0,m.default)(t,2),j=(n[0],n[1],(0,b.useState)([])),_=(0,m.default)(j,2),k=_[0],S=(_[1],(0,b.useState)(0)),T=(0,m.default)(S,2),O=T[0],C=T[1],N=(0,b.useState)(!0),P=(0,m.default)(N,2),I=P[0],D=P[1],V=(0,b.useState)([]),R=(0,m.default)(V,2);R[0],R[1];(0,b.useEffect)((function(){z()}),[]);var z=function(){var e=(0,f.default)((0,d.default)().mark((function _callee(){var e;return(0,d.default)().wrap((function _callee$(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,y.phoneLogin)();case 2:e=t.sent,console.log("isok",e),D(e);case 5:case"end":return t.stop()}}),_callee)})));return function getok(){return e.apply(this,arguments)}}();(0,b.useEffect)((function(){}),[]);var E=function getPhoneNumber(e){console.log("点击获取手机事件",e.detail.cloudID),function getLogin(e){h().cloud.callFunction({name:"getPhoneNum",data:{weRunData:h().cloud.CloudID(e.detail.cloudID)}}).then((function(e){var t,n,o,r,i,a,s,l,c;console.log("res222",e);var d=null==e||null===(t=e.result)||void 0===t||null===(n=t.event)||void 0===n||null===(o=n.weRunData)||void 0===o||null===(r=o.data)||void 0===r?void 0:r.phoneNumber,f=null==e||null===(i=e.result)||void 0===i||null===(a=i.context)||void 0===a?void 0:a.tencentcloud_uin,m={tableName:"userInfo",keyValue:{openId:null==e||null===(s=e.result)||void 0===s||null===(l=s.event)||void 0===l||null===(c=l.userInfo)||void 0===c?void 0:c.openId},okFun:function okFun(e){var t,n;console.log("q",e),(0,y.updateTableid)({id:null==e||null===(t=e.data)||void 0===t||null===(n=t[0])||void 0===n?void 0:n._id,tableName:"userInfo",objData:{tencentcloud_uin:f,authInfo:{authPhonenum:d}},okFun:function okFun(e){z()}})}};(0,y.getTable)((0,u.default)({},m))}))}(e)};return(0,w.jsxs)(p.View,{className:"myContent",children:[(0,w.jsxs)(p.View,{className:"myImage",children:[(0,w.jsx)(c.default,{round:!0,width:"100px",height:"100px",src:"cloud://citynew-0givkbre03955d8c.6369-citynew-0givkbre03955d8c-1253655588/images/touxiang/images.jpg"}),!I&&(0,w.jsx)(p.View,{className:"loginBtn",children:(0,w.jsx)(l.default,{type:"primary",size:"mini","open-type":"getPhoneNumber",lang:"zh_CN",onGetPhoneNumber:function onGetPhoneNumber(e){console.log("info",e),E(e)},children:"登录"})})]}),(0,w.jsx)(p.View,{children:(0,w.jsxs)(a.default,{sticky:!0,active:O,onClick:function onClick(e){var t,n;console.log("e",e),C(null!==(t=null==e||null===(n=e.detail)||void 0===n?void 0:n.index)&&void 0!==t?t:0)},children:[(0,w.jsx)(s.default,{title:"待审核",children:(0,w.jsx)(p.View,{children:function CardCom(){return(0,w.jsx)(p.View,{children:k.splice(0,2).map((function(e,t){return(0,w.jsx)(p.View,{onClick:function onClick(){console.log("Card"),h().navigateTo({url:"/pages/activityList/components/details/index?id=".concat(null==e?void 0:e._id)})},children:(0,w.jsx)(x.default,{dataSource:e})})}))})}()})}),(0,w.jsx)(s.default,{title:"待参加",children:"333"}),(0,w.jsx)(s.default,{title:"已结束",children:"44"})]})}),(0,w.jsxs)(p.View,{className:"cellArr",children:[(0,w.jsx)(r.default,{icon:"star",title:"打卡记录",isLink:!0,onClick:function onClick(){I?h().navigateTo({url:"/pages/my/components/CheckinDetail/index"}):i.default.fail({message:"请先登录",selector:"#vanToast-demo2"})}}),(0,w.jsx)(r.default,{icon:"coupon",title:"更新收货地址",isLink:!0,onClick:function onClick(){h().chooseAddress({success:function success(e){console.log(e.userName),console.log(e.postalCode),console.log(e.provinceName),console.log(e.cityName),console.log(e.countyName),console.log(e.detailInfo),console.log(e.nationalCode),console.log(e.telNumber)}})}}),(0,w.jsx)(r.default,{icon:"manager",title:"申请成为领队",isLink:!0,onClick:function onClick(){i.default.fail({message:"首次参加活动后,可申请成为领队",selector:"#vanToast-demo2"})}}),(0,w.jsxs)(p.View,{className:"wechat",children:[(0,w.jsx)(o.default,{name:"wechat",size:"16px",className:"icon"}),(0,w.jsx)(l.default,{"open-type":"contact",className:"wecahtBtn",children:"联系我们"})]}),"people"!==g.type&&(0,w.jsx)(r.default,{title:"微信客服",icon:"wechat",isLink:!0,value:"",onClick:function onClick(){h().openCustomerServiceChat({corpId:"wwb04af9a97514271c",extInfo:{url:"https://work.weixin.qq.com/kfid/kfc70f3f112c97a54c5"},success:function success(e){}})}})]}),(0,w.jsx)(i.default,{id:"vanToast-demo2"}),(0,w.jsx)(v.default,{active:2})]})}},"./src/pages/my/index.tsx":function(e,t,n){var o=n("webpack/container/remote/@tarojs/runtime"),r=n("./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[9].use[1]!./src/pages/my/index.tsx");Page((0,o.createPageConfig)(r.default,"pages/my/index",{root:{cn:[]}},{navigationBarTitleText:"我的"}||{}))}},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 4505fee..93fba02 100644 --- a/dist/pages/my/index.js.LICENSE.txt +++ b/dist/pages/my/index.js.LICENSE.txt @@ -4,10 +4,24 @@ /*! ../../utils/index */ +/*! ../common/utils */ + +/*! ../common/validator */ + /*! ../components/ActiveCard */ /*! ../components/TabbarCom */ +/*! ../info/index */ + +/*! ../sticky/index */ + +/*! ../wxs/style */ + +/*! ../wxs/utils */ + +/*! ./../mixins/page-scroll */ + /*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ /*! ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */ @@ -16,6 +30,8 @@ /*! ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js */ +/*! ./wxs */ + /*! @antmjs/vantui/es/button */ /*! @antmjs/vantui/es/cell */ @@ -24,14 +40,30 @@ /*! @antmjs/vantui/es/image */ +/*! @antmjs/vantui/es/tab */ + +/*! @antmjs/vantui/es/tabs */ + /*! @antmjs/vantui/es/toast */ +/*! @babel/runtime/helpers/asyncToGenerator */ + +/*! @babel/runtime/helpers/defineProperty */ + +/*! @babel/runtime/helpers/objectWithoutProperties */ + +/*! @babel/runtime/helpers/slicedToArray */ + +/*! @babel/runtime/regenerator */ + /*! @tarojs/components */ /*! @tarojs/runtime */ /*! @tarojs/taro */ +/*! rc-util/lib/Children/toArray */ + /*! react */ /*! react/jsx-runtime */ @@ -40,6 +72,30 @@ !*** ./src/pages/my/index.tsx ***! \********************************/ +/*!****************************************************!*\ + !*** ./node_modules/@antmjs/vantui/es/tabs/wxs.js ***! + \****************************************************/ + +/*!*****************************************************!*\ + !*** ./node_modules/@antmjs/vantui/es/tab/index.js ***! + \*****************************************************/ + +/*!******************************************************!*\ + !*** ./node_modules/@antmjs/vantui/es/sticky/wxs.js ***! + \******************************************************/ + +/*!******************************************************!*\ + !*** ./node_modules/@antmjs/vantui/es/tabs/index.js ***! + \******************************************************/ + +/*!********************************************************!*\ + !*** ./node_modules/@antmjs/vantui/es/sticky/index.js ***! + \********************************************************/ + +/*!**************************************************************!*\ + !*** ./node_modules/@antmjs/vantui/es/mixins/page-scroll.js ***! + \**************************************************************/ + /*!**********************************************************************************************************************************************!*\ !*** ./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 ***! \**********************************************************************************************************************************************/ diff --git a/dist/pages/my/index.wxss b/dist/pages/my/index.wxss index 8930144..fe3401c 100644 --- a/dist/pages/my/index.wxss +++ b/dist/pages/my/index.wxss @@ -1,3 +1,15 @@ +/*!***********************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[2]!./node_modules/@antmjs/vantui/es/sticky/index.css ***! + \***********************************************************************************************************************************************************************************************************************/ +.van-sticky{position:relative}.van-sticky-wrap--fixed{position:fixed;right:0;left:0;z-index:800} +/*!*********************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[2]!./node_modules/@antmjs/vantui/es/tabs/index.css ***! + \*********************************************************************************************************************************************************************************************************************/ +.van-tabs{position:relative;-webkit-tap-highlight-color:transparent}.van-tabs__wrap{display:-webkit-flex;display:flex;overflow:hidden}.van-tabs__wrap--scrollable .van-tab{-webkit-flex:0 0 22%;flex:0 0 22%}.van-tabs__wrap--scrollable .van-tab--complete{-webkit-flex:1 0 auto!important;flex:1 0 auto!important;padding:0 24rpx}.van-tabs__wrap--scrollable .van-tabs__nav--complete{padding-right:16rpx;padding-left:16rpx}.van-tabs__scroll{width:100%;background-color:#fff;background-color:var(--tabs-nav-background-color,#fff)}.van-tabs__scroll--line{box-sizing:content-box;height:calc(100% + 30rpx)}.van-tabs__scroll--card{box-sizing:border-box;margin:0 32rpx;margin:0 var(--padding-md,32rpx);border:2rpx solid #ee0a24;border:var(--border-width-base,2rpx) solid var(--tabs-default-color,#ee0a24);width:calc(100% - calc(32rpx * 2));width:calc(100% - calc(var(--padding-md,32rpx) * 2));border-radius:4rpx;border-radius:var(--border-radius-sm,4rpx)}.van-tabs__scroll::-webkit-scrollbar{display:none}.van-tabs__nav{position:relative;display:-webkit-flex;display:flex;-webkit-user-select:none;user-select:none}.van-tabs__nav--card{box-sizing:border-box;height:60rpx;height:var(--tabs-card-height,60rpx);border:2rpx solid #ee0a24;border:var(--border-width-base,2rpx) solid var(--tabs-default-color,#ee0a24);border-radius:4rpx;border-radius:var(--border-radius-sm,4rpx)}.van-tabs__nav--card .van-tab{color:#ee0a24;color:var(--tabs-default-color,#ee0a24);line-height:calc(60rpx - 2 * 2rpx);line-height:calc(var(--tabs-card-height, 60rpx) - 2 * var(--border-width-base, 2rpx));border-right:2rpx solid #ee0a24;border-right:var(--border-width-base,2rpx) solid var(--tabs-default-color,#ee0a24)}.van-tabs__nav--card .van-tab:last-child{border-right:none}.van-tabs__nav--card .van-tab.van-tab--active{color:#fff;color:var(--white,#fff);background-color:#ee0a24;background-color:var(--tabs-default-color,#ee0a24)}.van-tabs__nav--card .van-tab--disabled{color:#c8c9cc;color:var(--tab-disabled-text-color,#c8c9cc)}.van-tabs__line{position:absolute;bottom:0;left:0;z-index:1;height:6rpx;height:var(--tabs-bottom-bar-height,6rpx);border-radius:6rpx;border-radius:var(--tabs-bottom-bar-height,6rpx);background-color:#ee0a24;background-color:var(--tabs-bottom-bar-color,#ee0a24)}.van-tabs__track{position:relative;width:100%;height:100%}.van-tabs__track--animated{display:-webkit-flex;display:flex;-webkit-transition-property:left;transition-property:left}.van-tabs__content{overflow:hidden}.van-tabs--line .van-tabs__wrap{height:88rpx;height:var(--tabs-line-height,88rpx)}.van-tabs--card .van-tabs__wrap{height:60rpx;height:var(--tabs-card-height,60rpx)}.van-tab{position:relative;-webkit-flex:1;flex:1;box-sizing:border-box;min-width:0;padding:0 10rpx;text-align:center;cursor:pointer;color:#646566;color:var(--tab-text-color,#646566);font-size:28rpx;font-size:var(--tab-font-size, 28rpx);line-height:88rpx;line-height:var(--tabs-line-height, 88rpx)}.van-tab--active{font-weight:500;font-weight:var(--font-weight-bold,500);color:#323233;color:var(--tab-active-text-color,#323233)}.van-tab--disabled{color:#c8c9cc;color:var(--tab-disabled-text-color,#c8c9cc)}.van-tab__title__info{position:relative!important;top:-2rpx!important;padding-top:3rpx;-webkit-transform:translateX(0)!important;transform:translateX(0)!important}.van-tab__title .van-info--dot{border-radius:100%;width:16rpx;width:var(--info-dot-size,16rpx);height:16rpx;height:var(--info-dot-size,16rpx)} +/*!********************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[2]!./node_modules/@antmjs/vantui/es/tab/index.css ***! + \********************************************************************************************************************************************************************************************************************/ +.van-tab__pane{box-sizing:border-box;overflow-y:auto;-webkit-overflow-scrolling:touch;-webkit-flex-shrink:0;flex-shrink:0;width:100%}.van-tab__pane--active{height:auto}.van-tab__pane--inactive{height:0;overflow:visible} /*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** css ./node_modules/cache-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[2]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[3]!./node_modules/resolve-url-loader/index.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[5]!./src/pages/my/index.module.scss ***! \*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ diff --git a/dist/taro.js b/dist/taro.js index 90fea1b..ad1d265 100644 --- a/dist/taro.js +++ b/dist/taro.js @@ -1,2 +1,2 @@ /*! For license information please see taro.js.LICENSE.txt */ -"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([["taro"],{"./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js":function(t,n,e){e.d(n,{Button:function(){return i},Image:function(){return s},Input:function(){return a},Navigator:function(){return p},OfficialAccount:function(){return m},RichText:function(){return r},Text:function(){return u},Textarea:function(){return c},Video:function(){return f},View:function(){return o}});var o="view",r="rich-text",u="text",i="button",a="input",c="textarea",p="navigator",s="image",f="video",m="official-account"},"./node_modules/@tarojs/webpack5-runner/dist/template/comp.js":function(t,n,e){var o=e("webpack/container/remote/@tarojs/runtime");Component((0,o.createRecursiveComponentConfig)())},"./node_modules/@tarojs/webpack5-runner/dist/template/custom-wrapper.js":function(t,n,e){var o=e("webpack/container/remote/@tarojs/runtime");Component((0,o.createRecursiveComponentConfig)("custom-wrapper"))}}]); \ No newline at end of file +"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([["taro"],{"./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js":function(t,n,e){e.d(n,{Button:function(){return i},Image:function(){return f},Input:function(){return c},Navigator:function(){return s},OfficialAccount:function(){return w},RichText:function(){return r},ScrollView:function(){return p},Text:function(){return u},Textarea:function(){return a},Video:function(){return m},View:function(){return o}});var o="view",r="rich-text",u="text",i="button",c="input",a="textarea",p="scroll-view",s="navigator",f="image",m="video",w="official-account"},"./node_modules/@tarojs/webpack5-runner/dist/template/comp.js":function(t,n,e){var o=e("webpack/container/remote/@tarojs/runtime");Component((0,o.createRecursiveComponentConfig)())},"./node_modules/@tarojs/webpack5-runner/dist/template/custom-wrapper.js":function(t,n,e){var o=e("webpack/container/remote/@tarojs/runtime");Component((0,o.createRecursiveComponentConfig)("custom-wrapper"))}}]); \ No newline at end of file diff --git a/dist/vendors.js b/dist/vendors.js index 6e56474..3684a33 100644 --- a/dist/vendors.js +++ b/dist/vendors.js @@ -1,2 +1,2 @@ /*! For license information please see vendors.js.LICENSE.txt */ -(wx.webpackJsonp=wx.webpackJsonp||[]).push([["vendors"],{"./node_modules/@antmjs/vantui/es/button/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"),s=n("webpack/container/remote/@tarojs/taro"),a=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),i=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),l=n("./node_modules/@antmjs/vantui/es/icon/index.js"),c=n("./node_modules/@antmjs/vantui/es/loading/index.js"),u=n("./node_modules/@antmjs/vantui/es/button/wxs.js"),d=n("webpack/container/remote/react/jsx-runtime"),f=["type","size","block","round","plain","square","loading","disabled","hairline","color","loadingSize","loadingType","loadingText","icon","classPrefix","onClick","children","style","className"];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;t9)(0,r.redirectTo)({url:e});else switch(t){case"navigateTo":(0,r.navigateTo)({url:e});break;case"reLaunch":(0,r.reLaunch)({url:e});break;case"redirectTo":(0,r.redirectTo)({url:e})}}},"./node_modules/@antmjs/vantui/es/common/utils.js":function(e,t,n){"use strict";n.d(t,{requestAnimationFrame:function(){return requestAnimationFrame},pickExclude:function(){return pickExclude},getRect:function(){return getRect},toPromise:function(){return toPromise}});var r=n("webpack/container/remote/@tarojs/taro"),o=n("./node_modules/raf/index.js"),s=n.n(o),a=n("./node_modules/@antmjs/vantui/es/common/validator.js"),i=(n("./node_modules/@antmjs/vantui/es/common/version.js"),n("webpack/container/remote/@tarojs/runtime").window);function requestAnimationFrame(e){return i.requestAnimationFrame?i.requestAnimationFrame(e):s()(e)}function pickExclude(e,t){return(0,a.isPlainObject)(e)?Object.keys(e).reduce((function(n,r){return t.includes(r)||(n[r]=e[r]),n}),{}):{}}function getRect(e,t){return new Promise((function(n){var o=(0,r.createSelectorQuery)();e&&(o=o.in(e)),o.select(t).boundingClientRect().exec((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return n(e[0])}))}))}function toPromise(e){return(0,a.isPromise)(e)?e:Promise.resolve(e)}},"./node_modules/@antmjs/vantui/es/common/validator.js":function(e,t,n){"use strict";n.d(t,{isPlainObject:function(){return isPlainObject},isPromise:function(){return isPromise},isDef:function(){return isDef},isObj:function(){return isObj},isBoolean:function(){return isBoolean},isImageUrl:function(){return isImageUrl},isVideoUrl:function(){return isVideoUrl}});var r=n("./node_modules/@babel/runtime/helpers/esm/typeof.js");function isFunction(e){return"function"==typeof e}function isPlainObject(e){return null!==e&&"object"===(0,r.default)(e)&&!Array.isArray(e)}function isPromise(e){return isPlainObject(e)&&isFunction(e.then)&&isFunction(e.catch)}function isDef(e){return null!=e}function isObj(e){var t=(0,r.default)(e);return null!==e&&("object"===t||"function"===t)}function isBoolean(e){return"boolean"==typeof e}var o=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i,s=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv)/i;function isImageUrl(e){return o.test(e)}function isVideoUrl(e){return s.test(e)}},"./node_modules/@antmjs/vantui/es/common/version.js":function(e,t,n){"use strict";n.d(t,{canIUseNextTick:function(){return canIUseNextTick}});var r=n("webpack/container/remote/@tarojs/taro");function canIUseNextTick(){return(0,r.canIUse)("nextTick")}},"./node_modules/@antmjs/vantui/es/dialog/dialog.js":function(e,t,n){"use strict";var r=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=n("./node_modules/@antmjs/vantui/es/dialog/events.js");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;t1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:{};null!=t&&t.selector&&e.id!==t.selector.replace(/^#/,"")||(y(_objectSpread({},t)),pe(!!t.show))},n=function stopLoadingFn(){je()},r=function closeFn(){be("close")};return(0,p.on)("alert",t),(0,p.on)("close",r),(0,p.on)("stopLoading",n),function(){(0,p.off)("alert",t),(0,p.off)("close",r),(0,p.off)("stopLoading",n)}}}),[be,je,r,e.id]),(0,i.useEffect)((function(){return function(){(0,p.off)("confirm"),(0,p.off)("cancel"),(0,p.off)("alert"),(0,p.off)("close"),(0,p.off)("stopLoading")}}),[]),(0,j.jsxs)(m.default,{show:me,zIndex:x,overlay:w,className:"van-dialog van-dialog--"+O+" "+"".concat(te||""),style:b.style(["width: "+b.addUnit(S)+";",ee]),overlayStyle:P,closeOnClickOverlay:k,onClose:ye,children:[(A||q)&&(0,j.jsx)(a.View,{className:b.bem("dialog__header",{isolated:!(C||q)}),children:q||A&&(0,j.jsx)(j.Fragment,{children:A})}),X||C&&(0,j.jsx)(a.View,{className:b.bem("dialog__message",[O,T,{hasTitle:A}]),children:(0,j.jsx)(a.Text,{className:"van-dialog__message-text",children:C})}),"round-button"===O?(0,j.jsxs)(d.default,{className:"van-dialog__footer--round-button",children:[E&&(0,j.jsx)(u.default,{loading:ce,className:"van-dialog__button van-hairline--right van-dialog__cancel",style:D?{color:D}:{},onClick:ge,children:L}),z&&(0,j.jsx)(u.default,_objectSpread(_objectSpread({className:"van-dialog__button van-dialog__confirm",style:I?{color:I}:{},loading:se,openType:B,sessionFrom:K,sendMessageTitle:M,sendMessagePath:V,sendMessageImg:W,appParameter:R,onClick:he},ne),{},{children:$}))]}):(0,j.jsxs)(a.View,{className:"van-hairline--top van-dialog__footer",children:[E&&(0,j.jsx)(f.default,{size:"large",loading:ce,className:"van-dialog__button van-dialog__cancel",style:D?{color:D}:{},onClick:ge,children:L}),z&&(0,j.jsx)(f.default,_objectSpread(_objectSpread({size:"large",className:"van-dialog__button van-dialog__confirm ".concat(E?"van-hairline--left":""),loading:se,style:I?{color:I}:{},openType:B,sessionFrom:K,sendMessageTitle:M,sendMessagePath:V,sendMessageImg:W,showMessageCard:G,appParameter:R,onClick:he},ne),{},{children:$}))]})]})}Dialog.alert=function(e){return y.default.alert(e)},Dialog.confirm=function(e){return y.default.confirm(e)},Dialog.close=function(){y.default.close()},Dialog.stopLoading=function(){y.default.stopLoading()},Dialog.setDefaultOptions=function(e){y.default.setDefaultOptions(e)},Dialog.resetDefaultOptions=function(){y.default.resetDefaultOptions()},t.default=Dialog},"./node_modules/@antmjs/vantui/es/goods-action-button/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"),s=n("webpack/container/remote/react"),a=n("./node_modules/@antmjs/vantui/es/button/index.js"),i=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),l=n("./node_modules/@antmjs/vantui/es/common/jumpLink.js"),c=n("webpack/container/remote/react/jsx-runtime"),u=["text","url","linkType","plain","type","style","isFirst","isLast","onClick","children","className"];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;t1?t-1:0),r=1;r0&&(g=setTimeout((function(){(0,m.trigger)("toast_clear",e)}),t.duration)))},T=(0,i.useCallback)((function(e){C(e)}),[]),E=(0,i.useCallback)((function(e){h=Object.assign(h,e)}),[]),D=(0,i.useCallback)((function(){h=Object.assign({},v)}),[]);return(0,i.useEffect)((function(){return(0,m.on)("toast_show",A),(0,m.on)("toast_clear",T),(0,m.on)("toast_setDefaultOptions",E),(0,m.on)("toast_resetDefaultOptions",D),function(){(0,m.off)("toast_show",A),(0,m.off)("toast_clear",T),(0,m.off)("toast_setDefaultOptions",E),(0,m.off)("toast_resetDefaultOptions",D)}}),[]),(0,b.jsxs)(a.View,{children:[(r.mask||r.forbidClick)&&(0,b.jsx)(c.default,{show:r.show,zIndex:S,style:r.mask?"":"background-color: transparent;"}),(0,b.jsx)(l.default,{show:r.show,style:S?{zIndex:S}:{},className:"van-toast__container",children:(0,b.jsxs)(a.View,_objectSpread(_objectSpread({id:"van-toast",className:"van-toast van-toast--"+("text"===r.type||"html"===r.type?"text":"icon")+" van-toast--".concat(r.position," ").concat(O),style:_,onTouchMove:function noop(){}},P),{},{children:["text"===r.type?(0,b.jsx)(a.Text,{children:r.message}):"html"===r.type?(0,b.jsx)(a.RichText,{nodes:r.message}):(0,b.jsxs)(a.View,{className:"van-toast__box",children:["loading"===r.type?(0,b.jsx)(d.default,{color:"white",type:r.loadingType,className:"van-toast__loading"}):(0,b.jsx)(u.default,{className:"van-toast__icon",name:r.type}),r.message&&(0,b.jsx)(a.Text,{className:"van-toast__text",children:r.message})]}),x]}))})]})}Toast.show=p.default,Toast.loading=p.default.loading,Toast.success=p.default.success,Toast.fail=p.default.fail,Toast.clear=p.default.clear,Toast.setDefaultOptions=p.default.setDefaultOptions,Toast.resetDefaultOptions=p.default.resetDefaultOptions,t.default=Toast},"./node_modules/@antmjs/vantui/es/toast/toast.js":function(e,t,n){"use strict";var r=n("./node_modules/@antmjs/vantui/es/common/validator.js"),o=n("./node_modules/@antmjs/vantui/es/toast/events.js");var s=function createMethod(e){return function(t){return a(Object.assign({type:e},function parseOptions(e){return(0,r.isObj)(e)?e:{message:e}}(t)))}},a=function Toast(e){(0,o.trigger)("toast_show",e)};a.loading=s("loading"),a.success=s("success"),a.fail=s("fail"),a.clear=function(e){(0,o.trigger)("toast_clear",e)},a.setDefaultOptions=function(e){(0,o.trigger)("toast_setDefaultOptions",e)},a.resetDefaultOptions=function(){(0,o.trigger)("toast_resetDefaultOptions")},t.default=a},"./node_modules/@antmjs/vantui/es/transition/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"),s=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),a=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),i=n("./node_modules/@antmjs/vantui/es/transition/wxs.js"),l=n("./node_modules/@antmjs/vantui/es/mixins/transition.js"),c=n("webpack/container/remote/react/jsx-runtime"),u=["onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave","onEnter","onLeave","duration","name","show","children","style","className","enterClass","enterActiveClass","enterToClass","leaveClass","leaveActiveClass","leaveToClass"];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;t1&&void 0!==arguments[1]?arguments[1]:{},n=[];return o.default.Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(toArray(e)):(0,s.isFragment)(e)&&e.props?n=n.concat(toArray(e.props.children,t)):n.push(e))})),n};var o=r(n("webpack/container/remote/react")),s=n("./node_modules/react-is/index.js")},"./node_modules/react-is/cjs/react-is.development.js":function(e,t,n){"use strict";var r=n("./node_modules/@babel/runtime/helpers/typeof.js").default;(function(){var e="function"==typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,o=e?Symbol.for("react.portal"):60106,s=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,j=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function typeOf(e){if("object"===r(e)&&null!==e){var t=e.$$typeof;switch(t){case n:var p=e.type;switch(p){case u:case d:case s:case i:case a:case m:return p;default:var j=p&&p.$$typeof;switch(j){case c:case f:case y:case b:case l:return j;default:return t}}case o:return t}}}var w=u,_=d,O=c,x=l,S=n,P=f,k=s,C=y,A=b,T=o,E=i,D=a,I=m,N=!1;function isConcurrentMode(e){return typeOf(e)===d}t.AsyncMode=w,t.ConcurrentMode=_,t.ContextConsumer=O,t.ContextProvider=x,t.Element=S,t.ForwardRef=P,t.Fragment=k,t.Lazy=C,t.Memo=A,t.Portal=T,t.Profiler=E,t.StrictMode=D,t.Suspense=I,t.isAsyncMode=function isAsyncMode(e){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),isConcurrentMode(e)||typeOf(e)===u},t.isConcurrentMode=isConcurrentMode,t.isContextConsumer=function isContextConsumer(e){return typeOf(e)===c},t.isContextProvider=function isContextProvider(e){return typeOf(e)===l},t.isElement=function isElement(e){return"object"===r(e)&&null!==e&&e.$$typeof===n},t.isForwardRef=function isForwardRef(e){return typeOf(e)===f},t.isFragment=function isFragment(e){return typeOf(e)===s},t.isLazy=function isLazy(e){return typeOf(e)===y},t.isMemo=function isMemo(e){return typeOf(e)===b},t.isPortal=function isPortal(e){return typeOf(e)===o},t.isProfiler=function isProfiler(e){return typeOf(e)===i},t.isStrictMode=function isStrictMode(e){return typeOf(e)===a},t.isSuspense=function isSuspense(e){return typeOf(e)===m},t.isValidElementType=function isValidElementType(e){return"string"==typeof e||"function"==typeof e||e===s||e===d||e===i||e===a||e===m||e===p||"object"===r(e)&&null!==e&&(e.$$typeof===y||e.$$typeof===b||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===v||e.$$typeof===h||e.$$typeof===g||e.$$typeof===j)},t.typeOf=typeOf})()},"./node_modules/react-is/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/react-is/cjs/react-is.development.js")},"./node_modules/@babel/runtime/helpers/interopRequireDefault.js":function(e){e.exports=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/typeof.js":function(e){function _typeof(t){return e.exports=_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,_typeof(t)}e.exports=_typeof,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":function(e,t,n){"use strict";function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}},"./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js":function(e,t,n){"use strict";function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}n.d(t,{default:function(){return _objectWithoutPropertiesLoose}})},"./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js":function(e,t,n){"use strict";n.d(t,{default:function(){return _regeneratorRuntime}});var r=n("./node_modules/@babel/runtime/helpers/esm/typeof.js");function _regeneratorRuntime(){_regeneratorRuntime=function _regeneratorRuntime(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},a=s.iterator||"@@iterator",i=s.asyncIterator||"@@asyncIterator",l=s.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 s=t&&t.prototype instanceof Generator?t:Generator,a=Object.create(s.prototype),i=new Context(r||[]);return o(a,"_invoke",{value:makeInvokeMethod(e,n,i)}),a}function tryCatch(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=wrap;var c={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var u={};define(u,a,(function(){return this}));var d=Object.getPrototypeOf,f=d&&d(d(values([])));f&&f!==t&&n.call(f,a)&&(u=f);var m=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(u);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(o,s,a,i){var l=tryCatch(e[o],e,s);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==(0,r.default)(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){invoke("next",e,a,i)}),(function(e){invoke("throw",e,a,i)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return invoke("throw",e,a,i)}))}i(l.arg)}var s;o(this,"_invoke",{value:function value(e,n){function callInvokeWithMethodAndArg(){return new t((function(t,r){invoke(e,n,t,r)}))}return s=s?s.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,t,n){var r="suspendedStart";return function(o,s){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw s;return doneResult()}for(n.method=o,n.arg=s;;){var a=n.delegate;if(a){var i=maybeInvokeDelegate(a,n);if(i){if(i===c)continue;return i}}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===c)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 c;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=tryCatch(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,c;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,c):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}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[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function next(){for(;++r=0;--r){var o=this.tryEntries[r],s=o.completion;if("root"===o.tryLoc)return handle("end");if(o.tryLoc<=this.prev){var a=n.call(o,"catchLoc"),i=n.call(o,"finallyLoc");if(a&&i){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),resetTryEntry(n),c}},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),c}},e}},"./node_modules/@babel/runtime/helpers/esm/slicedToArray.js":function(e,t,n){"use strict";n.d(t,{default:function(){return _slicedToArray}});var r=n("./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js"),o=n("./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js"),s=n("./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js"),a=n("./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js");function _slicedToArray(e,t){return(0,r.default)(e)||(0,o.default)(e,t)||(0,s.default)(e,t)||(0,a.default)()}},"./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js":function(e,t,n){"use strict";n.d(t,{default:function(){return _toConsumableArray}});var r=n("./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js"),o=n("./node_modules/@babel/runtime/helpers/esm/iterableToArray.js"),s=n("./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js"),a=n("./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js");function _toConsumableArray(e){return(0,r.default)(e)||(0,o.default)(e)||(0,s.default)(e)||(0,a.default)()}},"./node_modules/@babel/runtime/helpers/esm/typeof.js":function(e,t,n){"use strict";function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}n.d(t,{default:function(){return _typeof}})},"./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js":function(e,t,n){"use strict";n.d(t,{default:function(){return _unsupportedIterableToArray}});var r=n("./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js");function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return(0,r.default)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.default)(e,t):void 0}}}}]); \ No newline at end of file +(wx.webpackJsonp=wx.webpackJsonp||[]).push([["vendors"],{"./node_modules/@antmjs/vantui/es/button/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"),s=n("webpack/container/remote/@tarojs/taro"),a=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),i=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),c=n("./node_modules/@antmjs/vantui/es/icon/index.js"),l=n("./node_modules/@antmjs/vantui/es/loading/index.js"),u=n("./node_modules/@antmjs/vantui/es/button/wxs.js"),d=n("webpack/container/remote/react/jsx-runtime"),f=["type","size","block","round","plain","square","loading","disabled","hairline","color","loadingSize","loadingType","loadingText","icon","classPrefix","onClick","children","style","className"];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;t9)(0,r.redirectTo)({url:e});else switch(t){case"navigateTo":(0,r.navigateTo)({url:e});break;case"reLaunch":(0,r.reLaunch)({url:e});break;case"redirectTo":(0,r.redirectTo)({url:e})}}},"./node_modules/@antmjs/vantui/es/common/utils.js":function(e,t,n){"use strict";n.d(t,{requestAnimationFrame:function(){return requestAnimationFrame},pickExclude:function(){return pickExclude},getRect:function(){return getRect},getAllRect:function(){return getAllRect},toPromise:function(){return toPromise}});var r=n("webpack/container/remote/@tarojs/taro"),o=n("./node_modules/raf/index.js"),s=n.n(o),a=n("./node_modules/@antmjs/vantui/es/common/validator.js"),i=(n("./node_modules/@antmjs/vantui/es/common/version.js"),n("webpack/container/remote/@tarojs/runtime").window);function requestAnimationFrame(e){return i.requestAnimationFrame?i.requestAnimationFrame(e):s()(e)}function pickExclude(e,t){return(0,a.isPlainObject)(e)?Object.keys(e).reduce((function(n,r){return t.includes(r)||(n[r]=e[r]),n}),{}):{}}function getRect(e,t){return new Promise((function(n){var o=(0,r.createSelectorQuery)();e&&(o=o.in(e)),o.select(t).boundingClientRect().exec((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return n(e[0])}))}))}function getAllRect(e,t){return new Promise((function(n){var o=(0,r.createSelectorQuery)();e&&(o=o.in(e)),o.selectAll(t).boundingClientRect().exec((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return n(e[0])}))}))}function toPromise(e){return(0,a.isPromise)(e)?e:Promise.resolve(e)}},"./node_modules/@antmjs/vantui/es/common/validator.js":function(e,t,n){"use strict";n.d(t,{isPlainObject:function(){return isPlainObject},isPromise:function(){return isPromise},isDef:function(){return isDef},isObj:function(){return isObj},isBoolean:function(){return isBoolean},isImageUrl:function(){return isImageUrl},isVideoUrl:function(){return isVideoUrl}});var r=n("./node_modules/@babel/runtime/helpers/esm/typeof.js");function isFunction(e){return"function"==typeof e}function isPlainObject(e){return null!==e&&"object"===(0,r.default)(e)&&!Array.isArray(e)}function isPromise(e){return isPlainObject(e)&&isFunction(e.then)&&isFunction(e.catch)}function isDef(e){return null!=e}function isObj(e){var t=(0,r.default)(e);return null!==e&&("object"===t||"function"===t)}function isBoolean(e){return"boolean"==typeof e}var o=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i,s=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv)/i;function isImageUrl(e){return o.test(e)}function isVideoUrl(e){return s.test(e)}},"./node_modules/@antmjs/vantui/es/common/version.js":function(e,t,n){"use strict";n.d(t,{canIUseNextTick:function(){return canIUseNextTick}});var r=n("webpack/container/remote/@tarojs/taro");function canIUseNextTick(){return(0,r.canIUse)("nextTick")}},"./node_modules/@antmjs/vantui/es/dialog/dialog.js":function(e,t,n){"use strict";var r=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=n("./node_modules/@antmjs/vantui/es/dialog/events.js");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;t1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:{};null!=t&&t.selector&&e.id!==t.selector.replace(/^#/,"")||(b(_objectSpread({},t)),pe(!!t.show))},n=function stopLoadingFn(){je()},r=function closeFn(){ye("close")};return(0,p.on)("alert",t),(0,p.on)("close",r),(0,p.on)("stopLoading",n),function(){(0,p.off)("alert",t),(0,p.off)("close",r),(0,p.off)("stopLoading",n)}}}),[ye,je,r,e.id]),(0,i.useEffect)((function(){return function(){(0,p.off)("confirm"),(0,p.off)("cancel"),(0,p.off)("alert"),(0,p.off)("close"),(0,p.off)("stopLoading")}}),[]),(0,j.jsxs)(m.default,{show:me,zIndex:O,overlay:w,className:"van-dialog van-dialog--"+x+" "+"".concat(te||""),style:y.style(["width: "+y.addUnit(S)+";",ee]),overlayStyle:P,closeOnClickOverlay:k,onClose:be,children:[(A||q)&&(0,j.jsx)(a.View,{className:y.bem("dialog__header",{isolated:!(C||q)}),children:q||A&&(0,j.jsx)(j.Fragment,{children:A})}),X||C&&(0,j.jsx)(a.View,{className:y.bem("dialog__message",[x,E,{hasTitle:A}]),children:(0,j.jsx)(a.Text,{className:"van-dialog__message-text",children:C})}),"round-button"===x?(0,j.jsxs)(d.default,{className:"van-dialog__footer--round-button",children:[T&&(0,j.jsx)(u.default,{loading:le,className:"van-dialog__button van-hairline--right van-dialog__cancel",style:L?{color:L}:{},onClick:ge,children:N}),M&&(0,j.jsx)(u.default,_objectSpread(_objectSpread({className:"van-dialog__button van-dialog__confirm",style:I?{color:I}:{},loading:se,openType:z,sessionFrom:G,sendMessageTitle:B,sendMessagePath:K,sendMessageImg:R,appParameter:W,onClick:he},ne),{},{children:$}))]}):(0,j.jsxs)(a.View,{className:"van-hairline--top van-dialog__footer",children:[T&&(0,j.jsx)(f.default,{size:"large",loading:le,className:"van-dialog__button van-dialog__cancel",style:L?{color:L}:{},onClick:ge,children:N}),M&&(0,j.jsx)(f.default,_objectSpread(_objectSpread({size:"large",className:"van-dialog__button van-dialog__confirm ".concat(T?"van-hairline--left":""),loading:se,style:I?{color:I}:{},openType:z,sessionFrom:G,sendMessageTitle:B,sendMessagePath:K,sendMessageImg:R,showMessageCard:V,appParameter:W,onClick:he},ne),{},{children:$}))]})]})}Dialog.alert=function(e){return b.default.alert(e)},Dialog.confirm=function(e){return b.default.confirm(e)},Dialog.close=function(){b.default.close()},Dialog.stopLoading=function(){b.default.stopLoading()},Dialog.setDefaultOptions=function(e){b.default.setDefaultOptions(e)},Dialog.resetDefaultOptions=function(){b.default.resetDefaultOptions()},t.default=Dialog},"./node_modules/@antmjs/vantui/es/goods-action-button/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"),s=n("webpack/container/remote/react"),a=n("./node_modules/@antmjs/vantui/es/button/index.js"),i=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),c=n("./node_modules/@antmjs/vantui/es/common/jumpLink.js"),l=n("webpack/container/remote/react/jsx-runtime"),u=["text","url","linkType","plain","type","style","isFirst","isLast","onClick","children","className"];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;t1?t-1:0),r=1;r0&&(g=setTimeout((function(){(0,m.trigger)("toast_clear",e)}),t.duration)))},E=(0,i.useCallback)((function(e){C(e)}),[]),T=(0,i.useCallback)((function(e){h=Object.assign(h,e)}),[]),L=(0,i.useCallback)((function(){h=Object.assign({},v)}),[]);return(0,i.useEffect)((function(){return(0,m.on)("toast_show",A),(0,m.on)("toast_clear",E),(0,m.on)("toast_setDefaultOptions",T),(0,m.on)("toast_resetDefaultOptions",L),function(){(0,m.off)("toast_show",A),(0,m.off)("toast_clear",E),(0,m.off)("toast_setDefaultOptions",T),(0,m.off)("toast_resetDefaultOptions",L)}}),[]),(0,y.jsxs)(a.View,{children:[(r.mask||r.forbidClick)&&(0,y.jsx)(l.default,{show:r.show,zIndex:S,style:r.mask?"":"background-color: transparent;"}),(0,y.jsx)(c.default,{show:r.show,style:S?{zIndex:S}:{},className:"van-toast__container",children:(0,y.jsxs)(a.View,_objectSpread(_objectSpread({id:"van-toast",className:"van-toast van-toast--"+("text"===r.type||"html"===r.type?"text":"icon")+" van-toast--".concat(r.position," ").concat(x),style:_,onTouchMove:function noop(){}},P),{},{children:["text"===r.type?(0,y.jsx)(a.Text,{children:r.message}):"html"===r.type?(0,y.jsx)(a.RichText,{nodes:r.message}):(0,y.jsxs)(a.View,{className:"van-toast__box",children:["loading"===r.type?(0,y.jsx)(d.default,{color:"white",type:r.loadingType,className:"van-toast__loading"}):(0,y.jsx)(u.default,{className:"van-toast__icon",name:r.type}),r.message&&(0,y.jsx)(a.Text,{className:"van-toast__text",children:r.message})]}),O]}))})]})}Toast.show=p.default,Toast.loading=p.default.loading,Toast.success=p.default.success,Toast.fail=p.default.fail,Toast.clear=p.default.clear,Toast.setDefaultOptions=p.default.setDefaultOptions,Toast.resetDefaultOptions=p.default.resetDefaultOptions,t.default=Toast},"./node_modules/@antmjs/vantui/es/toast/toast.js":function(e,t,n){"use strict";var r=n("./node_modules/@antmjs/vantui/es/common/validator.js"),o=n("./node_modules/@antmjs/vantui/es/toast/events.js");var s=function createMethod(e){return function(t){return a(Object.assign({type:e},function parseOptions(e){return(0,r.isObj)(e)?e:{message:e}}(t)))}},a=function Toast(e){(0,o.trigger)("toast_show",e)};a.loading=s("loading"),a.success=s("success"),a.fail=s("fail"),a.clear=function(e){(0,o.trigger)("toast_clear",e)},a.setDefaultOptions=function(e){(0,o.trigger)("toast_setDefaultOptions",e)},a.resetDefaultOptions=function(){(0,o.trigger)("toast_resetDefaultOptions")},t.default=a},"./node_modules/@antmjs/vantui/es/transition/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"),s=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),a=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),i=n("./node_modules/@antmjs/vantui/es/transition/wxs.js"),c=n("./node_modules/@antmjs/vantui/es/mixins/transition.js"),l=n("webpack/container/remote/react/jsx-runtime"),u=["onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave","onEnter","onLeave","duration","name","show","children","style","className","enterClass","enterActiveClass","enterToClass","leaveClass","leaveActiveClass","leaveToClass"];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;t1&&void 0!==arguments[1]?arguments[1]:{},n=[];return o.default.Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(toArray(e)):(0,s.isFragment)(e)&&e.props?n=n.concat(toArray(e.props.children,t)):n.push(e))})),n};var o=r(n("webpack/container/remote/react")),s=n("./node_modules/react-is/index.js")},"./node_modules/react-is/cjs/react-is.development.js":function(e,t,n){"use strict";var r=n("./node_modules/@babel/runtime/helpers/typeof.js").default;(function(){var e="function"==typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,o=e?Symbol.for("react.portal"):60106,s=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,j=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function typeOf(e){if("object"===r(e)&&null!==e){var t=e.$$typeof;switch(t){case n:var p=e.type;switch(p){case u:case d:case s:case i:case a:case m:return p;default:var j=p&&p.$$typeof;switch(j){case l:case f:case b:case y:case c:return j;default:return t}}case o:return t}}}var w=u,_=d,x=l,O=c,S=n,P=f,k=s,C=b,A=y,E=o,T=i,L=a,I=m,D=!1;function isConcurrentMode(e){return typeOf(e)===d}t.AsyncMode=w,t.ConcurrentMode=_,t.ContextConsumer=x,t.ContextProvider=O,t.Element=S,t.ForwardRef=P,t.Fragment=k,t.Lazy=C,t.Memo=A,t.Portal=E,t.Profiler=T,t.StrictMode=L,t.Suspense=I,t.isAsyncMode=function isAsyncMode(e){return D||(D=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),isConcurrentMode(e)||typeOf(e)===u},t.isConcurrentMode=isConcurrentMode,t.isContextConsumer=function isContextConsumer(e){return typeOf(e)===l},t.isContextProvider=function isContextProvider(e){return typeOf(e)===c},t.isElement=function isElement(e){return"object"===r(e)&&null!==e&&e.$$typeof===n},t.isForwardRef=function isForwardRef(e){return typeOf(e)===f},t.isFragment=function isFragment(e){return typeOf(e)===s},t.isLazy=function isLazy(e){return typeOf(e)===b},t.isMemo=function isMemo(e){return typeOf(e)===y},t.isPortal=function isPortal(e){return typeOf(e)===o},t.isProfiler=function isProfiler(e){return typeOf(e)===i},t.isStrictMode=function isStrictMode(e){return typeOf(e)===a},t.isSuspense=function isSuspense(e){return typeOf(e)===m},t.isValidElementType=function isValidElementType(e){return"string"==typeof e||"function"==typeof e||e===s||e===d||e===i||e===a||e===m||e===p||"object"===r(e)&&null!==e&&(e.$$typeof===b||e.$$typeof===y||e.$$typeof===c||e.$$typeof===l||e.$$typeof===f||e.$$typeof===v||e.$$typeof===h||e.$$typeof===g||e.$$typeof===j)},t.typeOf=typeOf})()},"./node_modules/react-is/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/react-is/cjs/react-is.development.js")},"./node_modules/@babel/runtime/helpers/interopRequireDefault.js":function(e){e.exports=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},"./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,s=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=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),i=new Context(r||[]);return s(a,"_invoke",{value:makeInvokeMethod(e,n,i)}),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,i,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(values([])));m&&m!==n&&o.call(m,i)&&(d=m);var p=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(d);function defineIteratorMethods(e){["next","throw","return"].forEach((function(t){define(e,t,(function(e){return this._invoke(t,e)}))}))}function AsyncIterator(e,t){function invoke(n,s,a,i){var c=tryCatch(e[n],e,s);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==r(u)&&o.call(u,"__await")?t.resolve(u.__await).then((function(e){invoke("next",e,a,i)}),(function(e){invoke("throw",e,a,i)})):t.resolve(u).then((function(e){l.value=e,a(l)}),(function(e){return invoke("throw",e,a,i)}))}i(c.arg)}var n;s(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,s){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw s;return doneResult()}for(n.method=o,n.arg=s;;){var a=n.delegate;if(a){var i=maybeInvokeDelegate(a,n);if(i){if(i===u)continue;return i}}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 c=tryCatch(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function maybeInvokeDelegate(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,maybeInvokeDelegate(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var 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[i];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],s=r.completion;if("root"===r.tryLoc)return handle("end");if(r.tryLoc<=this.prev){var a=o.call(r,"catchLoc"),i=o.call(r,"finallyLoc");if(a&&i){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/helpers/typeof.js":function(e){function _typeof(t){return e.exports=_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,_typeof(t)}e.exports=_typeof,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)}},"./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":function(e,t,n){"use strict";function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}},"./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js":function(e,t,n){"use strict";function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}n.d(t,{default:function(){return _objectWithoutPropertiesLoose}})},"./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js":function(e,t,n){"use strict";n.d(t,{default:function(){return _regeneratorRuntime}});var r=n("./node_modules/@babel/runtime/helpers/esm/typeof.js");function _regeneratorRuntime(){_regeneratorRuntime=function _regeneratorRuntime(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},a=s.iterator||"@@iterator",i=s.asyncIterator||"@@asyncIterator",c=s.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 s=t&&t.prototype instanceof Generator?t:Generator,a=Object.create(s.prototype),i=new Context(r||[]);return o(a,"_invoke",{value:makeInvokeMethod(e,n,i)}),a}function tryCatch(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=wrap;var l={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var u={};define(u,a,(function(){return this}));var d=Object.getPrototypeOf,f=d&&d(d(values([])));f&&f!==t&&n.call(f,a)&&(u=f);var m=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(u);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(o,s,a,i){var c=tryCatch(e[o],e,s);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==(0,r.default)(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){invoke("next",e,a,i)}),(function(e){invoke("throw",e,a,i)})):t.resolve(u).then((function(e){l.value=e,a(l)}),(function(e){return invoke("throw",e,a,i)}))}i(c.arg)}var s;o(this,"_invoke",{value:function value(e,n){function callInvokeWithMethodAndArg(){return new t((function(t,r){invoke(e,n,t,r)}))}return s=s?s.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,t,n){var r="suspendedStart";return function(o,s){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw s;return doneResult()}for(n.method=o,n.arg=s;;){var a=n.delegate;if(a){var i=maybeInvokeDelegate(a,n);if(i){if(i===l)continue;return i}}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 c=tryCatch(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function maybeInvokeDelegate(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,maybeInvokeDelegate(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=tryCatch(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;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,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}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[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function next(){for(;++r=0;--r){var o=this.tryEntries[r],s=o.completion;if("root"===o.tryLoc)return handle("end");if(o.tryLoc<=this.prev){var a=n.call(o,"catchLoc"),i=n.call(o,"finallyLoc");if(a&&i){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),resetTryEntry(n),l}},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),l}},e}},"./node_modules/@babel/runtime/helpers/esm/slicedToArray.js":function(e,t,n){"use strict";n.d(t,{default:function(){return _slicedToArray}});var r=n("./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js"),o=n("./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js"),s=n("./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js"),a=n("./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js");function _slicedToArray(e,t){return(0,r.default)(e)||(0,o.default)(e,t)||(0,s.default)(e,t)||(0,a.default)()}},"./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js":function(e,t,n){"use strict";n.d(t,{default:function(){return _toConsumableArray}});var r=n("./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js"),o=n("./node_modules/@babel/runtime/helpers/esm/iterableToArray.js"),s=n("./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js"),a=n("./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js");function _toConsumableArray(e){return(0,r.default)(e)||(0,o.default)(e)||(0,s.default)(e)||(0,a.default)()}},"./node_modules/@babel/runtime/helpers/esm/typeof.js":function(e,t,n){"use strict";function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}n.d(t,{default:function(){return _typeof}})},"./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js":function(e,t,n){"use strict";n.d(t,{default:function(){return _unsupportedIterableToArray}});var r=n("./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js");function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return(0,r.default)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.default)(e,t):void 0}}}}]); \ No newline at end of file diff --git a/dist/vendors.js.LICENSE.txt b/dist/vendors.js.LICENSE.txt index 137dbe6..a04bf76 100644 --- a/dist/vendors.js.LICENSE.txt +++ b/dist/vendors.js.LICENSE.txt @@ -12,6 +12,8 @@ /*! ../goods-action/index */ +/*! ../helpers/regeneratorRuntime */ + /*! ../icon */ /*! ../icon/index */ @@ -282,6 +284,10 @@ !*** ./node_modules/@antmjs/vantui/es/transition/wxs.js ***! \**********************************************************/ +/*!**********************************************************!*\ + !*** ./node_modules/@babel/runtime/regenerator/index.js ***! + \**********************************************************/ + /*!***********************************************************!*\ !*** ./node_modules/@antmjs/vantui/es/common/jumpLink.js ***! \***********************************************************/ @@ -334,6 +340,10 @@ !*** ./node_modules/@babel/runtime/helpers/esm/defineProperty.js ***! \*******************************************************************/ +/*!*******************************************************************!*\ + !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***! + \*******************************************************************/ + /*!********************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js ***! \********************************************************************/ diff --git a/src/pages/activityList/components/details/index.tsx b/src/pages/activityList/components/details/index.tsx index 4a294e2..f5290f3 100644 --- a/src/pages/activityList/components/details/index.tsx +++ b/src/pages/activityList/components/details/index.tsx @@ -242,73 +242,146 @@ const details = () => { }); }; + const detailPost = () => { + // 立即报名 + let postData = { + // env: "any", + id: id, + tableName: "details", + objData: { + // ..._.cloneDeep(dataSource), + useridArr: [..._.cloneDeep(dataSource?.useridArr ?? []), openId], + peopleArr: [ + ..._.cloneDeep(dataSource?.peopleArr ?? []), + { + openid: openId, + status: "1", //待审核 + }, + ], + }, + okFun: (res: any) => { + console.log("res333", res); + + // 报名成功 + Toast.success({ + message: "报名成功,审核中", + selector: "#vanToast-demo2", + onClose: () => { + // 更新用户信息 + userinfoPost(); + setShow(true); + // 刷新数据 + getDetail(); + + // 返回首页 [上一页] + // Taro.navigateBack({ + // // url: "/pages/home/index", + // delta: 1, + // }); + }, + }); + }, + }; + + console.log("postData", postData); + updateTableid({ ...postData }); + }; + + // 更新用户参与活动记录 + const userinfoPost = () => { + let postData = { + tableName: "userInfo", + keyValue: { openId: openId }, + okFun: (res: any) => { + let newobj = { + tableName: "userInfo", + id: res?.data?.[0]?._id, + objData: { + activeidArr: [...(res?.data?.activeidArr ?? []), openId], + }, + okFun: (okFunres: any) => { + console.log("添加用户记录", okFunres); + // + }, + }; + updateTableid({ ...newobj }); + }, + }; + + // 查询openid + getTable({ ...postData }); + }; + return ( - {Object.keys(dataSource)?.length>0? - - {dataSource?.title} - + {Object.keys(dataSource)?.length > 0 ? ( + - - - { - Taro.openLocation({ - latitude: dataSource?.latitude, - longitude: dataSource?.longitude, - scale: 18, - }); - }} + {dataSource?.title} + + + + + { + Taro.openLocation({ + latitude: dataSource?.latitude, + longitude: dataSource?.longitude, + scale: 18, + }); + }} + /> - { - return item?.status === "2" || item?.status === "1"; - })?.length >> 0 - }`} + { + return item?.status === "2" || item?.status === "1"; + })?.length >> 0 + }`} - // isLink - // linkType="navigateTo" - // url="/pages/dashboard/index" - /> - + // isLink + // linkType="navigateTo" + // url="/pages/dashboard/index" + /> + - {/* 头像列表 */} - {/* + {/* 头像列表 */} + {/* {[1, 2, 3, 4].map((item: any) => { return ( { ); })} */} - - {/* 富文本 */} - {}} className="RichText"> - {/* {dataSource?.[0]?.actTitle} */} + + {/* 富文本 */} + {}} className="RichText"> + {/* {dataSource?.[0]?.actTitle} */} - - + + - - setShow(false)} - > - - + + setShow(false)} + > + + - - - - + + + + - - setShow(false)} - onConfirm={()=>{ - // 取消报名 - canelActive() - }} - > - -{/* + + setShow(false)} + onConfirm={() => { + // 取消报名 + canelActive(); + }} + > + + {/* */} - - - + + + - {/* 调试按钮 */} - {/* setShow(true)} /> */} + {/* 调试按钮 */} + {/* setShow(true)} /> */} - - {/* style={{width:'375px'}} */} - + {/* style={{width:'375px'}} */} + + + + - - : - - {/* 骨架屏 */} - - } + ) : ( + + {/* 骨架屏 */} + + + )} ); }; diff --git a/src/pages/my/index.tsx b/src/pages/my/index.tsx index 651f682..f29bc9b 100644 --- a/src/pages/my/index.tsx +++ b/src/pages/my/index.tsx @@ -36,6 +36,8 @@ const my = (props: any) => { const [detailsData, setdetailsData] = useState([]); //活动详情 const [currentIndex, setcurrentIndex] = useState(0); const [isin, setisin] = useState(true); //0初始 1未登录 2有手机号 + const [activeidArr , setactiveidArr ] = useState([]); //用户参与的活动 + useEffect(() => { getok(); @@ -109,6 +111,8 @@ const my = (props: any) => { definePageConfig({ navigationBarTitleText: "我的", }); + + // 获取活动详情 // getDetails(); }, []); @@ -182,26 +186,25 @@ const my = (props: any) => { )} - {/* + { console.log("e", e); setcurrentIndex(e?.detail?.index ?? 0); - }} > {CardCom()} - + {/* 222 - + */} 333 44 - */} + { success: (res: any) => { okFun(res); }, + fail:(err:any)=>{ + console.log('err',err) + } }); }; @@ -86,6 +89,9 @@ export const getTableid: any = ({ success: (res: any) => { okFun(res); }, + fail:(err:any)=>{ + console.log('err',err) + } }); }else{ nowtable @@ -93,6 +99,9 @@ export const getTableid: any = ({ success: (res: any) => { okFun(res); }, + fail:(err:any)=>{ + console.log('err',err) + } }); } @@ -118,6 +127,9 @@ export const updateTableid: any = ({ success: (res: any) => { okFun(res); }, + fail:(err:any)=>{ + console.log('err',err) + } }); };