<!--pages/userCenter.wxml-->
<view class='page-memberOfOwn'>
	<view class='own-content'>
		<view class='user-info'>
			<view class="user-avatar">
				<open-data type="userAvatarUrl" />
			</view>
			<view class='user-name-content'>
				<view class='user-name'>
					<open-data type="userNickName" class="userinfo-nickname" lang="zh_CN" />
				</view>
				<view class='user-id'>{{memberCardNo}}</view>
			</view>
			<!--	<view class='qr-code pr'>
				<image src='/assets/imgs/711_11.png' bindtap='handleGoWxCard' />
			</view>-->
		</view>
		<view class='user-qr-code'>
			<canvas canvas-id="barcode" binderror="canvasIdErrorCallback" />
			<view class='wx-pay-code' bindtap="onTapWxPay">微信支付</view>
		</view>
	</view>

	<view class="form-info">
		<form bindsubmit="formSubmit">
			<view class="picker">
				<view class='form-label'>姓名</view>
				<view class="right-input">
					<input
					 class='form-input'
					 name="name"
					 maxlength="20"
					 value="{{memberInfo.name}}"
					 placeholder="用户姓名"
					/>
				</view>
			</view>

			<view class="picker">
				<view class='form-label'>手机号</view>
				<view class="right-input">
					<input
					 class='form-input'
					 name="mobile"
					 disabled
					 value="{{memberInfo.mobile}}"
					 placeholder="请输入手机号"
					/>
				</view>
			</view>

			<picker
			 bindchange="bindPickerChange"
			 name="sex"
			 value="{{index}}"
			 range="{{array}}"
			>
				<view class="picker">
					<view class='form-label'>性别</view>
					<view class="right-input form-input">{{array[index]}}</view>
				</view>
			</picker>

			<picker
			 mode="date"
			 value="{{date}}"
			 end="{{endTime}}"
			 name="birthday"
			 disabled="{{memberInfo.birthday}}"
			 bindchange="bindDateChange"
			>
				<view class="picker">
					<view class='form-label'>生日</view>
					<view class="right-input">
						<view class="form-input" wx:if="{{date == ''}}">请选择生日</view>
						<view class="form-input" wx:else>{{date}}</view>
						<view class='birthday-desc'>*生日信息一经填写，不可调整</view>
					</view>
				</view>
			</picker>

			<view class="picker">
				<view class='form-label'>邮箱</view>
				<view class="right-input">
					<input
					 class='form-input'
					 name="email"
					 value="{{memberInfo.email}}"
					 placeholder="请输入邮箱"
					/>
				</view>
			</view>

			<view class="picker-address">
				<view class='form-label'>地址</view>
				<view class="right-input">
					<!--<view wx:if="{{memberInfo.address}}">{{memberInfo.address}}</view>-->
					<view>
						<textarea
						 bindblur="bindTextAreaBlur"
						 placeholder="请填写真实收件地址"
						 placeholder-style="color:#999;font-size:13px;"
						 name="address"
						 auto-height
						 maxlength='30'
						 value="{{memberInfo.address}}"
						/>
						</view>
        </view>
      </view>

     <button type='primary' class='btn-primary' form-type="submit" style="background-color: rgb(2, 186, 112);">确认</button>
  </form>
</view>
</view>

