location.wxml 2.26 KB
<!--components/2.0/filter/location.wxml-->
<view class="view cu-modal bottom-modal {{!hasShow?'show':''}}" bindtap="hide">
    <view class="cu-dialog confirm bg-white " catchtap="catchtap" style="border-radius: 40rpx 40rpx 0px 0px;">
        <view class="padding-lg">
            <view class="view txt-32-h">
                城市选择
            </view>
            <view class="flex margin-tb-lg">
                <view class="flex-treble text-bold txt-34-h flex justify-start">我的位置</view>
                <view class="flex justify-end align-center">
                    <image src="http://nosqn.colorcun.com/search/s%20%289%29.png" style="width: 28rpx;height: 28rpx;"></image>
                    <view class="margin-left-sm text-blue txt-26-h">重新定位</view>
                </view>
            </view>
            <view wx:if="{{true}}" class="flex justify-start align-start">
                <image src="http://nosqn.colorcun.com/search/s%20%2810%29.png"
                       style="width: 26rpx;height: 30rpx;margin-top: 6rpx;"></image>
                <view class="text-30 margin-left-sm flex-treble text-left">的说法是电风扇东风风神懂法守法水电费水电费水电费水电费水电费水电费水电费</view>
            </view>
            <view wx:else="" class="text-30 flex-treble text-center">未获取到位置</view>
            <view class="view margin-bottom-xl margin-top-lg grid col-4 city-view">
                <view class="view flex justify-center city-city" wx:for="{{citys}}" wx:key="citys">
                    <view class="view city">{{item.name}}</view>
                </view>
            </view>
            <view class="flex justify-center margin-bottom-lg margin-top">
                <button class="view cu-btn margin-right-xl round bg-ghostWhite" wx:if="{{opt.cancelText}}"
                        bindtap="tapButton" data-type="cancel"
                        style="color:{{opt.cancelColor}};">{{opt.cancelText}}</button>
                <button class="view cu-btn round bg-blue"
                        bindtap="tapButton" data-type="confirm"
                        style="color:{{opt.confirmColor}};">{{opt.confirmText}}</button>
            </view>
        </view>
    </view>
</view>
<getpos bindpos="onpos" id="getpos" hasFailPop></getpos>