|
@@ -1,65 +1,60 @@
|
|
<!-- <StatusBar receiveData="{{statusbarobj}}" grade="{{grade}}" bindgradeTap="gradeTap" /> -->
|
|
<!-- <StatusBar receiveData="{{statusbarobj}}" grade="{{grade}}" bindgradeTap="gradeTap" /> -->
|
|
-
|
|
|
|
-<view style="background:#f7f7f7;margin-top:-30rpx;height: 100%">
|
|
|
|
- <view class="avatarBox" name="avatar" value="user.avatar">
|
|
|
|
- <image src="{{user.avatar}}" bindtap="changeAvatar" class="avatarImage" />
|
|
|
|
- <view class="avatar-text" bindtap="changeAvatar">
|
|
|
|
- <text>修改头像</text>
|
|
|
|
- <image src='../../../static/image/edit_new.png' class='icon'></image>
|
|
|
|
|
|
+<view style="background:#f7f7f7;overflow: hidden;height: 100%">
|
|
|
|
+ <button class="avatar-wrapper resetBtn" open-type="chooseAvatar" bind:chooseavatar="onChooseAvatar">
|
|
|
|
+ <image class="avatar" src="{{user.avatar}}"></image>
|
|
|
|
+ </button>
|
|
|
|
+ <view class='setting-info'>
|
|
|
|
+ <form bindsubmit="formSubmit" class='form'>
|
|
|
|
+ <view class='nickname-box'>
|
|
|
|
+ <text class='setting-title'>昵称</text>
|
|
|
|
+ <view class='user-action'>
|
|
|
|
+ <input name='nickname' type="nickname" placeholder="请输入昵称" class='nickname' maxlength="9" placeholder='{{user.nickName}}' placeholder-class='placeholderStyle' value='{{user.nickName}}' bindblur='saveNickName'></input>
|
|
|
|
+ </view>
|
|
|
|
+ <view class='edit-img'>
|
|
|
|
+ <image src='../../../static/image/edit_new.png' class='icon'></image>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class='sex-box'>
|
|
|
|
+ <view class='setting-title'>性别</view>
|
|
|
|
+ <radio-group name='radioGroup1' class="radio-group" bindchange="optionAction">
|
|
|
|
+ <label class="radio" wx:for="{{ sexs }}" wx:key="{{ index }}">
|
|
|
|
+ <text class='sex-title'>{{ item.sex }}</text>
|
|
|
|
+ <radio value="{{ item.value }}" checked="{{ item.checked }}" color='#fff' />
|
|
|
|
+ </label>
|
|
|
|
+ </radio-group>
|
|
|
|
+ </view>
|
|
|
|
+ <view class='birthday-box'>
|
|
|
|
+ <picker name='picker' mode="date" value="{{ date }}" start="1900-01-01" end="2020-09-01" bindchange="bindDateChange">
|
|
|
|
+ <view class="picker">
|
|
|
|
+ <text class='setting-title'>生日</text>
|
|
|
|
+ <text>{{ date }}</text>
|
|
|
|
+ </view>
|
|
|
|
+ </picker>
|
|
|
|
+ <view class='edit-img'>
|
|
|
|
+ <image src='../../../static/image/edit_new.png' class='icon'></image>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class='birthday-box'>
|
|
|
|
+ <picker name='gradePicker' value="{{gradeIndex}}" range="{{gradeArray}}" bindchange="bindGradeChange">
|
|
|
|
+ <view class="picker">
|
|
|
|
+ <text class='setting-title'>年级</text>
|
|
|
|
+ <text>{{ gradeObject[gradeIndex].name}}</text>
|
|
|
|
+ </view>
|
|
|
|
+ </picker>
|
|
|
|
+ <view class='edit-img'>
|
|
|
|
+ <image src='../../../static/image/edit_new.png' class='icon'></image>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class='school-box'>
|
|
|
|
+ <text class='setting-title'>学校</text>
|
|
|
|
+ <input name='address' maxlength="14" class='address' type='text' placeholder='{{user.schoolName}}' value='{{ user.schoolName }}' bindblur='saveAddress'></input>
|
|
|
|
+ <view class='edit-image'>
|
|
|
|
+ <image src='../../../static/image/edit_new.png' class='icon'></image>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="submit-btn">
|
|
|
|
+ <button class='btn' formType="submit">保存</button>
|
|
|
|
+ </view>
|
|
|
|
+ </form>
|
|
</view>
|
|
</view>
|
|
- </view>
|
|
|
|
- <view class='setting-info'>
|
|
|
|
- <form bindsubmit="formSubmit" class='form'>
|
|
|
|
- <view class='nickname-box'>
|
|
|
|
- <text class='setting-title'>昵称</text>
|
|
|
|
- <view class='user-action'>
|
|
|
|
- <input name='nickname' class='nickname' type='text' maxlength="9" placeholder='{{user.nickName}}' placeholder-class='placeholderStyle' focus='{{ true }}' value='{{user.nickName}}' bindblur='saveNickName'></input>
|
|
|
|
- </view>
|
|
|
|
- <view class='edit-img'>
|
|
|
|
- <image src='../../../static/image/edit_new.png' class='icon'></image>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- <view class='sex-box'>
|
|
|
|
- <view class='setting-title'>性别</view>
|
|
|
|
- <radio-group name='radioGroup1' class="radio-group" bindchange="optionAction">
|
|
|
|
- <label class="radio" wx:for="{{ sexs }}" wx:key="{{ index }}">
|
|
|
|
- <text class='sex-title'>{{ item.sex }}</text>
|
|
|
|
- <radio value="{{ item.value }}" checked="{{ item.checked }}" color='#fff' />
|
|
|
|
- </label>
|
|
|
|
- </radio-group>
|
|
|
|
- </view>
|
|
|
|
- <view class='birthday-box'>
|
|
|
|
- <picker name='picker' mode="date" value="{{ date }}" start="1900-01-01" end="2020-09-01" bindchange="bindDateChange">
|
|
|
|
- <view class="picker">
|
|
|
|
- <text class='setting-title'>生日</text>
|
|
|
|
- <text>{{ date }}</text>
|
|
|
|
- </view>
|
|
|
|
- </picker>
|
|
|
|
- <view class='edit-img'>
|
|
|
|
- <image src='../../../static/image/edit_new.png' class='icon'></image>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- <view class='birthday-box'>
|
|
|
|
- <picker name='gradePicker' value="{{gradeIndex}}" range="{{gradeArray}}" bindchange="bindGradeChange">
|
|
|
|
- <view class="picker">
|
|
|
|
- <text class='setting-title'>年级</text>
|
|
|
|
- <text>{{ gradeObject[gradeIndex].name}}</text>
|
|
|
|
- </view>
|
|
|
|
- </picker>
|
|
|
|
- <view class='edit-img'>
|
|
|
|
- <image src='../../../static/image/edit_new.png' class='icon'></image>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- <view class='school-box'>
|
|
|
|
- <text class='setting-title'>学校</text>
|
|
|
|
- <input name='address' maxlength="14" class='address' type='text' placeholder='{{user.schoolName}}' value='{{ user.schoolName }}' bindblur='saveAddress'></input>
|
|
|
|
- <view class='edit-image'>
|
|
|
|
- <image src='../../../static/image/edit_new.png' class='icon'></image>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- <view class="submit-btn">
|
|
|
|
- <button class='btn' formType="submit">保存</button>
|
|
|
|
- </view>
|
|
|
|
- </form>
|
|
|
|
- </view>
|
|
|
|
</view>
|
|
</view>
|