|
@@ -13,7 +13,7 @@ import { report as reportCustomer } from '@utils/qrcode'
|
13
|
13
|
import { getCardDetail } from '@services/card'
|
14
|
14
|
import { ROLE_CODE } from '@constants/user'
|
15
|
15
|
import Consultant from '@components/consultant'
|
16
|
|
-import authorizationComponent from '@components/authorizationComponent'
|
|
16
|
+// import AuthorizationComponent from '@components/authorizationComponent'
|
17
|
17
|
import { reportClient } from '@services/report'
|
18
|
18
|
import {
|
19
|
19
|
addNewsUv,
|
|
@@ -91,7 +91,7 @@ export default class NewsDetail extends Component {
|
91
|
91
|
}
|
92
|
92
|
})
|
93
|
93
|
}
|
94
|
|
-
|
|
94
|
+
|
95
|
95
|
// 报备客户
|
96
|
96
|
reportClientFn() {
|
97
|
97
|
const router = Taro.getStorageSync('router') || { query: {} }
|
|
@@ -316,63 +316,63 @@ export default class NewsDetail extends Component {
|
316
|
316
|
const { detail, loaded, isSaved, posterVisible, posterData, posterShow, consultData, consultShow } = this.state
|
317
|
317
|
const { userInfo: { person: { personId, nickname, name } } } = this.props
|
318
|
318
|
return (
|
319
|
|
- <authorizationComponent>
|
320
|
|
- <Block>
|
321
|
|
- {/* 生成海报 */}
|
322
|
|
- {posterVisible && (<Poster data={posterData} toggle={this.handleTogglePoster}></Poster>)}
|
323
|
|
- {
|
324
|
|
- loaded && (
|
325
|
|
- <Block>
|
326
|
|
- <ScrollView className="detail" scrollY>
|
327
|
|
- <View class="detail-title">{detail.newsName}</View>
|
328
|
|
- <View className="detail-stat">
|
329
|
|
- <View className='left-icon'>
|
330
|
|
- <View className='eye-num'><Text className="iconfont icon-eye"></Text>{detail.pvNum || 0}</View>
|
331
|
|
- {/* <View><Text className="iconfont icon-fenxiang1"></Text>{detail.shareNum || 0}</View> */}
|
332
|
|
- <View className='fenx'><Image src={require('@assets/person/fenxiang.png')} className='fenxiang1-img'></Image>{detail.shareNum || 0}</View>
|
333
|
|
- </View>
|
334
|
|
- <View>{dayjs(detail.createDate).format('YYYY-MM-DD')}</View>
|
335
|
|
- </View>
|
336
|
|
- {/* <Image mode="widthFix" style={{ width: '100%', marginTop: '20px' }} src={transferImage(detail.newsImg)}></Image> */}
|
337
|
|
- <View className="detail-con">
|
338
|
|
- {/* <richText nodes={detail.newsDetail} ></richText> */}
|
339
|
|
- <import src='../../../components/wxParse/wxParse.wxml' />
|
340
|
|
- <template is='wxParse' data='{{wxParseData:article.nodes}}' />
|
341
|
|
- </View>
|
342
|
|
- </ScrollView>
|
343
|
|
- <Notice></Notice>
|
344
|
|
- <BackHomeBtn style={consultShow ? "bottom:310rpx" : ''}></BackHomeBtn>
|
345
|
|
- {
|
346
|
|
- consultShow && <Consultant style="bottom:150rpx" smallStyle="bottom:178rpx" personId={personId} name={name || nickname} data={consultData}></Consultant>
|
347
|
|
- }
|
348
|
|
- <View className="bot-nav flex">
|
349
|
|
- <View className='btn poster-btn' style={{ display: posterShow }} onClick={() => { this.handleTogglePoster(true) }}>
|
350
|
|
- {/* <Text className="iconfont icon-xiazai"></Text> */}
|
351
|
|
- <Image src={require('@assets/news/tupian.png')} className='poster-img'></Image>
|
352
|
|
- <Text className="txt">海报</Text>
|
|
319
|
+ // <AuthorizationComponent>
|
|
320
|
+ <Block>
|
|
321
|
+ {/* 生成海报 */}
|
|
322
|
+ {posterVisible && (<Poster data={posterData} toggle={this.handleTogglePoster}></Poster>)}
|
|
323
|
+ {
|
|
324
|
+ loaded && (
|
|
325
|
+ <Block>
|
|
326
|
+ <ScrollView className="detail" scrollY>
|
|
327
|
+ <View class="detail-title">{detail.newsName}</View>
|
|
328
|
+ <View className="detail-stat">
|
|
329
|
+ <View className='left-icon'>
|
|
330
|
+ <View className='eye-num'><Text className="iconfont icon-eye"></Text>{detail.pvNum || 0}</View>
|
|
331
|
+ {/* <View><Text className="iconfont icon-fenxiang1"></Text>{detail.shareNum || 0}</View> */}
|
|
332
|
+ <View className='fenx'><Image src={require('@assets/person/fenxiang.png')} className='fenxiang1-img'></Image>{detail.shareNum || 0}</View>
|
353
|
333
|
</View>
|
354
|
|
- <Button className="btn share-btn" open-type="share">
|
355
|
|
- {/* <Text className="icon-fenxiang iconfont"></Text> */}
|
356
|
|
- <Image src={require('@assets/news/fasong.png')} className='fenxiang-img'></Image>
|
357
|
|
- <Text className="txt">分享</Text>
|
358
|
|
- </Button>
|
359
|
|
- <View className="btn collection-btn" onClick={this.handleFavor}>
|
360
|
|
- {
|
361
|
|
- isSaved ? (
|
362
|
|
- <Text className="iconfont icon-shoucang saved"></Text>
|
363
|
|
- ) : (
|
364
|
|
- <Text className="iconfont icon-shoucang1"></Text>
|
365
|
|
- )
|
366
|
|
- }
|
367
|
|
- <Text className="txt">收藏</Text>
|
368
|
|
- </View>
|
369
|
|
-
|
|
334
|
+ <View>{dayjs(detail.createDate).format('YYYY-MM-DD')}</View>
|
370
|
335
|
</View>
|
371
|
|
- </Block>
|
372
|
|
- )
|
373
|
|
- }
|
374
|
|
- </Block>
|
375
|
|
- </authorizationComponent>
|
|
336
|
+ {/* <Image mode="widthFix" style={{ width: '100%', marginTop: '20px' }} src={transferImage(detail.newsImg)}></Image> */}
|
|
337
|
+ <View className="detail-con">
|
|
338
|
+ {/* <richText nodes={detail.newsDetail} ></richText> */}
|
|
339
|
+ <import src='../../../components/wxParse/wxParse.wxml' />
|
|
340
|
+ <template is='wxParse' data='{{wxParseData:article.nodes}}' />
|
|
341
|
+ </View>
|
|
342
|
+ </ScrollView>
|
|
343
|
+ <Notice></Notice>
|
|
344
|
+ <BackHomeBtn style={consultShow ? "bottom:310rpx" : ''}></BackHomeBtn>
|
|
345
|
+ {
|
|
346
|
+ consultShow && <Consultant style="bottom:150rpx" smallStyle="bottom:178rpx" personId={personId} name={name || nickname} data={consultData}></Consultant>
|
|
347
|
+ }
|
|
348
|
+ <View className="bot-nav flex">
|
|
349
|
+ <View className='btn poster-btn' style={{ display: posterShow }} onClick={() => { this.handleTogglePoster(true) }}>
|
|
350
|
+ {/* <Text className="iconfont icon-xiazai"></Text> */}
|
|
351
|
+ <Image src={require('@assets/news/tupian.png')} className='poster-img'></Image>
|
|
352
|
+ <Text className="txt">海报</Text>
|
|
353
|
+ </View>
|
|
354
|
+ <Button className="btn share-btn" open-type="share">
|
|
355
|
+ {/* <Text className="icon-fenxiang iconfont"></Text> */}
|
|
356
|
+ <Image src={require('@assets/news/fasong.png')} className='fenxiang-img'></Image>
|
|
357
|
+ <Text className="txt">分享</Text>
|
|
358
|
+ </Button>
|
|
359
|
+ <View className="btn collection-btn" onClick={this.handleFavor}>
|
|
360
|
+ {
|
|
361
|
+ isSaved ? (
|
|
362
|
+ <Text className="iconfont icon-shoucang saved"></Text>
|
|
363
|
+ ) : (
|
|
364
|
+ <Text className="iconfont icon-shoucang1"></Text>
|
|
365
|
+ )
|
|
366
|
+ }
|
|
367
|
+ <Text className="txt">收藏</Text>
|
|
368
|
+ </View>
|
|
369
|
+
|
|
370
|
+ </View>
|
|
371
|
+ </Block>
|
|
372
|
+ )
|
|
373
|
+ }
|
|
374
|
+ </Block>
|
|
375
|
+ // </AuthorizationComponent>
|
376
|
376
|
)
|
377
|
377
|
}
|
378
|
378
|
}
|