|
@@ -403,7 +403,7 @@
|
|
|
|
|
|
<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-primary btn-lg" type="button" onclick="toSaomiao()">
|
|
|
|
|
|
+ <button class="btn btn-success btn-lg" type="button" onclick="toSaomiao()">
|
|
下 一 步
|
|
下 一 步
|
|
</button>
|
|
</button>
|
|
<button
|
|
<button
|
|
@@ -464,11 +464,12 @@
|
|
<div class="gaopaiyi" id="CameraCtl" style="width:100%;height:80%;background-color:#fff">
|
|
<div class="gaopaiyi" id="CameraCtl" style="width:100%;height:80%;background-color:#fff">
|
|
|
|
|
|
</div>
|
|
</div>
|
|
- <div class="gaopai" style="position:absolute;bottom:0 ; margin-left: 33%;">
|
|
|
|
|
|
+ <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-success" onclick = "cl_openidA4photos(1,1)">打开高拍仪</button>-->
|
|
<!-- <button class="btn btn-lg btn-warning" onclick = "cl_closeidA4photos()">关闭高拍仪</button>-->
|
|
<!-- <button class="btn btn-lg btn-warning" onclick = "cl_closeidA4photos()">关闭高拍仪</button>-->
|
|
- <button class="btn btn-lg btn-info" onclick="cl_takePhotos()">拍照</button>
|
|
|
|
- <button class="btn btn-lg btn-warning" onclick="submit()">提交</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>
|
|
@@ -539,13 +540,25 @@
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ function goBackStep() {
|
|
|
|
+ $("#content1").show()
|
|
|
|
+ $("#content2").hide()
|
|
|
|
+ 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("提交成功")
|
|
window.location.href="/zhuxiao/index"
|
|
window.location.href="/zhuxiao/index"
|
|
|
|
+ // confirm("提交成功",function(){
|
|
|
|
+ //
|
|
|
|
+ // })
|
|
|
|
+
|
|
|
|
+
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
@@ -795,18 +808,21 @@
|
|
|
|
|
|
function addImage(base64) {
|
|
function addImage(base64) {
|
|
var base64 = "data:image/jpeg;base64," + base64;
|
|
var base64 = "data:image/jpeg;base64," + base64;
|
|
- if(nowfile=="yyzz"){
|
|
|
|
- if($("#baseFile").val()!=""&&$("#baseFile").val()!=undefined){
|
|
|
|
|
|
+ if(nowfile==""){
|
|
|
|
+ nowfile="yyzz"
|
|
|
|
+ }
|
|
|
|
+ if(nowfile=="sqcn"){
|
|
|
|
+ if($("#chengnuoshu").val()!=""&&$("#chengnuoshu").val()!=undefined){
|
|
alert("请勿重复拍照")
|
|
alert("请勿重复拍照")
|
|
return ;
|
|
return ;
|
|
}
|
|
}
|
|
- $("#baseFile").val(base64);
|
|
|
|
|
|
+ $("#chengnuoshu").val(base64);
|
|
}else{
|
|
}else{
|
|
- if($("#chengnuoshu").val()!=""&&$("#chengnuoshu").val()!=undefined){
|
|
|
|
|
|
+ if($("#baseFile").val()!=""&&$("#baseFile").val()!=undefined){
|
|
alert("请勿重复拍照")
|
|
alert("请勿重复拍照")
|
|
return ;
|
|
return ;
|
|
}
|
|
}
|
|
- $("#chengnuoshu").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>'
|
|
var imghtml='<li ><i class="iconfont icon-guanbi" onClick="delImage(this)"></i><img src="'+base64+'" style="width:100%;height:200px;z-index:100;"/></li>'
|