particulars.wxml 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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 style="height: 30rpx; display: block;">{{time}}</text>
  14. <text class='content-data' style="display: block; color: #000; font-size: 36rpx; margin-top: 20rpx;">{{productionData.title}}</text>
  15. </view>
  16. </view>
  17. <view class="picture" wx:if="{{type == 2}}">
  18. <block wx:for="{{productionData.imagesList}}" wx:for-item="items" wx:key="{{items}}">
  19. <image mode="aspectFill" src="{{items}}" bindtap="listenerButtonPreviewImage" data-img="{{items}}"></image>
  20. </block>
  21. </view>
  22. <view class="icon" wx:if="{{type == 2}}">
  23. <view bindtap="like">
  24. <image src="../../pages/image/zan.png" class="zan" wx:if="{{like}}"></image>
  25. <image src="../../pages/image/nozan.png" class="zan" wx:else></image>
  26. <text>{{favors ? favors : '0'}}</text>
  27. </view>
  28. <view>
  29. <image src="../../pages/image/weatch.png" class="weatch"></image>
  30. <text>{{productionData.postsAttributeInfo ? productionData.postsAttributeInfo.views : '0'}}</text>
  31. </view>
  32. <view bindtap="discuss">
  33. <image src="../../pages/image/discuss.png" class="discuss"></image>
  34. <text>{{messageLength}}</text>
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. <view class="comment" >
  40. <view wx:for="{{discussDatas}}" wx:key="{{item.id}}" style="border-bottom: 1rpx solid #ccc;padding-bottom: 10rpx;">
  41. <view style="color: {{productionData.userId == item.userId ? '#000' : '#f7085e'}}">{{item.featureMap.wechatName ? item.featureMap.wechatName : '方老师'}}</view>
  42. <view style="height: 30rpx; display: block; color: #C3C3C3">{{discussTime[index]}}</view>
  43. <view style="margin-top: 20rpx;">{{item.content}}</view>
  44. </view>
  45. </view>
  46. </scroll-view>
  47. </view>
  48. <view class="text">
  49. <image src="../../pages/image/input.png" class="input-img"></image>
  50. <view class="input-text">
  51. <input placeholder="请输入评论内容" value="{{text}}" bindinput="bindKeyInput" type="text" focus="{{hike}}"/>
  52. <view bindtap="sendText" data-id="{{productionData.id}}"></view>
  53. </view>
  54. </view>