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.
116 lines
5.1 KiB
116 lines
5.1 KiB
<view wx:if="{{iniLoading}}" class="detail-container">
|
|
<view class="detail-header">
|
|
<view class="header-top">
|
|
<view class="header-title">
|
|
<text >{{info.title}}</text>
|
|
</view>
|
|
<image wx:if="{{info.collectionFlag == '1'}}" src="../../images/collectOn.png" bind:tap="handleCollect" />
|
|
<image wx:else src="../../images/collectbig.png" bind:tap="handleCollect" />
|
|
</view>
|
|
<view class="header-bot">发布单位:{{info.orgName}}</view>
|
|
</view>
|
|
|
|
<view class="wrapper">
|
|
<view class="tabs-list">
|
|
<view wx:for="{{tabsList}}" wx:key="id" data-id="{{item.id}}" class="tabs-item {{ current === index && 'tabs-on'}}" bind:tap="handleTabs">
|
|
{{item.name}}
|
|
</view>
|
|
<!-- <view class="tabs-item">附件目录</view> -->
|
|
</view>
|
|
|
|
<swiper class="m-swiper_list"
|
|
style="height: {{swiperH}}"
|
|
current="{{ current }}"
|
|
bindchange="handleSwiperChange">
|
|
<swiper-item>
|
|
<scroll-view style="width: 100%;height: 100%;" scroll-y="{{true}}">
|
|
<view wx:if="{{info.moduleList.length > 0 || info.externalLinks.length > 0}}" class="cell-list">
|
|
|
|
<view class="cell"
|
|
wx:for="{{info.moduleList}}"
|
|
wx:key="moduleId"
|
|
>
|
|
<view class="cell-top" data-index="{{index}}" bind:tap="handleCell">
|
|
<view class="cell-label">{{item.moduleName}}</view>
|
|
<image src="../../images/arrow-right.png" />
|
|
</view>
|
|
<view wx:if="{{item.moduleContent}}" class="cell-bot {{item.isOpen && 'cell-bot-show'}}">
|
|
<!-- <text >{{item.moduleContent}}</text> -->
|
|
<view class="cell-bot-content">
|
|
<rich-text class="rich-text" nodes="{{item.moduleContent}}" space="{{'nbsp'}}"></rich-text>
|
|
</view>
|
|
|
|
</view>
|
|
</view>
|
|
|
|
<view wx:if="{{info.externalLinks.length > 0}}" class="cell">
|
|
<view class="cell-top" bind:tap="handleOpenLink">
|
|
<view class="cell-label">详情链接</view>
|
|
<image src="../../images/arrow-right.png" />
|
|
</view>
|
|
<view wx:if="{{info.externalLinks[0].description}}" class="cell-bot {{info.externalLinks[0].isOpen && 'cell-bot-show'}}">
|
|
<!-- <text >{{item.moduleContent}}</text> -->
|
|
<view class="cell-bot-content">
|
|
<rich-text nodes="{{info.externalLinks[0].description}}"></rich-text>
|
|
</view>
|
|
<view class="cell-link" bind:tap="handleLink">
|
|
链接:<text style="color: #0089ff;">{{info.externalLinks[0].externalLink}}</text>
|
|
</view>
|
|
<view class="cell-tips">
|
|
<text >如链接无法正常打开,请复制链接到浏览器中打开</text>
|
|
<view data-url="{{info.externalLinks[0].externalLink}}" bind:tap="handleCliboard">复制</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
</view>
|
|
<!-- <view wx:else class="no-data">暂无信息</view> -->
|
|
<view wx:else class="m-nothing">
|
|
暂无信息
|
|
<!-- <image mode="aspectFill" class="arrow"
|
|
src="/assets/images/common/nothing.png" /> -->
|
|
</view>
|
|
|
|
</scroll-view>
|
|
</swiper-item>
|
|
<swiper-item>
|
|
<scroll-view style="width: 100%;height: 100%;" scroll-y="{{true}}">
|
|
<view wx:if="{{info.attachmentList.length > 0 }}" class="file-list">
|
|
|
|
<view wx:for="{{info.attachmentList}}" wx:key="url"
|
|
class="file-item" data-index="{{index}}" bind:tap="handleOpenDocument">
|
|
<image wx:if="{{item.type == 'docx' || item.type == 'doc'}}" src="../../images/upload/word.png" />
|
|
<image wx:elif="{{item.type == 'xlsx' || item.type == 'xls'}}" src="../../images/upload/excel.png" />
|
|
<image wx:elif="{{item.type == 'pdf' || item.type == 'pdfx'}}" src="../../images/upload/pdf.png" />
|
|
<image wx:elif="{{item.type == 'ppt' || item.type == 'pptx'}}" src="../../images/upload/ppt.png" />
|
|
<image wx:elif="{{item.type == 'video'}}" src="../../images/upload/video.png" />
|
|
<text >{{item.name}}</text>
|
|
</view>
|
|
|
|
<!-- <view class="file-item">
|
|
<image src="../../images/upload/pdf.png" />
|
|
<text >文件名文件名文件名文件名文件名.doc</text>
|
|
</view>
|
|
|
|
<view class="file-item">
|
|
<image src="../../images/upload/ppt.png" />
|
|
<text >文件名文件名文件名文件名文件名.doc</text>
|
|
</view> -->
|
|
|
|
</view>
|
|
<view wx:else class="m-nothing">
|
|
暂无附件
|
|
<!-- <image mode="aspectFill" class="arrow"
|
|
src="/assets/images/common/nothing.png" /> -->
|
|
</view>
|
|
|
|
</scroll-view>
|
|
</swiper-item>
|
|
|
|
</swiper>
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
<loading showed="{{!iniLoading}}" />
|