|
@@ -62,7 +62,7 @@ export default class NewsDetail extends Component {
|
62
|
62
|
|
63
|
63
|
if (this.$router.params.scene) {
|
64
|
64
|
getQrCodeParams(this.$router.params.scene).then(res => {
|
65
|
|
- console.log(res,"扫码参数")
|
|
65
|
+ console.log(res, "扫码参数")
|
66
|
66
|
this.setState({ newsId: res.id, qrcodeParams: res }, () => {
|
67
|
67
|
this.loadDetail()
|
68
|
68
|
addNewsUv(res.id)
|
|
@@ -368,58 +368,61 @@ export default class NewsDetail extends Component {
|
368
|
368
|
grantAvatarVisible &&
|
369
|
369
|
<AchieveAvatar user={userInfo.person} onSuccess={() => { this.setState({ grantAvatarVisible: false }) }} ></AchieveAvatar>
|
370
|
370
|
}
|
371
|
|
-
|
372
|
371
|
{
|
373
|
372
|
loaded && (
|
374
|
|
- <Block>
|
375
|
|
- <ScrollView className="detail" scrollY>
|
376
|
|
- <View class="detail-title">{detail.newsName}</View>
|
377
|
|
- <View className="detail-stat">
|
378
|
|
- <View className='left-icon'>
|
379
|
|
- <View className='eye-num'><Text className="iconfont icon-eye"></Text>{detail.pvNum || 0}</View>
|
380
|
|
- {/* <View><Text className="iconfont icon-fenxiang1"></Text>{detail.shareNum || 0}</View> */}
|
381
|
|
- <View className='fenx'><Image src={require('@/assets/person/fenxiang.png')} className='fenxiang1-img'></Image>{detail.shareNum || 0}</View>
|
|
373
|
+ detail.newsDetailType == 0 ? <WebView src={detail.newsDetail} /> :
|
|
374
|
+ <Block>
|
|
375
|
+ <ScrollView className="detail" scrollY>
|
|
376
|
+ <View class="detail-title">{detail.newsName}</View>
|
|
377
|
+ <View className="detail-stat">
|
|
378
|
+ <View className='left-icon'>
|
|
379
|
+ <View className='eye-num'><Text className="iconfont icon-eye"></Text>{detail.pvNum || 0}</View>
|
|
380
|
+ {/* <View><Text className="iconfont icon-fenxiang1"></Text>{detail.shareNum || 0}</View> */}
|
|
381
|
+ <View className='fenx'><Image src={require('@/assets/person/fenxiang.png')} className='fenxiang1-img'></Image>{detail.shareNum || 0}</View>
|
|
382
|
+ </View>
|
|
383
|
+ <View>{dayjs(detail.createDate).format('YYYY-MM-DD')}</View>
|
|
384
|
+ </View>
|
|
385
|
+ {/* <Image mode="widthFix" style={{ width: '100%', marginTop: '20px' }} src={transferImage(detail.newsImg)}></Image> */}
|
|
386
|
+ <View className="detail-con">
|
|
387
|
+ {/* <richText nodes={detail.newsDetail} ></richText> */}
|
|
388
|
+ <import src='../../../components/wxParse/wxParse.wxml' />
|
|
389
|
+ <template is='wxParse' data='{{wxParseData:article.nodes}}' />
|
|
390
|
+ </View>
|
|
391
|
+ </ScrollView>
|
|
392
|
+ <Notice></Notice>
|
|
393
|
+ <BackHomeBtn style={consultShow ? "bottom:310rpx" : ''}></BackHomeBtn>
|
|
394
|
+ {
|
|
395
|
+ consultShow && <Consultant style="bottom:150rpx" smallStyle="bottom:178rpx" personId={userInfo.person.personId} name={userInfo.person.name || userInfo.person.nickname} data={consultData}></Consultant>
|
|
396
|
+ }
|
|
397
|
+ <View className="bot-nav flex">
|
|
398
|
+ <View className='btn poster-btn' style={{ display: posterShow }} onClick={() => { this.handleTogglePoster(true) }}>
|
|
399
|
+ {/* <Text className="iconfont icon-xiazai"></Text> */}
|
|
400
|
+ <Image src={require('@/assets/news/tupian.png')} className='poster-img'></Image>
|
|
401
|
+ <Text className="txt">海报</Text>
|
|
402
|
+ </View>
|
|
403
|
+ <Button className="btn share-btn" open-type="share">
|
|
404
|
+ {/* <Text className="icon-fenxiang iconfont"></Text> */}
|
|
405
|
+ <Image src={require('@/assets/news/fasong.png')} className='fenxiang-img'></Image>
|
|
406
|
+ <Text className="txt">分享</Text>
|
|
407
|
+ </Button>
|
|
408
|
+ <View className="btn collection-btn" onClick={this.handleFavor}>
|
|
409
|
+ {
|
|
410
|
+ isSaved ? (
|
|
411
|
+ <Text className="iconfont icon-shoucang saved"></Text>
|
|
412
|
+ ) : (
|
|
413
|
+ <Text className="iconfont icon-shoucang1"></Text>
|
|
414
|
+ )
|
|
415
|
+ }
|
|
416
|
+ <Text className="txt">收藏</Text>
|
382
|
417
|
</View>
|
383
|
|
- <View>{dayjs(detail.createDate).format('YYYY-MM-DD')}</View>
|
384
|
|
- </View>
|
385
|
|
- {/* <Image mode="widthFix" style={{ width: '100%', marginTop: '20px' }} src={transferImage(detail.newsImg)}></Image> */}
|
386
|
|
- <View className="detail-con">
|
387
|
|
- {/* <richText nodes={detail.newsDetail} ></richText> */}
|
388
|
|
- <import src='../../../components/wxParse/wxParse.wxml' />
|
389
|
|
- <template is='wxParse' data='{{wxParseData:article.nodes}}' />
|
390
|
|
- </View>
|
391
|
|
- </ScrollView>
|
392
|
|
- <Notice></Notice>
|
393
|
|
- <BackHomeBtn style={consultShow ? "bottom:310rpx" : ''}></BackHomeBtn>
|
394
|
|
- {
|
395
|
|
- consultShow && <Consultant style="bottom:150rpx" smallStyle="bottom:178rpx" personId={userInfo.person.personId} name={userInfo.person.name || userInfo.person.nickname} data={consultData}></Consultant>
|
396
|
|
- }
|
397
|
|
- <View className="bot-nav flex">
|
398
|
|
- <View className='btn poster-btn' style={{ display: posterShow }} onClick={() => { this.handleTogglePoster(true) }}>
|
399
|
|
- {/* <Text className="iconfont icon-xiazai"></Text> */}
|
400
|
|
- <Image src={require('@/assets/news/tupian.png')} className='poster-img'></Image>
|
401
|
|
- <Text className="txt">海报</Text>
|
402
|
|
- </View>
|
403
|
|
- <Button className="btn share-btn" open-type="share">
|
404
|
|
- {/* <Text className="icon-fenxiang iconfont"></Text> */}
|
405
|
|
- <Image src={require('@/assets/news/fasong.png')} className='fenxiang-img'></Image>
|
406
|
|
- <Text className="txt">分享</Text>
|
407
|
|
- </Button>
|
408
|
|
- <View className="btn collection-btn" onClick={this.handleFavor}>
|
409
|
|
- {
|
410
|
|
- isSaved ? (
|
411
|
|
- <Text className="iconfont icon-shoucang saved"></Text>
|
412
|
|
- ) : (
|
413
|
|
- <Text className="iconfont icon-shoucang1"></Text>
|
414
|
|
- )
|
415
|
|
- }
|
416
|
|
- <Text className="txt">收藏</Text>
|
417
|
|
- </View>
|
418
|
418
|
|
419
|
|
- </View>
|
420
|
|
- </Block>
|
|
419
|
+ </View>
|
|
420
|
+ </Block>
|
421
|
421
|
)
|
422
|
422
|
}
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
|
423
|
426
|
</Block>
|
424
|
427
|
)
|
425
|
428
|
}
|