myNews.wxml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <page-meta page-style="{{ booPopop ? 'overflow: hidden;' : '' }}"/>
  2. <view class="wrapper">
  3. <view class="app_page-header">
  4. <view class="portrait">
  5. <image
  6. mode="aspectFill"
  7. src="{{userInfo.user_head_img_url}}"></image>
  8. </view>
  9. <view class="user-name">{{userInfo.user_nickname}}</view>
  10. <view class="dashborad-box">
  11. <view>粉丝:{{fans_num}}</view>
  12. <view>关注:{{follow_num}}</view>
  13. </view>
  14. </view>
  15. <view class="main">
  16. <view
  17. class="list"
  18. wx:for="{{listData}}"
  19. wx:key="id">
  20. <view class="top">
  21. <view class="portrait">
  22. <image src="{{item.user_head_img_url}}"></image>
  23. </view>
  24. <view class="blogger-name-wrap">
  25. <view class="user-name">{{item.user_nickname}}</view>
  26. <view class="business-name" wx:if="{{!!item.shop_name}}">商铺:{{item.shop_name}}</view>
  27. </view>
  28. <!-- 删除按钮 -->
  29. <view
  30. class="btn-del"
  31. data-item="{{item}}"
  32. bind:tap="showDeleteNews">
  33. <image src="../../image/common/del.png"></image>
  34. </view>
  35. </view>
  36. <view class="news">
  37. <view class="text">{{item.track_content}}</view>
  38. <view class="photo-wrap">
  39. <view
  40. class="box"
  41. wx:for="{{item.track_img_url}}"
  42. wx:for-item="img"
  43. wx:for-index="idx"
  44. wx:key="idx"
  45. data-index="{{idx}}"
  46. data-imgs="{{item.track_img_url}}"
  47. bind:tap="handlePreviewImage">
  48. <image src="{{img}}"></image>
  49. </view>
  50. </view>
  51. </view>
  52. <view class="message-list">
  53. <view
  54. class="list"
  55. wx:for="{{item.comments}}"
  56. wx:for-item="msg"
  57. wx:for-index="idx"
  58. wx:key="idx">
  59. <view class="message">{{msg.user_nickname}}:{{msg.track_comment}}</view>
  60. </view>
  61. </view>
  62. </view>
  63. <!-- 无数据 -->
  64. <view class="list-bitmap" wx:if="{{finished && listData.length < 1}}">
  65. <image src="../../image/common/bitmap.png"></image>
  66. <text>暂无数据</text>
  67. </view>
  68. <view
  69. class="pullup-wrapper"
  70. wx:if="{{!isRefresh}}">
  71. <van-loading
  72. wx:if="{{!finished}}"
  73. size="24px"
  74. type="spinner">加载中...
  75. </van-loading>
  76. </view>
  77. </view>
  78. </view>
  79. <!-- 弹窗:删除动态 -->
  80. <van-popup
  81. custom-class="customer-van-model"
  82. show="{{ booDeleteNews }}"
  83. bind:close="hideDeleteNews">
  84. <view class="customer-van-model_body">
  85. <view class="content">确定删除动态吗?</view>
  86. </view>
  87. <view class="customer-van-model_footer">
  88. <button class="customer-van-model_cancel"
  89. hover-class="none"
  90. type="default"
  91. bind:tap="hideDeleteNews">取消
  92. </button>
  93. <button class="customer-van-model_confirm"
  94. hover-class="none"
  95. type="primary"
  96. disabled="{{booLock}}"
  97. bind:tap="confirmDeleteNews">确定
  98. </button>
  99. </view>
  100. </van-popup>