You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
1.0 KiB
26 lines
1.0 KiB
11 months ago
|
<!--index.wxml-->
|
||
|
|
||
|
<view class="container">
|
||
|
|
||
|
<view class="input">
|
||
|
<input placeholder="选择" value="{{province}}-{{city}}-{{county}}" focus="{{focus}}" bindfocus="open" />
|
||
|
</view>
|
||
|
|
||
|
</view>
|
||
|
<view wx:if="{{condition}}" class="citypicker">
|
||
|
<picker-view indicator-style="height: 50px;" style="width: 100%; height: 300px;" value="{{value}}" bindchange="bindChange" class="citybody">
|
||
|
<view class="cityheader">
|
||
|
<view bindtap="open" class="city-cancel">取消</view>
|
||
|
<view bindtap="open" class="city-true">确定</view>
|
||
|
</view>
|
||
|
<picker-view-column>
|
||
|
<view wx:for="{{provinces}}" wx:key="item" style="line-height: 50px;padding-left:10px;" >{{item}}</view>
|
||
|
</picker-view-column>
|
||
|
<picker-view-column>
|
||
|
<view wx:for="{{citys}}" wx:key="item" style="line-height: 50px;padding-left:10px;">{{item}}</view>
|
||
|
</picker-view-column>
|
||
|
<picker-view-column>
|
||
|
<view wx:for="{{countys}}" wx:key="item" style="line-height: 50px;padding-left:10px;">{{item}}</view>
|
||
|
</picker-view-column>
|
||
|
</picker-view>
|
||
|
</view>
|