<view class="container">
  <view class="address-list" wx:if="{{ addressList.length > 0 }}">
    <view class="item" wx:for="{{addressList}}" wx:key="{{item.id}}" bindtap="selectAddress" data-address-id="{{item.id}}">
      <view class="l">
        <view class="name">{{item.userName}}</view>
        <view class="default" wx:if="{{item.is_default}}">默认</view>
      </view>
      <view class="c">
        <view class="mobile">{{item.telNumber}}</view>
        <view class="address">{{item.provinceName+item.cityName+item.countyName+item.detailInfo}}</view>
      </view>
      <view class="r">
        <image catchtap="addressAddOrUpdate" data-address-id="{{item.id}}" class="del" src="http://image.meiping123.com/upload/20180104/112117388db63c.png"></image>
      </view>
    </view>
  </view>
  <view class="empty-view" wx:if="{{ addressList.length <= 0 }}">
    <image class="icon" src="http://image.meiping123.com/upload/20180104/112152443d4dff.png"></image>
    <text class="text">收货地址在哪里</text>
  </view>
  <view class="add-address" bindtap="addressAddOrUpdate" data-address-id="0">新建</view>
  <view class="sync-address" bindtap="getWtAddress" >微信地址</view>
</view>