tagDetail.wxml 1.8 KB

12345678910111213141516171819202122232425262728293031323334
  1. <!--pages/tagDetail/tagDetail.wxml-->
  2. <view class="tag-detail-page">
  3. <view id="fixedTop">
  4. <nav-bar id="navBar" bind:back="tapNavBarAction" background="#12264D" background-color-top="#12264D"
  5. left-btn-bg-color="rgba(255,255,255,0.6)">
  6. </nav-bar>
  7. <view class="topic-info-wrap">
  8. <view class="flex flex-center flex-bet margin-bottom-18">
  9. <text class="tag-title">{{topicInfo.tagName}}</text>
  10. <attention-btn is-attention="{{!!topicInfo.isAttention}}" type="{{2}}" attention-id="{{topicInfo.id}}"
  11. bind:attention="tapAttentionAction"></attention-btn>
  12. </view>
  13. <view class="flex flex-center">
  14. <text class="txt">{{topicInfo.views}}人浏览</text>
  15. <text class="txt">{{topicInfo.attentionNum}}人关注</text>
  16. </view>
  17. </view>
  18. <view wx:if="{{topicInfo.content}}" class="content">{{topicInfo.content}}</view>
  19. <view class="tabs-wrap" wx:if="{{categoryList.length}}">
  20. <tabs titles="{{ categoryList }}" is-center='{{true}}' bind:tab="handleTabAction"></tabs>
  21. </view>
  22. </view>
  23. <scroll-view scroll-y="true" scroll-top="{{scrollTop}}" style="height: {{ scrollH }}px;background-color:#ffffff"
  24. upper-threshold="{{ 100 }}" bindscrolltoupper="scrollToUpper" bindscrolltolower="scrollToLower">
  25. <block wx:if="{{ listData.length }}">
  26. <block wx:for="{{ listData }}" wx:key="index">
  27. <post-cell wx:if="{{item.type == 3}}" data="{{ item }}"></post-cell>
  28. <new-cell wx:else data="{{ item }}"></new-cell>
  29. </block>
  30. </block>
  31. <view wx:if="isEnd" class="end-txt">已显示全部内容</view>
  32. </scroll-view>
  33. <publish-btn data="{{topicInfo}}"></publish-btn>
  34. </view>