edit-address.wxml 1.1 KB
<!--pages/add-address/add-address.wxml-->
<view class="container">
  <van-cell-group class="addContent">
    <van-field value="{{ username }}" clearable label="姓名" icon="question-o" placeholder="请输入姓名"
      bind:click-icon="onClickIcon" bindinput="inputName" />
    <van-field value="{{ phone }}" label="电话" placeholder="请输入电话" bindinput="inputDel" bindblur="blurPhone" />
    <view class="location" catchtap="map">
      <text style="width:200rpx">收货地址</text>
      <text class="locationItem">{{location}}</text>
    </view>
    <van-field value="{{ value }}" label="详细地址" placeholder="请输入详细地址" bindinput="inputAddress" />
  </van-cell-group>

  <!-- 默认地址 -->
  <view class="defaultAddress">
    <view class="defaultText">设为默认地址</view>
    <view class="switch">
      <view class="body-view">
        <switch checked="{{switchChecked}}" bindchange="switch1Change" />
      </view>
    </view>
  </view>
  <!-- 保存删除 -->
  <view class="save" bindtap="save">保存</view>
  <view class="del" bindtap="delEvent">删除</view>
</view>