<block wx:if="{{!id && provinces}}">
  <van-cell title="一键获取微信收货地址" size="large" is-link bind:click="readFromWx" />
  <view class="space"></view>
</block>
<picker bindchange="provinceChange" value="{{pIndex}}" range="{{provinces}}" range-key="name">
  <van-cell title="省份" value="{{provinces[pIndex].name}}" is-link />
</picker>
<picker wx:if="{{cities}}" bindchange="cityChange" value="{{cIndex}}" range="{{cities}}" range-key="name">
  <van-cell title="城市" value="{{cities[cIndex].name}}" is-link />
</picker>
<picker wx:if="{{areas}}" bindchange="areaChange" value="{{aIndex}}" range="{{areas}}" range-key="name">
  <van-cell title="区县" value="{{areas[aIndex].name}}" is-link />
</picker>
<picker wx:if="{{streets}}" bindchange="streetChange" value="{{sIndex}}" range="{{streets}}" range-key="name">
  <van-cell title="街道/镇" value="{{streets[sIndex].name}}" is-link />
</picker>
<picker wx:if="{{communities}}" bindchange="communityChange" value="{{ccIndex}}" range="{{communities}}" range-key="name">
  <van-cell title="社区/村委会" value="{{communities[ccIndex].name}}" is-link />
</picker>
<van-field
  label="姓名"
  model:value="{{ linkMan }}"
  placeholder="填写收货人"
  input-align="right"
  clearable
/>
<van-field
  label="手机号码"
  model:value="{{ mobile }}"
  placeholder="填写手机号码"
  input-align="right"
  type="number"
  clearable
/>
<van-cell wx:if="{{ shipping_address_gps == '1' }}" title="选择定位" value="{{ addressData.latitude ? (addressData.latitude + ',' + addressData.longitude) : '请选择' }}" is-link bind:click="chooseLocation" />
<van-field
  label="详细地址"
  model:value="{{ address }}"
  placeholder="街道门牌信息"
  input-align="right"
  clearable
/>
<button type="primary" class="save-btn" bindtap="bindSave">保存</button>
<button type="danger" class="save-btn" bindtap="deleteAddress" data-id="{{id}}" wx:if="{{id}}">删除该地址</button>