particulars.wxml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <!--pages/particulars/particulars.wxml-->
  2. <view class="content">
  3. <scroll-view scroll-y="true" scroll-with-animation="true" scroll-with-animation="true" enable-back-to-top="true">
  4. <!-- 科学艺术 -->
  5. <view class="works">
  6. <view class="share-con">
  7. <view class="head">
  8. <view class="head-img">
  9. <image src="{{productionData.featureMap.headImgUrl}}"></image>
  10. </view>
  11. <view class="lesson-name">
  12. <text>{{productionData.featureMap.wechatName}}</text>
  13. <text class='content-data'>{{productionData.title}}</text>
  14. </view>
  15. </view>
  16. <view class="picture" wx:if="{{type == 2}}">
  17. <block wx:for="{{productionData.imagesList}}" wx:for-item="items" wx:key="{{items}}">
  18. <image mode="aspectFill" src="{{items}}" bindtap="listenerButtonPreviewImage" data-img="{{items}}"></image>
  19. </block>
  20. </view>
  21. <view class="icon" wx:if="{{type == 2}}">
  22. <view bindtap="like">
  23. <image src="../../pages/image/zan.png" class="zan" wx:if="{{like}}"></image>
  24. <image src="../../pages/image/nozan.png" class="zan" wx:else></image>
  25. <text>{{favors ? favors : '0'}}</text>
  26. </view>
  27. <view>
  28. <image src="../../pages/image/weatch.png" class="weatch"></image>
  29. <text>{{productionData.postsAttributeInfo ? productionData.postsAttributeInfo.views : '0'}}</text>
  30. </view>
  31. <view bindtap="discuss">
  32. <image src="../../pages/image/discuss.png" class="discuss"></image>
  33. <text>{{messageLength}}</text>
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. <view class="comment" >
  39. <view wx:for="{{discussDatas}}" wx:key="{{item.id}}">
  40. <text style="color: {{productionData.userId == item.userId ? '#000' : '#f7085e'}}">{{item.featureMap.wechatName}}:</text>
  41. <text>{{item.content}}</text>
  42. </view>
  43. </view>
  44. </scroll-view>
  45. </view>
  46. <view class="text">
  47. <image src="../../pages/image/input.png" class="input-img"></image>
  48. <view class="input-text">
  49. <input placeholder="请输入评论内容" value="{{text}}" bindinput="bindKeyInput" type="text" focus="{{hike}}"/>
  50. <view bindtap="sendText" data-id="{{productionData.id}}"></view>
  51. </view>
  52. </view>