修改
This commit is contained in:
parent
49c2212a71
commit
c6cc0e8d0a
@ -2,5 +2,5 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
var baseurl = "http://192.168.16.30:8080";
|
var baseurl = "http://192.168.16.49:8080";
|
||||||
export default baseurl
|
export default baseurl
|
||||||
|
|||||||
@ -128,6 +128,7 @@
|
|||||||
image: false, //判断是否上传头像
|
image: false, //判断是否上传头像
|
||||||
certificateimg: [], //证书img
|
certificateimg: [], //证书img
|
||||||
myimg: null, //头像img
|
myimg: null, //头像img
|
||||||
|
uploadcertificateimg: [], //上传的证书img
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -158,6 +159,7 @@
|
|||||||
count: 9,
|
count: 9,
|
||||||
success(res) {
|
success(res) {
|
||||||
res.tempFilePaths.forEach(e => {
|
res.tempFilePaths.forEach(e => {
|
||||||
|
that.uploadcertificateimg.push(e)
|
||||||
that.certificateimg.push(e)
|
that.certificateimg.push(e)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -178,6 +180,7 @@
|
|||||||
},
|
},
|
||||||
//个人信息
|
//个人信息
|
||||||
myInfo() {
|
myInfo() {
|
||||||
|
this.certificateimg = []
|
||||||
nurseAppletPersonCenter(this.nursePersonId).then(res => {
|
nurseAppletPersonCenter(this.nursePersonId).then(res => {
|
||||||
res.data.sex == 'MALE' ? res.data.sex = '男' : ''
|
res.data.sex == 'MALE' ? res.data.sex = '男' : ''
|
||||||
res.data.sex == 'FEMALE' ? res.data.sex = '女' : ''
|
res.data.sex == 'FEMALE' ? res.data.sex = '女' : ''
|
||||||
@ -201,7 +204,7 @@
|
|||||||
//上传证书
|
//上传证书
|
||||||
uploadcertificateimgs() {
|
uploadcertificateimgs() {
|
||||||
let that = this
|
let that = this
|
||||||
if (this.certificateimg.length > 0) {
|
if (this.uploadcertificateimg && this.uploadcertificateimg.length > 0) {
|
||||||
this.certificateimg.forEach(e => {
|
this.certificateimg.forEach(e => {
|
||||||
uni.uploadFile({
|
uni.uploadFile({
|
||||||
url: baseurl +
|
url: baseurl +
|
||||||
@ -232,6 +235,7 @@
|
|||||||
gofinish() {
|
gofinish() {
|
||||||
var that = this
|
var that = this
|
||||||
if (this.image) {
|
if (this.image) {
|
||||||
|
console.log(3)
|
||||||
uni.uploadFile({
|
uni.uploadFile({
|
||||||
url: baseurl + '/nurseApp/personLogin/updateHeadAvatarHead',
|
url: baseurl + '/nurseApp/personLogin/updateHeadAvatarHead',
|
||||||
filePath: that.myimg, //file: 二进制(filePath)
|
filePath: that.myimg, //file: 二进制(filePath)
|
||||||
@ -242,10 +246,11 @@
|
|||||||
timeout: 5000,
|
timeout: 5000,
|
||||||
success(res) {
|
success(res) {
|
||||||
that.appPersonallist.avatar = JSON.parse(res.data).imgUrl
|
that.appPersonallist.avatar = JSON.parse(res.data).imgUrl
|
||||||
that.updateNursePerson();
|
// that.updateNursePerson();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
console.log(2)
|
||||||
that.updateNursePerson();
|
that.updateNursePerson();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user