chat.wxml 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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}}" bindload="imageLoad"></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. <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}}">
  44. <image class="share_up" src="../../pages/image/share_up.png"></image>
  45. </view>
  46. </view>
  47. <view class="more" wx:if="{{more}}" bindtap="examine">查看更多</view>
  48. </view>
  49. <view class="no-con" wx:if="{{(productionData.list.length === 0) && type == 2}}">
  50. <view class="state">你还没有上传作品</view>
  51. <view class="upload-works" bindtap="uploadImage">
  52. <image src="../../pages/image/work_box.png" class="work-box"></image>
  53. <image src="../../pages/image/uploading_works.png" class="uploading-works"></image>
  54. <text>上传作品</text>
  55. </view>
  56. </view>
  57. <view class="no-con" wx:if="{{(productionData.list.length === 0) && type == 1}}">
  58. <view class="state">你还没有提问过问题</view>
  59. <view class="upload-works" bindtap="uploadImage">
  60. <image src="../../pages/image/work_box.png" class="work-box"></image>
  61. <image src="../../pages/image/questions.png" class="uploading-works"></image>
  62. <text>提问问题</text>
  63. </view>
  64. </view>
  65. </view>
  66. <share wx:if="{{type == 2}}" id="share"/>