index.wxml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <!--pages/channel/index/index.wxml-->
  2. <view class="page">
  3. <view class="page__bd">
  4. <view class="section">
  5. <view class="article">
  6. <text>密频是你的私有频道,加入你的密频的朋友可以看到你在密频中发的内容,凡是看过你的密件的朋友你可以批准他是否加入你的密频。</text>
  7. </view>
  8. </view>
  9. <view class="section" style="display:inline-block;width:100%;">
  10. <view class="button-wrapper" style="margin-left:40px;float:left;width:38%;">
  11. <navigator class="button" url="/pages/channel/image/add/add" >制作图片密件</navigator>
  12. </view>
  13. <view class="button-wrapper" style="margin-right:40px;float:right;width:38%;">
  14. <navigator class="button" url="/pages/channel/video/add/add">制作视频密件</navigator>
  15. </view>
  16. </view>
  17. <view class="section" style="display:inline-block;width:100%;margin:0 auto;">
  18. <view style="width:38%;margin:0 auto;">
  19. <navigator class="button" url="/pages/channel/user/application/application" >关注管理</navigator>
  20. </view>
  21. </view>
  22. <view class="section" style="display:inline-block;width:100%;margin-bottom:0;margin-top:20px;">
  23. <view style="width:100%;font-size:14px;color:#fff;text-align:center;">最近密频的更新内容</view>
  24. <view class="weui-loadmore" wx:if="{{loading}}">
  25. <view class="weui-loading"></view>
  26. <text class="weui-loadmore__tips">正在加载</text>
  27. </view>
  28. <view style="width:100%;display:inline-block;padding:50px 40px;box-sizing:border-box;padding-top:10px;padding-bottom:0px;">
  29. <view class="item" wx:for="{{posts}}" wx:key="id">
  30. <navigator url="/pages/channel/view/view?hash_key={{item.hash_key}}" open-type="navigate" >
  31. <image src="{{item.user.headimgurl}}" mode="widthFix"></image>
  32. </navigator>
  33. <view class="u_name" style="color:#fff;text-align:center;font-size:12px;margin-top:5px;">{{item.user.nickname}}</view>
  34. <view class="date_time" style="color:#fff;text-align:center;font-size:12px;margin-top:5px;">{{item.created_at}}</view>
  35. </view>
  36. </view>
  37. <view class="weui-loadmore weui-loadmore_line" wx:if="{{!next_data&&!loading&&posts.length!==0}}">
  38. <text class="weui-loadmore__tips">数据已经全部加载完了</text>
  39. </view>
  40. <view class="weui-loadmore weui-loadmore_line" wx:if="{{!next_data&&!loading&&posts.length==0}}">
  41. <text class="weui-loadmore__tips">暂无数据</text>
  42. </view>
  43. </view>
  44. </view>
  45. </view>