<import src="/common/common.wxml" />
<view class="top">
	<view class="seek">
		<image class="seek-btn" src="/images/seekbtn.png"></image>
		<input class="seek-input" data-type="0" type='text' focus='{{inputShowed}}' placeholder="请输入疾病或医生姓名搜索" placeholder-class='placeholdercss' value='{{searchVal}}' bindconfirm="inputSelect" bindinput='inputSelect'></input>
	</view>
	<view class="filter">
		<view class="filter-nav" bindtap="switchtab" data-id="1">
			<view class="city">{{cityArray[provinceTab].child[cityTab].name}}</view>
			<image class="filter-img" src="/images/filter-img.png"></image>
		</view>
		<view class="I"></view>
		<view class="filter-nav" bindtap="switchtab" data-id="2">
			<view class="picker {{selectIssue? 'bold' : ''}}">
				{{issueSearch}}
				<image class="filter-img" src="/images/filter-img.png"></image>
			</view>
		</view>
		<view class="I"></view>
		<view class="filter-nav" bindtap="switchtab" data-id="3">
			<view class="picker {{selectSearch? 'bold' : ''}}">
				{{moneySearch}}
				<image class="filter-img" src="/images/filter-img.png"></image>
			</view>
		</view>
	</view>

	<view class="region" wx:if="{{switchIdx==1}}" style="height:{{noRecord.winH-119}}px;">
		<scroll-view scroll-y="true" class="filtrate-province" style="height:{{noRecord.winH-119}}px;" scroll-into-view='d{{selectidx}}'>
			<block wx:for="{{cityArray}}" wx:for-index="idx" wx:for-item="provinceItem" wx:key="key">
				<view class="item-province {{selectidx==idx ? 'active-province' : ''}}"  id='d{{idx}}' data-current="{{idx}}" data-name="{{provinceItem.name}}" bindtap="selectProvince">{{provinceItem.name}}
				</view>
			</block>
		</scroll-view>
		<scroll-view scroll-y="true" class="filtrate-city" style="height:{{noRecord.winH-119}}px;" catchtouchmove = "doNotMove" scroll-into-view='d{{selectidx2}}'>
			<block wx:for="{{cityArray[selectidx].child}}" wx:for-index="index" wx:for-item="cityItem" wx:key="key">
				<view class="item-city {{selectidx2==index ? 'active-city' : ''}}"  id='d{{index}}' data-current="{{index}}" data-name="{{cityItem.name}}" bindtap="selectCity">
					{{cityItem.name}}
				</view>
			</block>
		</scroll-view>
	</view>
	<view class="filtrate" wx:if="{{switchIdx==2}}">
		<view class="filtrate-wzfs">
			<block wx:for="{{issue[issueTab].child}}" wx:for-index="index" wx:for-item="item" wx:key="key">
				<view class="filtrate-select {{issueIndex==index ? 'active-issue' : ''}}" data-idx="{{index}}" data-name="{{item.name}}" bindtap="selectIssue">{{item.name}}</view>
			</block>
		</view>
	</view>
	<view class="filtrate" wx:if="{{switchIdx==3}}">
		<view class="filtrate-title">服务类型</view>
		<view class="filtrate-wzfs">
			<view class="filtrate-select {{cesel==16 ? 'active-issue' : ''}}" data-cesel="16" bindtap="selectCesel">心理体检</view>
			<view class="filtrate-select {{cesel==17 ? 'active-issue' : ''}}" data-cesel="17" bindtap="selectCesel">单次问诊</view>
			<view class="filtrate-select {{cesel==20 ? 'active-issue' : ''}}" data-cesel="20" bindtap="selectCesel">复诊开药</view>
			<view class="filtrate-select {{cesel==18 ? 'active-issue' : ''}}" data-cesel="18" bindtap="selectCesel">心理咨询</view>
			<view class="filtrate-select {{cesel==19 ? 'active-issue' : ''}}" data-cesel="19" bindtap="selectCesel">电话倾诉</view>
			<view class="filtrate-select {{cesel==22 ? 'active-issue' : ''}}" data-cesel="22" bindtap="selectCesel">私人医生</view>
		</view>
		<view class="filtrate-title">价格区间</view>
		<view class="filtrate-jg">
			<block wx:for="{{moneyArray}}" wx:for-index="index" wx:for-item="item" wx:key="key">
				<view class="filtrate-select-a  {{moneyidx==index+1 ? 'active-issue' : ''}}" data-name="{{item.key}}" data-idx="{{index+1}}" bindtap="selectMoney">{{item.name}}</view>
			</block>
		</view>
		<view class="filtrate-title">医生职称</view>
		<view class="filtrate-wzfs">
			<block wx:for="{{titleArray}}" wx:for-index="index" wx:for-item="item" wx:key="key">
				<view class="filtrate-select {{titleidx==index+1 ? 'active-issue' : ''}}" data-idx="{{index+1}}" data-name="{{item.key}}" bindtap="selectTitle">{{item.name}}</view>
			</block>
		</view>
		<view class="filtrate-btn">
			<!-- <view class="reset">重置</view> -->
			<view class="end" bindtap="end">完成</view>
		</view>
	</view>
