|
|
@@ -153,14 +153,14 @@ export default function DesignPic() {
|
|
|
sku_info: any;
|
|
|
order_no: any;
|
|
|
design_sku: any;
|
|
|
- design_info: { region: any; text: any; picture: any, cur_index: number }[];
|
|
|
+ design_info: { region: any; text: any; picture: any }[];
|
|
|
}[] = [];
|
|
|
let table_boj: {
|
|
|
good_info: any;
|
|
|
sku_info: any;
|
|
|
order_no: any;
|
|
|
design_sku: any;
|
|
|
- design_info: { region: any; text: any; picture: any, cur_index: number }[];
|
|
|
+ design_info: { region: any; text: any; picture: any }[];
|
|
|
} = {
|
|
|
good_info: null,
|
|
|
sku_info: null,
|
|
|
@@ -196,7 +196,6 @@ export default function DesignPic() {
|
|
|
region: table_node[9],
|
|
|
text: table_node[10],
|
|
|
picture: table_node[11],//11
|
|
|
- cur_index: index + 1,
|
|
|
}]
|
|
|
}
|
|
|
} else {
|
|
|
@@ -204,17 +203,16 @@ export default function DesignPic() {
|
|
|
region: table_node[0],
|
|
|
text: table_node[1],
|
|
|
picture: table_node[2],//2
|
|
|
- cur_index: index + 1,
|
|
|
})
|
|
|
- // 循环结束
|
|
|
- if (index == response.tables.length - 1) {
|
|
|
- if (table_boj.design_info.length) {
|
|
|
- // 一个商品的定制信息
|
|
|
- tables_arr.push(table_boj)
|
|
|
- }
|
|
|
+ }
|
|
|
+ // 循环结束
|
|
|
+ if (index == response.tables.length - 1) {
|
|
|
+ if (table_boj.design_info.length) {
|
|
|
+ // 一个商品的定制信息
|
|
|
+ tables_arr.push(table_boj)
|
|
|
}
|
|
|
}
|
|
|
- // good_info sku_info design_info: region text picture cur_index
|
|
|
+ // good_info sku_info design_info: region text picture
|
|
|
});
|
|
|
|
|
|
console.log(tables_arr, "tables_arrddd")
|