renting.wxml 5.1 KB
<!--pages/service/renting/renting.wxml-->
<view class='banner_box1'>
  <view class='head_box1'>
    <view class='head_left_box'> 
      <!--筛选按钮-->
      <view class='rent_box' bindtap='showrent_mask_yes' wx:if="{{select.length >0}}">
        <text>{{select[currentSelect].name}}</text>
        <text class='iconfont icon-daosanjiao'></text>
      </view>
      <view class='serach_box' bindtap="goSearch">
        <view class='iconfont icon-fangdajing'></view>
        <view>
          <input placeholder='请输入要搜索的服务' value="{{searchValue}}" />
        </view>
      </view>
    </view>
    <!--排序按钮-->
    <view class='iconfont icon-paixu-jiang' wx:if='{{currentSort === 0}}' bindtap='setdown'></view>
    <view class='iconfont icon-paixu-sheng' wx:else bindtap='setdown'></view>
  </view>
  <!--滚动tab-->
  <scroll-view class='tab_box' scroll-x>
    <view class="scroll">
      <view class="scroll_item {{currentPortalThree==index?'active':''}}" wx:for="{{portal_three}}" wx:key="index"
            data-current='{{index}}' bindtap='choosePortalThree'>{{item.name}}</view>
    </view>
  </scroll-view>
</view>
<!--筛选列表-->
<view class='rent_mask' wx:if='{{showrent_mask}}' bindtap="closeMask">
  <view class='rent_popup'>
    <view class="rent_item {{currentSelect===index?'active':''}}" wx:for="{{select}}" wx:key="index"
          catchtap='chooseSelect' data-index="{{index}}">{{item.name}}</view>
  </view>
</view>
<!--排序列表-->
<view class='rent_mask' wx:if='{{is_showSort}}' bindtap="closeMask">
  <view class='rent_popup'>
    <view class="rent_item {{currentSort===index?'active':''}}" wx:for="{{sort}}" wx:key="index"
          catchtap='chooseSort' data-index="{{index}}">{{item.name}}</view>
  </view>
</view>
<!--文章内容-->
<view class='content_box'>
  <view class='content_item' wx:for="{{postList}}" wx:key="index" bindtap='goPostDetail' data-index="{{index}}">
    <view class='left_box'>
      <view class='head_portrait' catchtap='showModal' data-index="{{index}}">
        <image src='{{item.avatar}}'></image>
      </view>
      <view class='label_box' wx:if='{{item.showlabel_box}}'>
        <view class='triangle'></view>
        <view class='wx_numb'>
          <text>微信号:{{item.wxn}}</text>
        </view>
        <view class="copy">
          <view class='line'>|</view>
          <view class='label-text' catchtap="clickCopy" data-index="{{index}}">复制</view>
          <view class='line'>|</view>
          <view class='label-text' catchtap="enterHomePage" data-index="{{index}}">
            <text class='iconfont icon-zhuye'></text>
            <text>进入主页</text>
          </view>
          <block wx:if="{{userId !== item.user_id}}">
            <view class='line'>|</view>
            <view class='label-text' catchtap="report" data-index="{{index}}">
              <text class='iconfont icon-jubao0201'></text>
              <text>举报</text>
            </view>
          </block>
        </view>
      </view>
    </view>
    <view class='item_list'>
      <view class='list_head_box'>
        <view class='user_name'>{{item.user_nickname}}</view>
        <view class='state_box'>
          <view class='collect_box'>
            <text class='iconfont icon-eye ' bindtap='Stick'></text>
            <text>{{item.post_hits}}</text>
          </view>
          <view class='collect_box' catchtap='delArticles' data-index="{{index}}" wx:if="{{!item.is_hits}}">
            <text class='iconfont icon-shoucang1'></text>
            <text>收藏</text>
          </view>
          <view class='collect_box active' catchtap='delArticles' data-index="{{index}}" wx:if="{{item.is_hits}}">
            <text class='iconfont icon-shoucang0 star2'></text>
            <text>收藏</text>
          </view>
        </view>
      </view>
      <view class='list_content'>{{item.post_content}}</view>
      <view class='list_img_box' wx:if="{{item.more !== ''}}">
        <!--<block wx:for="{{postImg}}" wx:key="index">-->
        <!--<image src='{{item.url}}' wx:for="{{item.photos}}" wx:key="index"></image>-->
        <!--</block>-->
        <block wx:for="{{item.more.photos}}" wx:key="index">
          <image src='{{item.url}}'></image>
        </block>
      </view>
      <view class='list_state_box'>
        <view class='time'>{{item.time}}</view>
        <view>
          <text catchtap="clickZan" data-index="{{index}}">
            <text class='iconfont icon-heart xin1'></text>
            <text class='' wx:if="{{!item.is_paise}}">赞</text>
            <text class='' wx:if="{{item.is_paise}}">取消</text>
          </text>
          <text catchtap="goComment">
            <text class='iconfont icon-pinglun pinglun1'></text>
            <text>评论</text>
          </text>
        </view>
      </view>
      <block wx:if='{{item.post_like!=0}}'>
        <view class='list_comment_box'>
          <view class='comment_list'>
            <text class='iconfont icon-heart xin2'></text>
            <view class='head_img_cell' wx:for="{{item.paise_user}}" wx:key="index">
              <image src='{{item}}'></image>
            </view>
          </view>
        </view>
      </block>
    </view>
  </view>
</view>