You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
2.1 KiB
36 lines
2.1 KiB
<!-- pages/vocal/detail.wxml -->
|
|
<view class="detail-container">
|
|
<view class="vocal-detail">
|
|
<view class="vocal-header">
|
|
<view class="vocal-header-title">{{detailInfo.articleTitle}}</view>
|
|
<view class="vocal-header-tips">
|
|
<view class="header-tips">{{detailInfo.publishUnitDesc}}</view>
|
|
<view class="header-tips">{{detailInfo.publishDate}}</view>
|
|
</view>
|
|
</view>
|
|
<view class="detail-content">
|
|
<view class="detail-list">
|
|
<view class="detail-item" wx:for="{{detailInfo.articleContentList}}" wx:key="{{index}}">
|
|
<text wx:if="{{item.contentType=='text'}}">{{item.content}}</text>
|
|
<rich-text wx:elif="{{item.contentType=='rich_text'}}" class="rich-text" nodes="{{item.content}}" space="{{'nbsp'}}"></rich-text>
|
|
<!-- <image wx:if="{{item.contentType=='img'}}" mode="widthFix" src="{{item.content}}" /> -->
|
|
<image wx:elif="{{item.contentType === 'img'}}" src="{{item.content}}" mode="widthFix" />
|
|
<video wx:elif="{{item.contentType === 'video'}}" src="{{item.content}}" mode="widthFix" />
|
|
<view wx:else class="detail-item-file" data-src="{{item.content}}" data-name="{{item.fileName}}" bind:tap="handleDocument" >
|
|
<image src="../../assets/images/fujian.png" />
|
|
<text>{{item.fileName}}</text>
|
|
</view>
|
|
</view>
|
|
<!-- <view class="detail-account">阅读量 {{detailInfo.visitRecordCount}}</view> -->
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="detail-footer" wx:if="{{tags.length>0}}">
|
|
<view class="detail-tag detail-flex" wx:if="{{tags.length>0}}">
|
|
<view class="detail-tag-label detail-flex-label">标签</view>
|
|
<view class="item-tags detail-flex-text">
|
|
<view class="item-tags-one" wx:for="{{tags}}" wx:key="{{index}}">{{item}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|