You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
3.8 KiB
Plaintext

2 years ago
<view class="positionLetter" style="top:{{pltop}}px" wx:if="{{plShow}}">
{{alpha}}
</view>
<scroll-view scroll-y="true" style="height: 100vh;" scroll-into-view="{{toView}}" bindscroll="leftMove">
<!-- scroll-with-animation="{{true}}" -->
<view class="p10200" id="top">
<!-- <view class="weui-search-bar weui-search-bar_focusing" id="searchBar">
<form class="weui-search-bar__form">
<view class="weui-search-bar__box">
<i class="weui-icon-search"></i>
<input type="text" class="weui-search-bar__input" placeholder="搜索城市/拼音" value="{{inputVal}}"
focus="{{inputShowed}}" bindinput="inputTyping" />
<span class="weui-icon-clear" wx:if="{{inputVal.length > 0}}" bindtap="clearInput"></span>
</view>
</form>
</view> -->
<view class="headTxt">当前城市</view>
<view class="container">
<view bindtap='selectQuanGuo' class="item {{selectedQuanGuo.checked ? 'active' : ''}}">全国</view>
<view bindtap='getLocation' class="item {{selectedCityLocal.checked ? 'active' :''}}" wx:if="{{selectedCityLocal.shortName}}"><i class="iconfont icon-dingwei mr8"> </i>{{selectedCityLocal.shortName}}</view>
<view bindtap='selectOld' wx:if="{{selectedCity.name != '' && selectedCity.name != null && selectedCity.name != selectedCityLocal.name}}" class="item {{selectedCity.checked ? 'active' :''}}">{{selectedCity.shortName}}</view>
</view>
<!-- <view class="headTxt" id="hot">热门城市</view>
<view class="container">
<view class="item {{hotCitySelect == index ? 'active' :''}}" wx:for="{{hotCity}}" wx:for-item="item"
wx:for-index="index" data-id="{{index}}" bindtap="selectCity">{{item.name}}</view>
<view class="item {{hotCitySelect == index ? 'active' :''}}" wx:for="{{hotCity}}" wx:for-item="item"
wx:for-index="index" data-id="{{index}}" bindtap="selectCity">{{item.name}}</view>
<view class="item {{hotCitySelect == index ? 'active' :''}}" wx:for="{{hotCity}}" wx:for-item="item"
wx:for-index="index" data-id="{{index}}" bindtap="selectCity">{{item.name}}</view>
<view class="item {{hotCitySelect == index ? 'active' :''}}" wx:for="{{hotCity}}" wx:for-item="item"
wx:for-index="index" data-id="{{index}}" bindtap="selectCity">{{item.name}}</view>
</view> -->
<block wx:for="{{cityList}}" wx:for-item="item">
<view class="headTxt" id="{{item.name == '热门城市' ?'hot' : item.name}}">{{item.name}}</view>
<view class="container">
<view wx:for="{{item.list}}" wx:for-item="item1" bindtap='selectCity' data-city="{{item1}}" class="item {{item1.name == selectedCityTemp.name && selectedCityTemp.checked ? 'active' :''}}">{{item1.shortName}}</view>
</view>
</block>
</view>
</scroll-view>
<scroll-view class="letter-list" enhanced="true" catchtouchstart="handlerAlphaTap" bindtouchmove="touchMove" catchtouchend="touchEnd">
<!-- {{toView == 'top' ?'rlhc':'' }}" -->
<view class="letter {{toView == 'top' ?'rlhc':'' }}" bindtap="goTop" hover-class="rlhc"><i class="iconfont icon-sousuo f12"></i></view>
<!-- {{toView == 'hot' ?'rlhc':'' }}" -->
<view class="letter {{toView == 'hot' ?'rlhc':'' }}" bindtap="clickHot" hover-class="rlhc">热</view>
<!-- {{toView == item ?'rlhc':'' }}" -->
<view class="letter {{toView == item ?'rlhc':'' }}" wx:for="{{letter}}" hover-class="rlhc" catchtap="chooseLetter" wx:for-item="item" data-item="{{item}}">{{item}}</view>
</scroll-view>
<view class="btmFix">
<view class="display-flex">
<view class="flex-1 pl20 pr10">
<button class="resetBtn btn" style="font-weight:400;" catchtap="reset">
重置
</button>
</view>
<view class="flex-1 pl10 pr20">
<button type='primary' class="loginOut btn" style="font-weight:400;" catchtap="loginOut">
确定
</button>
</view>
</view>
</view>