style:填报信息
Showing
3 changed files
with
10 additions
and
13 deletions
... | @@ -432,11 +432,12 @@ input[type='file'] { | ... | @@ -432,11 +432,12 @@ input[type='file'] { |
432 | .pic { | 432 | .pic { |
433 | width: 240px; | 433 | width: 240px; |
434 | height: 240px; | 434 | height: 240px; |
435 | /* border-radius: 6px; | ||
436 | margin: 20px auto; */ | ||
437 | cursor: pointer; | 435 | cursor: pointer; |
436 | border: 1px dotted #DEDEDE; | ||
437 | border-radius: 2px; | ||
438 | box-sizing: border-box; | ||
438 | } | 439 | } |
439 | 440 | .itemImageUpdate { | |
440 | .ddd{ | 441 | position: relative; |
441 | 442 | margin-right: 15px; | |
442 | } | 443 | } |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -137,8 +137,6 @@ function loadMailDetail() { | ... | @@ -137,8 +137,6 @@ function loadMailDetail() { |
137 | } | 137 | } |
138 | } | 138 | } |
139 | 139 | ||
140 | |||
141 | |||
142 | $('.radioInfo').click(function () { | 140 | $('.radioInfo').click(function () { |
143 | let index = $(this).attr("value") | 141 | let index = $(this).attr("value") |
144 | if ($('#layui-form .layui-form-item').length > 1) { | 142 | if ($('#layui-form .layui-form-item').length > 1) { |
... | @@ -298,8 +296,8 @@ function LoadClxxDiv() { | ... | @@ -298,8 +296,8 @@ function LoadClxxDiv() { |
298 | $.each(slsqxx.slclList, function (index, item) { | 296 | $.each(slsqxx.slclList, function (index, item) { |
299 | clxxContent = '<div id="' + item.bsmCl + '">'; | 297 | clxxContent = '<div id="' + item.bsmCl + '">'; |
300 | for (i = 0; i < item.fs; i++) { | 298 | for (i = 0; i < item.fs; i++) { |
301 | clxxContent += '<div style="float: left;">'; | 299 | clxxContent += '<div style="float: left;" class="itemImageUpdate">'; |
302 | clxxContent += '<img class="pic" src=""> '; | 300 | clxxContent += '<img class="pic" src="../../staticImages/update.png">'; |
303 | clxxContent += '<input name="file" accept="image/*" type="file" style="display: none" />'; | 301 | clxxContent += '<input name="file" accept="image/*" type="file" style="display: none" />'; |
304 | clxxContent += '<div class="certificate">'; | 302 | clxxContent += '<div class="certificate">'; |
305 | clxxContent += '<span>' + slsqxx.slclList[index].clmc + '【' + slsqxx.slclList[index].wjlxmc + '】(' + slsqxx.slclList[index].fs + '-' + (i + 1) + ')</span>'; | 303 | clxxContent += '<span>' + slsqxx.slclList[index].clmc + '【' + slsqxx.slclList[index].wjlxmc + '】(' + slsqxx.slclList[index].fs + '-' + (i + 1) + ')</span>'; |
... | @@ -320,6 +318,7 @@ function AddCLxxClick() { | ... | @@ -320,6 +318,7 @@ function AddCLxxClick() { |
320 | $(this).next().click(); //隐藏了input:file样式后,点击头像就可以本地上传 | 318 | $(this).next().click(); //隐藏了input:file样式后,点击头像就可以本地上传 |
321 | $(this).next().on("change", function () { | 319 | $(this).next().on("change", function () { |
322 | var objUrl = getObjectURL(this.files[0]); //获取图片的路径,该路径不是图片在本地的路径 | 320 | var objUrl = getObjectURL(this.files[0]); //获取图片的路径,该路径不是图片在本地的路径 |
321 | console.log(999, objUrl) | ||
323 | if (objUrl) { | 322 | if (objUrl) { |
324 | let bsm_slclmx = UploadPicture(this.files[0], $(this).parent().parent().prop("id")); | 323 | let bsm_slclmx = UploadPicture(this.files[0], $(this).parent().parent().prop("id")); |
325 | if (bsm_slclmx == "") { | 324 | if (bsm_slclmx == "") { |
... | @@ -428,8 +427,7 @@ function _uploadSlcl(flieList, bsmCl, fileul, sizeNum) { | ... | @@ -428,8 +427,7 @@ function _uploadSlcl(flieList, bsmCl, fileul, sizeNum) { |
428 | }); | 427 | }); |
429 | } | 428 | } |
430 | 429 | ||
431 | // /portal/FillInformation/saveSQR填报信息保存申请人信息和邮寄信息 | 430 | // 填报信息保存申请人信息和邮寄信息 |
432 | |||
433 | function _saveSQR() { | 431 | function _saveSQR() { |
434 | var isSave = false; | 432 | var isSave = false; |
435 | // 申请人信息 | 433 | // 申请人信息 |
... | @@ -465,7 +463,6 @@ function _saveSQR() { | ... | @@ -465,7 +463,6 @@ function _saveSQR() { |
465 | 'sqrList': sqrList, | 463 | 'sqrList': sqrList, |
466 | 'addMailRecordRequest': addMailRecordRequest | 464 | 'addMailRecordRequest': addMailRecordRequest |
467 | }), | 465 | }), |
468 | //数据,这里使用的是Json格式进行传输 | ||
469 | success: function (result) {//返回数据根据结果进行相应的处理 | 466 | success: function (result) {//返回数据根据结果进行相应的处理 |
470 | if (result.code == 200) { | 467 | if (result.code == 200) { |
471 | isSave = true | 468 | isSave = true |
... | @@ -476,7 +473,6 @@ function _saveSQR() { | ... | @@ -476,7 +473,6 @@ function _saveSQR() { |
476 | }); | 473 | }); |
477 | return isSave | 474 | return isSave |
478 | } | 475 | } |
479 | |||
480 | //建立一個可存取到該file的url | 476 | //建立一個可存取到該file的url |
481 | function getObjectURL(file) { | 477 | function getObjectURL(file) { |
482 | var url = null; | 478 | var url = null; | ... | ... |
-
Please register or sign in to post a comment