<!-- pages/member/info/info.wxml -->
<view class="info">
 <view class="user" >
      <view class="left">
        <view class="user-avatar" >
            <image src="{{avatar_image}}" ></image>
          </view>
          <view style="margin-left:1rem;margin-top:0.5rem;">{{nickname}}</view>
      </view>
      <view class="update-btn" bindtap="getUserProfileTap">更新资料
        <!-- <button class="button_2" open-type="getUserInfo" bindgetuserinfo="getCode"></button> -->
      </view>
  </view>
  <view class="cell_box">
    <view class="title">基本信息</view>
    <block wx:if="{{change_info}}">
      <view class="member_photo">
        <view class="member_photo_text">会员头像</view>
        <van-uploader
          file-list="{{ fileList }}"
          deletable="{{ true }}" 
          bind:after-read="afterRead"
          bind:delete="deletePhoto"     
          max-count="1"
        />
      </view>
      <van-cell-group >
        <view class="inp_content">
          <view class="left" style="margin-left: 10rpx;">昵称：</view>
          <view class="right">
            <van-field value="{{_nickname}}" placeholder="请输入您的昵称" border="{{ false }}"   bind:blur="nicknameChange"/>
          </view>
        </view>
      </van-cell-group>
    </block>

    <van-cell-group wx:if="{{formName}}">
      <view class="inp_content">
        <view class="left">
          <view wx:if="{{name_must}}" style="color:#f15353;margin-right: 10rpx;">*</view>
        姓名：</view>
        <view class="right">
          <van-field value="{{info_form.realname}}" placeholder="请输入您的姓名" border="{{ false }}" bind:blur="realnameinp" />
        </view>
      </view>
    </van-cell-group>
    <van-cell-group catchtap="bindTel">
      <van-cell title="手机号" value="{{info_form.mobile}} {{bind_btn}}" is-link />
    </van-cell-group>
    <van-cell-group wx:if="{{isShowSex}}">
      <van-cell bind:click="showSexInfo" title="性别" value="{{sexName?sexName:'请选择性别'}}" is-link />
    </van-cell-group>
    <van-cell-group wx:if="{{isShowBirthday}}">
      <picker mode="date" value="{{date}}" start="1900-01-01" end="{{date}}" bindchange="bindDateChange">
        <van-cell bind:click="openPicker" title="生日" value="{{info_form.birthday?info_form.birthday:'请选择生日'}}" is-link />
      </picker>
    </van-cell-group>
    <van-cell-group>
      <view class="inp_content" wx:if="{{lofgin_show}}">
        <view class="left">微信号：</view>
        <view class="right">
          <van-field value="{{info_form.wx}}" placeholder="请输入微信号" border="{{ false }}" bind:blur="wxinp" />
        </view>
      </view>
    </van-cell-group>
  </view>
  <view class="cell_box" wx:if="{{lofgin_show}}">
    <view class="title">支付宝信息</view>
    <van-cell-group>
      <view class="inp_content">
        <view class="left">支付宝账号：</view>
        <view class="right">
          <van-field value="{{info_form.alipay}}" placeholder="请输入支付宝账号" border="{{ false }}" bind:blur="alipayinp" />
        </view>
      </view>
    </van-cell-group>
    <van-cell-group>
      <view class="inp_content">
        <view class="left">账号姓名：</view>
        <view class="right">
          <van-field value="{{info_form.alipay_name}}" placeholder="请输入支付宝账号姓名" border="{{ false }}" bind:blur="alipayNameinp" />
        </view>
      </view>
    </van-cell-group>
  </view>
  <view class="cell_box" wx:if="{{isShowAddress}}">
    <view class="title">所在地信息</view>
    <van-cell-group>
      <van-cell bind:click="showAddBtn" title="所在地区" value="{{districtName}}" is-link />
      <view class="textcontent">
        <van-field type="textarea" value="{{info_form.address}}" placeholder="请输入详细地址" border="{{ false }}" bind:blur="addressinp" />
      </view>
    </van-cell-group>
  </view>
  <view class="cell_box" wx:if="{{isForm}}">
    <view class="title">其他信息</view>
    <van-cell-group>
      <view wx:for-item="cItem" wx:for-index="cItemidx" wx:key="{{cItemidx}}" wx:for="{{customDatas}}" class="inp_content">
        <view class="left {{formOpen ? 'required' : ''}}">{{cItem.name}}：</view>
        <view class="right">
          <van-field value="{{cItem.value}}" placeholder='{{"请输入"+cItem.name}}' border="{{ false }}" bind:blur="cItemInp" data-citemidx="{{cItemidx}}" disabled="{{formEdit}}" />
        </view>
      </view>
    </van-cell-group>
  </view>
  <view class="cell_box" wx:if="{{lofgin_show}}">
    <view class="title">银行卡信息</view>
    <van-cell-group>
      <van-cell title="银行卡" is-link bind:click="editBank" />
    </van-cell-group>
  </view>
  <view class="cell_box" wx:if="{{isBalancePwd}}">
    <view class="title">支付密码</view>
    <van-cell-group>
      <van-cell title="支付密码" bind:click="editBalancePwd" is-link />
    </van-cell-group>
  </view>
  <view class="cell_box" wx:if="{{is_custom}}">
    <view class="title">{{custom_title+"信息"}}</view>
    <van-cell-group>
      <van-cell title="{{custom_title}}" bind:click="editCustom" value="{{custom_value}}" is-link />
    </van-cell-group>
  </view>
  <view class="cell_box" wx:if="{{isBankRecharge}}">
    <view class="title">银行卡提现信息</view>
    <van-cell-group>
      <van-cell title="开户信息" bind:click="gotoBankCash" is-link />
    </van-cell-group>
  </view>
  <view class="cell_box" wx:if="{{is_open_converge_pay}}">
    <view class="title">结算账户信息</view>
    <van-cell-group>
      <van-cell title="账户信息" bind:click="editUSer" is-link />
    </van-cell-group>
  </view>
  <view class="cell_box" wx:if="{{memberCancel == 1}}">
    <view class="title">注销服务</view>
    <van-cell-group>
      <van-cell title="账户注销" bind:click="goMemberCancel" is-link />
    </van-cell-group>
  </view>
  <view class="buttongroup">
    <view class="button" catchtap="submitInfo">确认修改</view>
  </view>
