city.wxml 2.0 KB

1
  1. <view class="container data-v-0aef17b6"><top-bar vue-id="283a3d3a-1" id="topbar" class="data-v-0aef17b6" bind:__l="__l"></top-bar><block wx:if="{{type==='add'}}"><view class="line-bar flex-between data-v-0aef17b6" id="linebar"><view class="span active data-v-0aef17b6"></view><view class="span active data-v-0aef17b6"></view><view class="span active data-v-0aef17b6"></view><view class="span active data-v-0aef17b6"></view><view class="span data-v-0aef17b6"></view></view></block><view class="title font44 fw600 data-v-0aef17b6" id="title">选择你常驻的城市</view><view class="tip font28 fw400 data-v-0aef17b6" id="tip">选择你居住的、经常去的城市,以便推荐异性朋友</view><view class="choose-list flex-start data-v-0aef17b6" id="chooselist"><block wx:for="{{chooseCitys}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="choose-tag flex-center data-v-0aef17b6"><text class="tag-text font28 fw600 data-v-0aef17b6">{{item.name}}</text><image class="tag-img data-v-0aef17b6" src="{{assetsUrl+'info-figure-close.png'}}" mode="aspectFill" data-event-opts="{{[['tap',[['deleteTag',[index]]]]]}}" bindtap="__e"></image></view></block></view><scroll-view class="citys data-v-0aef17b6" style="{{'height:'+(scollHeight+'px')+';'}}" scroll-y="true"><block wx:for="{{cityList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="city-tags data-v-0aef17b6"><view class="c-label font28 fw700 data-v-0aef17b6">{{''+item.name+''}}</view><view class="c-tags flex-start data-v-0aef17b6"><block wx:for="{{item.data}}" wx:for-item="sitem" wx:for-index="sindex" wx:key="sindex"><view data-event-opts="{{[['tap',[['chooseTag',[index,sindex]]]]]}}" class="{{['c-tag','font28','fw400','data-v-0aef17b6',sitem.choose?'tag-choose':'']}}" bindtap="__e">{{''+sitem.name+''}}</view></block></view></view></block></scroll-view><cover-view data-event-opts="{{[['tap',[['sure',['$event']]]]]}}" class="btn font32 fw600 data-v-0aef17b6" bindtap="__e">{{''+(type==='add'?'下一步':'完成')+''}}</cover-view></view>