<navbar back home text="新增收货地址" color="{{typeLsit.sy_top_f.styleClass}}" background="{{typeLsit.sy_top.styleClass}}"></navbar>
<view style="height:{{navigationBarHeight}} "></view>
<view class="itemBox">
  <view class="title">收货人</view>
  <view class="inputBox">
    <input class="text" bindinput="setUserName" value="{{userName}}"></input>
  </view>
</view>
<view class="itemBox">
  <view class="title">手机号码</view>
  <view class="inputBox">
    <input class="text" bindinput="setUserPhone" value="{{userPhone}}"></input>
  </view>
</view>
<view class="itemBox">
  <view class="title">所在地区</view>
  <view class="inputBox">
    <picker mode="region" class="text" bindchange="bindRegionChange" value="{{region}}" custom-item="{{customItem}}">
      <view class="picker">
        {{region[0]}}，{{region[1]}}，{{region[2]}}
      </view>
    </picker>
    <!-- <input  bindinput="setRegion"></input> -->
  </view>
</view>
<view class="itemBox">
  <view class="title">详细地址</view>
  <view class="inputBox">
    <input class="text" bindinput="setDetail" value="{{detail}}"></input>
  </view>
</view>
<view class="tacitly">
  <view class="sez">
    设为默认地址</view>
  <view class="switchBox">
    <switch checked="{{switch1Checked}}" bindchange="switch1Change" />
  </view>
</view>
<view class="btns">
  <button type="primary" class="submit" bindtap="addSite">保存</button>
  <button type="warn" class="submit" wx:if="{{id}}" bindtap="dleSite">删除</button>
</view>