news.wxml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <page-meta page-style="{{ booPopop ? 'overflow: hidden;' : '' }}"/>
  2. <view class="wrapper">
  3. <view class="app_page-header-search">
  4. <view class="app_page-header-search-warp app_width-690">
  5. <label for="header-search">
  6. <image src="../../image/common/search@2x.png"></image>
  7. </label>
  8. <input
  9. placeholder-class="app_header-search-placeholder"
  10. value="{{searchForm.key_words}}"
  11. placeholder="搜索信息"
  12. data-formkey="key_words"
  13. bind:input="handleKeyWords"></input>
  14. </view>
  15. <view class="leaving-a-message" bind:tap="jumpLeavingAMessage" wx:if="{{false}}">
  16. <image src="../../image/common/message@2x.png"></image>
  17. <view>8</view>
  18. </view>
  19. </view>
  20. <customer-tab
  21. nav="{{nav}}"
  22. active="{{active}}"
  23. bind:change="handleNav"/>
  24. <view class="main">
  25. <view
  26. class="list"
  27. wx:for="{{listData}}"
  28. wx:key="id">
  29. <view class="top">
  30. <view class="portrait">
  31. <image src="{{item.user_head_img_url}}"></image>
  32. </view>
  33. <view class="blogger-name-wrap">
  34. <view class="user-name">{{item.user_nickname}}</view>
  35. <view class="business-name">商铺:{{item.shop_name}}</view>
  36. </view>
  37. <button
  38. class="follow"
  39. disabled="{{booLock || item.follow_status === 1}}"
  40. data-item="{{item}}"
  41. data-index="{{index}}"
  42. bind:tap="followUser">{{item.follow_status === 1 ? '已' : ''}}关注
  43. </button>
  44. </view>
  45. <view class="news">
  46. <view class="text">{{item.track_content}}</view>
  47. <view class="photo-wrap">
  48. <view
  49. class="box"
  50. wx:for="{{item.track_img_url}}"
  51. wx:for-item="img"
  52. wx:for-index="idx"
  53. wx:key="idx">
  54. <image src="{{img}}"></image>
  55. </view>
  56. </view>
  57. </view>
  58. <view class="tools-wrap">
  59. <view
  60. data-item="{{item}}"
  61. data-index="{{index}}"
  62. bind:tap="showPopop">
  63. <image src="../../image/news/Chat.png"></image>
  64. </view>
  65. <view class="collection-favorite">
  66. <view
  67. class="favorite"
  68. data-item="{{item}}"
  69. data-index="{{index}}"
  70. bind:tap="trackGood">
  71. <image src="../../image/news/like_0.png" wx:if="{{item.good_status === 0}}"></image>
  72. <image src="../../image/news/like_1.png" wx:if="{{item.good_status === 1}}"></image>
  73. <text class="good-count">{{item.good_count}}</text>
  74. </view>
  75. </view>
  76. </view>
  77. <view class="message-list">
  78. <view
  79. class="list"
  80. wx:for="{{item.comments}}"
  81. wx:for-item="msg"
  82. wx:for-index="idx"
  83. wx:key="idx">
  84. <view class="message">{{msg.user_nickname}}:{{msg.track_comment}}</view>
  85. <view class="btn-reply" wx:if="{{false}}">回复</view>
  86. </view>
  87. </view>
  88. </view>
  89. <!-- 无数据 -->
  90. <view class="list-bitmap" wx:if="{{finished && listData.length < 1}}">
  91. <image src="../../image/common/bitmap.png"></image>
  92. <text>暂无数据</text>
  93. </view>
  94. <view
  95. class="pullup-wrapper"
  96. wx:if="{{!isRefresh}}">
  97. <van-loading
  98. wx:if="{{!finished}}"
  99. size="24px"
  100. type="spinner">加载中...
  101. </van-loading>
  102. </view>
  103. </view>
  104. </view>
  105. <view
  106. class="btn-add"
  107. bind:tap="jumpAddNews">
  108. <image
  109. src="../../image/news/add.png"></image>
  110. </view>
  111. <van-popup
  112. show="{{ booPopop }}"
  113. overlay="{{true}}"
  114. position="bottom"
  115. custom-style="{{inputBoxStyle}}"
  116. bind:close="hidePopop">
  117. <view class="popup-body">
  118. <view class="form-item">
  119. <image
  120. class="smile"
  121. src="../../image/common/smile.png"></image>
  122. <input
  123. placeholder-class="placeholder"
  124. value="{{form.track_comment}}"
  125. placeholder="{{placeholderText}}"
  126. adjust-position="{{false}}"
  127. focus="{{autoFocus}}"
  128. bind:focus="handleFocus"
  129. bind:blur="handleBlur"
  130. bind:input="setComment"></input>
  131. <button
  132. class="btn-send"
  133. disabled="{{booLock}}"
  134. bind:tap="addComment">发送
  135. </button>
  136. </view>
  137. </view>
  138. </van-popup>
  139. <!--自定义tabbar页面被遮挡-->
  140. <view style="padding-bottom:25%;"></view>