feat: 活动详情
This commit is contained in:
@@ -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,t,n){var i=n("./node_modules/@antmjs/vantui/es/button/index.js"),s=n("./node_modules/@antmjs/vantui/es/cell/index.js"),a=n("./node_modules/@antmjs/vantui/es/image/index.js"),o=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),l=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),d=n("webpack/container/remote/@tarojs/taro"),c=n.n(d),r=n("webpack/container/remote/react"),u=n("./src/utils/index.ts"),m=n("webpack/container/remote/react/jsx-runtime");t.default=function details(){var e,t,n,p=(0,r.useState)([]),x=(0,o.default)(p,2),j=x[0],v=x[1],g=(0,r.useState)(0),f=(0,o.default)(g,2),h=f[0],b=f[1],w=(0,d.getCurrentInstance)(),y=(null!==(e=null==w||null===(t=w.router)||void 0===t?void 0:t.params)&&void 0!==e?e:{}).id;return(0,r.useEffect)((function(){}),[]),(0,r.useEffect)((function(){var e,t=c().getSystemInfoSync(),n=t.screenHeight,i=t.safeArea,s=void 0===i?{}:i,a=null!==(e=n-(null==s?void 0:s.bottom))&&void 0!==e?e:0;b(a);var o={tableName:"details",id:y,okFun:function okFun(e){var t;console.log("res",e),v(null!==(t=null==e?void 0:e.data)&&void 0!==t?t:[])}};(0,u.getTableid)(o)}),[]),(0,m.jsxs)(l.View,{className:"detailContent",children:[(0,m.jsxs)(l.View,{children:[(0,m.jsx)(l.View,{children:"活动标题活动标题活动标题活动标题活动标题活动标题活动标题"}),(0,m.jsx)(a.default,{width:"100%",height:"180px",fit:"cover",src:"https://img.yzcdn.cn/vant/cat.jpeg"}),(0,m.jsxs)(l.View,{children:[(0,m.jsx)(s.default,{isLink:!0,icon:"clock",title:"2022年11月22日",linkType:"navigateTo",url:"/pages/dashboard/index"}),(0,m.jsx)(s.default,{isLink:!0,icon:"location",title:"广东省深圳市龙华区你好",linkType:"navigateTo",url:"/pages/dashboard/index"})]}),(0,m.jsx)(l.View,{className:"imagesArr",children:[1,2,3,4].map((function(e){return(0,m.jsx)(a.default,{round:!0,width:"30px",height:"30px",src:"https://img.yzcdn.cn/vant/cat.jpeg",style:{marginRight:"5px"}})}))})]}),(0,m.jsx)(l.View,{onClick:function onClick(){},className:"RichText",children:(0,m.jsx)(l.RichText,{nodes:null==j||null===(n=j[0])||void 0===n?void 0:n.richText})}),(0,m.jsx)(l.View,{className:"detailBtn",style:{bottom:"".concat(null!=h?h:0,"px")},children:(0,m.jsx)(i.default,{type:"primary",block:!0,children:"立即参加"})})]})}},"./src/pages/activityList/components/details/index.tsx":function(e,t,n){var i=n("webpack/container/remote/@tarojs/runtime"),s=n("./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");Page((0,i.createPageConfig)(s.default,"pages/activityList/components/details/index",{root:{cn:[]}},{navigationBarTitleText:"活动详情"}||{}))}},function(e){e.O(0,["taro","vendors","common"],(function(){return t="./src/pages/activityList/components/details/index.tsx",e(e.s=t);var t}));e.O()}]);
|
||||
"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,t,n){var i=n("./node_modules/@antmjs/vantui/es/button/index.js"),s=n("./node_modules/@antmjs/vantui/es/cell/index.js"),o=n("./node_modules/@antmjs/vantui/es/image/index.js"),a=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),l=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),d=n("webpack/container/remote/@tarojs/taro"),c=n.n(d),r=n("webpack/container/remote/react"),u=n("./src/utils/index.ts"),m=n("webpack/container/remote/react/jsx-runtime");t.default=function details(){var e,t,n,v,x,p,j=(0,r.useState)([]),f=(0,a.default)(j,2),g=f[0],b=f[1],h=(0,r.useState)(0),w=(0,a.default)(h,2),k=w[0],y=w[1],T=(0,d.getCurrentInstance)(),_=(null!==(e=null==T||null===(t=T.router)||void 0===t?void 0:t.params)&&void 0!==e?e:{}).id;return(0,r.useEffect)((function(){}),[]),(0,r.useEffect)((function(){var e,t=c().getSystemInfoSync(),n=t.screenHeight,i=t.safeArea,s=void 0===i?{}:i,o=null!==(e=n-(null==s?void 0:s.bottom))&&void 0!==e?e:0;y(o);var a={tableName:"details",id:_,okFun:function okFun(e){var t;console.log("res",e),b(null!==(t=null==e?void 0:e.data)&&void 0!==t?t:[])}};(0,u.getTableid)(a)}),[]),(0,m.jsxs)(l.View,{className:"detailContent",children:[(0,m.jsxs)(l.View,{children:[(0,m.jsx)(l.View,{children:null==g?void 0:g.title}),(0,m.jsx)(o.default,{width:"100%",height:"180px",fit:"cover",src:null==g||null===(n=g.images)||void 0===n||null===(v=n[0])||void 0===v?void 0:v.url}),(0,m.jsxs)(l.View,{children:[(0,m.jsx)(s.default,{icon:"clock",title:"开始时间 ".concat(null==g?void 0:g.startTime)}),(0,m.jsx)(s.default,{isLink:!0,icon:"location",title:"".concat(null==g?void 0:g.address),linkType:"navigateTo",url:"/pages/dashboard/index"}),(0,m.jsx)(s.default,{icon:"friends",title:"已报名人数 ".concat(null!==(x=null==g||null===(p=g.useridArr)||void 0===p?void 0:p.length)&&void 0!==x?x:0)})]})]}),(0,m.jsx)(l.View,{onClick:function onClick(){},className:"RichText",children:(0,m.jsx)(l.RichText,{nodes:null==g?void 0:g.richText})}),(0,m.jsx)(l.View,{className:"detailBtn",style:{bottom:"".concat(null!=k?k:0,"px")},children:(0,m.jsx)(i.default,{type:"primary",block:!0,children:"立即参加"})})]})}},"./src/pages/activityList/components/details/index.tsx":function(e,t,n){var i=n("webpack/container/remote/@tarojs/runtime"),s=n("./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");Page((0,i.createPageConfig)(s.default,"pages/activityList/components/details/index",{root:{cn:[]}},{navigationBarTitleText:"活动详情"}||{}))}},function(e){e.O(0,["taro","vendors","common"],(function(){return t="./src/pages/activityList/components/details/index.tsx",e(e.s=t);var t}));e.O()}]);
|
||||
2
dist/pages/activityList/index.js
vendored
2
dist/pages/activityList/index.js
vendored
File diff suppressed because one or more lines are too long
2
dist/pages/activityList/index.js.LICENSE.txt
vendored
2
dist/pages/activityList/index.js.LICENSE.txt
vendored
@@ -1,5 +1,7 @@
|
||||
/*! ../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??ruleSet[1].rules[9].use[1]!./index.tsx */
|
||||
|
||||
/*! ../../utils/index */
|
||||
|
||||
/*! ../cell */
|
||||
|
||||
/*! ../common/utils */
|
||||
|
||||
2
dist/pages/my/index.js
vendored
2
dist/pages/my/index.js
vendored
File diff suppressed because one or more lines are too long
56
dist/pages/my/index.js.LICENSE.txt
vendored
56
dist/pages/my/index.js.LICENSE.txt
vendored
@@ -1,24 +1,12 @@
|
||||
/*! ../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??ruleSet[1].rules[9].use[1]!./index.tsx */
|
||||
|
||||
/*! ../common/utils */
|
||||
|
||||
/*! ../common/validator */
|
||||
/*! ../../utils/index */
|
||||
|
||||
/*! ../components/ActiveCard */
|
||||
|
||||
/*! ../components/TabbarCom */
|
||||
|
||||
/*! ../info/index */
|
||||
|
||||
/*! ../sticky/index */
|
||||
|
||||
/*! ../wxs/style */
|
||||
|
||||
/*! ../wxs/utils */
|
||||
|
||||
/*! ./../mixins/page-scroll */
|
||||
|
||||
/*! ./wxs */
|
||||
/*! ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js */
|
||||
|
||||
/*! @antmjs/vantui/es/button */
|
||||
|
||||
@@ -26,28 +14,12 @@
|
||||
|
||||
/*! @antmjs/vantui/es/image */
|
||||
|
||||
/*! @antmjs/vantui/es/tab */
|
||||
|
||||
/*! @antmjs/vantui/es/tabs */
|
||||
|
||||
/*! @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 */
|
||||
@@ -56,30 +28,6 @@
|
||||
!*** ./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 ***!
|
||||
\**********************************************************************************************************************************************/
|
||||
|
||||
12
dist/pages/my/index.wxss
vendored
12
dist/pages/my/index.wxss
vendored
@@ -1,15 +1,3 @@
|
||||
/*!***********************************************************************************************************************************************************************************************************************!*\
|
||||
!*** 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 ***!
|
||||
\*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user