<view class="container">
  <block>
    <view class="tc" wx:if="{{!hasAddress}}">
      <i class="t-icon t-icon-zanwushouhuodizhi" style=" width: 92px;height: 92px;margin-top: 90px;"></i>
      <view class="mt20 cccc">暂无地址</view>
    </view>
  </block>
  <block wx:if="{{hasAddress}}">
    <radio-group bindchange="radioChange">
      <view class="bgf br8 mt16 {{item.defaultFlag == 1?'borderImg':''}}" style="overflow:hidden;" wx:for="{{recordList}}" wx:key="{{item.id}}">
        <!-- <image wx:if="{{item.defaultFlag == 1}}" mode='aspectFit' src="http://matripe.oss-cn-beijing.aliyuncs.com/goodJob/wmk.svg" style="height:6px;width:100%;display: block;"></image> -->
        <view class="display-flex" style="padding:16px 10px">
          <view class="flex-1 c3">
            <view>
              <p class="c3 f18 fw500">{{item.contacts}}</p>
              <p class="c6 f18 ml10">{{item.contactsTel}}</p>
            </view>
            <view class="dib mt8">{{item.provinceName}} {{item.cityName}} {{item.districtName}} {{item.address}}</view>
          </view>
          <view wx:if="{{item.classify == 0}}" class="f14" style="color:#4db54b;">
            <i class="iconfont icon-jia f15"></i>
            家
          </view>
          <view wx:if="{{item.classify == 1}}" class="f14" style="color:#ff4400;">
            <i class="iconfont icon-gongsi f15"></i>
            公司
          </view>
          <view wx:if="{{item.classify == 2}}" class="f14" style="color:#FF7900;">
            <i class="iconfont icon-qita f15"></i>
            其他
          </view>
        </view>
        <view style="height: 1rpx;background-color:#eee;margin: 0 10px;"></view>
        <view class style="padding:16px 10px">
          <radio value="{{item.id}}" checked="{{item.defaultFlag == 1}}" color="#0dcc91" style="transform: scale(0.7);" />
          <text class="f14 {{item.defaultFlag == 1 ? 'cf00' : 'c9'}}">{{item.defaultFlag == 1 ? '默认' : '设为默认'}}</text>
          <view class="fr f14 c9">
            <navigator url="/pages/mine/addAddress/index?id={{item.id}}" class="dib" hover-class="text-hover">编辑</navigator>
            <!-- <view class="ml20 dib" hover-class="text-hover" bindtap="delAddress" data-record="{{item}}">删除</view> -->
          </view>
        </view>
      </view>
    </radio-group>
  </block>

  <button class="loginOut normalBtn" hover-class="button-hover" style="margin-top:80px;margin-bottom:40px;" catchtap="addAddress">添加地址</button>
</view>
