|
@@ -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
|