chat.wxml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 class="head">
  12. <view class="head-img">
  13. <image src="{{item.featureMap.headImgUrl}}"></image>
  14. </view>
  15. <view class="lesson-name">
  16. <text>{{item.featureMap.wechatName}}</text>
  17. <text style="height: 100%">{{item.title}}</text>
  18. </view>
  19. <view class="share-up-box" wx:if="{{type == 2}}" bindtap="shareImage" data-postsId="{{item.id}}">
  20. <image class="share_up" src="../../pages/image/share_up.png"></image>
  21. </view>
  22. <image wx:if="{{type == 1}}" class="message" src="../../pages/image/message.png"></image>
  23. </view>
  24. <view class="picture" wx:if="{{type == 2}}">
  25. <block wx:for="{{item.imagesList}}" wx:for-item="items" wx:key="{{items.id}}">
  26. <image src="{{items.path}}" bindtap="listenerButtonPreviewImage" data-img="{{items.path}}"></image>
  27. </block>
  28. </view>
  29. <view class="icon">
  30. <view>
  31. <image src="../../pages/image/zan.png" class="zan"></image>
  32. <text>{{item.postsAttributeInfo ? item.postsAttributeInfo.favors : '0'}}</text>
  33. </view>
  34. <view>
  35. <image src="../../pages/image/weatch.png" class="weatch"></image>
  36. <text>{{item.postsAttributeInfo ? item.postsAttributeInfo.views : '0'}}</text>
  37. </view>
  38. <view>
  39. <image src="../../pages/image/discuss.png" class="discuss"></image>
  40. <text>{{item.replyCount}}</text>
  41. </view>
  42. </view>
  43. <discuss discussData="{{item.replyList}}" uid="{{item.userId}}" postsId="{{item.id}}" id="discuss" type="{{type}}"/>
  44. </view>
  45. <view class="more" bindtap="examine">查看更多</view>
  46. </view>
  47. <view class="no-con" wx:if="{{!productionData.list && type == 2}}">
  48. <view class="state">你还没有上传作品</view>
  49. <view class="upload-works" bindtap="uploadImage">
  50. <image src="../../pages/image/work_box.png" class="work-box"></image>
  51. <image src="../../pages/image/uploading_works.png" class="uploading-works"></image>
  52. <text>上传作品</text>
  53. </view>
  54. </view>
  55. <view class="no-con" wx:if="{{!productionData.list && type == 1}}">
  56. <view class="state">你还没有提问过问题</view>
  57. <view class="upload-works" bindtap="uploadImage">
  58. <image src="../../pages/image/work_box.png" class="work-box"></image>
  59. <image src="../../pages/image/questions.png" class="uploading-works"></image>
  60. <text>提问问题</text>
  61. </view>
  62. </view>
  63. </view>
  64. <share wx:if="{{type == 2}}" id="share"/>