<!--components/location-item/location-item.wxml-->
<view class="item">
    <view class="info" bind:tap="handleSelect">
        <view class="location">
            {{locationStr}}
            <view class="delete" catch:tap="handleDelete">
                <image src="../../../assets/img/delete.svg"></image>
            </view>
        </view>
        <view class="address">
            <view class="address-info">{{item.address}}</view>
            <view class="edit" catch:tap="handleEdit">
                <image style="width: 100%;height: 100%;" src="../../../assets/img/edit.svg" class="icon" />
            </view>
        </view>
        <view class="footer">
            <view class="user">
                <view class="name">{{item.name}}</view>
                <view class="phone">{{item.mobile}}</view>
            </view>
            <view class="default-address">
                <view class="default-item" wx:if="{{item.defaultStatus}}">默认收货地址</view>
                <view class="default-item" style="color: #AEADB2;" wx:if="{{!item.defaultStatus}}">选为默认收货地址</view>
                <van-switch class="switch" checked="{{item.defaultStatus == true}}" size="30rpx" active-color="#FA6905"
                    bind:change="handleSwitch" catch:tap="stopTap" />
            </view>
        </view>

    </view>

</view>