|
@@ -119,6 +119,13 @@ Page({
|
|
console.log(this.data.height);
|
|
console.log(this.data.height);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ //点击清空
|
|
|
|
+ clearHeight(){
|
|
|
|
+ this.setData({
|
|
|
|
+ height:null
|
|
|
|
+ })
|
|
|
|
+ console.log('清空',this.data.height);
|
|
|
|
+ },
|
|
//获取头像名称
|
|
//获取头像名称
|
|
async getname() {
|
|
async getname() {
|
|
const currentUser = Parse.User.current();
|
|
const currentUser = Parse.User.current();
|
|
@@ -139,7 +146,6 @@ Page({
|
|
console.log(this.data.User1List);
|
|
console.log(this.data.User1List);
|
|
},
|
|
},
|
|
onSelect(event) {
|
|
onSelect(event) {
|
|
- console.log(event.detail);
|
|
|
|
let {
|
|
let {
|
|
name
|
|
name
|
|
} = event.detail
|
|
} = event.detail
|
|
@@ -147,11 +153,30 @@ Page({
|
|
sex : name,
|
|
sex : name,
|
|
show2: false
|
|
show2: false
|
|
})
|
|
})
|
|
|
|
+ console.log(this.data.sex);
|
|
},
|
|
},
|
|
showSelect() {
|
|
showSelect() {
|
|
this.setData({
|
|
this.setData({
|
|
show2: true
|
|
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)
|
|
|
|
+ }
|
|
|
|
|
|
})
|
|
})
|