location.wxml 2.2 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" bindtap="rePos">
                    <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="{{address}}" class="flex justify-start align-start" bindtap="rePos" data-is-addr="{{true}}">
                <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">{{address}}</view>
            </view>
            <view wx:else="" class="text-30 flex-treble text-center">未获取到位置</view>
            <view class="view margin-top-lg grid col-4 city-view">
                <view class="view flex justify-center city-city"
                      bindtap="checkedCity" data-index="{{index}}"
                      wx:for="{{citys}}" wx:key="citys">
                    <view class="view city {{activeCity.code==item.code?'active':''}}">{{item.name}}</view>
                </view>
            </view>
            <view class="txt-24-h text-gray margin-bottom-lg ">更多城市敬请期待…</view>
            <view class="flex justify-center padding-top-lg">
                <button class="view cu-btn round bg-ghostWhite txt-34-h"
                        style="width: 100%;color:#666666; height: 80rpx;"
                        bindtap="hide">
                    取消
                </button>
            </view>
        </view>
    </view>
</view>
<getpos bindpos="onpos" id="getpos" hasFailPop></getpos>