chat.wxml 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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}}</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>{{item.featureMap.wechatName}}</text>
  18. <text class="content-data" style="height: 100%">{{item.title}}</text>
  19. </view>
  20. <view wx:if="{{type == 1 && (item.currentReplyCount > 0)}}" class="message"></view>
  21. </view>
  22. <view class="picture" wx:if="{{type == 2}}">
  23. <block wx:for="{{item.imagesList}}" wx:for-item="items" wx:key="{{items}}">
  24. <image mode="aspectFill" src="{{items}}" catchtap="listenerButtonPreviewImage" data-img="{{items}}"></image>
  25. </block>
  26. </view>
  27. <view class="icon" wx:if="{{type == 2}}">
  28. <view>
  29. <image src="../../pages/image/zan.png" class="zan"></image>
  30. <text>{{item.postsAttributeInfo ? item.postsAttributeInfo.favors : '0'}}</text>
  31. </view>
  32. <view>
  33. <image src="../../pages/image/weatch.png" class="weatch"></image>
  34. <text>{{item.postsAttributeInfo ? item.postsAttributeInfo.views : '0'}}</text>
  35. </view>
  36. <view>
  37. <image src="../../pages/image/discuss.png" class="discuss"></image>
  38. <text>{{item.replyCount}}</text>
  39. </view>
  40. </view>
  41. </view>
  42. <!--分享按钮 -->
  43. <!--暂时注释海报分享功能改为直接分享
  44. <view class="share-up-box" wx:if="{{type == 2}}" bindtap="shareImage" data-postsId="{{item.id}}">
  45. <image class="share_up" src="../../pages/image/share_up.png"></image>
  46. </view>
  47. -->
  48. <button class='transmit' open-type="share" id="transmit" data-userId="{{userId}}" data-postId="{{item.id}}" wx:if="{{type == 2}}">
  49. <image class="share_up" src="../../pages/image/share_up.png"></image>
  50. </button>
  51. </view>
  52. <view class="more" wx:if="{{more}}" bindtap="examine">查看更多</view>
  53. </view>
  54. <view class="no-con" wx:if="{{!productionData.list && type == 2}}">
  55. <view class="state">你还没有上传作品</view>
  56. <view class="upload-works" bindtap="uploadImage">
  57. <image src="../../pages/image/work_box.png" class="work-box"></image>
  58. <image src="../../pages/image/uploading_works.png" class="uploading-works"></image>
  59. <text>上传作品</text>
  60. </view>
  61. </view>
  62. <view class="no-con" wx:if="{{!productionData.list && type == 1}}">
  63. <view class="state">你还没有提问过问题</view>
  64. <view class="upload-works" bindtap="uploadImage">
  65. <image src="../../pages/image/work_box.png" class="work-box"></image>
  66. <image src="../../pages/image/questions.png" class="uploading-works"></image>
  67. <text>提问问题</text>
  68. </view>
  69. </view>
  70. </view>
  71. <share wx:if="{{type == 2}}" id="share"/>