1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- <!--pages/newDetail/newDetail.wxml-->
- <view class="new-detail">
- <block wx:if="{{!isFullScreen}}">
- <nav-bar class="nav-bar" title="留学daily"></nav-bar>
- </block>
- <view id="contentID">
- <view wx:if="{{detailData && detailData.videoUrl && detailData.videoUrl.length}}">
- <view class="video-placeholder" hidden="{{videoLoad}}">加载中...</view>
- <video hidden="{{!videoLoad}}" id="myVideo" class="video" src="{{ detailData.videoUrl || '' }}" controls
- object-fit="contain" poster="{{ detailData.videoCoverImgUrl }}" bind:loadedmetadata="loadedVideoMetaData"
- bind:fullscreenchange="fullscreenVideochange"></video>
- </view>
- <view class="continer" wx:if="{{detailData}}">
- <block wx:if="{{ detailData.type !== 1 }}">
- <user-card layout-type="{{detailData.type == 3 ? 1 : 3}}" author-info="{{detailData.authorInfo}}"
- time="{{detailData.createTimeText}}" is-like="{{detailData.isAttention}}" is-author="{{detailData.isAuthor}}">
- </user-card>
- <text class="video-title">{{ detailData.title || detailData.content }}</text>
- <block wx:if="{{detailData.type == 3 && detailData.imgsUrl && detailData.imgsUrl.length}}">
- <view class="imgs-wrap">
- <image class="img" wx:for="{{detailData.imgsUrl}}" wx:key="index" mode="widthFix" src="{{item}}"
- data-current-item="{{item}}" bind:tap="tapPreviewImage"></image>
- </view>
- </block>
- </block>
- <block wx:else>
- <text class="title">{{ detailData.title }}</text>
- <user-card layout-type="{{detailData.type == 3 ? 1 : 3}}" author-info="{{detailData.authorInfo}}"
- time="{{detailData.createTimeText}}" is-like="{{detailData.isAttention}}" is-author="{{detailData.isAuthor}}">
- </user-card>
- <block wx:if="{{ detailData.content && detailData.content.length}}">
- <!-- bind:parse="htmlParser" bind:load="htmlParserLoad" -->
- <parser class="parser" html="{{ detailData.content }}">
- </parser>
- </block>
- </block>
- <tags-card tag-list="{{detailData.tagList}}"></tags-card>
- </view>
- </view>
- <message-headline wx:if="{{detailData}}" id="messageID" num="{{totalCount}}">
- </message-headline>
- <block wx:if="{{commentList.length}}">
- <comment-cell bind:reply="tapReplyAction" bind:delete="tapDeleteAction" wx:for="{{commentList}}"
- showLine="{{index != commentList.length - 1}}" data="{{item}}" data-current-index="{{index}}" wx:key="index">
- </comment-cell>
- </block>
- <empty wx:if="{{isEmpty}}" tips="还没有任何人评论哦" is-fixed="{{false}}"></empty>
- <message-textarea wx:if="{{showInput}}" reply-name="{{replyName}}" is-author="{{isAuthor}}" autofocus="{{showInput}}"
- inputValue="{{inputValue}}" bindblur="onBlur" bind:send="sendCommentAction">
- </message-textarea>
- <bottom-tabs wx:if="{{!isFullScreen && detailData}}" sub-id="{{newId}}" like-num="{{likeNum}}"
- comment-num="{{ totalCount }}" is-like="{{detailData.isLike}}" is-author="{{detailData.isAuthor}}"
- bind:like="handleLikeAction" bind:reply="tapReplyAction" bind:message="tapMessageAction"
- bind:poster="handleGeneratePoster">
- </bottom-tabs>
- <cover-view wx:if="{{isShowPostMask}}" catchtouchmove="true" class='mask'>
- <cover-view class="mask-container">
- <cover-image class="post-img" bind:load="shareQRImgLoad" src='{{shareQRImgSrc}}'></cover-image>
- <cover-view wx:if="{{shareQRImgLoad}}" class="save-btn">已保存到相册,快去分享吧</cover-view>
- </cover-view>
- <cover-image class="pose-close-img" bindtap='postMaskHide' src="../../images/close.png"></cover-image>
- </cover-view>
- <poster wx:if="{{isShowQRPoster}}" obj="{{extendObj}}" barcodeImgUrl="{{postImgSrc}}"></poster>
- <view wx:if="{{isShowCanvas}}" class="canvas-conatiner">
- <painter palette="{{template}}" bind:imgOK="onImgOK" />
- </view>
- </view>
|