VUE代码,在最新微信版本8.0.53上面,flag多张图片校验不过,传一张可以,连续传多张校验失败
boundSubmit() { if (!this.fileList.length && !this.from.guidance) { this.$u.toast("请填写报告描述或上传指导图片", 3000); return false; } console.log("testFlag: %d", testFlag); const flag = this.fileUploadList.every((item) => parseInt(item.plan) == 100); if (!flag) { this.$u.toast("请等待图片上传完成", 3000); return false; } const imageArr = this.fileList.sort((a, b) => a.sort - b.sort); const list = imageArr.map(function (item) { return { image: item.fileUrl }; }); const params = { body_test_id: this.body_test_id, ...this.from }; params.guidance_image = JSON.stringify(list); this.$u.post(this.$api.pagesB.bodyTestEdit, params).then((res) => { this.$u.toast("提交完成", 3000); }); },