This commit is contained in:
曹辉 2023-04-11 15:05:54 +08:00
parent c506e48496
commit bb02635d9a

View File

@ -160,6 +160,7 @@
uni.chooseImage({ uni.chooseImage({
count: 9, count: 9,
success(res) { success(res) {
that.certificateimg = []
res.tempFilePaths.forEach(e => { res.tempFilePaths.forEach(e => {
that.uploadcertificateimg.push(e) that.uploadcertificateimg.push(e)
that.certificateimg.push(e) that.certificateimg.push(e)
@ -204,7 +205,7 @@
uploadcertificateimgs() { uploadcertificateimgs() {
let that = this let that = this
if (this.uploadcertificateimg && this.uploadcertificateimg.length > 0) { if (this.uploadcertificateimg && this.uploadcertificateimg.length > 0) {
this.certificateimg.forEach(e => { this.uploadcertificateimg.forEach(e => {
uni.uploadFile({ uni.uploadFile({
url: baseurl + url: baseurl +
'/nurseApplet/personCenter/uploadNurseStationPersonCertificateUrl', '/nurseApplet/personCenter/uploadNurseStationPersonCertificateUrl',
@ -215,8 +216,6 @@
}, },
timeout: 5000, timeout: 5000,
success(res) { success(res) {
console.log(that.appPersonallist.nurseStationPersonCheckList.length, that
.uploadcertificateimg.length)
var img = { var img = {
certificateUrl: JSON.parse(res.data).imgUrl certificateUrl: JSON.parse(res.data).imgUrl
} }