<!-- <view class="searchLetter touchClass">
    <view class="thishotText" bindtap="hotCity">
        <view style="margin-top:0;">当前</view>
        <view style="margin-top:0;">热门</view>
    </view>
    <view wx:for="{{searchLetter}}" style="color:#1c74c6;font-size:20rpx;" wx:key="index" data-letter="{{item.name}}"
        catchtouchend="clickLetter">{{item.name}}</view>
</view> -->

<!-- <view class="weui-search-bar">
    <view class="weui-search-bar__form">
        <view class="weui-search-bar__box">
            <icon class="weui-icon-search_in-box" type="search" size="20"></icon>
            <input type="text" class="weui-search-bar__input" placeholder="请输入城市名称" />
        </view>
    </view>
    <view class="weui-search-bar__cancel-btn" bindtap='方法名a'>搜索</view>
</view> -->

<block wx:if="{{isShowLetter}}">
    <view class="showSlectedLetter">
        {{showLetter}}
    </view>
</block>
<view class="hotcity">
    <view class="hotcity-location" wx:if="{{defaultcity != '' && defaultcity != null}}" bindtap="nowLocation">
        <image src="/static/icon/location.png"></image>当前定位：<text>{{defaultcity}}{{defaultregi}}</text></view>
    <view class="hotcity-location" wx:else>
        当前定位：
        <button class="location-btn" size="mini" open-type="openSetting">
            请开启定位服务
        </button>
    </view>

    <!-- <view class="hotcity-choice">{{regionShow ? '请选择区域' : '请选择城市'}}</view> -->
</view>

<view class="newLetter">
    <text>黑龙江省</text>
    <text>{{address.city}}</text>
    <text class="active">{{address.area ? address.area : '请选择区域'}}</text>
</view>

<scroll-view class="scrollLeft" scroll-y="true" scroll-into-view="{{scrollTopId}}"
    scroll-top="{{scrollTop}}">
    <view class="selection {{address.city_code == item.code ? 'active' : ''}}" wx:for="{{cityList}}" wx:key="cityList" data-cityCode="{{item.code}}" data-city="{{item.name}}" data-index="{{index}}" bindtap="bindCity">
        <view class="item_city">
            {{item.name}}<image class="checkImg {{address.city_code == item.code ? 'active' : ''}}" src="/static/icon/Check.png"></image>
        </view>
    </view>
</scroll-view>


<!-- 区域选择 -->
<!-- {{regionShow ? 'active' : ''}}" -->
<view class="region">
    <scroll-view scroll-y="true" style="height:{{winHeight - 88}}px;"
        scroll-into-view="{{scrollTopId}}" scroll-top="{{scrollTop}}">
        <view class="selection {{address.area_code == item.code ? 'active' : ''}}" wx:for="{{regiList}}" wx:key="regiList" data-cityCode="{{item.code}}"
            data-city="{{item.name}}" bindtap="regionOpt">
            <view class="item_city">
                {{item.name}}<image class="checkImg {{address.area_code == item.code ? 'active' : ''}}" src="/static/icon/Check.png"></image>
            </view>
        </view>
    </scroll-view>
</view>