<import src="../../wxParse/wxParse.wxml"/> 
<view class="container">
  <form bindsubmit='saveaddress'>
    <view class="myaddress-box" style="padding-bottom: 3em;">
      <view class="frombody">
      
       
        <view class="area">   

          <picker class="picker_hx" disabled="{{ifedit==0}}" name="picker_hx0" value="{{clslist[hc_index].id}}" data-selecthx="{{clslist[hc_index].name}}" range="{{clslist}}" range-key="{{'name'}}" bindchange="clsChange">
                  <text>商家分类：</text><input name="sjfl" type="text" disabled="disabled" placeholder="请选择商家分类" value="{{clsname}}"/><image wx:if="{{ifedit==1}}" src="../../images/icon-arrowdown.png"></image>
          </picker>
            </view>
            <view>
                  <text>商家名称：</text><input name="txtName" type="text" placeholder="请填写商家名称" value="{{sjname}}" disabled="{{ifedit==0}}" />
            </view>
            <view>
                  <text>商家让利：</text><input name="txtylmoney" type="text" placeholder="请填写商家让利（{{ylmoney}}-{{ylmoney0}}）" value="{{sjylmoney}}" disabled="{{ifedit==0}}" /><text>%</text>
            </view>
            <view>
                  <text>信用代码：</text><input name="txtnumber" type="text" placeholder="请填写统一社会信用代码" value="{{number}}" disabled="{{ifedit==0}}" />
            </view>
            <view>
                  <text>对公账号：</text><input name="txtdgzh" type="text" placeholder="没有可留空" value="{{dgzh}}" disabled="{{ifedit==0}}" />
            </view>
            
            <view>
                  <text>法人姓名：</text><input name="txtfrname" type="text" placeholder="请填写公司法人姓名" value="{{frname}}" disabled="{{ifedit==0}}" />
            </view>
            <view>
                  <text style="width: 7em;">法人身份证号：</text><input name="txtfridcard" type="text" placeholder="请填写法人身份证号码" value="{{fridcard}}" disabled="{{ifedit==0}}" />
            </view>
          
            <view>
                  <text>联系电话：</text><input name="txttel" type="text" placeholder="请填写联系电话" value="{{tel}}" disabled="{{ifedit==0}}" />
            </view>
            <view class="upimage_box" style="border-bottom: 0;">
                  <text>门头照片：</text><view class="image"><image src='{{sjimage0}}' bindtap="onsjimage" data-id="0"></image>
                   <!--<image src='{{sjimage5}}' bindtap="onsjimage" data-id="5"></image><image src='{{sjimage6}}' bindtap="onsjimage" data-id="6"></image>-->
                  </view>
            </view>
            <!--<view style="color:#848484">
                最多可上传3张预览图片
           </view>-->
            <view class="upimage0_box">
                  <view class="upimage0_title">上传证件：</view>
                  <view class="upimage0_box_to">
                  <view class="image"  bindtap="onsjimage" data-id="1"><image src='{{sjimage1}}'></image><text>营业执照</text></view>
                  <view class="image"  bindtap="onsjimage" data-id="2"><image src='{{sjimage2}}'></image><text>银行卡</text></view>
                  <view class="image"  bindtap="onsjimage" data-id="3"><image src='{{sjimage3}}'></image><text>身份证正面</text></view>
                  <view class="image"  bindtap="onsjimage" data-id="4"><image src='{{sjimage4}}'></image><text>身份证反面</text></view>
                 </view>
            </view>
           
            <view class="area" bindtap="onarea">   
                  <text>所在地区：</text><input name="area" type="text" disabled="disabled" placeholder="请选择地区" value="{{area}}"/><image wx:if="{{ifedit==1}}" src="../../images/icon-arrowdown.png"></image>
            </view>
            <view>
                  <text>详细地址：</text><input name="detail" type="text" placeholder="请填写街道、楼牌号等" value="{{detail}}" disabled="{{ifedit==0}}" />
            </view>  
            <view class="area" bindtap="onannotatemap">   
                  <text>标注地图：</text><input name="annotatemap" type="text" disabled="disabled" placeholder="请标注地图" value="{{annotatemap}}"/><image wx:if="{{ifedit==1}}" src="../../images/icon-arrowdown.png"></image>
            </view>
            <view>
                  <text>服务内容：</text><input name="fwbody" type="text" placeholder="请填写服务内容" value="{{fwbody}}" disabled="{{ifedit==0}}" />
            </view> 
           
        
      
     </view>
     <view class="frombody">
      <view style="font-weight: 800;color:#ff4d00;">
          收款银行资料
        </view>
        <view>
                  <text>开户姓名：</text><input name="AccountName" type="text" placeholder="请填写您的开户姓名" value="{{khname}}" disabled="{{ifedit==0}}" />
            </view>
            <view class="area" bindtap="onBank">
                  <text>银行名称：</text>
                  <picker class="picker_hx" disabled="{{ifedit==0}}" name="picker_hx" value="{{BankNames[index].key}}" data-selecthx="{{BankNames[index].key}}" range="{{BankNames}}" range-key="{{'key'}}" bindchange="BankChange"> <view class="picker">
              <text wx:if='{{BankNames[index]!=null}}'>{{BankNames[index].key}}</text>
              <text wx:if='{{BankNames[index]==null}}'>==请选择==</text>
              <image wx:if="{{ifedit==1}}" src="../../images/icon-arrowdown1.png"></image>
           </view></picker>
             
            </view>
            <view>
                  <text>银行卡号：</text><input name="BankCard" type="text" placeholder="请填写银行卡号" value="{{bankcard}}" disabled="{{ifedit==0}}" />
            </view>
            <view>
                  <text>开户行或联行号：</text><input name="BankDepos" type="text" placeholder="对公请填写联行号" value="{{BankDepos}}" />
            </view>
    </view>
   
    
</view>
<view class="footer" wx:if="{{ifedit==1}}">

  <button form-type="submit">{{savebutton}}</button>
  
</view>
</form>
</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 class="Hidden_box" hidden="{{sectionHidden0}}" bindtap="closesection0">
<view class="section" catchtap="insection" style="margin-top: 0em; width: 100%; height: 100%;padding: 0;">
     <view class="section-title">点击地图标注</view>
     <view class="close" bindtap="closesection0"><image src="../../images/close.png" /></view>
     <view class="section-body">
      <map id="myMap" latitude="{{latitude}}" longitude="{{longitude}}" scale="{{scale}}" style="width: 100%; height: 86vh;" show-location="{{true}}" bindtap="maptap" bindpoitap="maptap" bindmarkertap="markertap" bindregionchange="regionchange" markers="{{markers}}">
        <cover-view class="loading" wx:if="{{loading}}">
    <cover-view class="loading-to">
      <cover-image src="../../images/ajaxLoader.gif"></cover-image>
    </cover-view>
  </cover-view>
        </map>  
    </view>
</view>
</view>


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