<!-- packageE/others/case_library/new_mobile/caseLibraryNewMobile.wxml -->
<view id="case-new-mobile">
  <headTemplate text="{{title_word}}"></headTemplate>
  <view class="new" wx:if="{{page_type == 'caseLibraryNewMobile'}}">
    <view class="{{order_by=='new'?'new1':''}} span" catchtap="getListOne" data-fir='new' data-two='new'>最新</view>
    <view class="new2 span">|</view>
    <view class="{{order_by=='hot'?'new1':''}} span" catchtap="getListOne" data-fir='new' data-two='hot'>最热</view>
  </view>
  <view class="area" id="area" wx:if="{{page_type == 'caseLibraryAreaMobile'}}">
    <view class="text" catchtap="openArea" wx:if="{{!show}}">
      <view class="text1 span" wx:if="{{!area_text}}">全国</view>
      <view class="text1 span" wx:else>{{area_text}}</view>
      <van-icon name="arrow-up" wx:if="{{show}}" />
      <van-icon name="arrow-down" wx:else />
    </view>
    <van-popup show="{{show}}" get-container="#area" overlay-class="pop1" position="top" custom-style="height:30%;" bind:close="onClose">
      <view class="text" catchtap="openArea" wx:if="{{show}}" style="padding:0 30rpx;">
        <view class="text1 span" >{{provinceName}}{{cityName}}</view>
        <van-icon name="arrow-up" wx:if="{{show}}" />
        <van-icon name="arrow-down" wx:else />
      </view>
      <view class="area-li">
        <view class="pro-li">
          <view catchtap="changePro" data-item="{{item}}" wx:for="{{province_list}}" wx:key="index" class="{{item.v==province_id?'li-selected':''}} li">
            {{ item.areaname }}
          </view>
        </view>
        <view class="city-li">
          <view catchtap="changeCity" data-item="{{item}}" wx:for="{{city_list}}" wx:key="index" class="{{item.v==city_id?'li-selected':''}} li">
            {{ item.areaname }}
          </view>
        </view>
      </view>
    </van-popup>
  </view>
  <view class="case-li">
    <caseMobile datas="{{list}}"></caseMobile>
    <view style="width: 100%;height: 40rpx;line-height: 40rpx;text-align: center;" wx:if="{{current_page >= last_page}}">
      没有更多了~
    </view>
  </view>
  <serviceTemplate></serviceTemplate>
</view>