chat.wxml 4.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <!--compontents/chat/chat.wxml-->
  2. <view class="works">
  3. <view class="title">
  4. <image src="../../pages/image/xing.png" class="xing"></image>
  5. <text class="">{{title}}</text>
  6. <image src="../../pages/image/xing.png" class="xing"></image>
  7. <text class="uploading" bindtap="uploadImage" wx:if="{{productionData.list && query}}">{{query}}</text>
  8. </view>
  9. <view wx:if="{{productionData.list}}">
  10. <view class="share-con" wx:for="{{productionData.list}}" wx:key="{{index}}">
  11. <view bindtap="particulars" data-postsId="{{item.id}}" data-type="{{type}}">
  12. <view class="head">
  13. <view class="head-img">
  14. <image src="{{item.featureMap.headImgUrl}}"></image>
  15. </view>
  16. <view class="lesson-name">
  17. <text style="width: 40%; overflow: hidden; diaplay: inline-block; height: 50rpx; text-overflow: ellipsis; white-space:nowrap;">{{item.featureMap.wechatName}}</text>
  18. <text class="content-data" style="height: 100%">{{item.title}}</text>
  19. <text>{{timeList[index]}}</text>
  20. </view>
  21. <view wx:if="{{type == 1 && (item.currentReplyCount > 0)}}" class="message"></view>
  22. <view wx:if="{{item.isTop > 0}}" class="Stick">
  23. <image style="width: 56rpx; height: 56rpx;" src="../../pages/image/zhiding1.png"></image>
  24. </view>
  25. <view wx:else class="Stick">
  26. <image style="width: 56rpx; height: 56rpx;" src="../../pages/image/zhiding2.png"></image>
  27. </view>
  28. </view>
  29. <view class="operation" wx:if="{{teacher == 1}}">
  30. <image src="../../pages/image/del.png" catchtap="setMessage" data-id="{{item.id}}" data-type="status" data-ind="{{index}}"></image>
  31. <image src="../../pages/image/top.png" catchtap="setMessage" data-id="{{item.id}}" data-type="isTop" data-ind="{{index}}"></image>
  32. </view>
  33. <view class="picture" wx:if="{{type == 2}}">
  34. <block wx:for="{{item.imagesList}}" wx:for-item="items" wx:key="{{items}}">
  35. <image mode="aspectFill" src="{{items}}" catchtap="listenerButtonPreviewImage" data-img="{{items}}" bindload="imageLoad"></image>
  36. </block>
  37. </view>
  38. <view class="icon" wx:if="{{type == 2}}">
  39. <view>
  40. <image src="../../pages/image/zan.png" class="zan"></image>
  41. <text>{{item.postsAttributeInfo ? item.postsAttributeInfo.favors : '0'}}</text>
  42. </view>
  43. <view>
  44. <image src="../../pages/image/weatch.png" class="weatch"></image>
  45. <text>{{item.postsAttributeInfo ? item.postsAttributeInfo.views : '0'}}</text>
  46. </view>
  47. <view>
  48. <image src="../../pages/image/discuss.png" class="discuss"></image>
  49. <text>{{item.replyCount}}</text>
  50. </view>
  51. </view>
  52. </view>
  53. <!--分享按钮 -->
  54. <view class="share-up-box" wx:if="{{type == 2}}" bindtap="shareImage" data-postsId="{{item.id}}" data-imgUrl="{{item.imagesList}}" data-featureMap="{{item.featureMap}}" data-title="{{item.title}}">
  55. <image class="share_up" src="../../pages/image/share_up.png"></image>
  56. </view>
  57. </view>
  58. <view class="more" wx:if="{{more}}" bindtap="examine">查看更多</view>
  59. </view>
  60. <view class="no-con" wx:if="{{(productionData.list.length === 0) && type == 2}}">
  61. <view class="state">你还没有上传作品</view>
  62. <view class="upload-works" bindtap="uploadImage">
  63. <image src="../../pages/image/work_box.png" class="work-box"></image>
  64. <image src="../../pages/image/uploading_works.png" class="uploading-works"></image>
  65. <text>上传作品</text>
  66. </view>
  67. </view>
  68. <view class="no-con" wx:if="{{(productionData.list.length === 0) && type == 1}}">
  69. <view class="state">你还没有提问过问题</view>
  70. <view class="upload-works" bindtap="uploadImage">
  71. <image src="../../pages/image/work_box.png" class="work-box"></image>
  72. <image src="../../pages/image/questions.png" class="uploading-works"></image>
  73. <text>提问问题</text>
  74. </view>
  75. </view>
  76. </view>
  77. <share wx:if="{{type == 2}}" id="share"/>