<!--components/condition-screening/condition-screening.wxml-->
<view class='head'>
	<view class='map' wx:if='{{show_area}}' bindtap="showArea">
		<!-- <view class='location'>
      <image src='{{imgServerUrl}}/images/happyjob/location.png'></image>
    </view> -->
		<text class='cityname'>{{city_name}}</text>
		<image src='{{showAreaList?"/images/happyjob/down.png":"/images/happyjob/up.png"}}' class="map-image"></image>
	</view>
	<view class='settlement' wx:if='{{show_settlement}}' bindtap='showSettlementMethod'>
		<text class="salayname">结算方式</text>
		<block wx:if="{{selectId == 0}}">
			<image src='/images/happyjob/down.png' class="settlement-image"></image>
		</block>
		<block wx:else>
			<image src='/images/happyjob/up.png' class="settlement-image"></image>
		</block>
	</view>
	<view class='salay' bindtap='doSalay' wx:if='{{show_salay}}'>
		<text class="salayname {{selectId==1?'active':''}}">薪资</text>
		<view class='arrow'>
			<block wx:if="{{selectId == 1}}">
				<block wx:if="{{totalSalary == 2}}">
					<image src='/images/happyjob/sort_down.png' class="arrow-image"></image>
				</block>
				<block wx:else>
					<image src='/images/happyjob/sort_up.png' class="arrow-image"></image>
				</block>
			</block>
			<block wx:else>
				<block wx:if="{{totalSalary == 2}}">
					<image src='/images/happyjob/sort_down.png' class="arrow-image"></image>
				</block>
				<block wx:elif='{{totalSalary == 1}}'>
					<image src='/images/happyjob/sort_up.png' class="arrow-image"></image>
				</block>
				<block wx:else>
					<image src='/images/happyjob/sort_null.png' class="arrow-image"></image>
				</block>
			</block>
		</view>
	</view>
	<view class='salay' bindtap='doDistince' wx:if='{{show_distince}}'>
		<text class="salayname {{selectId==2?'active':''}}">距离</text>
		<view class='arrow'>
			<block wx:if="{{selectId == 2}}">
				<block wx:if="{{sort == 2}}">
					<image src='/images/happyjob/sort_down.png' class="arrow-image"></image>
				</block>
				<block wx:else>
					<image src='/images/happyjob/sort_up.png' class="arrow-image"></image>
				</block>
			</block>
			<block wx:else>
				<block wx:if="{{sort == 2}}">
					<image src='/images/happyjob/sort_down.png' class="arrow-image"></image>
				</block>
				<block wx:elif='{{sort == 1}}'>
					<image src='/images/happyjob/sort_up.png' class="arrow-image"></image>
				</block>
				<block wx:else>
					<image src='/images/happyjob/sort_null.png' class="arrow-image"></image>
				</block>
			</block>
		</view>
	</view>
</view>
<block wx:if="{{show_settlement&&showSettlement}}">
	<view class='settlementMethod scrolled'>
		<block wx:for="{{settlementMethod}}" wx:key="index">
			<view class="settleme {{settle===item.index?'active':''}}" bindtap='doSettlemethod' data-settle='{{item.index}}'>
				<text>{{item.name}}</text>
			</view>
		</block>
	</view>
</block>
<block wx:if="{{showAreaList}}">
	<view class='settlementMethod scrolled'>
		<block wx:for="{{areaList}}" wx:key="index" wx:for-item="settle">
			<view class="settleme {{countryCode===settle.countryCode?'active':''}}" data-countryCode="{{settle.countryCode}}" bindtap='chooseArea' data-settle='{{settle.index}}' data-cityName="{{settle.countryName}}" data-tt='{{index}}'>
				<text>{{settle.countryName}}</text>
			</view>
		</block>
	</view>
</block>