123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <view>
- <auth bindlogin="loginSuccess" />
- <view class="photo">
- <view class="userinfo-avatar" bindtap="selectPhoto" style="background-image: url({{avatar}})">
- </view>
- <text class="userinfo-nickname">点击修改头像</text>
- <!-- {{userInfo.nickName}} -->
- </view>
- <view class="info">
- <view class="item">
- <text>用户昵称</text>
- <view class="ir">
- <input maxlength="15" value="{{nickname}}" class="ipname" bindinput="updateNickName"></input>
- </view>
- </view>
- <view class="item">
- <text>手机号</text>
- <view class="ir">
- <input value="{{mobile}}" class="ipname" disabled wx:if="{{mobile}}"></input>
- <button wx:if="{{!mobile}}" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber" class="getPhone">点击获取手机号</button>
- </view>
- </view>
- <view class="item">
- <text>性别</text>
- <view class="ir radio">
- <view class="checkbox" bindtap="updateSex" data-sex="{{1}}">
- <image src="{{gender === 1 ? '/static/images/icon-normal_checkbox-checked.png' :'/static/images/icon-normal_checkbox.png' }}" ></image>
- 男
- </view>
- <view class="checkbox" bindtap="updateSex" data-sex="{{0}}">
- <image src="{{gender === 0 ? '/static/images/icon-normal_checkbox-checked.png' :'/static/images/icon-normal_checkbox.png' }}" ></image>
- 女
- </view>
- </view>
- </view>
-
- <view class="item">
- <text>生日</text>
- <view class="ir">
- <picker bindchange="bindDateChange" mode="date" value="{{birthday}}">
- <view class="picker-date">
- {{birthday ? birthday : ''}}
- <image src="/static/images/go.png"></image>
- </view>
- </picker>
- </view>
- </view>
- <view class="item">
- <text>城市</text>
- <view class="ir">
- <picker bindchange="bindRegionChange" mode="region" value="{{region}}" >
- <view class="picker-date">
- <block wx:if="{{region.length}}">
- {{region[0]}},{{region[1]}},{{region[2]}}
- </block>
- <image src="/static/images/go.png"></image>
- </view>
- </picker>
- </view>
- </view>
- </view>
- <view class="save">
- <button bindtap="save">保存</button>
- </view>
- </view>
|