|
|
|
@ -97,9 +97,10 @@ const article: FC = () => { |
|
|
|
|
onUpdate={onCollect} |
|
|
|
|
/> |
|
|
|
|
</View> |
|
|
|
|
<View className='flex flex-column justify-center align-center' onClick={() => setShow(true)}> |
|
|
|
|
<Image src={catalogue} mode='widthFix' style={{width: '40rpx', height: '40rpx'}}/> |
|
|
|
|
<View>目录</View> |
|
|
|
|
<View className='flex flex-column justify-center align-center text-center px-10' |
|
|
|
|
onClick={() => setShow(true)}> |
|
|
|
|
<Image src={catalogue} mode='widthFix' style={{width: '36rpx', height: '36rpx', marginBottom: '8rpx'}}/> |
|
|
|
|
<View className='font-26'>目录</View> |
|
|
|
|
</View> |
|
|
|
|
</View> |
|
|
|
|
} |
|
|
|
@ -110,12 +111,12 @@ const article: FC = () => { |
|
|
|
|
style={{ |
|
|
|
|
height: !token ? globalData.pageHeight - 60 + 'px' : 'auto', |
|
|
|
|
overflow: !token ? 'hidden' : 'auto', |
|
|
|
|
boxSizing:'border-box' |
|
|
|
|
boxSizing: 'border-box' |
|
|
|
|
}}> |
|
|
|
|
<View id="childrenNode"> |
|
|
|
|
<View className={styles.articleTitle}>{articleInfo?.title}</View> |
|
|
|
|
{ |
|
|
|
|
articleInfo?.brands?.map(d => ( |
|
|
|
|
articleInfo?.owner_type === 1 && articleInfo?.brands?.map(d => ( |
|
|
|
|
<View className='flex align-center mb-4'> |
|
|
|
|
<View className={`${styles.article} flex-1`}> |
|
|
|
|
<Img src={d.logo} width={80} height={80} className={styles.articleImag} errorType='avatar'/> |
|
|
|
@ -141,6 +142,34 @@ const article: FC = () => { |
|
|
|
|
</View> |
|
|
|
|
)) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
articleInfo?.owner_type === 2 && articleInfo?.illness?.map(d => ( |
|
|
|
|
<View className='flex align-center mb-4'> |
|
|
|
|
<View className={`${styles.article} flex-1`}> |
|
|
|
|
<Img src={''} width={80} height={80} className={styles.articleImag} errorType='health'/> |
|
|
|
|
<View className='ml-2'> |
|
|
|
|
<View>{d?.name}</View> |
|
|
|
|
<View className='flex mt-1 text-muted font-24'> |
|
|
|
|
<View className='mr-2'>{beforeTime(articleInfo?.created_at)} . </View> |
|
|
|
|
<View>阅读 {articleInfo.page_view || 1}</View> |
|
|
|
|
</View> |
|
|
|
|
</View> |
|
|
|
|
</View> |
|
|
|
|
<View className='ml-2'> |
|
|
|
|
<Collect |
|
|
|
|
select={articleInfo?.collect} |
|
|
|
|
styles={{flexDirection: 'column', justifyContent: 'center', padding: '20rpx'}} |
|
|
|
|
stylesImage={{margin: '0 0 8rpx 0'}} |
|
|
|
|
owner_id={Number(id)} |
|
|
|
|
owner_type={1} |
|
|
|
|
textHidden |
|
|
|
|
onUpdate={onCollect} |
|
|
|
|
/> |
|
|
|
|
</View> |
|
|
|
|
</View> |
|
|
|
|
)) |
|
|
|
|
} |
|
|
|
|
{ |
|
|
|
|
children.length > 0 |
|
|
|
|
? <View>{children}</View> |
|
|
|
|