|
@@ -119,6 +119,13 @@ Page({
|
|
|
console.log(this.data.height);
|
|
|
}
|
|
|
},
|
|
|
+ //点击清空
|
|
|
+ clearHeight(){
|
|
|
+ this.setData({
|
|
|
+ height:null
|
|
|
+ })
|
|
|
+ console.log('清空',this.data.height);
|
|
|
+ },
|
|
|
//获取头像名称
|
|
|
async getname() {
|
|
|
const currentUser = Parse.User.current();
|
|
@@ -139,7 +146,6 @@ Page({
|
|
|
console.log(this.data.User1List);
|
|
|
},
|
|
|
onSelect(event) {
|
|
|
- console.log(event.detail);
|
|
|
let {
|
|
|
name
|
|
|
} = event.detail
|
|
@@ -147,11 +153,30 @@ Page({
|
|
|
sex : name,
|
|
|
show2: false
|
|
|
})
|
|
|
+ console.log(this.data.sex);
|
|
|
},
|
|
|
showSelect() {
|
|
|
this.setData({
|
|
|
show2: true
|
|
|
})
|
|
|
},
|
|
|
+ //修改名字
|
|
|
+ changenickname(e){
|
|
|
+ this.setData({
|
|
|
+ nickname:e.detail
|
|
|
+ })
|
|
|
+ console.log(this.data.nickname);
|
|
|
+ },
|
|
|
+ //上传信息
|
|
|
+ async setinfo(){
|
|
|
+ const currentUser = Parse.User.current();
|
|
|
+ let Userquery = new Parse.Query('_User');
|
|
|
+ Userquery.equalTo('company', company);
|
|
|
+ Userquery.equalTo('objectId', currentUser.id);
|
|
|
+ Userquery.notEqualTo('isDeleted', true)
|
|
|
+ let user = await Userquery.first();
|
|
|
+ user.set('sex',this.data.sex)
|
|
|
+ user.set('nickname',this.data.nickname)
|
|
|
+ }
|
|
|
|
|
|
})
|