articleDetails.wxml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <view class="wrp row crosscenter borbot" bindtap="hideComments">
  2. <view class="circle">
  3. <image src="{{article.avatar}}" mode="scaleToFill" class="avatar"></image>
  4. </view>
  5. <text class="txtsub">{{article.nickname}}</text>
  6. </view>
  7. <view bindtap="hideComments" class="gaptop">
  8. <swiper indicator-dots autoplay circular style="height:240px; background: #000">
  9. <swiper-item item-id="{{index}}" wx:for="{{imgList}}" wx:key bindtap="clickPic" data-i="{{index}}">
  10. <image class="fullx" src="{{imgUrl + item}}" mode="aspectFit" id="img{{index}}"></image>
  11. <view id="fake{{index}}"></view>
  12. </swiper-item>
  13. </swiper>
  14. </view>
  15. <view class="wrp" style="min-height: 6em" bindtap="hideComments">
  16. <text>{{article.articleContent}}</text>
  17. </view>
  18. <view class="bortop commentsContatiner {{allowComments?'':'hide'}} fg shadow">
  19. <view class="comment row textsub wrp">
  20. <view class="row flexible crosscenter input">
  21. <image src="../../../imgs/input.png" mode="scaleToFill"></image>
  22. <input placeholder="说点什么..." cursor-spacing="10" class="flexible" bindfocus="focusComment" bindblur="blurComment" bindinput="inputComment" value="{{comment}}" confirm-type="done" bindconfirm="clickCommentconfirm"></input>
  23. </view>
  24. <view class="row crosscenter" wx:if="{{isFocused}}" catchtap="clickCommentconfirm">
  25. 确定
  26. </view>
  27. <view class="row crosscenter subtxt" wx:if="{{!isFocused}}" catchtap="clickFavor">
  28. <view>
  29. <image src="../../../imgs/favorite{{article.isCollect?'-checked':''}}.png" mode="scaleToFill"></image>
  30. </view>
  31. <text>{{article.collectNumber}}</text>
  32. </view>
  33. <view class="row crosscenter subtxt" wx:if="{{!isFocused}}" catchtap="clickCollection">
  34. <view>
  35. <image src="../../../imgs/collection{{article.isCollect?'-checked':''}}.png" mode="scaleToFill"></image>
  36. </view>
  37. <text>{{article.num_follow}}</text>
  38. </view>
  39. <view class="row crosscenter subtxt" catchtap="clickComments" wx:if="{{!isFocused}}">
  40. <view>
  41. <image src="../../../imgs/comments.png" mode="scaleToFill"></image>
  42. </view>
  43. <text>{{article.num_comment}}</text>
  44. </view>
  45. </view>
  46. <view class="comments {{showComments&&'show'}} scrolly">
  47. <view class="inright row" wx:for="{{comments}}" wx:key>
  48. <image src="{{item.upload_head}}" class="gapright"></image>
  49. <view class="col flexible">
  50. <text class="txtsub nickname gapbot">{{item.nickname}}</text>
  51. <view class="row content wrpright borbot">
  52. <text class="flexible">{{item.content}}</text>
  53. <text class="subtxt">{{item.addtime}}</text>
  54. </view>
  55. </view>
  56. </view>
  57. </view>
  58. </view>