|
@@ -6,7 +6,7 @@
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
|
<link rel="stylesheet" href="/rlzy/css/saomiao.css"/>
|
|
<link rel="stylesheet" href="/rlzy/css/saomiao.css"/>
|
|
<link rel="stylesheet" type="text/css" href="/print/css/bootstrap.min.css">
|
|
<link rel="stylesheet" type="text/css" href="/print/css/bootstrap.min.css">
|
|
- <th:block th:include="include :: header('申请信息')" />
|
|
|
|
|
|
+ <th:block th:include="include :: header('申请信息')"/>
|
|
|
|
|
|
<title>Document</title>
|
|
<title>Document</title>
|
|
<style>
|
|
<style>
|
|
@@ -22,7 +22,7 @@
|
|
}
|
|
}
|
|
|
|
|
|
.ft18 {
|
|
.ft18 {
|
|
- font-size: 18px !important;
|
|
|
|
|
|
+ font-size: 22px !important;
|
|
}
|
|
}
|
|
|
|
|
|
.form-check-inline .form-check-input {
|
|
.form-check-inline .form-check-input {
|
|
@@ -363,7 +363,7 @@
|
|
>
|
|
>
|
|
联系人
|
|
联系人
|
|
</div>
|
|
</div>
|
|
- <div class="col-md-2 col-sm-12 col-lg-2 col-xl-2">
|
|
|
|
|
|
+ <div class="col-md-2 col-sm-12 col-lg-4 col-xl-2">
|
|
<input
|
|
<input
|
|
name="contacts"
|
|
name="contacts"
|
|
class="form-control"
|
|
class="form-control"
|
|
@@ -371,12 +371,10 @@
|
|
placeholder="请输入联系人"
|
|
placeholder="请输入联系人"
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
- <div
|
|
|
|
- class="col-md-2 col-lg-2 col-xl-2 col-sm-12 text-right align-self-md-center"
|
|
|
|
- >
|
|
|
|
|
|
+ <div class="col-md-2 col-lg-2 col-xl-2 col-sm-12 text-right align-self-md-center">
|
|
电话
|
|
电话
|
|
</div>
|
|
</div>
|
|
- <div class="col-md-2 col-sm-12 col-lg-2 col-xl-2">
|
|
|
|
|
|
+ <div class="col-md-2 col-sm-12 col-lg-4 col-xl-2">
|
|
<input
|
|
<input
|
|
name="phone"
|
|
name="phone"
|
|
class="form-control"
|
|
class="form-control"
|
|
@@ -386,12 +384,13 @@
|
|
/>
|
|
/>
|
|
<span id="phone1" style="color: red;font-size: 10px;display: none">请输入正确的电话</span>
|
|
<span id="phone1" style="color: red;font-size: 10px;display: none">请输入正确的电话</span>
|
|
</div>
|
|
</div>
|
|
- <div
|
|
|
|
- class="col-md-2 col-lg-2 col-xl-2 col-sm-12 text-right align-self-md-center"
|
|
|
|
- >
|
|
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+ <div class="row mt-sm-2">
|
|
|
|
+ <div class="col-md-2 col-lg-2 col-xl-2 col-sm-12 text-right align-self-md-center" >
|
|
邮箱
|
|
邮箱
|
|
</div>
|
|
</div>
|
|
- <div class="col-md-2 col-sm-12 col-lg-2 col-xl-2">
|
|
|
|
|
|
+ <div class="col-md-2 col-sm-12 col-lg-4 col-xl-2">
|
|
<input
|
|
<input
|
|
name="email"
|
|
name="email"
|
|
class="form-control"
|
|
class="form-control"
|
|
@@ -399,8 +398,8 @@
|
|
placeholder="请输入邮箱"
|
|
placeholder="请输入邮箱"
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
|
|
|
|
|
|
+ </div>
|
|
<div class="row mt-sm-4">
|
|
<div class="row mt-sm-4">
|
|
<div class="col-md-12 col-lg-12 col-lg-12 col-sm-12 text-center">
|
|
<div class="col-md-12 col-lg-12 col-lg-12 col-sm-12 text-center">
|
|
<button class="btn btn-success btn-lg" type="button" onclick="toSaomiao()">
|
|
<button class="btn btn-success btn-lg" type="button" onclick="toSaomiao()">
|
|
@@ -429,7 +428,7 @@
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
- <div id="content2" class="con write content2" style="display:none;">
|
|
|
|
|
|
+ <div id="content2" class="con write content2" style="display:none;">
|
|
<div class="row clearfix" style="width:98%;margin:0 auto;padding:1% 0;height: 663px">
|
|
<div class="row clearfix" style="width:98%;margin:0 auto;padding:1% 0;height: 663px">
|
|
<div class="col-md-12 column" style="height:100%">
|
|
<div class="col-md-12 column" style="height:100%">
|
|
<div class="row" style="height:100%">
|
|
<div class="row" style="height:100%">
|
|
@@ -438,20 +437,20 @@
|
|
<div style="height:810px;overflow:auto">
|
|
<div style="height:810px;overflow:auto">
|
|
<table class="table table-bordered">
|
|
<table class="table table-bordered">
|
|
<tbody>
|
|
<tbody>
|
|
- <tr class="info" data-id="yyzz" onclick="selTr(this)">
|
|
|
|
|
|
+ <tr class="info" data-id="yyzz" onclick="selTr(this)">
|
|
<td>
|
|
<td>
|
|
1
|
|
1
|
|
</td>
|
|
</td>
|
|
<td>
|
|
<td>
|
|
- <a class="list">营业执照</a>
|
|
|
|
|
|
+ <a class="list">营业执照</a>
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
- <tr class="info" data-id="sqcn" onclick="selTr(this)">
|
|
|
|
|
|
+ <tr class="info" data-id="sqcn" onclick="selTr(this)">
|
|
<td>
|
|
<td>
|
|
2
|
|
2
|
|
</td>
|
|
</td>
|
|
<td>
|
|
<td>
|
|
- <a class="list">申请人承诺</a>
|
|
|
|
|
|
+ <a class="list">申请人承诺</a>
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
|
|
|
|
@@ -465,11 +464,17 @@
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div class="gaopai" style="position:absolute;bottom:0 ; margin-left: 5%;">
|
|
<div class="gaopai" style="position:absolute;bottom:0 ; margin-left: 5%;">
|
|
-<!-- <button class="btn btn-lg btn-success" onclick = "cl_openidA4photos(1,1)">打开高拍仪</button>-->
|
|
|
|
-<!-- <button class="btn btn-lg btn-warning" onclick = "cl_closeidA4photos()">关闭高拍仪</button>-->
|
|
|
|
- <button style="margin-left: 30px;" class="btn btn-lg btn-success" onclick = "goBackStep()">上一步</button>
|
|
|
|
- <button style="margin-left: 30px;" class="btn btn-lg btn-info" onclick="cl_takePhotos()">拍照</button>
|
|
|
|
- <button style="margin-left: 30px;" class="btn btn-lg btn-warning" onclick="submit()">提交</button>
|
|
|
|
|
|
+ <!-- <button class="btn btn-lg btn-success" onclick = "cl_openidA4photos(1,1)">打开高拍仪</button>-->
|
|
|
|
+ <!-- <button class="btn btn-lg btn-warning" onclick = "cl_closeidA4photos()">关闭高拍仪</button>-->
|
|
|
|
+ <button style="margin-left: 30px;" class="btn btn-lg btn-success"
|
|
|
|
+ onclick="goBackStep()">上一步
|
|
|
|
+ </button>
|
|
|
|
+ <button style="margin-left: 30px;" class="btn btn-lg btn-info"
|
|
|
|
+ onclick="cl_takePhotos()">拍照
|
|
|
|
+ </button>
|
|
|
|
+ <button style="margin-left: 30px;" class="btn btn-lg btn-warning" onclick="submit()">
|
|
|
|
+ 提交
|
|
|
|
+ </button>
|
|
<!--<button class="btn btn-lg btn-info">拍照</button>
|
|
<!--<button class="btn btn-lg btn-info">拍照</button>
|
|
<button class="btn btn-lg btn-success">上传</button>
|
|
<button class="btn btn-lg btn-success">上传</button>
|
|
<button class="btn btn-lg btn-warning">重置</button><button class="btn btn-lg btn-info">拍照</button>
|
|
<button class="btn btn-lg btn-warning">重置</button><button class="btn btn-lg btn-info">拍照</button>
|
|
@@ -478,11 +483,11 @@
|
|
</div>
|
|
</div>
|
|
<div class="col-md-3" style="height:100%">
|
|
<div class="col-md-3" style="height:100%">
|
|
<h3 class="title" style="text-align:center">—— 预览 ——</h3>
|
|
<h3 class="title" style="text-align:center">—— 预览 ——</h3>
|
|
- <div id="ylDivList" style="height:810px;overflow:auto" >
|
|
|
|
- <div class="col-md-12 yllist" id="yyzz" >
|
|
|
|
|
|
+ <div id="ylDivList" style="height:810px;overflow:auto">
|
|
|
|
+ <div class="col-md-12 yllist" id="yyzz">
|
|
<a id="imgBase64"> </a>
|
|
<a id="imgBase64"> </a>
|
|
</div>
|
|
</div>
|
|
- <div class="col-md-12 yllist" id="sqcn" style="display:none">
|
|
|
|
|
|
+ <div class="col-md-12 yllist" id="sqcn" style="display:none">
|
|
<a id="cns"> </a>
|
|
<a id="cns"> </a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -497,10 +502,10 @@
|
|
<span>技术支持:石家庄开发区亿网科技发展有限公司</span>
|
|
<span>技术支持:石家庄开发区亿网科技发展有限公司</span>
|
|
</footer>
|
|
</footer>
|
|
</div>
|
|
</div>
|
|
-<th:block th:include="include :: footer" />
|
|
|
|
|
|
+<th:block th:include="include :: footer"/>
|
|
<script src="/print/js/cookie.tool.js" type="text/javascript" charset="utf-8"></script>
|
|
<script src="/print/js/cookie.tool.js" type="text/javascript" charset="utf-8"></script>
|
|
-<script src="/raio/newjs/qwebchannel.js" type="text/javascript" charset="utf-8"></script>
|
|
|
|
-<script src="/raio/newjs/app.js" type="text/javascript" charset="utf-8"></script>
|
|
|
|
|
|
+<script src="/raio/newjs/qwebchannel.js" type="text/javascript" charset="utf-8"></script>
|
|
|
|
+<script src="/raio/newjs/app.js" type="text/javascript" charset="utf-8"></script>
|
|
|
|
|
|
<script th:inline="javascript">
|
|
<script th:inline="javascript">
|
|
|
|
|
|
@@ -512,19 +517,19 @@
|
|
$("#form-file-add").validate({
|
|
$("#form-file-add").validate({
|
|
focusCleanup: true,
|
|
focusCleanup: true,
|
|
rules: {
|
|
rules: {
|
|
- name:{
|
|
|
|
|
|
+ name: {
|
|
required: true,
|
|
required: true,
|
|
},
|
|
},
|
|
- creditCode:{
|
|
|
|
|
|
+ creditCode: {
|
|
required: true,
|
|
required: true,
|
|
},
|
|
},
|
|
- legalName:{
|
|
|
|
|
|
+ legalName: {
|
|
required: true,
|
|
required: true,
|
|
},
|
|
},
|
|
- idcard:{
|
|
|
|
|
|
+ idcard: {
|
|
required: true,
|
|
required: true,
|
|
},
|
|
},
|
|
- servicePlace:{
|
|
|
|
|
|
+ servicePlace: {
|
|
required: true,
|
|
required: true,
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -535,7 +540,7 @@
|
|
$("#content1").hide()
|
|
$("#content1").hide()
|
|
$("#content2").show()
|
|
$("#content2").show()
|
|
|
|
|
|
- cl_openidA4photos(0,1);
|
|
|
|
|
|
+ cl_openidA4photos(0, 1);
|
|
open_light()
|
|
open_light()
|
|
|
|
|
|
}
|
|
}
|
|
@@ -546,14 +551,15 @@
|
|
$("#content2").hide()
|
|
$("#content2").hide()
|
|
cl_closeidA4photos();
|
|
cl_closeidA4photos();
|
|
}
|
|
}
|
|
|
|
+
|
|
function submit() {
|
|
function submit() {
|
|
if ($.validate.form()) {
|
|
if ($.validate.form()) {
|
|
var creditCode = $('#creditCode').val()
|
|
var creditCode = $('#creditCode').val()
|
|
console.log(creditCode)
|
|
console.log(creditCode)
|
|
- $.operate.save( prefix+"/add", $('#form-file-add').serialize(),function(){
|
|
|
|
|
|
+ $.operate.save(prefix + "/add", $('#form-file-add').serialize(), function () {
|
|
cl_closeidA4photos();
|
|
cl_closeidA4photos();
|
|
alert("提交成功")
|
|
alert("提交成功")
|
|
- window.location.href="/zhuxiao/index"
|
|
|
|
|
|
+ window.location.href = "/zhuxiao/index"
|
|
// confirm("提交成功",function(){
|
|
// confirm("提交成功",function(){
|
|
//
|
|
//
|
|
// })
|
|
// })
|
|
@@ -563,39 +569,41 @@
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
- $('#phone').blur(function (){
|
|
|
|
|
|
+
|
|
|
|
+ $('#phone').blur(function () {
|
|
checktelephone();
|
|
checktelephone();
|
|
}
|
|
}
|
|
)
|
|
)
|
|
- $('#idcard').blur(function (){
|
|
|
|
|
|
+ $('#idcard').blur(function () {
|
|
checkidcard();
|
|
checkidcard();
|
|
}
|
|
}
|
|
)
|
|
)
|
|
- function checktelephone(){
|
|
|
|
|
|
+
|
|
|
|
+ function checktelephone() {
|
|
var phone = $("#phone").val();
|
|
var phone = $("#phone").val();
|
|
// 手机号必须为11位
|
|
// 手机号必须为11位
|
|
var reg_phone = /^((13[0-9])|(17[0-1,6-8])|(15[^4,\\D])|(18[0-9]))\d{8}$/;
|
|
var reg_phone = /^((13[0-9])|(17[0-1,6-8])|(15[^4,\\D])|(18[0-9]))\d{8}$/;
|
|
var flag = reg_phone.test(phone)
|
|
var flag = reg_phone.test(phone)
|
|
- if (flag){// 符合规则
|
|
|
|
- $("#phone1").attr('style','display: none')
|
|
|
|
- }
|
|
|
|
- else {
|
|
|
|
|
|
+ if (flag) {// 符合规则
|
|
|
|
+ $("#phone1").attr('style', 'display: none')
|
|
|
|
+ } else {
|
|
console.log("qq")
|
|
console.log("qq")
|
|
- $("#phone1").attr('style','color: red;font-size: 12px;display: block')
|
|
|
|
|
|
+ $("#phone1").attr('style', 'color: red;font-size: 12px;display: block')
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- function checkidcard(){
|
|
|
|
|
|
+
|
|
|
|
+ function checkidcard() {
|
|
var idcard = $("#idcard").val();
|
|
var idcard = $("#idcard").val();
|
|
// 手机号必须为11位
|
|
// 手机号必须为11位
|
|
var reg_idcard = /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/;
|
|
var reg_idcard = /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/;
|
|
var flag = reg_idcard.test(idcard)
|
|
var flag = reg_idcard.test(idcard)
|
|
- if (flag){// 符合规则
|
|
|
|
- $("#idcard1").attr('style','display: none')
|
|
|
|
- }
|
|
|
|
- else {
|
|
|
|
- $("#idcard1").attr('style','color: red;font-size: 12px;display: block')
|
|
|
|
|
|
+ if (flag) {// 符合规则
|
|
|
|
+ $("#idcard1").attr('style', 'display: none')
|
|
|
|
+ } else {
|
|
|
|
+ $("#idcard1").attr('style', 'color: red;font-size: 12px;display: block')
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
/*var formFileLg = document.querySelector("#formFileLg")
|
|
/*var formFileLg = document.querySelector("#formFileLg")
|
|
formFileLg.onchange = function () {
|
|
formFileLg.onchange = function () {
|
|
var formData = new FormData()
|
|
var formData = new FormData()
|
|
@@ -619,7 +627,7 @@
|
|
|
|
|
|
|
|
|
|
//材料上传--打开摄像头
|
|
//材料上传--打开摄像头
|
|
- function cl_openidA4photos(size,type) {
|
|
|
|
|
|
+ function cl_openidA4photos(size, type) {
|
|
|
|
|
|
var oViewport;
|
|
var oViewport;
|
|
var offsetWidth;
|
|
var offsetWidth;
|
|
@@ -629,19 +637,19 @@
|
|
Toast('', '高拍仪正在打开');
|
|
Toast('', '高拍仪正在打开');
|
|
if (size == 0 || size == 1) {
|
|
if (size == 0 || size == 1) {
|
|
// 设置A3 A4窗口
|
|
// 设置A3 A4窗口
|
|
- topWidth=635
|
|
|
|
- topHeight=360
|
|
|
|
- offsetWidth=656;
|
|
|
|
- offsetHeight=508;
|
|
|
|
|
|
+ topWidth = 635
|
|
|
|
+ topHeight = 360
|
|
|
|
+ offsetWidth = 656;
|
|
|
|
+ offsetHeight = 508;
|
|
} else if (size == 2) {
|
|
} else if (size == 2) {
|
|
// 设置身份证窗口
|
|
// 设置身份证窗口
|
|
- topWidth=565
|
|
|
|
- topHeight=240
|
|
|
|
- offsetWidth=428;
|
|
|
|
- offsetHeight=270;
|
|
|
|
|
|
+ topWidth = 565
|
|
|
|
+ topHeight = 240
|
|
|
|
+ offsetWidth = 428;
|
|
|
|
+ offsetHeight = 270;
|
|
}
|
|
}
|
|
|
|
|
|
- module_camera.open(type, 0, 0, 0, topWidth, topHeight, offsetWidth,offsetHeight);
|
|
|
|
|
|
+ module_camera.open(type, 0, 0, 0, topWidth, topHeight, offsetWidth, offsetHeight);
|
|
}
|
|
}
|
|
|
|
|
|
//材料上传-关闭摄像头
|
|
//材料上传-关闭摄像头
|
|
@@ -652,15 +660,18 @@
|
|
Toast('res', '高拍仪/摄像头关闭成功');
|
|
Toast('res', '高拍仪/摄像头关闭成功');
|
|
|
|
|
|
}
|
|
}
|
|
|
|
+
|
|
//材料上传--拍照
|
|
//材料上传--拍照
|
|
function cl_takePhotos() {//材料名称,材料index
|
|
function cl_takePhotos() {//材料名称,材料index
|
|
Toast('', '开始拍照');
|
|
Toast('', '开始拍照');
|
|
module_camera.take_photo();
|
|
module_camera.take_photo();
|
|
|
|
|
|
}
|
|
}
|
|
|
|
+
|
|
function output(message) {
|
|
function output(message) {
|
|
console.log(message)
|
|
console.log(message)
|
|
}
|
|
}
|
|
|
|
+
|
|
var RAIO_lightctrl_light = {
|
|
var RAIO_lightctrl_light = {
|
|
RAIO_LIGHTCTR_LIGHT_CAMERA: 0x04, // 拍摄灯
|
|
RAIO_LIGHTCTR_LIGHT_CAMERA: 0x04, // 拍摄灯
|
|
RAIO_LIGHTCTR_LIGHT_IDCARD: 0x05, // 身份证读卡器背光灯
|
|
RAIO_LIGHTCTR_LIGHT_IDCARD: 0x05, // 身份证读卡器背光灯
|
|
@@ -678,23 +689,26 @@
|
|
};
|
|
};
|
|
|
|
|
|
function open_light() {
|
|
function open_light() {
|
|
- module_lightctrl.open_light(RAIO_lightctrl_light.RAIO_LIGHTCTR_LIGHT_CAMERA,RAIO_lightctrl_mode.RAIO_LIGHTCTR_MODE_FLICKER);
|
|
|
|
|
|
+ module_lightctrl.open_light(RAIO_lightctrl_light.RAIO_LIGHTCTR_LIGHT_CAMERA, RAIO_lightctrl_mode.RAIO_LIGHTCTR_MODE_FLICKER);
|
|
}
|
|
}
|
|
|
|
|
|
function close_light() {
|
|
function close_light() {
|
|
module_lightctrl.close_light(RAIO_lightctrl_light.RAIO_LIGHTCTR_LIGHT_CAMERA);
|
|
module_lightctrl.close_light(RAIO_lightctrl_light.RAIO_LIGHTCTR_LIGHT_CAMERA);
|
|
}
|
|
}
|
|
- var nowfile=""
|
|
|
|
|
|
+
|
|
|
|
+ var nowfile = ""
|
|
|
|
+
|
|
function selTr(e) {
|
|
function selTr(e) {
|
|
- nowfile=$(e).attr("data-id")
|
|
|
|
- if(nowfile=="yyzz"){
|
|
|
|
|
|
+ nowfile = $(e).attr("data-id")
|
|
|
|
+ if (nowfile == "yyzz") {
|
|
$("#yyzz").show()
|
|
$("#yyzz").show()
|
|
$("#sqcn").hide()
|
|
$("#sqcn").hide()
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
$("#yyzz").hide()
|
|
$("#yyzz").hide()
|
|
$("#sqcn").show()
|
|
$("#sqcn").show()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
var formData = ""
|
|
var formData = ""
|
|
window.onload = function () {
|
|
window.onload = function () {
|
|
// var baseUrl = "http://127.0.0.1:12345/";
|
|
// var baseUrl = "http://127.0.0.1:12345/";
|
|
@@ -732,10 +746,10 @@
|
|
if (code == 0) {
|
|
if (code == 0) {
|
|
Toast('res', '拍照成功');
|
|
Toast('res', '拍照成功');
|
|
addImage(image);
|
|
addImage(image);
|
|
- formData = getFileFromBase64(image,"人力资源设立.jpg");
|
|
|
|
|
|
+ formData = getFileFromBase64(image, "人力资源设立.jpg");
|
|
console.log(formData)
|
|
console.log(formData)
|
|
console.log(nowfile)
|
|
console.log(nowfile)
|
|
- if(nowfile=="yyzz"){
|
|
|
|
|
|
+ if (nowfile == "yyzz") {
|
|
$.ajax({
|
|
$.ajax({
|
|
type: "post",
|
|
type: "post",
|
|
url: ctx + "common/upload",
|
|
url: ctx + "common/upload",
|
|
@@ -749,7 +763,7 @@
|
|
$('#baseFile').val(result.fileName)
|
|
$('#baseFile').val(result.fileName)
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- }else if (nowfile=="sqcn"){
|
|
|
|
|
|
+ } else if (nowfile == "sqcn") {
|
|
$.ajax({
|
|
$.ajax({
|
|
type: "post",
|
|
type: "post",
|
|
url: ctx + "common/upload",
|
|
url: ctx + "common/upload",
|
|
@@ -778,7 +792,7 @@
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- function getFileFromBase64 (data,fileName) {
|
|
|
|
|
|
+ function getFileFromBase64(data, fileName) {
|
|
var _base64 = "data:image/jpeg;base64," + data;
|
|
var _base64 = "data:image/jpeg;base64," + data;
|
|
const dataArr = _base64.split(",");
|
|
const dataArr = _base64.split(",");
|
|
const byteString = atob(dataArr[1]);
|
|
const byteString = atob(dataArr[1]);
|
|
@@ -799,6 +813,7 @@
|
|
function goBack() {
|
|
function goBack() {
|
|
history.go(-2);
|
|
history.go(-2);
|
|
}
|
|
}
|
|
|
|
+
|
|
function delImage(This) {
|
|
function delImage(This) {
|
|
var obj = This.parentNode;
|
|
var obj = This.parentNode;
|
|
obj.parentNode.removeChild(obj);
|
|
obj.parentNode.removeChild(obj);
|
|
@@ -808,27 +823,27 @@
|
|
|
|
|
|
function addImage(base64) {
|
|
function addImage(base64) {
|
|
var base64 = "data:image/jpeg;base64," + base64;
|
|
var base64 = "data:image/jpeg;base64," + base64;
|
|
- if(nowfile==""){
|
|
|
|
- nowfile="yyzz"
|
|
|
|
|
|
+ if (nowfile == "") {
|
|
|
|
+ nowfile = "yyzz"
|
|
}
|
|
}
|
|
- if(nowfile=="sqcn"){
|
|
|
|
- if($("#chengnuoshu").val()!=""&&$("#chengnuoshu").val()!=undefined){
|
|
|
|
|
|
+ if (nowfile == "sqcn") {
|
|
|
|
+ if ($("#chengnuoshu").val() != "" && $("#chengnuoshu").val() != undefined) {
|
|
alert("请勿重复拍照")
|
|
alert("请勿重复拍照")
|
|
- return ;
|
|
|
|
|
|
+ return;
|
|
}
|
|
}
|
|
$("#chengnuoshu").val(base64);
|
|
$("#chengnuoshu").val(base64);
|
|
- }else{
|
|
|
|
- if($("#baseFile").val()!=""&&$("#baseFile").val()!=undefined){
|
|
|
|
|
|
+ } else {
|
|
|
|
+ if ($("#baseFile").val() != "" && $("#baseFile").val() != undefined) {
|
|
alert("请勿重复拍照")
|
|
alert("请勿重复拍照")
|
|
- return ;
|
|
|
|
|
|
+ return;
|
|
}
|
|
}
|
|
$("#baseFile").val(base64);
|
|
$("#baseFile").val(base64);
|
|
}
|
|
}
|
|
|
|
|
|
- var imghtml='<li ><i class="iconfont icon-guanbi" onClick="delImage(this)"></i><img src="'+base64+'" style="width:100%;height:200px;z-index:100;"/></li>'
|
|
|
|
- $("#"+nowfile).append(imghtml);
|
|
|
|
|
|
+ var imghtml = '<li ><i class="iconfont icon-guanbi" onClick="delImage(this)"></i><img src="' + base64 + '" style="width:100%;height:200px;z-index:100;"/></li>'
|
|
|
|
+ $("#" + nowfile).append(imghtml);
|
|
|
|
|
|
}
|
|
}
|
|
- </script>
|
|
|
|
|
|
+</script>
|
|
</body>
|
|
</body>
|
|
</html>
|
|
</html>
|