12.html 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
  6. <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
  7. <title></title>
  8. <link rel="stylesheet" type="text/css" href="../../css/aui.css" />
  9. <style>
  10. body{
  11. background: #fff;
  12. }
  13. .api_layout{
  14. padding: 15px;
  15. }
  16. .column{
  17. margin-bottom: 10px;
  18. }
  19. .column-title{
  20. display: block;
  21. font-size: 15px;
  22. color: #97a3b4;
  23. margin-bottom: 10px;
  24. }
  25. input::placeholder{
  26. font-size: 14px;
  27. color: #333;
  28. }
  29. .api_layout .font-s{
  30. font-size: 14px;
  31. }
  32. .api_layout .input-s{
  33. height: 40px;
  34. border: 1px solid #97a3b4;
  35. -webkit-border-radius: 5px;
  36. -moz-border-radius: 5px;
  37. border-radius: 5px;
  38. padding-left: 10px;
  39. }
  40. .aui-list-item-input1{
  41. position: relative;
  42. }
  43. .aui-list-item-input1:after{
  44. content:"";
  45. border-left:5px solid transparent;
  46. border-right:5px solid transparent;
  47. border-bottom:5px solid #b3c0ce;
  48. -webkit-transform-origin:5px 2.5px;
  49. transform-origin:5px 2.5px;
  50. -webkit-transition: all .5s ease;
  51. transition: all .5s ease;
  52. position:absolute;
  53. right:10px;
  54. top:18px;
  55. -webkit-transform:rotate(180deg);
  56. transform:rotate(180deg);
  57. }
  58. .column-textarea{
  59. border: 1px solid #97a3b4;
  60. -webkit-border-radius: 5px;
  61. -moz-border-radius: 5px;
  62. border-radius: 5px;
  63. padding: 10px;
  64. height: 160px;
  65. }
  66. .column-textarea::placeholder{
  67. font-size: 14px;
  68. color: #333;
  69. }
  70. .aui-row{
  71. border: 1px dashed #c8d2de;
  72. -webkit-border-radius: 5px;
  73. -moz-border-radius: 5px;
  74. border-radius: 5px;
  75. padding: 10px;
  76. }
  77. .technological-process{
  78. margin-top: 10px;
  79. display: flex;
  80. justify-content: flex-start;
  81. flex-wrap: wrap;
  82. }
  83. .col{
  84. color: red;
  85. font-size: 14px;
  86. display: inline-flex;
  87. justify-content: space-between;
  88. align-items: center;
  89. flex-wrap: wrap;
  90. padding-right: 10px;
  91. /*width: 25%;*/
  92. }
  93. .name{
  94. border: 1px solid red;
  95. display: block;
  96. padding: 3px 6px;
  97. -webkit-border-radius: 5px;
  98. -moz-border-radius: 5px;
  99. border-radius: 5px;
  100. margin-bottom: 5px;
  101. }
  102. .name:last-child{
  103. margin-bottom: 0;
  104. }
  105. .ico-j{
  106. display: block;
  107. width: 15px;
  108. height: 15px;
  109. background: url("../../image/Arrow.png") no-repeat;
  110. background-size: contain;
  111. margin-left: 10px;
  112. }
  113. .col:last-child{
  114. padding-right: 0;
  115. }
  116. .col:last-child .ico-j{
  117. display: none;
  118. }
  119. .technologicals{
  120. margin-bottom: 20px;
  121. }
  122. .aui-list-item-input label{
  123. font-size: 14px;
  124. height: 21px;
  125. display: inline-block;
  126. line-height: 22px;
  127. margin-right: 5px;
  128. }
  129. .aui-list-item-input label:last-child{
  130. margin-right: 0;
  131. }
  132. .imgParent img{
  133. width: 104px;
  134. height: 104px;
  135. border-radius: 5px;
  136. }
  137. .api-toast{
  138. width: 100%;
  139. height: 100%;
  140. position: fixed;
  141. top: 0;
  142. left: 0;
  143. background: rgba(0,0,0,.5);
  144. }
  145. </style>
  146. </head>
  147. <body>
  148. <div class="api_layout">
  149. <div class="column-row" id="column_row">
  150. <!-- <div class="column">
  151. <label class="column-title">选择:</label>
  152. <div class="aui-list-item-input1">
  153. <select class="input-select font-s input-s" name="xuanze">
  154. <option value="">请选择</option>
  155. <option value="你好">你好</option>
  156. </select>
  157. </div>
  158. </div>
  159. <div class="column">
  160. <label class="column-title">申请部门:</label>
  161. <div class="aui-list-item-input1">
  162. <select class="input-select font-s input-s" name="xuanze1">
  163. <option value="">请选择</option>
  164. <option value="你好1">你好1</option>
  165. </select>
  166. </div>
  167. </div> -->
  168. <div class="column">
  169. <label class="column-title">上传文件:</label>
  170. <div class="aui-row aui-row-padded">
  171. <div class="aui-col-xs-4" id="upload">
  172. <img src="../../image/upload.png"/>
  173. <input type="file" name="" value="" onchange="uploadFile()">
  174. </div>
  175. <div class="aui-col-xs-4">
  176. <img src="../../image/demo.png"/>
  177. </div>
  178. <div class="aui-col-xs-4">
  179. <img src="../../image/demo.png"/>
  180. </div>
  181. </div>
  182. </div>
  183. </div>
  184. <div class="technologicals" id="technologicals">
  185. <!-- <label class="column-title">固定审批流程:</label>
  186. <div class="technological-process">
  187. <div class="col">
  188. <div class="name_list">
  189. <span class="name">张三你</span>
  190. </div>
  191. <i class="ico-j"></i>
  192. </div>
  193. <div class="col">
  194. <div class="name_list">
  195. <span class="name">张三你</span>
  196. <span class="name">张三</span>
  197. </div>
  198. <i class="ico-j"></i>
  199. </div>
  200. <div class="col">
  201. <div class="name_list">
  202. <span class="name">张三你</span>
  203. </div>
  204. <i class="ico-j"></i>
  205. </div>
  206. </div> -->
  207. </div>
  208. <div class="aui-btn aui-btn-info aui-btn-block" onclick="submitInfo()">
  209. 提交
  210. </div>
  211. </div>
  212. </body>
  213. <script type="text/template" id="template">
  214. {{ for (var i = 0;i<it.length;i++) { }}
  215. {{? it[i].type == 'input'}}
  216. <div class="column">
  217. <label class="column-title">{{=it[i].label}}:</label>
  218. <input type="text" name="{{=it[i].name}}" value="" placeholder="请输入{{=it[i].label}}" class="inputBox colimn-input input-s font-s">
  219. </div>
  220. {{?? it[i].type == 'radio'}}
  221. <div class="column">
  222. <label class="column-title">{{=it[i].label}}:</label>
  223. <div class="aui-list-item-input radioName" name="{{=it[i].name}}" data-info>
  224. {{ for(var j=0;j<it[i].select.length;j++) { }}
  225. <label><input class="aui-radio" type="radio" name="{{=it[i].name}}" value="{{=it[i].select[j]}}" onchange="radioFun(this)">{{=it[i].select[j]}}</label>
  226. {{ } }}
  227. </div>
  228. </div>
  229. {{?? it[i].type == 'checkbox'}}
  230. <div class="column">
  231. <label class="column-title">{{=it[i].label}}:</label>
  232. <div class="aui-list-item-input checkboxName" name={{=it[i].name}} data-info>
  233. {{ for(var j=0;j<it[i].select.length;j++) { }}
  234. <label><input class="aui-checkbox" type="checkbox" name="{{=it[i].name}}" value="{{=it[i].select[j]}}" onchange="checkboxFun(this)">{{=it[i].select[j]}}</label>
  235. {{ } }}
  236. </div>
  237. </div>
  238. {{?? it[i].type == 'textarea'}}
  239. <div class="column">
  240. <label class="column-title">{{=it[i].label}}:</label>
  241. <textarea name="{{=it[i].name}}" rows="8" cols="80" class="column-textarea font-s column-textarea1" placeholder="请输入{{=it[i].label}}"></textarea>
  242. </div>
  243. {{?? it[i].type == 'select'}}
  244. <div class="column">
  245. <label class="column-title">选择:</label>
  246. <div class="aui-list-item-input1">
  247. <select class="input-select font-s input-s" name="{{=it[i].name}}">
  248. <option value="">请选择</option>
  249. {{ for(var j=0;j<it[i].select.length;j++) { }}
  250. <option value="{{=it[i].select[j]}}">{{=it[i].select[j]}}</option>
  251. {{ } }}
  252. </select>
  253. </div>
  254. </div>
  255. {{?? it[i].type == 'images'}}
  256. <div class="column">
  257. <label class="column-title">{{=it[i].label}}:</label>
  258. <div class="aui-row aui-row-padded uploadImg" data-info name="{{=it[i].name}}">
  259. <div class="aui-col-xs-4 imgParent" onclick="actionSheetFun(this)" data-url='{{=it[i].url}}'>
  260. <img src="../../image/upload.png"/>
  261. </div>
  262. </div>
  263. </div>
  264. {{?? it[i].type == 'files'}}
  265. <div class="column">
  266. <label class="column-title">{{=it[i].label}}:</label>
  267. <div class="aui-row aui-row-padded uploadFile" data-info name="{{=it[i].name}}">
  268. <div class="aui-col-xs-4" onclick="browseFile()" data-url='{{=it[i].url}}'>
  269. <img src="../../image/upload.png"/>
  270. </div>
  271. </div>
  272. </div>
  273. {{?}}
  274. {{ } }}
  275. </script>
  276. <script type="text/template" id="templateApply">
  277. <label class="column-title">固定审批流程:</label>
  278. <div class="technological-process">
  279. {{ for(var prop in it) { }}
  280. <div class="col">
  281. <div class="name_list">
  282. {{ for (var j = 0;j<it[prop].length;j++) { }}
  283. <span class="name">{{=it[prop][j].name}}</span>
  284. {{ } }}
  285. </div>
  286. <i class="ico-j"></i>
  287. </div>
  288. {{ } }}
  289. </div>
  290. </script>
  291. <script type="text/javascript" src="../../script/api.js"></script>
  292. <script type="text/javascript" src="../../script/doT.min.js"></script>
  293. <script src="../../script/Hammer.js" charset="utf-8"></script>
  294. <script type="text/javascript" src="../../script/config.js"></script>
  295. <script type="text/javascript">
  296. var toast = new auiToast(),token;
  297. var UIAlbumBrowser;
  298. var i = 0;
  299. var imgarr = [];
  300. var id = ""
  301. apiready = function(){
  302. var info = $api.getStorage('data');
  303. token = JSON.parse(info).data.access_token;
  304. id = api.pageParam.id;
  305. getApplyDe(api.pageParam.id,token);
  306. UIAlbumBrowser = api.require('UIAlbumBrowser');
  307. };
  308. function getApplyDe(id,token) {
  309. var headers = {
  310. "Authorization": "Bearer " + token
  311. };
  312. $http.fnReuestData(UrlRouter.getApplyD+id,headers,'get','',function (ret,err) {
  313. toast.hide();
  314. api.setTabLayoutAttr({
  315. title: ret.data.title
  316. });
  317. console.log(JSON.stringify(ret));
  318. $apis.append(column_row,'#template',ret.data.form);
  319. $apis.append(technologicals,'#templateApply',ret.data.flow);
  320. })
  321. }
  322. function approValPesonal() {
  323. api.openFrame({
  324. name: 'approvalPersonal',
  325. bounces: false,
  326. url: 'approvalPersonal.html',
  327. bgColor:'rgba(0,0,0,.6)',
  328. rect: {
  329. x: 0,
  330. y: 0,
  331. w: api.winWidth,
  332. h: 'auto',
  333. },
  334. // pageParam: {
  335. // username: name,
  336. // mobile:phone,
  337. // avatar:img,
  338. // delp:del
  339. // }
  340. });
  341. }
  342. // 上传图片
  343. var headImg;
  344. // function actionSheetFun() {
  345. // api.actionSheet({
  346. // title: '选择',
  347. // cancelTitle: '取消',
  348. // buttons: ['相机','相册']
  349. // }, function(ret, err) {
  350. // if (ret.buttonIndex !=3) {
  351. // var type = 'camera';
  352. // if(ret.buttonIndex == 1){
  353. // type = 'camera';
  354. // }else {
  355. // type = 'album';
  356. // }
  357. // api.getPicture({
  358. // sourceType: type
  359. // }, function(ret, err){
  360. // if(ret){
  361. // uploadHead(ret.data)
  362. // headImg = ret.data;
  363. // }
  364. // });
  365. // }
  366. // });
  367. // }
  368. function actionSheetFun(el) {
  369. api.actionSheet({
  370. title: '选择',
  371. cancelTitle: '取消',
  372. buttons: ['相机','相册']
  373. }, function(ret, err) {
  374. if (ret.buttonIndex !=3) {
  375. var type = 'camera';
  376. if(ret.buttonIndex == 1){
  377. type = 'camera';
  378. api.getPicture({
  379. sourceType: type
  380. }, function(ret, err){
  381. if(ret && ret.data!=""){
  382. uploadHead(el,ret.data);
  383. }
  384. });
  385. }else {
  386. type = 'album';
  387. // 支持多图片上传,UIAlbumBrowser模块获取图片路径
  388. changeImageUrl(el)
  389. }
  390. }
  391. });
  392. }
  393. // upload img
  394. function uploadHead(el,imgUrl){
  395. var uploadUrl = $api.attr(el, 'data-url');
  396. toast.loading({
  397. title: "上传中",
  398. duration: 2000
  399. });
  400. console.log(imgarr,'imgarr1');
  401. api.ajax({
  402. url: urlphp+uploadUrl,
  403. method: 'post',
  404. headers : {
  405. "Authorization": "Bearer " + token,
  406. },
  407. data: {
  408. files: {
  409. image:imgUrl
  410. }
  411. }
  412. },function(ret, err){
  413. if (ret) {
  414. toast.hide();
  415. if(ret.code === 0){
  416. var data = JSON.stringify(ret.data)
  417. var html = `<div class="aui-col-xs-4 imgParent" data-imgData="${data}" onclick="delImg(this)">
  418. <img src="${ret.data.path}"/>
  419. </div>`;
  420. var getAttribute = el.parentNode.getAttribute('data-info');
  421. var dataInfo = getAttribute+',,'+JSON.stringify(ret.data)
  422. el.parentNode.setAttribute('data-info',dataInfo);
  423. $api.append(el.parentNode,html);
  424. api.toast({
  425. msg: '上传成功',
  426. duration: 2000,
  427. location: 'top'
  428. });
  429. }else {
  430. api.toast({
  431. msg: '上传失败',
  432. duration: 2000,
  433. location: 'top'
  434. });
  435. }
  436. } else {
  437. toast.hide();
  438. api.toast({
  439. msg: '网络错误',
  440. duration: 2000,
  441. location: 'top'
  442. });
  443. }
  444. });
  445. }
  446. // radio
  447. function radioFun(el) {
  448. var value = el.value;
  449. if(el.checked){
  450. el.parentNode.parentNode.setAttribute('data-info',value);
  451. }
  452. }
  453. // chexkbox
  454. function checkboxFun(el) {
  455. var value = el.value;
  456. if(el.checked){
  457. var getAttribute = el.parentNode.parentNode.getAttribute('data-info').split(',');
  458. getAttribute.push(value);
  459. el.parentNode.parentNode.setAttribute('data-info',getAttribute);
  460. }else {
  461. var getAttribute = el.parentNode.parentNode.getAttribute('data-info').split(',');
  462. getAttribute.remove(value);
  463. el.parentNode.parentNode.setAttribute('data-info',getAttribute);
  464. }
  465. }
  466. // 选择图片库路径
  467. function changeImageUrl(el) {
  468. UIAlbumBrowser.imagePicker({
  469. max: 9,
  470. styles: {
  471. bg: '#000000',
  472. //cameraImg: 'widget://res/cameraImg.png',
  473. mark: {
  474. position: 'top_right',
  475. size: 20
  476. },
  477. nav: {
  478. bg: '#000000',
  479. cancelColor: '#fff',
  480. cancelSize: 16,
  481. nextStepColor: '#7fff00',
  482. nextStepSize: 16
  483. },
  484. thumbnail: { //(可选项)返回的缩略图配置,**建议本图片不要设置过大** 若已有缩略图,则使用已有的缩略图。若要重新生成缩略图,可先调用清除缓存接口api.clearCache()。
  485. w: 100, //(可选项)数字类型;返回的缩略图的宽;默认:原图的宽度
  486. h: 100 //(可选项)数字类型;返回的缩略图的宽;默认:原图的高度
  487. }
  488. },
  489. animation: true,
  490. }, function(ret) {
  491. if (ret.eventType == 'nextStep') {
  492. if (ret.list && ret.list.length > 0) {
  493. imgarr = ret.list;
  494. UIAlbumBrowser_transPath(el);
  495. }
  496. UIAlbumBrowser.closePicker();
  497. }
  498. if (ret.originalPath && ret.originalPath.length > 0) {
  499. uploadHead(el,ret.originalPath)
  500. }
  501. });
  502. }
  503. // 转换缩略图路径 ios
  504. function UIAlbumBrowser_transPath(el) {
  505. UIAlbumBrowser.transPath({
  506. path: imgarr[i].path
  507. }, function(ret, err) {
  508. if (ret) {
  509. i++;
  510. if (i < imgarr.length) {
  511. UIAlbumBrowser_transPath(el);
  512. } else {
  513. i = 0;
  514. }
  515. uploadHead(el,ret.path)
  516. }
  517. });
  518. }
  519. // 长安删除图片或者文件
  520. // var hammertime = new Hammer(document.getElementsByClassName('Longpress'));
  521. // hammertime.on('press', function(ev) {
  522. // console.log(JSON.stringify(ev));
  523. // });
  524. // 上传文件
  525. function uploadFile(el,fileUrl) {
  526. var uploadUrl = $api.attr(el, 'data-url');
  527. console.log(uploadUrl,'uploadUrl');
  528. api.ajax({
  529. url: urlphp+'api/worksheet/design/up_files',
  530. method: 'post',
  531. headers : {
  532. "Authorization": "Bearer " + token,
  533. },
  534. data: {
  535. files: {
  536. file:fileUrl
  537. }
  538. }
  539. },function(ret, err){
  540. console.log(JSON.stringify(ret));
  541. if (ret) {
  542. toast.hide();
  543. if(ret.code === 0){
  544. api.toast({
  545. msg: '上传成功',
  546. duration: 2000,
  547. location: 'top'
  548. });
  549. }else {
  550. api.toast({
  551. msg: '上传失败',
  552. duration: 2000,
  553. location: 'top'
  554. });
  555. }
  556. } else {
  557. toast.hide();
  558. api.toast({
  559. msg: '网络错误',
  560. duration: 2000,
  561. location: 'top'
  562. });
  563. }
  564. });
  565. }
  566. // 浏览文件,获取文件路径
  567. function browseFile(el) {
  568. // var fileBrowser = api.require('fileBrowser');
  569. // fileBrowser.skin({
  570. // skin:0,
  571. // });
  572. // fileBrowser.open(function(ret) {
  573. // if (ret) {
  574. // console.log(JSON.stringify(ret));
  575. // uploadFile(el,ret.url)
  576. // fileBrowser.close();
  577. // }
  578. // });
  579. var selectFile = api.require('selectFile');
  580. selectFile.open(function(ret, err){
  581. if(ret.status){
  582. uploadFile(el,ret.path)
  583. alert(JSON.stringify(ret.path));
  584. }else{
  585. alert('选择文件不存在');
  586. }
  587. });
  588. }
  589. // 提交工单信息
  590. function submitInfo() {
  591. var sss = {path:'../../image',nameImg:'soasjoa'};
  592. var data = JSON.stringify(sss)
  593. var html = `<div class="aui-col-xs-4 imgParent" data-imgData="${data}" onclick="delImg(this)">
  594. <img src="../../image/demo.png"/>
  595. </div>`;
  596. document.getElementById('upload').parentNode.;
  597. var headers = {
  598. "Authorization": "Bearer " + token
  599. };
  600. var inputBoxArray= [],inputBoxObject = {id:id,otherFlow:[]},inputBox = $api.domAll('.inputBox'),inputSelect = $api.domAll('.input-select'),
  601. checkboxName = document.querySelectorAll('.checkboxName'),radioName = $api.domAll('.radioName'),uploadImg = $api.domAll('.uploadImg'),columnTextarea = $api.domAll('.column-textarea');
  602. // 文本框
  603. for (var i = 0; i < inputBox.length;i++){
  604. var key = $api.attr(inputBox[i],'name'), value = $api.val(inputBox[i]);
  605. inputBoxObject[key] = value
  606. // console.log(JSON.stringify(inputBoxObject));
  607. }
  608. // 文本域
  609. for (var i = 0; i < columnTextarea.length;i++){
  610. var key = $api.attr(columnTextarea[i],'name'), value = $api.val(columnTextarea[i]);
  611. inputBoxObject[key] = value
  612. // console.log(JSON.stringify(inputBoxObject));
  613. }
  614. // 下拉选择
  615. for (var j = 0; j < inputSelect.length; j++) {
  616. var key = $api.attr(inputSelect[j],'name'), value = $api.val(inputSelect[j]);
  617. inputBoxObject[key] = value;
  618. }
  619. // 单选
  620. for (var k = 0; k < radioName.length; k++) {
  621. var val = $api.attr(radioName[k],'data-info'),key = $api.attr(radioName[k],'name');
  622. inputBoxObject[key] = val;
  623. }
  624. // 多选
  625. for (var t = 0; t < checkboxName.length; t++) {
  626. var value =checkboxName[t].getAttribute('data-info'),key = checkboxName[t].getAttribute('name');
  627. console.log(value.split(',').slice(1).join(','),'value')
  628. inputBoxObject[key] = value.split(',').slice(1).join(',');
  629. }
  630. // img
  631. for (var i = 0; i < uploadImg.length; i++) {
  632. var value = $api.attr(uploadImg[i],'data-info'),key = $api.attr(uploadImg[i],'name');
  633. var imageArr = [];
  634. for (var j = 0; j < value.split(',,').slice(1).length; j++) {
  635. imageArr.push(JSON.parse(value.split(',,').slice(1)[j]))
  636. }
  637. console.log(imageArr)
  638. inputBoxObject[key] = imageArr;
  639. }
  640. console.log(JSON.stringify(inputBoxObject));
  641. // $http.fnReuestDataJSON(UrlRouter.submitApply,headers,'post',inputBoxObject,function (ret,err) {
  642. // toast.hide()
  643. // if (ret.code === 0) {
  644. // api.toast({
  645. // msg: '提交成功',
  646. // duration: 2000,
  647. // location: 'top'
  648. // });
  649. // }
  650. // console.log(JSON.stringify(ret));
  651. // console.log(JSON.stringify(err));
  652. // })
  653. $event.openWin('myWordeOrder_win','myWordeOrder_win','','');
  654. };
  655. // 删除图片
  656. function delImg(el) {
  657. var Imgdata = el.getAttribute('data-imgData');
  658. console.log(JSON.stringify(Imgdata))
  659. }
  660. function uploadFile() {
  661. }
  662. </script>
  663. </html>