|  | @@ -192,8 +192,8 @@ Page({
 | 
	
		
			
				|  |  |          if (dep) {
 | 
	
		
			
				|  |  |              if (dep[0].isCheck == true) {
 | 
	
		
			
				|  |  |                  this.setData({
 | 
	
		
			
				|  |  | -                    name:dep[0].name,
 | 
	
		
			
				|  |  | -                    phone:dep[0].mobile,
 | 
	
		
			
				|  |  | +                    name: dep[0].name,
 | 
	
		
			
				|  |  | +                    phone: dep[0].mobile,
 | 
	
		
			
				|  |  |                      departname: dep[0].department.name,
 | 
	
		
			
				|  |  |                      selectname: dep[0].center.name,
 | 
	
		
			
				|  |  |                      selectobjectid: dep[0].center.objectId,
 | 
	
	
		
			
				|  | @@ -234,7 +234,7 @@ Page({
 | 
	
		
			
				|  |  |      //上传信息
 | 
	
		
			
				|  |  |      async setinfo() {
 | 
	
		
			
				|  |  |          if (this.data.title == '资料认证') {
 | 
	
		
			
				|  |  | -            if (!this.data.name || !this.data.sex || !this.data.selectobjectid || !this.data.height||!this.data.phone) {
 | 
	
		
			
				|  |  | +            if (!this.data.name || !this.data.sex || !this.data.selectobjectid || !this.data.height || !this.data.phone) {
 | 
	
		
			
				|  |  |                  wx.showToast({
 | 
	
		
			
				|  |  |                      title: '请输入相关内容',
 | 
	
		
			
				|  |  |                      icon: 'none',
 | 
	
	
		
			
				|  | @@ -333,7 +333,37 @@ Page({
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +        if (this.data.title == '完善资料') {
 | 
	
		
			
				|  |  | +            if (!this.data.avatar || !this.data.nickname) {
 | 
	
		
			
				|  |  | +                wx.showToast({
 | 
	
		
			
				|  |  | +                    title: '请输入相关内容',
 | 
	
		
			
				|  |  | +                    icon: 'none',
 | 
	
		
			
				|  |  | +                    duration: 2000
 | 
	
		
			
				|  |  | +                })
 | 
	
		
			
				|  |  | +                return
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +            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('avatar', this.data.avatar)
 | 
	
		
			
				|  |  | +            user.set('nickname', this.data.nickname)
 | 
	
		
			
				|  |  | +            try {
 | 
	
		
			
				|  |  | +                user.save()
 | 
	
		
			
				|  |  | +                wx.showToast({
 | 
	
		
			
				|  |  | +                    title: '提交成功',
 | 
	
		
			
				|  |  | +                    icon: 'success',
 | 
	
		
			
				|  |  | +                    duration: 2000
 | 
	
		
			
				|  |  | +                })
 | 
	
		
			
				|  |  | +                setTimeout(() => {
 | 
	
		
			
				|  |  | +                    this.goback()
 | 
	
		
			
				|  |  | +                }, 2000);
 | 
	
		
			
				|  |  | +            } catch {
 | 
	
		
			
				|  |  | +                console.log('保存失败');
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      // 获取部门信息
 | 
	
		
			
				|  |  |      async getDepartment() {
 | 
	
	
		
			
				|  | @@ -433,7 +463,11 @@ Page({
 | 
	
		
			
				|  |  |          });
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      //返回上一页
 | 
	
		
			
				|  |  | -    goback() {
 | 
	
		
			
				|  |  | +  async  goback() {
 | 
	
		
			
				|  |  | +        let pages = getCurrentPages(); //页面对象
 | 
	
		
			
				|  |  | +        let prevpage = pages[pages.length - 2]; //上一个页面对象
 | 
	
		
			
				|  |  | +        console.log(prevpage);
 | 
	
		
			
				|  |  | +        await prevpage.updateCom3()
 | 
	
		
			
				|  |  |          wx.navigateBack({
 | 
	
		
			
				|  |  |              delta: 1 // 返回上一页
 | 
	
		
			
				|  |  |          });
 |