<view class="container">
     <view class="fromtitle" bindtap="getweixinaddress" hidden="{{weixinaddresshidden}}"><image src="../../images/weixin.png"></image><text>{{weixinbutton}}</text><image class="arrowdown" src="../../images/icon-arrowdown.png"></image></view>
    
    <view class="myaddress-box">
     
      <view class="frombody">
            <form bindsubmit='saveaddress'>
            <view>
                  <text>收货人：</text><input name="contact" type="text" placeholder="请填写收货人地址" value="{{contact}}" />
            </view>
            <view>
                  <text>手机号码：</text><input name="tel" type="text" placeholder="请填写手机号码" value="{{tel}}" />
            </view>
            <view class="area" bindtap="onarea">   
                  <text>所在地区：</text><input name="area" type="text" disabled="disabled" placeholder="请选择地区" value="{{area}}"/><image src="../../images/icon-arrowdown.png"></image>
            </view>
            <view>
                  <text>详细地址：</text><input name="detail" type="text" placeholder="请填写街道、楼牌号等" value="{{detail}}" />
            </view>  
            <view>
                  <text>设为默认地址：</text>
                  <switch checked='{{IFDefault}}' color="#00B050" bindchange="changeisDefault"></switch>
            </view>  
            <view class="button">
                  <button form-type="submit">{{savebutton}}</button>
                  
            </view>  
      </form>
     </view>
 
</view>
<view class="Hidden_box" hidden="{{sectionHidden}}" bindtap="closesection">
<view class="section" catchtap="insection">
     <view class="section-title">省市区选择器</view>
     <view class="close" bindtap="closesection"><image src="../../images/close.png" /></view>
     <view class="section-body">
          <view>
            <text>省份：</text>
            <picker class="picker_hx" name="picker_hx" value="{{Provinces[hx_index].ProvinceID}}" data-selecthx="{{Provinces[hx_index].ProvinceName}}" range="{{Provinces}}" range-key="{{'ProvinceName'}}" bindchange="ProvinceChange">
           <view class="picker">
              <text hidden='{{Provinces[hx_index].ProvinceName==null}}'>{{Provinces[hx_index].ProvinceName}}</text>
              <text hidden='{{Provinces[hx_index].ProvinceName!=null}}'>==请选择==</text>
              <image src="../../images/icon-arrowdown1.png"></image>
           </view>
           
  </picker>
            
         </view>
     
         <view>
            <text>城市：</text>
            <picker class="picker_hx" name="picker_hx" value="{{Citys[hx_index0].CityID}}" data-selecthx="{{Citys[hx_index0].CityName}}" range="{{Citys}}" range-key="{{'CityName'}}" bindchange="CityChange">
            <view class="picker">
                  <text hidden='{{Citys[hx_index0].CityName==null}}'>{{Citys[hx_index0].CityName}}</text>
                  <text hidden='{{Citys[hx_index0].CityName!=null}}'>==请选择==</text>
                  <image src="../../images/icon-arrowdown1.png"></image>
           </view>
           
  </picker>
         </view>
         <view>
            <text>县区：</text>
            <picker class="picker_hx" name="picker_hx" value="{{Countys[hx_index1].CountyID}}" data-selecthx="{{Countys[hx_index1].CountyName}}" range="{{Countys}}" range-key="{{'CountyName'}}" bindchange="CountyChange">
            <view class="picker">
                  <text hidden='{{Countys[hx_index1].CountyName==null}}'>{{Countys[hx_index1].CountyName}}</text>
                  <text hidden='{{Countys[hx_index1].CountyName!=null}}'>==请选择==</text>
                  <image src="../../images/icon-arrowdown1.png"></image>
            </view>
          
  </picker>
         </view>
         

    </view>
</view>
</view>

</view>

   
<loading hidden="{{loadingHidden}}">
        加载中...
    </loading> 