news.wxml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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">
  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">
  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" wx:if="{{!!item.shop_name}}">商铺:{{item.shop_name}}</view>
  36. </view>
  37. <button
  38. class="follow"
  39. disabled="{{booLock}}"
  40. data-item="{{item}}"
  41. data-index="{{index}}"
  42. bind:tap="followUser"
  43. hidden="{{active === '1' && item.follow_status === 1}}">{{item.follow_status === 1 ? '已' : ''}}关注
  44. </button>
  45. </view>
  46. <view class="news">
  47. <view class="text">{{item.track_content}}</view>
  48. <view class="photo-wrap">
  49. <view
  50. class="box"
  51. wx:for="{{item.track_img_url}}"
  52. wx:for-item="img"
  53. wx:for-index="idx"
  54. wx:key="idx"
  55. data-index="{{idx}}"
  56. data-imgs="{{item.track_img_url}}"
  57. bind:tap="handlePreviewImage">
  58. <image src="{{img}}"></image>
  59. </view>
  60. </view>
  61. </view>
  62. <view class="tools-wrap">
  63. <view
  64. data-item="{{item}}"
  65. data-index="{{index}}"
  66. bind:tap="showPopop">
  67. <image src="../../image/news/Chat.png"></image>
  68. </view>
  69. <view class="collection-favorite">
  70. <view
  71. class="favorite"
  72. data-item="{{item}}"
  73. data-index="{{index}}"
  74. bind:tap="trackGood">
  75. <image src="../../image/news/like_0.png" wx:if="{{item.good_status === 0}}"></image>
  76. <image src="../../image/news/like_1.png" wx:if="{{item.good_status === 1}}"></image>
  77. <text class="good-count">{{item.good_count}}</text>
  78. </view>
  79. </view>
  80. </view>
  81. <view class="message-list">
  82. <view
  83. class="list"
  84. wx:for="{{item.comments}}"
  85. wx:for-item="msg"
  86. wx:for-index="idx"
  87. wx:key="idx">
  88. <view class="message">{{msg.user_nickname}}:{{msg.track_comment}}</view>
  89. <view class="btn-reply" wx:if="{{false}}">回复</view>
  90. </view>
  91. </view>
  92. </view>
  93. <!-- 无数据 -->
  94. <view class="list-bitmap" wx:if="{{finished && listData.length < 1}}">
  95. <image src="../../image/common/bitmap.png"></image>
  96. <text>暂无数据</text>
  97. </view>
  98. <view
  99. class="pullup-wrapper"
  100. wx:if="{{!isRefresh}}">
  101. <van-loading
  102. wx:if="{{!finished}}"
  103. size="24px"
  104. type="spinner">加载中...
  105. </van-loading>
  106. </view>
  107. </view>
  108. </view>
  109. <view
  110. class="btn-add"
  111. bind:tap="jumpAddNews">
  112. <image
  113. src="../../image/news/add.png"></image>
  114. </view>
  115. <van-popup
  116. show="{{ booPopop }}"
  117. overlay="{{true}}"
  118. position="bottom"
  119. custom-style="{{inputBoxStyle}}"
  120. bind:close="hidePopop">
  121. <view class="popup-body">
  122. <view class="form-item">
  123. <image
  124. class="smile"
  125. src="../../image/common/smile.png"></image>
  126. <input
  127. placeholder-class="placeholder"
  128. value="{{form.track_comment}}"
  129. placeholder="{{placeholderText}}"
  130. adjust-position="{{false}}"
  131. focus="{{autoFocus}}"
  132. bind:focus="handleFocus"
  133. bind:blur="handleBlur"
  134. bind:input="setComment"></input>
  135. <button
  136. class="btn-send"
  137. disabled="{{booLock}}"
  138. bind:tap="addComment">发送
  139. </button>
  140. </view>
  141. </view>
  142. </van-popup>
  143. <!--自定义tabbar页面被遮挡-->
  144. <view style="padding-bottom:25%;"></view>