张延森 5 年之前
父節點
當前提交
2908d36da2

+ 1
- 1
src/app.js 查看文件

40
       }
40
       }
41
     },
41
     },
42
     pages: [
42
     pages: [
43
+      'pages/activity/activity',
43
       'pages/person/index',
44
       'pages/person/index',
44
       'pages/person/profile/index',
45
       'pages/person/profile/index',
45
       'pages/project/index',
46
       'pages/project/index',
46
-      'pages/activity/activity',
47
       'pages/shop/index',
47
       'pages/shop/index',
48
       'pages/project/detail/index',
48
       'pages/project/detail/index',
49
       'pages/activity/assemblePage',
49
       'pages/activity/assemblePage',

+ 1
- 1
src/pages/activity/assistanceItem/index.js 查看文件

70
     return (
70
     return (
71
       <View className="item" style={style} onClick={this.handleClick.bind(this, data)}>
71
       <View className="item" style={style} onClick={this.handleClick.bind(this, data)}>
72
         <Image className="pic" src={data.img} ></Image>
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
         {!data.verification&&
74
         {!data.verification&&
75
         <View className="time">{this.state.actState === 1 ? '距活动结束:' : '活动已结束'}<Text className="count-time">{this.state.actState != 2 ? this.formateLeftTime() : ''}</Text></View>
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 查看文件

423
 
423
 
424
         {
424
         {
425
           loaded && (
425
           loaded && (
426
-            <View>
426
+            <View className="ass-page">
427
               <Notice></Notice>
427
               <Notice></Notice>
428
               <View className="detail-banner">
428
               <View className="detail-banner">
429
                 <Image mode="widthFix" src={detail.mainImg} className="detail-banner__img"></Image>
429
                 <Image mode="widthFix" src={detail.mainImg} className="detail-banner__img"></Image>
430
+<<<<<<< HEAD
430
                 
431
                 
431
                 <View className="rest-time">
432
                 <View className="rest-time">
432
                   <Text className="row-label">{actState === ActBeforeStart ? '距活动开始 :' : (actState === ActInProcess ? '活动剩余时间 :' : '')} </Text>
433
                   <Text className="row-label">{actState === ActBeforeStart ? '距活动开始 :' : (actState === ActInProcess ? '活动剩余时间 :' : '')} </Text>
433
                   <Text className="row-content">{actState != ActFinished ? formateLeftTime(leftTime) : '活动已结束'}</Text>
434
                   <Text className="row-content">{actState != ActFinished ? formateLeftTime(leftTime) : '活动已结束'}</Text>
434
                 </View>
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
               </View>
452
               </View>
437
               <ScrollView
453
               <ScrollView
438
                 scrollY
454
                 scrollY

+ 23
- 7
src/pages/activity/detail/assistance.js 查看文件

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

+ 15
- 2
src/pages/activity/detail/index.scss 查看文件

4
 //   width: 100% !important;
4
 //   width: 100% !important;
5
 //   padding: 30px 0;
5
 //   padding: 30px 0;
6
 // }
6
 // }
7
+.ass-page{
8
+  height: 100vh;
9
+}
7
 
10
 
8
 .flex {
11
 .flex {
9
   display: flex;
12
   display: flex;
19
 .detail-banner {
22
 .detail-banner {
20
   position: relative;
23
   position: relative;
21
   overflow: hidden;
24
   overflow: hidden;
22
-  height: 640px;
25
+  height: 624px;
23
   width: 100%;
26
   width: 100%;
24
 
27
 
25
   &__img {
28
   &__img {
43
       color: #FF245A;
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
 .detail-info{
60
 .detail-info{
48
   display: flex;
61
   display: flex;
388
       font-size: 26px;
401
       font-size: 26px;
389
       text-align: center;
402
       text-align: center;
390
       display: block;
403
       display: block;
391
-      width: 100%;
404
+      width: 120px;
392
       @include text-ellipsis;
405
       @include text-ellipsis;
393
     }
406
     }
394
     &-wait {
407
     &-wait {