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);
});
},
你好,麻烦提供下机型,微信版本号和复现链接