myPost.wxml 1.8 KB
<scroll-view class='container' scroll-y='true' hidden='{{!ifData}}' style='height:{{windowHeight}}px'>
  <block wx:for="{{articleList}}" wx:key="">
    <view class='item'>
      <view class='item_top'>{{item.title}}</view>
      <view class='item_mid'>
        <view class='item_mid_text'   bindtap='navdetail'  id='{{item.id}}'>{{item.content}}</view>
        <!-- 图片盒子 -->
        <view class='item_mid_box' hidden='{{item.images.length==0}}'   bindtap='navdetail'  id='{{item.id}}'>
          <view class='item_mid_box_pic' wx:for="{{item.images}}" wx:for-item="sec" wx:key=''>
            <image src='{{sec}}' mode='widthFix'></image>
          </view>
        </view>
      </view>
      <!-- 底部 -->
      <view class='item_bottom'>
        <view class='item_left' id='{{item.id}}' bindtap='delArticle' data-indx = "{{index}}">
          删除
        </view>
        <view class='item_right'>
          <!-- 图片 -->
          <view class='item_right_pic'>
            <image src='../../images/chakan@3x.png'></image>
          </view>
          <!-- 数量 -->
          <view class='item_right_number'>
            {{item.browse_count}}
          </view>

          <!-- 图片 -->
          <view class='item_right_pic2'>
            <image src='../../images/pinglun@3x.png'></image>
          </view>
          <!-- 数量 -->
          <view class='item_right_number'>
            {{item.comment_count}}
          </view>

        </view>
      </view>
    </view>

  </block>


  <!-- 底部按钮 -->
  <!-- <view class='button'>
    发表帖子
  </view> -->
</scroll-view>

<view class="none-box" hidden="{{ifData}}">
  <view>你还没有帖子,快去<text class='fabiao' bindtap='subArticle'>发表</text>吧!</view>
  <!-- <view>你还没有帖子,快去<text class='fabiao' >发表</text>吧!</view> -->
</view>