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.

1 line
3.0 KiB
Plaintext

1 year ago
<view><block wx:if="{{plShow}}"><view class="positionLetter" style="{{('top:'+pltop+'px')}}">{{''+alpha+''}}</view></block><scroll-view style="height:100vh;" scroll-y="{{true}}" scroll-into-view="{{toView}}" data-event-opts="{{[['scroll',[['leftMove',['$event']]]]]}}" bindscroll="__e"><view class="p10200" id="top"><view class="headTxt">当前城市</view><view class="container"><view data-event-opts="{{[['tap',[['selectQuanGuo',['$event']]]]]}}" class="{{['item '+(selectedQuanGuo.checked?'active':'')]}}" bindtap="__e">全国</view><block wx:if="{{selectedCityLocal.shortName}}"><view data-event-opts="{{[['tap',[['getLocation',['$event']]]]]}}" class="{{['item '+(selectedCityLocal.checked?'active':'')]}}" bindtap="__e"><view class="iconfont icon-dizhi mr8 _i"></view>{{''+selectedCityLocal.shortName+''}}</view></block><block wx:if="{{selectedCity.name!=''&&selectedCity.name!=null&&selectedCity.name!=selectedCityLocal.name}}"><view data-event-opts="{{[['tap',[['selectOld',['$event']]]]]}}" class="{{['item '+(selectedCity.checked?'active':'')]}}" bindtap="__e">{{''+selectedCity.shortName+''}}</view></block></view><block wx:for="{{cityList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block><view class="headTxt" id="{{item.name=='热门城市'?'hot':item.name}}">{{item.name}}</view><view class="container"><block wx:for="{{item.list}}" wx:for-item="item1" wx:for-index="index1" wx:key="index1"><view class="{{['item '+(item1.name==selectedCityTemp.name&&selectedCityTemp.checked?'active':'')]}}" data-city="{{item1}}" data-event-opts="{{[['tap',[['selectCity',['$event']]]]]}}" bindtap="__e">{{''+item1.shortName+''}}</view></block></view></block></block></view></scroll-view><scroll-view class="letter-list" enhanced="{{true}}" data-event-opts="{{[['touchstart',[['handlerAlphaTap',['$event']]]],['touchmove',[['touchMove',['$event']]]],['touchend',[['touchEnd',['$event']]]]]}}" catchtouchstart="__e" bindtouchmove="__e" catchtouchend="__e"><view class="{{['letter '+(toView=='top'?'rlhc':'')]}}" hover-class="rlhc" data-event-opts="{{[['tap',[['goTop',['$event']]]]]}}" bindtap="__e"><view class="iconfont icon-sousuo f12 _i"></view></view><view class="{{['letter '+(toView=='hot'?'rlhc':'')]}}" hover-class="rlhc" data-event-opts="{{[['tap',[['clickHot',['$event']]]]]}}" bindtap="__e">热</view><block wx:for="{{letter}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="{{['letter '+(toView==item?'rlhc':'')]}}" hover-class="rlhc" data-item="{{item}}" data-event-opts="{{[['tap',[['chooseLetter',['$event']]]]]}}" catchtap="__e">{{''+item+''}}</view></block></scroll-view><view class="btmFix"><view class="display-flex"><view class="flex-1 pl20 pr10"><button data-event-opts="{{[['tap',[['reset',['$event']]]]]}}" class="resetBtn btn" style="font-weight:400;" catchtap="__e">重置</button></view><view class="flex-1 pl10 pr20"><button class="loginOut btn" style="font-weight:400;" type="primary" data-event-opts="{{[['tap',[['loginOut',['$event']]]]]}}" catchtap="__e">确定</button></view></view></view></view>