city-list.wxml
1.1 KB
<!--pages/index/city-list/city-list.wxml-->
<view class="content">
<view class='tab_box'>
<view class="tab_item {{current==0?'active':''}}" data-current='{{0}}' bindtap='chargeTab'>大陆境内</view>
<view class="tab_item {{current==1?'active':''}}" data-current='{{1}}' bindtap='chargeTab'>境外/港澳台</view>
</view>
<view class="right" wx:if="{{current===1}}">
<input class="input" type="text" placeholder="搜索国家" bindinput="inputKey" bindfocus="inputFocus" value="{{searchValue}}" bindconfirm="startSearch" />
<text class="search-btn">搜索</text>
<!--<image src="../../../images/search@2x.png" class="search-icon" bindtap="startSearch"></image>-->
<!--<view class="iconfont icon-arrow-down"></view>-->
</view>
<view class="city-box {{current===1?'margin':''}}">
<view wx:for="{{city_picker_list}}" wx:key="index">
<view class="city-item {{current_city === index?'change-bg':''}}" bindtap="chooseCity" data-index="{{index}}">{{item}}</view>
</view>
</view>
</view>