This commit is contained in:
zoujiandong 2025-09-17 09:25:57 +08:00
parent 8883dded38
commit 2bc546e90f

View File

@ -2218,14 +2218,13 @@ Page({
fileList_inf.push({ url: url,type:'image',isImage: true });
THIS.setData({ fileList_inf});
}else if(name.indexOf("record")!=-1){
let {dpmas_list}=THIS.data;
// let {dpmas_list}=THIS.data;
let recordIndex=Number(name.split("record")[1]);
console.log("recordIndex:"+recordIndex);
let objArr="dpmas_list[" +recordIndex +"]"
let obj="dpmas_list[" +recordIndex +"].fileList";
let tempObj="dpmas_list[" +recordIndex +"].temp_list"
try {
if(!(dpmas_list[recordIndex])){
if(!(THIS.data.dpmas_list[recordIndex])){
THIS.setData({
[objArr]:{fileList:[],treatTime:'',temp_list:[]}
})