details.wxml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <!--pages/details/details.wxml-->
  2. <view class="details">
  3. <view class="details-video">
  4. <video id="myVideo" src="{{playUrl}}" bindplay="addHistory" bindended="endplay" controls page-gesture objectFit="fill" autoplay></video>
  5. </view>
  6. <view class="menu">
  7. <view class="menu-item" style="width: 116rpx;" bindtap="favorites">
  8. <image src="{{favoritesFlag ? '../../static/image/Collection.png' : '../../static/image/no-Collection.png'}}"></image>
  9. </view>
  10. <view class="menu-item">
  11. <button open-type="share" plain><image src="../../static/image/share.png"></image></button>
  12. </view>
  13. <view class="menu-item" bindtap="commentAnthology">
  14. <image src="../../static/image/Anthology.png"></image>
  15. </view>
  16. <view class="menu-item" bindtap="commentDetails">
  17. <image src="../../static/image/details.png"></image>
  18. </view>
  19. </view>
  20. <scroll-view class="details-scroll" scroll-y>
  21. <view class="comment">
  22. <view class="anthology" hidden="{{anthologyHide}}">
  23. <view wx:for="{{courseWareList}}" wx:key="{{index}}" bindtap="Anthology" data-index="{{index}}" class="collection {{index === currentVideo ? 'current' : ''}}">
  24. {{index + 1}}
  25. </view>
  26. </view>
  27. <view class="comment-details" hidden="{{detailsHide}}">
  28. {{summary}}
  29. </view>
  30. <view class="pinglun" hidden="{{!hide}}" bindtap="pinglun">点击参与评论</view>
  31. <view class="input-box" hidden="{{hide}}">
  32. <input placeholder="在这里输入你想说的话" type='text' maxlength="-1" bindinput="focus" value="{{str}}"/>
  33. <view class="btn">
  34. <view class="no" bindtap="no">放弃</view>
  35. <view class="yes" bindtap="yes">发送</view>
  36. </view>
  37. </view>
  38. <view class="content-speak" wx:for="{{postsList}}" wx:key="{{index}}">
  39. <view class="information-item">
  40. <image class="head" src="{{item.user.avatar ? item.user.avatar : '../../static/image/default.png'}}"></image>
  41. <view class="name">
  42. <text>{{item.user.nickName}}</text>
  43. <text>{{dateArr[index]}}</text>
  44. </view>
  45. </view>
  46. <view class="language">
  47. {{item.detailDesc}}
  48. </view>
  49. </view>
  50. </view>
  51. </scroll-view>
  52. </view>