circlesDetail.wxml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <!--pages/circlesDetail/circlesDetail.wxml-->
  2. <view class="head-box">
  3. <image src="/static/img/back.png" bindtap="backPge"></image>
  4. <image src="{{info.headImg}}" data-userid="{{info.userId}}" catchtap="toPersonHome"></image>
  5. <text data-userid="{{info.userId}}" catchtap="toPersonHome">{{info.nickName}}</text>
  6. </view>
  7. <view class="kong"></view>
  8. <view class="img-box">
  9. <swiper class="img-box-swiper" current="{{bannerIndex}}" bindchange="bindchange" style="{{scale<1?'height:1000rpx':(scale>1?'height:562rpx':'')}}">
  10. <swiper-item class="box-swiper-item" wx:for="{{info.imgUrlList}}" wx:key="item" bindtap="previewMedia" data-index="{{index}}">
  11. <image mode="aspectFit" src="{{item}}"></image>
  12. </swiper-item>
  13. </swiper>
  14. <view class="swiper-num" wx:if="{{info.imgUrlList.length>1}}">
  15. {{bannerIndex+1}}/{{info.imgUrlList.length}}
  16. </view>
  17. <!-- <view class="swiper-dots" wx:if="{{info.imgUrlList.length>5}}">
  18. <text wx:for="{{info.imgUrlList}}" wx:for-item="itemImg" wx:key="itemImg" style="{{bannerIndex==index?'background-color: #FF5700;':''}}"></text>
  19. </view> -->
  20. <view class="swiper-dots" wx:if="{{info.imgUrlList.length>5}}">
  21. <text style="{{bannerIndex==0?'background-color: #FF5700;':''}} {{bannerIndex>2?'width:8rpx;height:8rpx':''}}"></text>
  22. <text style="{{bannerIndex==1?'background-color: #FF5700;':''}}"></text>
  23. <text style="{{bannerIndex>=2&&bannerIndex<=info.imgUrlList.length-3?'background-color: #FF5700;':''}}"></text>
  24. <text style="{{bannerIndex==info.imgUrlList.length-2?'background-color: #FF5700;':''}}"></text>
  25. <text style="{{bannerIndex==info.imgUrlList.length-1?'background-color: #FF5700;':''}} {{bannerIndex<info.imgUrlList.length-3?'width:8rpx;height:8rpx':''}}"></text>
  26. </view>
  27. <view class="swiper-dots" wx:elif="{{info.imgUrlList.length>1 && info.imgUrlList.length<=5}}">
  28. <text wx:for="{{info.imgUrlList}}" wx:for-item="itemImg" wx:key="itemImg" style="{{bannerIndex==index?'background-color: #FF5700;':''}}"></text>
  29. </view>
  30. </view>
  31. <view class="content">{{info.content ? info.content : ''}}</view>
  32. <view class="article-tag">
  33. <view class="tag-item" wx:for="{{info.tagList}}" wx:for-item="itemTag" wx:key="itemTag">
  34. <image src="/static/img/tag.png"></image>
  35. <text>{{itemTag}}</text>
  36. </view>
  37. </view>
  38. <view class="time">
  39. {{info.createTime}} 发布于{{info.ipAddress}}
  40. </view>
  41. <view class="comment-head">
  42. <text>评论</text>
  43. <text></text>
  44. <text hidden="{{commentList.length==0}}">{{info.commentCount}}</text>
  45. </view>
  46. <view hidden="{{commentList.length!=0}}" class="nonedata-style">
  47. <image src="/static/img/hemaNo.png"></image>
  48. <text>暂无数据</text>
  49. </view>
  50. <view class="comment-list" wx:for="{{commentList}}" wx:key="index" catchtap="tapReplyComment" bindlongpress="pressReplyComment" data-userid="{{item.userId}}" data-commentid="{{item.commentId}}" data-name="{{item.nickName}}">
  51. <image src="{{item.headImg}}" data-userid="{{item.userId}}" catchtap="toPersonHome"></image>
  52. <view style="{{index==commentList.length-1?'border-bottom:0':''}}">
  53. <view class="comment-name">
  54. <text data-userid="{{item.userId}}" catchtap="toPersonHome">{{item.nickName}}</text>
  55. <text style="{{item.like?'color:#FF5700':''}}">{{item.likeCount}}</text>
  56. <image wx:if="{{item.like}}" src="/static/img/like_s.png" bindtap="commentCellikeFun" data-commentid="{{item.commentId}}"></image>
  57. <image wx:else src="/static/img/like_n.png" bindtap="commentlikeFun" data-commentid="{{item.commentId}}"></image>
  58. </view>
  59. <view class="comment-content">
  60. <text wx:if="{{item.commentType==2}}">@{{item.atUserNickName}}</text>
  61. {{item.comment}}
  62. </view>
  63. <text class="comment-time">{{item.createTime}} {{item.ipAddress}}</text>
  64. </view>
  65. </view>
  66. <view class="reply-box">
  67. <input type="text" placeholder="{{iptPla}}" cursor-spacing="50" always-embed="false" adjust-position="false" hold-keyboard="true" focus="{{focusStatus}}" value="{{iptValue}}" confirm-type="send" bindconfirm="sendComment" bindblur="iptBlurFun"/>
  68. <image wx:if="{{info.like}}" src="/static/img/like_s.png" bindtap="contentCellikeFun"></image>
  69. <image wx:else src="/static/img/like_n.png" bindtap="contentlikeFun"></image>
  70. <text>{{info.likeCount}}</text>
  71. <image src="/static/img/discuss.png" bindtap="iptFun"></image>
  72. <text>{{info.commentCount}}</text>
  73. </view>
  74. <view hidden="{{handleStatus}}" class="handle-box">
  75. <view catchtap="pressReplyComment" class="handle-bg"></view>
  76. <view class="hadle-view">
  77. <image catchtap="pressReplyComment" src="/static/img/close2.png"></image>
  78. <view class="handle-item" catchtap="deleteComFun" hidden="{{deleteStatus}}">
  79. <image src="/static/img/del.png"></image>
  80. <text>删除</text>
  81. </view>
  82. <view class="handle-item" catchtap="toReport">
  83. <image src="/static/img/jubao.png"></image>
  84. <text>举报</text>
  85. </view>
  86. </view>
  87. </view>