...
|
...
|
@@ -9,7 +9,7 @@ |
|
|
</label>
|
|
|
</li>
|
|
|
<li>
|
|
|
<label>昵称<input class="nickname" v-model='nickname' @blur="setNickname"></label>
|
|
|
<label>昵称<input class="nickname" v-model='nickname' @input="setNickname" @change="checkNickname"></label>
|
|
|
</li>
|
|
|
<li>
|
|
|
<label @click="setAender">性别
|
...
|
...
|
@@ -53,14 +53,19 @@ |
|
|
setAvatar: function() {
|
|
|
yoho.goSetAvatar();
|
|
|
},
|
|
|
setNickname: function() {
|
|
|
checkNickname: function() {
|
|
|
if (!this.nickname) {
|
|
|
tip('昵称不能为空');
|
|
|
this.nickname = this.currentval;
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
this.currentval = this.nickname;
|
|
|
},
|
|
|
setNickname: function() {
|
|
|
if (!this.nickname || this.currentval === this.nickname) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
this.saveDetails({
|
|
|
nickname: this.nickname
|
|
|
});
|
...
|
...
|
|