index.wxml 1.1 KB

123456789101112131415161718192021
  1. <t-popup visible="{{show}}" placement="bottom">
  2. <view class="city-picker-box" slot="content">
  3. <view wx:if="{{headerVisible}}" class="city-picker-header city-picker-more">
  4. <view class="btn" hover-class="btn__active" catch:tap="onClose">取消</view>
  5. <view wx:if="{{title}}" class="title">{{title}}</view>
  6. <view class="btn primary" hover-class="btn__active" catch:tap="onConfirm">确定</view>
  7. </view>
  8. <view wx:else class="city-picker-header">
  9. <view wx:if="{{title}}" class="title">{{title}}</view>
  10. </view>
  11. <picker-view class="picker" indicator-class="picker-center-row" value="{{pickerValue}}" bind:change="onChange">
  12. <picker-view-column class="picker-column">
  13. <view wx:for="{{ pickerOptions }}" wx:key="code">{{ item.name }}</view>
  14. </picker-view-column>
  15. </picker-view>
  16. <view class="city-picker-footer" wx:if="{{!headerVisible}}">
  17. <view class="btn" hover-class="btn__active" catch:tap="onClose">取消</view>
  18. <view class="btn primary" hover-class="btn__active" catch:tap="onConfirm">确定</view>
  19. </view>
  20. </view>
  21. </t-popup>