address-management.wxml 2.48 KB
<view class="page">
  <view class="app__bgc bgc"></view>
  <view class="app__bg bg"></view>
  <view class="app__content main">
    <view class="top-space"></view>
    <view class="content">
      <!-- 地址 item -->
      <view class="manage-wrap">
        <view wx:for="{{receiverList}}" wx:key="index" class="cont-wrap form">
          <view bindtap="onSetDefaultHandler" data-data="{{item}}" class="ebg"></view>
          <view class="form-tit">
            <view class="address-message">
              <view class="address">
                地址{{index+1}}
                <block wx:if="{{item.defaultAddress == 1}}">:默认地址</block>
              </view>
              <view wx:if="{{item.defaultAddress == 1}}" class="used">当前使用</view>
            </view>
            <view bindtap="onAddressEditHandler" data-data="{{item}}" class="address-edit">编辑</view>
          </view>
          <view class="form-item">
            <view class="label">收货人</view>
            <view class="cont">{{item.receiverName}}</view>
          </view>
          <view class="form-item">
            <view class="label">收货电话</view>
            <view class="cont">{{item.receiverPhone}}</view>
          </view>
          <view class="form-item">
            <view class="label">收货地址</view>
            <view class="cont">{{item.receiverAddress}}</view>
          </view>
        </view>
        <!-- <view class="cont-wrap form">
          <view class="form-tit">
            <view class="address-message">
              <view class="address">地址一:默认地址</view>
              <view class="used">当前使用</view>
            </view>
            <view bindtap="onAddressEditHandler" class="address-edit">编辑</view>
          </view>
          <view class="form-item">
            <view class="label">收货人</view>
            <view class="cont">郑亮亮</view>
          </view>
          <view class="form-item">
            <view class="label">收货电话</view>
            <view class="cont">13800000000</view>
          </view>
          <view class="form-item">
            <view class="label">收货地址</view>
            <view class="cont">深圳市龙岗区XXX路</view>
          </view>
        </view> -->
      </view>
      <!-- 添加地址 -->
      <view bindtap="onAddressAddHandler" class="manage-add">+添加地址</view>
    </view>
  </view>
</view>
<van-popup show="{{ authorizeVisible }}">
  <authorize-comp bind:evtcomp="evtcomp"></authorize-comp>
</van-popup>