Files
gitlab-instance-0a899031_ci…/dist/common.js
2022-11-21 14:27:26 +08:00

2 lines
3.3 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,a){var t=a("./node_modules/@antmjs/vantui/es/button/index.js"),s=a("./node_modules/@antmjs/vantui/es/image/index.js"),i=a("./node_modules/@antmjs/vantui/es/tag/index.js"),l=a("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),o=a("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),d=a("webpack/container/remote/react"),c=a("webpack/container/remote/react/jsx-runtime");n.default=function ActiveCard(e){var n=(0,d.useState)({}),a=(0,l.default)(n,2),r=(a[0],a[1],null==e?void 0:e.dataSource),u=r.title,m=r.address,x=r.date,j=r.tagName,p=(r.tagCode,r.Status),v=r.images;r.isDelete;return(0,c.jsxs)(o.View,{className:"activeCard",children:[(0,c.jsxs)(o.View,{className:"left",children:[!1,(0,c.jsx)(o.View,{className:"leftImage",children:(0,c.jsx)(s.default,{width:"100%",height:"100px",fit:"cover",src:null==v?void 0:v[0]})})]}),(0,c.jsxs)(o.View,{className:"middle",children:[(0,c.jsxs)(o.View,{className:"title",children:[(0,c.jsx)(i.default,{round:!0,type:"warning",style:{marginRight:"5px"},children:j}),(0,c.jsx)(o.Text,{children:u})]}),(0,c.jsxs)(o.View,{className:"down",children:[(0,c.jsxs)(o.View,{className:"date",children:[(0,c.jsx)(o.View,{className:"21",children:m}),(0,c.jsx)(o.View,{className:"11",children:x})]}),(0,c.jsx)(o.View,{className:"btn",children:(0,c.jsx)(t.default,{plain:!0,hairline:!0,type:"primary",children:"0"===p?"立即报名":"取消"})})]})]})]})}},"./src/pages/components/TabbarCom/index.tsx":function(e,n,a){var t=a("./node_modules/@antmjs/vantui/es/tabbar/index.js"),s=a("./node_modules/@antmjs/vantui/es/tabbar-item/index.js"),i=a("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),l=a("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),o=a("webpack/container/remote/@tarojs/taro"),d=a.n(o),c=a("webpack/container/remote/react"),r=a.n(c),u=a("webpack/container/remote/react/jsx-runtime");n.default=function TabbarCom(e){var n,a=r().useState(null!==(n=null==e?void 0:e.active)&&void 0!==n?n:0),o=(0,i.default)(a,2),c=o[0],m=o[1];return(0,u.jsx)(l.View,{style:{marginTop:"40px"},children:(0,u.jsxs)(t.default,{active:c,onChange:function onChange(e){console.log("e",e),m(null==e?void 0:e.detail),0===(null==e?void 0:e.detail)&&d().redirectTo({url:"/pages/home/index"}),1===(null==e?void 0:e.detail)&&d().redirectTo({url:"/pages/activityList/index"}),2===(null==e?void 0:e.detail)&&d().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,a){a.d(n,{getTable:function(){return i},getTableid:function(){return l}});var t=a("webpack/container/remote/@tarojs/taro"),s=a.n(t),i=function getTable(e){var n=e.env,a=e.tableName,t=e.okFun,i=s().cloud.database({env:n}),l=null==i?void 0:i.collection(a);null==l||l.get({success:function success(e){t(e)}})},l=function getTableid(e){var n=e.env,a=e.tableName,t=e.id,i=e.okFun,l=s().cloud.database({env:n}),o=null==l?void 0:l.collection(a);null==o||o.doc(t).get({success:function success(e){i(e)}})}}}]);