Browse Source

activitydetail

许静 5 years ago
parent
commit
326ed2d576
2 changed files with 29 additions and 28 deletions
  1. 28
    28
      src/pages/activity/detail/index.js
  2. 1
    0
      src/pages/activity/detail/index.scss

+ 28
- 28
src/pages/activity/detail/index.js View File

317
               <ScrollView
317
               <ScrollView
318
                 scrollY
318
                 scrollY
319
                 className="detail-wrap">
319
                 className="detail-wrap">
320
-                <View className="detail">
321
-                  {detail.isEnlist == 0 &&
322
-                    <View className="detail-sign__num">不需要报名</View>
323
-                  }
324
-                  {detail.isEnlist != 0 &&
325
-                    <View className="detail-sign__num">{detail.enlisted || 0}人已报名</View>
326
-                  }
327
-                  <View class="detail-title">{detail.title}</View>
328
-                  <View className="detail-top">
329
-                    <View className="detail-top__row">
330
-                      <Text className="row-label">活动时间:</Text>
331
-                      <Text className="row-content">{dayjs(detail.startDate).format('YYYY-MM-DD HH:mm:ss')}</Text>
332
-                    </View>
333
-                    <View className="detail-top__row">
334
-                      <Text className="row-label">活动地址:</Text>
335
-                      <Text className="row-content">{detail.address}</Text>
336
-                    </View>
337
-                    <View className="detail-top__row">
338
-                      <Text className="row-label">报名截止:</Text>
339
-                      {detail.enlistEnd &&
340
-                        <Text className="row-content">{dayjs(detail.enlistEnd).format('YYYY-MM-DD HH:mm:ss')}</Text>
341
-                      }
342
-
343
-                    </View>
320
+              <View className="detail">
321
+                {detail.isEnlist == 0 &&
322
+                  <View className="detail-sign__num">不需要报名</View>
323
+                }
324
+                {detail.isEnlist != 0 &&
325
+                  <View className="detail-sign__num">{detail.enlisted || 0}人已报名</View>
326
+                }
327
+                <View class="detail-title">{detail.title}</View>
328
+                <View className="detail-top">
329
+                  <View className="detail-top__row">
330
+                    <Text className="row-label">活动时间:</Text>
331
+                    <Text className="row-content">{dayjs(detail.startDate).format('YYYY-MM-DD HH:mm:ss')}</Text>
332
+                  </View>
333
+                  <View className="detail-top__row">
334
+                    <Text className="row-label">活动地址:</Text>
335
+                    <Text className="row-content">{detail.address}</Text>
344
                   </View>
336
                   </View>
345
-                  <View className="detail-con">
346
-                    <View className="detail-con__title">活动详情</View>
347
-                    <import src='../../../components/wxParse/wxParse.wxml' />
348
-                    <template is='wxParse' data='{{wxParseData:article.nodes}}' />
337
+                  <View className="detail-top__row">
338
+                    <Text className="row-label">报名截止:</Text>
339
+                    {detail.enlistEnd &&
340
+                      <Text className="row-content">{dayjs(detail.enlistEnd).format('YYYY-MM-DD HH:mm:ss')}</Text>
341
+                    }
342
+
349
                   </View>
343
                   </View>
350
                 </View>
344
                 </View>
345
+                <View className="detail-con">
346
+                  <View className="detail-con__title">活动详情</View>
347
+                  <import src='../../../components/wxParse/wxParse.wxml' />
348
+                  <template is='wxParse' data='{{wxParseData:article.nodes}}' />
349
+                </View>
350
+              </View>
351
               </ScrollView>
351
               </ScrollView>
352
 
352
 
353
               <View className="chat-entrance" onClick={this.handleMoreClick}>
353
               <View className="chat-entrance" onClick={this.handleMoreClick}>

+ 1
- 0
src/pages/activity/detail/index.scss View File

93
   padding: 30px 40px 0 40px;
93
   padding: 30px 40px 0 40px;
94
   position: relative;
94
   position: relative;
95
   overflow: hidden;
95
   overflow: hidden;
96
+  padding-bottom:120px; 
96
   .status__img{
97
   .status__img{
97
     width: 176px;
98
     width: 176px;
98
     height: 176px;
99
     height: 176px;