2019-03-26 09:53:22
很多时候都佩服自己写的东西,相当的低劣了(T-T)。
重新整理一下上传图片与视屏,对我来说已经精简了很多了,实际应用中多个文件现在成了一个文件了。
虽然还是相当的低劣,但是收获还是挺多的,对操作数组和dom有了更多的认识。
效果:
数据结构:
1 { 2 "code": 200, 3 "message": "获取成功!", 4 "data": [{ 5 "type": 1, 6 "stage": "", 7 "list_content": [{ 8 "material_id": 1, 9 "type": 1, 10 "type_name": "aaa", 11 "stage": "basic", 12 "material_content": [{ 13 "name": "身份证正面", 14 "material_path": "" 15 }, 16 { 17 "name": "身份证正面", 18 "material_path": "" 19 }, 20 { 21 "name": "身份证正面", 22 "material_path": "" 23 } 24 ] 25 }, 26 { 27 "material_id": 2, 28 "type": 1, 29 "type_name": "aaa", 30 "stage": "basic", 31 "material_content": [{ 32 "name": "身份证反面", 33 "material_path": "" 34 }, 35 { 36 "name": "身份证反面", 37 "material_path": "" 38 } 39 ] 40 } 41 ] 42 }。。。。。。。。。。。。。。。