<!--pages/home/me/grzl/grzl.wxml-->
<!--返回图标-->
<view class="reback" bindtap="go2Reback"></view>
<view class="title">修改资料</view>
<image class="avatar1" src="{{userInfo.avatar}}"></image>
<view class="cameralogo"></view>

<view class="yhtx"></view>

<form bindsubmit="go2UpdateUserInfo">

</form>
<t-input focus="doChangeName1" class="nickname" name="nick"  placeholder="昵称不能为空" maxlength="7" value="{{userInfo.nick}}" bindblur="doChangeName1"  ></t-input>

<view class="xbwz">性别</view>
<view class="xzwz">星座</view>
<view class="srwz">生日</view>
<view class="jltxtxt">精灵头像</view>
<view class="xbtxt"  bindtap="changeSex">{{userInfo.spriteType=='male'?'男生':'女生'}}</view>
<view class="ssxz">{{userInfo.horoscope.name}}</view>
<view class="srtxt" bindtap="handleCalendar">{{userInfo.horoscope.date}}</view><!--生日-->
<t-calendar visible="{{cVisible}}" bind:confirm="changeDate"  />

<t-picker
  visible="{{sexVisible}}"
  value="{{cityValue}}"
  data-key="city"
  title="选择性别"
  cancelBtn="取消"
  confirmBtn="确认"
  bindchange="onPickerChange"
  bindpick="onColumnChange"
  bindcancel="onPickerCancel"
>
  <t-picker-item options="{{sexs}}" />
</t-picker>

<view class="txcheck" >
    <view  wx:for="{{avatars}}" class="itemxx"><image class="iii" src="{{item}}" data-img="{{item}}"      bindtap="changeAvatar"></image></view>
</view>