<view id="appointment-search">
  <view class="search_box">
    <view class="search">
          <view class="left">
            <text>{{appointmentLang.project}}列表</text>
          </view>
          <view class="right">
            <input
              type="text"
              title="搜索"
              bindinput="bind"
              :placeholder="'搜索'+appointmentLang.project"
              bindconfirm="enterSearch"
            />
            <i class="iconfont icon-sousuo" bindtap="search" ></i>
          </view>
      </view>
      <view class="box">
        <view class="box-left {{show1?'activeColour':''}}"  bindtap="showClass"><text>{{category.name || '全部'}}</text><i class="iconfont icon-member-bottom" style="vertical-align:middle"></i></view>
          <view style="flex: 1" bindtap="evaluateBtn">
            <view class="box-right">
              <text  class="{{!show1 ? 'activeColour':''}}">评价</text>
              <view class="icon-box"><i class="iconfont icon-member-top {{!show1?(sort == 'asc'?'activeColour':''):''}}"></i><i class="iconfont icon-member-bottom {{!show1?(sort == 'desc'?'activeColour':''):''}}"></i>
              </view>
            </view>
          </view>
      </view>
  </view>
  <view style="height:160rpx"></view>
  <view class="list">
      <view class="list-item"  wx:for="{{commentList}}" :key="index"  data-id="{{item.id}}" bindtap="goProjectDetails">
        <view class="item-left">
          <image src="{{item.thumb}}" alt=""></image>
        </view>
        <view class="item-right">
          <view class="title p" style="-webkit-box-orient: vertical;">{{item.title}}</view>
          <view class="talk"><i class="iconfont icon-liaotian"></i><text>{{item.comment_num || 0}}</text></view>
        </view>
      </view>
    </view>
  <view style="height: 128rpx"></view>
  <view class="appointment-bottom" style="width:100%;">
    <view class="item" bindtap="toIndex">
      <view>
        <image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/index-normal@2x.png" alt=""></image>
        <view>首页</view>
      </view>
    </view>
    <view class="item active" >
      <view>
        <image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/project-active@2x.png" alt=""></image>
        <view>{{appointmentLang.project}}</view>
      </view>
    </view>
    <view class="item" bindtap="toUrl">
      <view>
        <image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/my-normal@2x.png" alt=""></image>
        <view>我的</view>
      </view>
    </view>
  </view>
</view>
<van-popup
  show="{{ show1 }}"
  position="top"
  closeable
>
<view class="popup-box">
            <view bindtap="close" class="close-icon"><icon  class="close iconfont icon-adsystem_icon_cancle"></icon></view>
            <view style="margin: 9.2rpx 16rpx;" bindtap="selectionBtn" data-item="{}"><view class="p">全部</view></view>
            <view style="margin: 9.2rpx 16rpx;" wx:for="{{categoryList}}" :key="index" bindtap="selectionBtn" data-item="{{item}}"><view class="p">{{item.name}}</view>
            </view>
          </view>
</van-popup>
