张延森 5 anni fa
parent
commit
2908d36da2

+ 1
- 1
src/app.js Vedi File

@@ -40,10 +40,10 @@ class App extends Component {
40 40
       }
41 41
     },
42 42
     pages: [
43
+      'pages/activity/activity',
43 44
       'pages/person/index',
44 45
       'pages/person/profile/index',
45 46
       'pages/project/index',
46
-      'pages/activity/activity',
47 47
       'pages/shop/index',
48 48
       'pages/project/detail/index',
49 49
       'pages/activity/assemblePage',

+ 1
- 1
src/pages/activity/assistanceItem/index.js Vedi File

@@ -70,7 +70,7 @@ export default class Item extends Component {
70 70
     return (
71 71
       <View className="item" style={style} onClick={this.handleClick.bind(this, data)}>
72 72
         <Image className="pic" src={data.img} ></Image>
73
-        <View className="title">{data.title} {data.status}</View>
73
+        <View className="title">{data.title}</View>
74 74
         {!data.verification&&
75 75
         <View className="time">{this.state.actState === 1 ? '距活动结束:' : '活动已结束'}<Text className="count-time">{this.state.actState != 2 ? this.formateLeftTime() : ''}</Text></View>
76 76
         }

+ 17
- 1
src/pages/activity/detail/assemble.js Vedi File

@@ -423,16 +423,32 @@ export default class Detail extends Component {
423 423
 
424 424
         {
425 425
           loaded && (
426
-            <View>
426
+            <View className="ass-page">
427 427
               <Notice></Notice>
428 428
               <View className="detail-banner">
429 429
                 <Image mode="widthFix" src={detail.mainImg} className="detail-banner__img"></Image>
430
+<<<<<<< HEAD
430 431
                 
431 432
                 <View className="rest-time">
432 433
                   <Text className="row-label">{actState === ActBeforeStart ? '距活动开始 :' : (actState === ActInProcess ? '活动剩余时间 :' : '')} </Text>
433 434
                   <Text className="row-content">{actState != ActFinished ? formateLeftTime(leftTime) : '活动已结束'}</Text>
434 435
                 </View>
435 436
 
437
+=======
438
+                {
439
+                  groupState === GroupInProcess && actState != ActFinished &&
440
+                  (
441
+                    <View className="rest-time">
442
+                      <Text className="row-label">{actState === ActBeforeStart ? '距活动开始 :' : (actState === ActInProcess ? '活动剩余时间 :' : '活动已结束')} </Text>
443
+                      <Text className="row-content">{actState != ActFinished ? formateLeftTime(leftTime) : ''}</Text>
444
+                    </View>
445
+                  )
446
+                }
447
+                {detail.successNum>0 &&
448
+                  <View className="success-num">已成功 {detail.successNum}</View>
449
+
450
+                }
451
+>>>>>>> 4fa08fccaf3ed20ed1dcc549346b4b829f473145
436 452
               </View>
437 453
               <ScrollView
438 454
                 scrollY

+ 23
- 7
src/pages/activity/detail/assistance.js Vedi File

@@ -155,7 +155,7 @@ export default class Detail extends Component {
155 155
     this.setState({
156 156
       ltTicker: setInterval(() => {
157 157
         const [actState, leftTime] = this.compActState(startDate, endDate)
158
-        this.setState({actState, leftTime})
158
+        this.setState({ actState, leftTime })
159 159
 
160 160
         if (actState === ActFinished) {
161 161
           this.clearTicker()
@@ -251,7 +251,7 @@ export default class Detail extends Component {
251 251
       propertyName: '助力详情分享',
252 252
       data: '{}'
253 253
     })
254
-    
254
+
255 255
     if (!shares || !shares.length) {
256 256
       return {
257 257
         title: this.state.detail.title,
@@ -292,7 +292,7 @@ export default class Detail extends Component {
292 292
         this.setState({
293 293
           submitting: false,
294 294
           helpList,
295
-          initiateDetail: res.helpInitiateRecord,          
295
+          initiateDetail: res.helpInitiateRecord,
296 296
           initiateId: res.helpInitiateRecord.helpRecordInitiateId,
297 297
           helpState: res.helpInitiateRecord.status === undefined ? HelpInProcess : res.helpInitiateRecord.status,
298 298
         })
@@ -371,7 +371,7 @@ export default class Detail extends Component {
371 371
   getQRCode() {
372 372
     const [page, scene] = this.currentPageAndParams()
373 373
     const payload = { page, scene }
374
-  
374
+
375 375
     getMiniQrcode(payload).then(qrCode => {
376 376
       this.setState({ qrCode, posterVisible: true })
377 377
     })
@@ -381,7 +381,7 @@ export default class Detail extends Component {
381 381
   shareMoments = () => {
382 382
     this.getQRCode().then(() => {
383 383
       this.togglePosterVisible()
384
-    })    
384
+    })
385 385
   }
386 386
 
387 387
   render() {
@@ -418,7 +418,7 @@ export default class Detail extends Component {
418 418
       <Block>
419 419
         {/* 生成海报 */}
420 420
         {posterVisible && (<Poster tpls={posterTpls} params={posterData} onCancel={this.togglePosterVisible} onFinish={this.togglePosterVisible}></Poster>)}
421
-        
421
+
422 422
         {
423 423
           grantPhoneVisible &&
424 424
           <AchievePhone user={userInfo.person} onSuccess={this.initPageData}></AchievePhone>
@@ -426,16 +426,32 @@ export default class Detail extends Component {
426 426
 
427 427
         {
428 428
           loaded && (
429
-            <View>
429
+            <View className="ass-page">
430 430
               <Notice></Notice>
431 431
               <View className="detail-banner">
432 432
                 <Image mode="widthFix" src={detail.img} className="detail-banner__img"></Image>
433
+<<<<<<< HEAD
433 434
                 
434 435
                 <View className="rest-time">
435 436
                   <Text className="row-label">{actState === ActBeforeStart ? '距活动开始 :' : (actState === ActInProcess ? '活动剩余时间 :' : '')} </Text>
436 437
                   <Text className="row-content">{actState != ActFinished ? formateLeftTime(leftTime) : '活动已结束'}</Text>
437 438
                 </View>
438 439
 
440
+=======
441
+                {
442
+                  helpState === HelpInProcess && actState != ActFinished &&
443
+                  (
444
+                    <View className="rest-time">
445
+                      <Text className="row-label">{actState === ActBeforeStart ? '距活动开始 :' : (actState === ActInProcess ? '活动剩余时间 :' : '活动已结束')} </Text>
446
+                      <Text className="row-content">{actState != ActFinished ? formateLeftTime(leftTime) : ''}</Text>
447
+                    </View>
448
+                  )
449
+                }
450
+                {detail.successNum>0 &&
451
+                  <View className="success-num">已成功 {detail.successNum}</View>
452
+
453
+                }
454
+>>>>>>> 4fa08fccaf3ed20ed1dcc549346b4b829f473145
439 455
               </View>
440 456
               <ScrollView
441 457
                 scrollY

+ 15
- 2
src/pages/activity/detail/index.scss Vedi File

@@ -4,6 +4,9 @@
4 4
 //   width: 100% !important;
5 5
 //   padding: 30px 0;
6 6
 // }
7
+.ass-page{
8
+  height: 100vh;
9
+}
7 10
 
8 11
 .flex {
9 12
   display: flex;
@@ -19,7 +22,7 @@
19 22
 .detail-banner {
20 23
   position: relative;
21 24
   overflow: hidden;
22
-  height: 640px;
25
+  height: 624px;
23 26
   width: 100%;
24 27
 
25 28
   &__img {
@@ -43,6 +46,16 @@
43 46
       color: #FF245A;
44 47
     }
45 48
   }
49
+  .success-num{
50
+    position: absolute;
51
+    right:0;
52
+    bottom:0;
53
+    color: #fff;
54
+    background:rgba(47,6,1,0.5);
55
+    padding: 8px 24px 8px 46px;
56
+    border-radius: 100px 0 0 0;
57
+    font-size: 24px;
58
+  }
46 59
 }
47 60
 .detail-info{
48 61
   display: flex;
@@ -388,7 +401,7 @@
388 401
       font-size: 26px;
389 402
       text-align: center;
390 403
       display: block;
391
-      width: 100%;
404
+      width: 120px;
392 405
       @include text-ellipsis;
393 406
     }
394 407
     &-wait {