Files
gitlab-instance-0a899031_ci…/dist/common.js
2022-11-21 18:13:35 +08:00

2 lines
3.7 KiB
JavaScript

/*! For license information please see common.js.LICENSE.txt */
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([["common"],{"./src/pages/components/ActiveCard/index.tsx":function(e,n,t){var a=t("./node_modules/@antmjs/vantui/es/button/index.js"),s=t("./node_modules/@antmjs/vantui/es/image/index.js"),i=t("./node_modules/@antmjs/vantui/es/tag/index.js"),o=t("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),l=t("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),c=t("webpack/container/remote/react"),r=t("webpack/container/remote/moment"),d=t.n(r),u=t("webpack/container/remote/react/jsx-runtime");n.default=function ActiveCard(e){var n=(0,c.useState)({}),t=(0,o.default)(n,2),r=(t[0],t[1],null==e?void 0:e.dataSource),m=r.title,p=r.address,f=r.date,j=r.tagName,x=(r.tagCode,r.Status,r.images);r.isDelete;return(0,u.jsxs)(l.View,{className:"activeCard",children:[(0,u.jsxs)(l.View,{className:"left",children:[!1,(0,u.jsx)(l.View,{className:"leftImage",children:(0,u.jsx)(s.default,{width:"100%",height:"100px",fit:"cover",src:null==x?void 0:x[0]})})]}),(0,u.jsxs)(l.View,{className:"middle",children:[(0,u.jsxs)(l.View,{className:"title",children:[(0,u.jsx)(i.default,{round:!0,type:"warning",style:{marginRight:"5px"},children:j}),(0,u.jsx)(l.Text,{children:m})]}),(0,u.jsxs)(l.View,{className:"down",children:[(0,u.jsxs)(l.View,{className:"date",children:[(0,u.jsx)(l.View,{className:"",children:p}),(0,u.jsx)(l.View,{className:"",children:d()(f).format("YYYY-MM-DD")})]}),(0,u.jsx)(l.View,{className:"btn",children:(0,u.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"),s=t("./node_modules/@antmjs/vantui/es/tabbar-item/index.js"),i=t("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),o=t("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),l=t("webpack/container/remote/@tarojs/taro"),c=t.n(l),r=t("webpack/container/remote/react"),d=t.n(r),u=t("webpack/container/remote/react/jsx-runtime");n.default=function TabbarCom(e){var n,t=d().useState(null!==(n=null==e?void 0:e.active)&&void 0!==n?n:0),l=(0,i.default)(t,2),r=l[0],m=l[1];return(0,u.jsx)(o.View,{style:{marginTop:"40px"},children:(0,u.jsxs)(a.default,{active:r,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,u.jsx)(s.default,{icon:"home-o",children:"首页"}),(0,u.jsx)(s.default,{icon:"friends-o",children:"活动"}),(0,u.jsx)(s.default,{icon:"setting-o",children:"我的"})]})})}},"./src/utils/index.ts":function(e,n,t){t.d(n,{getTable:function(){return i},getTableid:function(){return o},updateTableid:function(){return l},isLogin:function(){return c}});var a=t("webpack/container/remote/@tarojs/taro"),s=t.n(a),i=function getTable(e){var n=e.env,t=e.tableName,a=e.okFun,i=s().cloud.database({env:n}),o=null==i?void 0:i.collection(t);null==o||o.get({success:function success(e){a(e)}})},o=function getTableid(e){var n=e.env,t=e.tableName,a=e.id,i=e.okFun,o=s().cloud.database({env:n}),l=null==o?void 0:o.collection(t);null==l||l.doc(a).get({success:function success(e){i(e)}})},l=function updateTableid(e){var n=e.env,t=e.tableName,a=e.objData,i=e.id,o=e.okFun,l=s().cloud.database({env:n});(null==l?void 0:l.collection(t)).doc(i).update({data:a,success:function success(e){o(e)}})},c=function isLogin(){s().checkSession({success:function success(e){return console.log("res",e),!0},fail:function fail(e){return console.log("err",e),!1}})}}}]);