<view class="header">
    <view class="title multi-line">{{detailsData.title}}</view>
    <view class="display-data">
        <view>{{detailsData.changedate}}</view>
        <view>
            <text>浏览：{{detailsData.readcount}}</text>
            <text>分享：{{detailsData.sharecount}}</text>
            <text>拉新：{{detailsData.newcount}}</text>
        </view>
    </view>
</view>
<view style="height: 20rpx;" />
<!-- 图文 -->
<block wx:if="{{dataType==3}}">
    <view class="explain" wx:if="{{detailsData.content}}">
        <mp-html content="{{detailsData.content}}" />
    </view>
</block>
<!-- 媒体 -->
<block wx:else>
    <view style="width: 690rpx; margin: 0 auto;" wx:for="{{detailsData.attinfos}}">
        <van-image wx:if="{{item.fileType=='image'}}" width="690rpx" fit='widthFix' data-item="{{item}}" bindtap="openFile" radius='16rpx' src="{{item.url}}" lazy-load />
        <video class="video" wx:elif="{{item.fileType=='video'}}" style="width: 690rpx; margin: 0 auto; border-radius: 16rpx;" src="{{item.url}}" />
        <view wx:else>未知文件</view>
        <view style="height:20rpx;" />
    </view>
</block>

<view style="height: 60px;" />

<view class="footer">
    <van-button custom-class='footer-button' open-type='share' color="var(--warning)">分享</van-button>
</view>

<!-- 弹窗 -->
<van-popup show="{{ popupShow }}" custom-class='popup-style' zIndex='9999999999999999999' round bind:close="onClose">
    <view class="title">提示</view>
    <view class="content">帮助完善用户信息</view>
    <view bindtap="addNew">
        <van-button custom-class='button' open-type='getPhoneNumber' bindgetphonenumber='getphonenumber'>确认</van-button>
    </view>
</van-popup>