</view>
<van-action-sheet show="{{showSex}}" actions="{{sexItems}}" bind:close="sexClose" bind:select="sexSelectBtn" cancel-text="取消" bind:cancel="sexClose" />
<!-- <van-popup position="bottom" show="{{birthdayShow}}" bind:close="birthdayClose">
		<van-datetime-picker type="date" value="{{currentDate_1}}" bind:cancel="birthdayClose" bind:confirm="birthdayconfirm" bind:input="birthdayChange" />
</van-popup> -->
<view class="b-mask {{showAdd}}" bindtap="_closeDateLw"></view>
<view class="dateBe {{showAdd}}">
  <view class="head">
    <view class="ll" bindtap="_closeDateLw">取消</view>
    <view class="rr" bindtap="resultAdd">确定</view>
  </view>
  <view class="main">
    <picker-view indicator-style="height: 50px;" style="width: 100%; height: 300px;" value="{{[pickerValue[0],pickerValue[1],pickerValue[2]]}}" bindchange="bindChange">
      <picker-view-column id="provinceData">
        <view wx:for="{{provinceData}}" wx:key="index" style="line-height: 50px">{{item.areaname}}</view>
      </picker-view-column>
      <picker-view-column id="cityData">
        <view wx:for="{{cityData}}" wx:key="index" style="line-height: 50px">{{item.areaname}}</view>
      </picker-view-column>
      <picker-view-column id="districtData">
        <view wx:for="{{districtData}}" wx:key="index" style="line-height: 50px">{{item.areaname}}</view>
      </picker-view-column>
    </picker-view>
  </view>
</view>
<!--<shopfoot></shopfoot>-->