</view>
<!-- 遮罩层 -->
<view class='warp-up1' wx:if="{{switchIdx!=0}}">
</view>
<!-- 页面内容 -->
<block wx:if="{{showview}}">
	<view wx:if='{{doctorList.length==0}}'>
		<template is="noRecord" data="{{...noRecord}}" />
	</view>
	<view class="{{filtrateSelect?'content':'content1'}}" wx:if='{{doctorList.length>0}}'>
		<block wx:for="{{doctorList}}" wx:for-index="index" wx:key="index">
			<view class="flex user" bindtap="doctorInfo" data-openid="{{item.openid}}" data-unitid="{{item.unitid}}" data-unionid="{{item.unionid}}">
				<image src="{{item.image}}" mode="aspectFill"  binderror="binderrorimg" data-errorIndex="{{index}}"></image>
				<view class="xixui" wx:if="{{item.is_rest==1}}">休息中</view>
				<view>
					<view>
						<text class="user-name">{{item.name}}</text>
						<text class="user-zc">{{item.appellation}}</text>
					</view>
					<view class="user-dz">{{item.work_unit}}</view>
					<view class="user-tc">擅长：{{item.goodat}}</view>
					<view class="flex user-jg" wx:if="{{item.title>4}}">
						<view wx:if="{{item.xlzx}}">
							<text>心理咨询</text>
							<text> ￥{{item.xlzx}}</text>
						</view>
						<view class="xlzx" wx:if="{{item.xltj}}">
							<text>心理体检</text>
							<text> ￥{{item.xltj}}</text>
						</view>

					</view>
					<view class="flex user-jg" wx:if="{{item.title<5}}">
						<view wx:if="{{item.single}}">
							<text>单次问诊</text>
							<text> ￥{{item.single}}</text>
						</view>
						<view class="xlzx" wx:if="{{item.fzky}}">
							<text>复诊开药</text>
							<text> ￥{{item.fzky}}</text>
						</view>
					</view>
				</view>
			</view>
		</block>
		<view class="loading_box" wx:if='{{success}}'>
			<view class="loading1" wx:if='{{scrollFlag}}'>
				<image src='../../images/2.gif'></image>正在加载...
			</view>
			<view class="loading2" wx:if='{{scrollFlag1&&!scrollFlag}}'>没有更多了</view>
		</view>
	</view>
</block>
<block  wx:if="{{!showview}}">
	<template is="loading" />
</block>
<!--选择弹窗-->
<view class="mask" bindtap="filtrateSelect" wx:if='{{filtrateSelect}}'>
</view>
<answer id='answer'></answer>