communityDetail.wxml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <view class="content">
  2. <view class="user-info">
  3. <van-image width="70rpx" height="70rpx" round src="{{newData.picUrl}}" fit="cover" class="user-avater"/>
  4. <view class='user-des'>
  5. <view class="user-name">{{newData.stuName}}</view>
  6. </view>
  7. </view>
  8. <view class="other-info">
  9. <view class="info" wx:if='{{newData.lessonType}}'>
  10. <view class="key">课程类型:</view>
  11. <view class="value">{{newData.lessonType}}</view>
  12. </view>
  13. <view class="info" wx:if='{{newData.trainForm}}'>
  14. <view class="key">培训形式:</view>
  15. <view class="value">{{newData.trainForm}}</view>
  16. </view>
  17. <view class="info" wx:if='{{newData.trainDirect}}'>
  18. <view class="key">培训方向:</view>
  19. <view class="value">{{newData.trainDirect}}</view>
  20. </view>
  21. <view class="info" wx:if='{{newData.trainTime}}'>
  22. <view class="key">培训时长:</view>
  23. <view class="value">{{newData.trainTime}}天</view>
  24. </view>
  25. <view class="info" wx:if='{{newData.trainRate}}'>
  26. <view class="key">培训频率:</view>
  27. <view class="value">{{newData.trainRate}}次/年</view>
  28. </view>
  29. <view class="info" wx:if='{{newData.contentTitle}}'>
  30. <view class="key">类型分类:</view>
  31. <view class="value">{{newData.contentTitle}}</view>
  32. </view>
  33. </view>
  34. <view class="message">
  35. {{newData.imgDesc || newData.issues || ""}}
  36. </view>
  37. <view class="res">
  38. <van-uploader
  39. wx-if="{{newData.attachmentType==uploadResTypesEnum.IMAGE && newData.attachmentUrlList.length > 0}}"
  40. file-list="{{ newData.attachmentUrlList }}"
  41. preview-size="160rpx" accept="{{accept}}" deletable="{{ false }}"
  42. max-count="{{newData.attachmentUrlList.length}}">
  43. </van-uploader>
  44. <view wx-if="{{newData.attachmentType==uploadResTypesEnum.VIDEO && newData.attachmentUrlList.length > 0}}">
  45. <video id="myVideo" enable-play-gesture
  46. src="{{newData.attachmentUrlList[0]}}" show-play-btn="ture"
  47. show-mute-btn controls>
  48. </video>
  49. </view>
  50. </view>
  51. <view class="time">
  52. <view class="time-text">{{newData.createTime}}</view>
  53. </view>
  54. <edu-loadmore emptyTxt="空空如也,快去评论吧!" isEmpty="{{rows.length == 0}}" isRefresh="{{isRefresh}}"
  55. isLoading="{{isLoading}}" isComplete="{{noMore}}">
  56. <message-card id="list{{index}}" bind:play="play" wx:for="{{rows}}" wx:key="index" item="{{item}}"
  57. index='{{index}}'></message-card>
  58. <edu-safe-area/>
  59. </edu-loadmore>
  60. <view style="height:100rpx"></view>
  61. </view>
  62. <bottom-reply class="bottom-reply" bind:message="reply" wx:if="{{isPre == logicStatusEnum.NO}}"/>