|
@@ -6,7 +6,7 @@
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
|
|
<link rel="stylesheet" href="/rlzy/css/saomiao.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>
|
|
|
<style>
|
|
@@ -22,7 +22,7 @@
|
|
|
}
|
|
|
|
|
|
.ft18 {
|
|
|
- font-size: 18px !important;
|
|
|
+ font-size: 22px !important;
|
|
|
}
|
|
|
|
|
|
.form-check-inline .form-check-input {
|
|
@@ -363,7 +363,7 @@
|
|
|
>
|
|
|
联系人
|
|
|
</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
|
|
|
name="contacts"
|
|
|
class="form-control"
|
|
@@ -371,12 +371,10 @@
|
|
|
placeholder="请输入联系人"
|
|
|
/>
|
|
|
</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 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
|
|
|
name="phone"
|
|
|
class="form-control"
|
|
@@ -386,12 +384,13 @@
|
|
|
/>
|
|
|
<span id="phone1" style="color: red;font-size: 10px;display: none">请输入正确的电话</span>
|
|
|
</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 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
|
|
|
name="email"
|
|
|
class="form-control"
|
|
@@ -399,8 +398,8 @@
|
|
|
placeholder="请输入邮箱"
|
|
|
/>
|
|
|
</div>
|
|
|
- </div>
|
|
|
|
|
|
+ </div>
|
|
|
<div class="row mt-sm-4">
|
|
|
<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()">
|
|
@@ -429,7 +428,7 @@
|
|
|
</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="col-md-12 column" style="height:100%">
|
|
|
<div class="row" style="height:100%">
|
|
@@ -438,20 +437,20 @@
|
|
|
<div style="height:810px;overflow:auto">
|
|
|
<table class="table table-bordered">
|
|
|
<tbody>
|
|
|
- <tr class="info" data-id="yyzz" onclick="selTr(this)">
|
|
|
+ <tr class="info" data-id="yyzz" onclick="selTr(this)">
|
|
|
<td>
|
|
|
1
|
|
|
</td>
|
|
|
<td>
|
|
|
- <a class="list">营业执照</a>
|
|
|
+ <a class="list">营业执照</a>
|
|
|
</td>
|
|
|
</tr>
|
|
|
- <tr class="info" data-id="sqcn" onclick="selTr(this)">
|
|
|
+ <tr class="info" data-id="sqcn" onclick="selTr(this)">
|
|
|
<td>
|
|
|
2
|
|
|
</td>
|
|
|
<td>
|
|
|
- <a class="list">申请人承诺</a>
|
|
|
+ <a class="list">申请人承诺</a>
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
@@ -465,11 +464,17 @@
|
|
|
|
|
|
</div>
|
|
|
<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-success">上传</button>
|
|
|
<button class="btn btn-lg btn-warning">重置</button><button class="btn btn-lg btn-info">拍照</button>
|
|
@@ -478,11 +483,11 @@
|
|
|
</div>
|
|
|
<div class="col-md-3" style="height:100%">
|
|
|
<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>
|
|
|
</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>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -497,10 +502,10 @@
|
|
|
<span>技术支持:石家庄开发区亿网科技发展有限公司</span>
|
|
|
</footer>
|
|
|
</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="/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">
|
|
|
|
|
@@ -512,19 +517,19 @@
|
|
|
$("#form-file-add").validate({
|
|
|
focusCleanup: true,
|
|
|
rules: {
|
|
|
- name:{
|
|
|
+ name: {
|
|
|
required: true,
|
|
|
},
|
|
|
- creditCode:{
|
|
|
+ creditCode: {
|
|
|
required: true,
|
|
|
},
|
|
|
- legalName:{
|
|
|
+ legalName: {
|
|
|
required: true,
|
|
|
},
|
|
|
- idcard:{
|
|
|
+ idcard: {
|
|
|
required: true,
|
|
|
},
|
|
|
- servicePlace:{
|
|
|
+ servicePlace: {
|
|
|
required: true,
|
|
|
}
|
|
|
}
|
|
@@ -535,7 +540,7 @@
|
|
|
$("#content1").hide()
|
|
|
$("#content2").show()
|
|
|
|
|
|
- cl_openidA4photos(0,1);
|
|
|
+ cl_openidA4photos(0, 1);
|
|
|
open_light()
|
|
|
|
|
|
}
|
|
@@ -546,14 +551,15 @@
|
|
|
$("#content2").hide()
|
|
|
cl_closeidA4photos();
|
|
|
}
|
|
|
+
|
|
|
function submit() {
|
|
|
if ($.validate.form()) {
|
|
|
var creditCode = $('#creditCode').val()
|
|
|
console.log(creditCode)
|
|
|
- $.operate.save( prefix+"/add", $('#form-file-add').serialize(),function(){
|
|
|
+ $.operate.save(prefix + "/add", $('#form-file-add').serialize(), function () {
|
|
|
cl_closeidA4photos();
|
|
|
alert("提交成功")
|
|
|
- window.location.href="/zhuxiao/index"
|
|
|
+ window.location.href = "/zhuxiao/index"
|
|
|
// confirm("提交成功",function(){
|
|
|
//
|
|
|
// })
|
|
@@ -563,39 +569,41 @@
|
|
|
}
|
|
|
|
|
|
}
|
|
|
- $('#phone').blur(function (){
|
|
|
+
|
|
|
+ $('#phone').blur(function () {
|
|
|
checktelephone();
|
|
|
}
|
|
|
)
|
|
|
- $('#idcard').blur(function (){
|
|
|
+ $('#idcard').blur(function () {
|
|
|
checkidcard();
|
|
|
}
|
|
|
)
|
|
|
- function checktelephone(){
|
|
|
+
|
|
|
+ function checktelephone() {
|
|
|
var phone = $("#phone").val();
|
|
|
// 手机号必须为11位
|
|
|
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)
|
|
|
- if (flag){// 符合规则
|
|
|
- $("#phone1").attr('style','display: none')
|
|
|
- }
|
|
|
- else {
|
|
|
+ if (flag) {// 符合规则
|
|
|
+ $("#phone1").attr('style', 'display: none')
|
|
|
+ } else {
|
|
|
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();
|
|
|
// 手机号必须为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 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")
|
|
|
formFileLg.onchange = function () {
|
|
|
var formData = new FormData()
|
|
@@ -619,7 +627,7 @@
|
|
|
|
|
|
|
|
|
//材料上传--打开摄像头
|
|
|
- function cl_openidA4photos(size,type) {
|
|
|
+ function cl_openidA4photos(size, type) {
|
|
|
|
|
|
var oViewport;
|
|
|
var offsetWidth;
|
|
@@ -629,19 +637,19 @@
|
|
|
Toast('', '高拍仪正在打开');
|
|
|
if (size == 0 || size == 1) {
|
|
|
// 设置A3 A4窗口
|
|
|
- topWidth=635
|
|
|
- topHeight=360
|
|
|
- offsetWidth=656;
|
|
|
- offsetHeight=508;
|
|
|
+ topWidth = 635
|
|
|
+ topHeight = 360
|
|
|
+ offsetWidth = 656;
|
|
|
+ offsetHeight = 508;
|
|
|
} 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', '高拍仪/摄像头关闭成功');
|
|
|
|
|
|
}
|
|
|
+
|
|
|
//材料上传--拍照
|
|
|
function cl_takePhotos() {//材料名称,材料index
|
|
|
Toast('', '开始拍照');
|
|
|
module_camera.take_photo();
|
|
|
|
|
|
}
|
|
|
+
|
|
|
function output(message) {
|
|
|
console.log(message)
|
|
|
}
|
|
|
+
|
|
|
var RAIO_lightctrl_light = {
|
|
|
RAIO_LIGHTCTR_LIGHT_CAMERA: 0x04, // 拍摄灯
|
|
|
RAIO_LIGHTCTR_LIGHT_IDCARD: 0x05, // 身份证读卡器背光灯
|
|
@@ -678,23 +689,26 @@
|
|
|
};
|
|
|
|
|
|
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() {
|
|
|
module_lightctrl.close_light(RAIO_lightctrl_light.RAIO_LIGHTCTR_LIGHT_CAMERA);
|
|
|
}
|
|
|
- var nowfile=""
|
|
|
+
|
|
|
+ var nowfile = ""
|
|
|
+
|
|
|
function selTr(e) {
|
|
|
- nowfile=$(e).attr("data-id")
|
|
|
- if(nowfile=="yyzz"){
|
|
|
+ nowfile = $(e).attr("data-id")
|
|
|
+ if (nowfile == "yyzz") {
|
|
|
$("#yyzz").show()
|
|
|
$("#sqcn").hide()
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
$("#yyzz").hide()
|
|
|
$("#sqcn").show()
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
var formData = ""
|
|
|
window.onload = function () {
|
|
|
// var baseUrl = "http://127.0.0.1:12345/";
|
|
@@ -732,10 +746,10 @@
|
|
|
if (code == 0) {
|
|
|
Toast('res', '拍照成功');
|
|
|
addImage(image);
|
|
|
- formData = getFileFromBase64(image,"人力资源设立.jpg");
|
|
|
+ formData = getFileFromBase64(image, "人力资源设立.jpg");
|
|
|
console.log(formData)
|
|
|
console.log(nowfile)
|
|
|
- if(nowfile=="yyzz"){
|
|
|
+ if (nowfile == "yyzz") {
|
|
|
$.ajax({
|
|
|
type: "post",
|
|
|
url: ctx + "common/upload",
|
|
@@ -749,7 +763,7 @@
|
|
|
$('#baseFile').val(result.fileName)
|
|
|
}
|
|
|
});
|
|
|
- }else if (nowfile=="sqcn"){
|
|
|
+ } else if (nowfile == "sqcn") {
|
|
|
$.ajax({
|
|
|
type: "post",
|
|
|
url: ctx + "common/upload",
|
|
@@ -778,7 +792,7 @@
|
|
|
|
|
|
}
|
|
|
|
|
|
- function getFileFromBase64 (data,fileName) {
|
|
|
+ function getFileFromBase64(data, fileName) {
|
|
|
var _base64 = "data:image/jpeg;base64," + data;
|
|
|
const dataArr = _base64.split(",");
|
|
|
const byteString = atob(dataArr[1]);
|
|
@@ -799,6 +813,7 @@
|
|
|
function goBack() {
|
|
|
history.go(-2);
|
|
|
}
|
|
|
+
|
|
|
function delImage(This) {
|
|
|
var obj = This.parentNode;
|
|
|
obj.parentNode.removeChild(obj);
|
|
@@ -808,27 +823,27 @@
|
|
|
|
|
|
function addImage(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("请勿重复拍照")
|
|
|
- return ;
|
|
|
+ return;
|
|
|
}
|
|
|
$("#chengnuoshu").val(base64);
|
|
|
- }else{
|
|
|
- if($("#baseFile").val()!=""&&$("#baseFile").val()!=undefined){
|
|
|
+ } else {
|
|
|
+ if ($("#baseFile").val() != "" && $("#baseFile").val() != undefined) {
|
|
|
alert("请勿重复拍照")
|
|
|
- return ;
|
|
|
+ return;
|
|
|
}
|
|
|
$("#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>
|
|
|
</html>
|