zouling 1 rok pred
rodič
commit
d081d5c281

+ 26 - 0
api/mine/card.js

@@ -0,0 +1,26 @@
+import request from '@/utils/request'
+//身份证识别
+export function getOcrIdCard(data) {
+  return request({
+    'url': '/ocr/ocrIdCard',
+    'method': 'post',
+	'data':data
+  })
+}
+//营业执照识别
+export function getOcrBusinessLicense(data) {
+  return request({
+    'url': '/ocr/ocrBusinessLicense',
+    'method': 'post',
+	'data':data
+  })
+}
+//人脸识别
+// export function getOcrBusinessLicense(data) {
+//   return request({
+//     'url': '/ocr/ocrBusinessLicense',
+//     'method': 'post',
+// 	'data':data
+//   })
+// }
+

+ 0 - 0
api/mine/order.js → api/mine/work.js


+ 2 - 2
config.js

@@ -1,9 +1,9 @@
 // 应用全局配置
 module.exports = {
-  baseUrl: 'https://vue.ruoyi.vip/prod-api',
+  // baseUrl: 'https://vue.ruoyi.vip/prod-api',
   // baseUrl: 'https://lyyy.qs163.cn/prod-api',
   // baseUrl: 'http://192.168.101.168:8056',
-  // baseUrl: 'http://192.168.101.245:8089',
+  baseUrl: 'http://192.168.101.245:8056',
   Clientid:'428a8310cd442757ae699df5d894f051',//
  // https://xygl.cnzxy.cn h5链接地址
   confirmflag:false,//是否有弹窗

+ 1 - 0
pages.json

@@ -190,6 +190,7 @@
 					"navigationBarTitleText": "业务申报",
 					"navigationBarBackgroundColor": "#00A9F0",
 					"navigationBarTextStyle": "white",
+					"navigationStyle": "custom",
 					"h5":{"titleNView":false}
 				}
 			},

+ 3 - 4
pages/common/textview/index.vue

@@ -23,11 +23,10 @@
     }
   }
 </script>
-
+<style>
+	page{background:#ffffff;}
+</style>
 <style scoped>
-  page {
-    background-color: #ffffff;
-  }
 
   .view-title {
     font-weight: bold;

+ 2 - 1
pages/index/index.vue

@@ -226,7 +226,8 @@
 			// this.init()
 		},
 		getProveFn(){
-			this.$tab.navigateTo("/work/pages/business/add")
+			this.$tab.navigateTo("/work/pages/prove/index")
+			// this.$tab.navigateTo("/work/pages/business/add")
 		},
 		getBusListFn(){
 			this.$tab.navigateTo("/work/pages/business/list")

+ 1 - 0
static/style.css

@@ -6,6 +6,7 @@
 .flexcc{display: flex;align-items: center;justify-content: center;}
 .flexcj{display: flex;align-items: center;justify-content: space-between;}
 .flext{display: flex;align-items: flex-start;}
+.flexe{display: flex;justify-content: end;}
 .flexcw{display: flex;align-items: center;flex-wrap: wrap;}
 .flexcj{display: flex;align-items: center;justify-content: space-between;}
 .flexccc{display: flex;align-items: center;justify-content: center;flex-direction: column;}

+ 8 - 1
utils/request.js

@@ -110,7 +110,14 @@ const request = config => {
 					})
 				}else{
 					uni.hideLoading()
-					showConfirm('登录状态已过期,您可以继续留在该页面,或者重新登录?').then(res => {
+					var routes = getCurrentPages()
+					if(routes.length){
+						var route ='/'+routes[routes.length - 1].route;
+						if(route=='/pages/login'){
+							return
+						}
+					}
+					showConfirm('1登录状态已过期,您可以继续留在该页面,或者重新登录?').then(res => {
 					  if (res.confirm) {
 					    store.dispatch('LogOut').then(res => {
 					      uni.reLaunch({ url: '/pages/login' })

+ 8 - 4
work/components/business/list.vue

@@ -74,8 +74,9 @@
 		<block v-if="type=='qylist'">
 			<view class="lists" v-for="(ite,idx) in datalist">
 				<view class="listtop flexcj" >
-					<view class="toptit over">安徽嘉欣医疗用品有限公司</view>
-					<view class="looktxt" @click="getDetail">修改</view>
+					<view class="toptit over flex1">安徽嘉欣医疗用品有限公司</view>
+					<view class="looktxt bga" @click="getDetail">删除</view>
+					<view class="looktxt bgb" @click="getDetail">修改</view>
 				</view>
 				<view class="listsm">
 					<view class="txt"><text class="tit">统一社会信用代码:</text><text>91101085620732606</text></view>
@@ -127,7 +128,7 @@
 					<view class="txt"><text class="tit">申贷次数</text><text class="line">|</text><text>2次</text></view>
 					<view class="txt"><text class="tit">最近申贷时间</text><text class="line">|</text><text>2023年08月23日</text>
 						<view class="flex1"></view>
-						<view class="looktxt">查看文件</view>
+						<view class="looktxt bgb">查看文件</view>
 					</view>
 				</view>
 			</view>
@@ -353,7 +354,10 @@ font-size: 40rpx;display: flex;align-items: center;justify-content: center;color
 			.txt{min-width: 50%;}
 		}
 	}
-	.looktxt{font-weight: 500;flex: 0 0 auto;font-size: 26rpx;color: #00A9F0;margin-left: 10rpx;}
+	.looktxt{font-weight: 500;flex: 0 0 auto;font-size: 26rpx;margin-left: 20rpx;
+		&.bga{color: #FF6969;}
+		&.bgb{color: #00A9F0;}
+	}
 	
 }
 // 文件

+ 65 - 9
work/pages/business/add.vue

@@ -1,8 +1,23 @@
 <template>
-	<view class="addbox">
+	<view class="addbox" :style="'padding-top:'+listTop+'rpx;'">
 		<!-- 步骤条 -->
-		<view>
-			<step-bar :steps="steps" :fixeda='true' :stepval="stepval"></step-bar>
+		<view class="navtop">
+			<uni-nav-bar color="#ffffff" leftWidth="160rpx" rightWidth="160rpx" @clickLeft="getBack"   title="业务申报" :background-color="actcolor" :border="false"
+				 statusBar='true'>
+				<block slot="left">
+					<view class="topl">
+						<image :src="backimg" ></image>
+					</view>
+				</block>
+				<block slot="right">
+					<view class="edit">
+						<image :src="feditimg"></image>
+						放弃编辑
+					</view>
+				</block>
+			</uni-nav-bar>
+			<!-- 头部 -->
+			<step-bar :steps="steps" :fixeda='false' :stepval="stepval"></step-bar>
 		</view>
 		<uni-forms ref="form" :model="datainfo" :rules="rules">
 			<!-- 企业信息 -->
@@ -1192,8 +1207,9 @@
 		<!-- btnd -->
 		<view class="addbtns">
 			<view class="addlbtn"><image :src="zancio"></image>暂存</view>
-			<view class="addrbtn" @click="getNextFn">下一步</view>
-			<view class="addrbtn" @click="getSubmit">提交</view>
+			<view class="addrbtn bga" @click="getPreFn">上一步</view>
+			<view class="addrbtn bgb" @click="getNextFn">下一步</view>
+			<view class="addrbtn bgb" @click="getSubmit">提交</view>
 		</view>
 		<!-- <pop-up type='1'></pop-up> -->
 		<block v-if="lookflag">
@@ -1250,6 +1266,8 @@
 				filelist:[{name:'安徽省龙之源纯净水有限公司0403委托担保申请书.pdf',url:'2122'}],
 				gdfilelist:[],
 				
+				backimg:require("@/work/static/images/back.png"),
+				feditimg:require("@/work/static/images/fedit.png"),
 				hrimg:require('@/work/static/images/hrimg.png'),
 				ywicon:require('@/work/static/images/busin/ywicon.png'),
 				delimg:require('@/work/static/images/del.png'),
@@ -1290,6 +1308,7 @@
 				actcolor:'#00A9F0',
 				sqtype:'gr',//个人 ,企业,
 				lookflag:false,
+				listTop:70
 			}
 		},
 		onUnload(){
@@ -1301,12 +1320,39 @@
 				this.datainfo.hylxid=e.categoryId
 			})
 		},
+		mounted() {
+			this.getHeightFn()
+		},
 		methods:{
 			checkPermi, checkRole,
+			getHeightFn(){
+				let query = uni.createSelectorQuery().in(this);
+				var s=uni.getSystemInfoSync().statusBarHeight;
+				//需要给黄色区域设置一个id标识,在这里是demo
+				query.select('.navtop').boundingClientRect(data => {
+					// #ifdef H5
+					this.listTop =s ? Number(data.height)*2:(Number(data.height)-20)*2//赋值,待会要用
+					// #endif
+					// #ifndef H5
+					this.listTop = Number(data.height)*2//赋值,待会要用
+					// #endif
+					
+					
+				}).exec();
+			},
 			getDbclFn(){
 				this.$tab.navigateTo("/work/pages/prove/dbcltips")
+			},
+			getBack(){
+				uni.navigateBack({
+					delta:1
+				})
+			},
+			getPreFn(){
+				
 			},
 			getNextFn(){
+				// 暂不判断必填写完否
 				this.stepval=Number(this.stepval)+1
 			},
 			getDelphtFn(){
@@ -1473,7 +1519,15 @@
 	position: absolute;left: -240rpx;top:50%;transform: translateY(-50%);
 	text{color: #AAAAAA;font-size: 26rpx;font-weight: normal;display: block;}
 }
-
+.navtop{
+	position: fixed;left:0;right: 0;top: 0;z-index: 2;
+}
+.topl{width: 60rpx;height: 60rpx;display: flex;align-items: center;justify-content: center;
+	image{width: 40rpx;height: 30rpx;}
+}
+.edit{font-weight: 500;font-size: 26rpx;color: #FFFFFF;display: flex;align-items: center;
+	image{width: 24rpx;height: 26rpx;margin-right: 10rpx;}
+}
 .addbox{padding: 140rpx 0 136rpx;
 	.addtit{font-weight: bold;padding: 18rpx 34rpx;font-size: 26rpx;color: #666666;
 		text{color: #DF0303;margin-right: 8rpx;}
@@ -1508,9 +1562,11 @@
 font-size: 30rpx;color: $com-cd3;display: flex;align-items: center;width: 232rpx;flex: 0 0 auto;height: 100rpx;
 			image{width: 32rpx;height: 32rpx;margin-right: 12rpx;}
 		}
-		.addrbtn{flex: 1;height: 100rpx;background: $com-cd3;font-weight: bold;
-font-size: 30rpx;display: flex;align-items: center;justify-content: center;
-color: #FFFFFF;}	
+		.addrbtn{flex: 1;height: 100rpx;font-weight: bold;font-size: 30rpx;display: flex;align-items: center;justify-content: center;
+color: #FFFFFF;
+			&.bga{background: #29E18A;}
+			&.bgb{background: $com-cd3;}
+		}	
 	}
 	// 附件
 	.fjbox{padding: 24rpx 0;

+ 3 - 4
work/pages/business/limit.vue

@@ -91,11 +91,10 @@
 		}
 	}
 </script>
-
+<style>
+	page{background:#ffffff;}
+</style>
 <style lang="scss" scoped>
-page{
-	background-color: #ffffff;
-}
 .limbox{padding: 24rpx 36rpx 54rpx;
 	.tit{font-size: 40rpx;font-weight: bold;color: #222327;padding-top: 40rpx;margin-bottom: 18rpx;}
 	.txt{font-weight: 500;font-size: 26rpx;color: #666666;margin-bottom: 28rpx;}

+ 4 - 2
work/pages/business/sign.vue

@@ -643,13 +643,15 @@
 		}
 	};
 </script>
-
-<style lang="scss" scoped>
+<style>
 	page {
 		background: #fbfbfb;
 		height: auto;
 		overflow: hidden;
 	}
+</style>
+<style lang="scss" scoped>
+	
 .sign{width: 100%;height: 100vh;padding: 24rpx;}
 .signtit{font-weight: 500;font-size: 30rpx;position: absolute;top: 220rpx;word-break: keep-all;transform: rotate(90deg);
 color: #666666;left: -140rpx;}

+ 3 - 2
work/pages/file/wjdetails.vue

@@ -57,9 +57,10 @@
 		}
 	}
 </script>
-
+<style>
+	page{background:#ffffff;}
+</style>
 <style lang="scss" scoped>
-page{background: #ffffff;}
 .tabs{padding: 0 6rpx 0 36rpx;display: flex;flex-wrap: nowrap;overflow: auto;flex: 0 0 auto;border-bottom: 2rpx solid #E6E6E6;position: fixed;left: 0;top: 0;right: 0;z-index: 2;
 	.tab{font-weight: 500;font-size: 26rpx;color: #666666;height: 116rpx;display: flex;align-items: center;margin-right:180rpx;flex: 0 0 auto;position: relative;
 		&.act{color: #00A9F0;font-weight: bold;

+ 3 - 1
work/pages/nodata.vue

@@ -28,8 +28,10 @@
 	}
 </script>
 
+<style>
+	page{background:#ffffff;}
+</style>
 <style lang="scss" scoped>
-page{background-color: #ffffff;}
 .sucbox{min-height: 100vh;display: flex;flex-direction: column;padding: 0 0 200rpx;align-items: center;
 	.subtop{
 		flex: 1;display: flex;flex-direction: column;align-items: center;

+ 96 - 38
work/pages/prove/addqy.vue

@@ -1,10 +1,10 @@
 <template>
 	<view class="rzbox">
 		<uni-forms ref="form" :model="user">
-			<view class="f15 co23 fw5">请添加申请人相关企业 <text>(可添加多个)</text></view>
+			<view class="f15 co23 fw5" @click="getaddImage(0)">请添加申请人相关企业 <text>(可添加多个)</text></view>
 			<view v-for="(ite,idx) in qylist" :key="idx" class="mt24">
 				<view class="flexcc mb20">
-					<view class="carbox">
+					<view class="carbox" @click="getaddImage(idx)">
 						<image :src="cardq" class="img"></image>
 						<view class="tit">营业执照</view>
 					</view>
@@ -13,36 +13,39 @@
 					<view class="cardtip">企业信息会跟进上传的营业执照图片自动识别,支持手动输入。</view>
 					<view class="cardtip">如果识别错误,可尝试再次拍照</view>
 				</view>
-				<view @click="getDel(idx)" v-if="idx!=0" style="color: red;">删除</view>
+				<!--  style="color: red;" -->
+				<view class="flexe">
+					<view v-if="idx!=0" @click="getDel(idx)" class="delimg flexc"><image :src="delimg"></image>删除企业</view>
+				</view>
 				<!-- 身份信息 -->
-				<uni-forms-item label="统一社会信用代码" name="nickName">
-					<uni-easyinput v-model="user.email" :inputBorder='false' placeholder="自动识别" />
+				<uni-forms-item label="统一社会信用代码" name="creditCode">
+					<uni-easyinput v-model="ite.creditCode" disabled :inputBorder='false' placeholder="自动识别" />
 				</uni-forms-item>
-				<uni-forms-item label="企业名称" name="phonenumber">
-					<uni-easyinput v-model="user.email" :inputBorder='false' placeholder="自动识别" />
+				<uni-forms-item label="企业名称" name="enterpriseName">
+					<uni-easyinput v-model="ite.enterpriseName" disabled :inputBorder='false' placeholder="自动识别" />
 				</uni-forms-item>
 				<block v-if="zheList[idx].zheflag">
-					<uni-forms-item label="企业类型" name="email">
-						<uni-easyinput v-model="user.email" :inputBorder='false' placeholder="自动识别" />
+					<uni-forms-item label="企业类型" name="enterpriseType">
+						<uni-easyinput v-model="ite.enterpriseType" disabled :inputBorder='false' placeholder="自动识别" />
 					</uni-forms-item>
-					<uni-forms-item label="企业地址" name="email">
-						<uni-easyinput type="textarea" :autoHeight="true" v-model="user.email" :inputBorder='false'
+					<uni-forms-item label="企业地址" name="enterpriseAddress">
+						<uni-easyinput type="textarea" disabled :autoHeight="true" v-model="ite.enterpriseAddress" :inputBorder='false'
 							placeholder="自动识别" />
 					</uni-forms-item>
-					<uni-forms-item label="法人姓名" name="nickName">
-						<uni-easyinput v-model="user.email" :inputBorder='false' placeholder="自动识别" />
+					<uni-forms-item label="法人姓名" name="legalName">
+						<uni-easyinput v-model="ite.legalName" disabled :inputBorder='false' placeholder="自动识别" />
 					</uni-forms-item>
-					<uni-forms-item label="注册资金" name="phonenumber">
-						<uni-easyinput v-model="user.email" :inputBorder='false' placeholder="自动识别" />
+					<uni-forms-item label="注册资金" name="registeredCapital">
+						<uni-easyinput v-model="ite.registeredCapital" disabled :inputBorder='false' placeholder="自动识别" />
 					</uni-forms-item>
-					<uni-forms-item label="成立日期" name="email">
-						<uni-easyinput v-model="user.email" :inputBorder='false' placeholder="自动识别" />
+					<uni-forms-item label="成立日期" name="establishData">
+						<uni-easyinput v-model="ite.establishData" disabled :inputBorder='false' placeholder="自动识别" />
 					</uni-forms-item>
-					<uni-forms-item label="营业期限" name="email">
-						<uni-easyinput v-model="user.email" :inputBorder='false' placeholder="自动识别" />
+					<uni-forms-item label="营业期限" name="businessTerm">
+						<uni-easyinput v-model="ite.businessTerm" disabled :inputBorder='false' placeholder="自动识别" />
 					</uni-forms-item>
-					<uni-forms-item label="经营范围" name="email">
-						<uni-easyinput type="textarea" :autoHeight="true" v-model="user.email" :inputBorder='false'
+					<uni-forms-item label="经营范围" name="businessScope">
+						<uni-easyinput type="textarea" disabled :autoHeight="true" v-model="ite.businessScope" :inputBorder='false'
 							placeholder="自动识别" />
 					</uni-forms-item>
 				</block>
@@ -68,6 +71,7 @@
 	import config from '@/config'
 	const baseUrl = config.baseUrl
 	import {uploadmore} from '@/utils/common.js'
+	import {getOcrBusinessLicense} from "@/api/mine/card.js"
 	import {checkPermi,checkRole} from "@/utils/permission"; // 权限判断函数
 	export default {
 		components: {},
@@ -75,19 +79,26 @@
 			return {
 				cardq: require('@/work/static/images/prove/cardq.png'),
 				addqy: require('@/work/static/images/prove/addqy.png'),
+				delimg: require('@/work/static/images/delb.png'),
 				upimg: require('@/work/static/images/up.png'),
 				user: {
 
 				},
 				zheList:[{zheflag:true}],
 				qylist: [{
-					"schoolId": "",
-					"schoolName": "",
-					"classId": "",
-					"className": "",
-					"studentName": "",
-					"studentNumber": ""
+					// "idCard":"",//身份证号码
+					 // "realName":"",//真实姓名
+					 "creditCode":"",//统一社会信用代码
+					"enterpriseName":"",//企业名称
+					"enterpriseType":"",//企业类型
+					"enterpriseAddress":"",//企业地址
+					"legalName":"",//法人姓名
+					"registeredCapital":"",//注册资金
+					"establishData":"",//成立日期
+					"businessTerm":"",//营业期限
+					"businessScope":"",//经营范围
 				}],
+				
 			}
 		},
 		methods: {
@@ -101,12 +112,17 @@
 			},
 			getAddQyFn(){
 				var obj = {
-					"schoolId": "",
-					"schoolName": "",
-					"classId": "",
-					"className": "",
-					"studentName": "",
-					"studentNumber": ""
+					"idCard":"",
+					 "realName":"",
+					 "creditCode":"",
+					"enterpriseName":"",
+					"enterpriseType":"",
+					"enterpriseAddress":"",
+					"legalName":"",
+					"registeredCapital":"",
+					"establishData":"",
+					"businessTerm":"",
+					"businessScope":"",
 				}
 				this.qylist.push(obj);
 				var zheobj={zheflag:true}
@@ -129,8 +145,18 @@
 					}
 				});
 			},
-			getaddImage(e){
+			getaddImage(idx){
 				let that = this;
+				var rs=['D:\\zhizhao.jpg']
+				if(rs&&rs.length>0){
+					var obj={
+						// url:baseUrl+rs.join(',')
+						url:rs.join(','),
+						idx:idx
+					}
+					that.getOcrBusinessLicense(obj)
+				}
+				return
 				let file =[],count=9
 				// if(e=='zj'){
 				// 	file = that.zjfile;
@@ -153,15 +179,44 @@
 							let imglen = res.tempFilePaths.length;
 							var fuwufile = [];
 							uploadmore('/common/upload',img,0,0,0,imglen,fuwufile,function(rs){
-								if(e=='zj'){
-									that.zjfile = that.zjfile.concat(rs);
-									that.datainfo.identificationPhoto=that.zjfile.join(',')
+								if(rs&&rs.length>0){
+									var obj={
+										url:baseUrl+rs.join(','),
+										idx:idx
+									}
+									that.getOcrBusinessLicense(obj)
 								}
 							})	
 						}
 					}
 				});
 			},
+			getOcrBusinessLicense(obj){
+				var that=this;
+				var idx=obj.idx;
+				// var obj={
+				// 	'businessScope':"互联网数据服务;大数据服务;数据处理和存储支持服务;卫星遥感数据处理;",
+				// 	'businessTerm': "长期",
+				// 	'creditCode': "91340824MA2UGYLP60",
+				// 	'enterpriseAddress': "安徽省安庆市潜山市经济开发区朝阳路0008号",
+				// 	'enterpriseName': "安徽中新云计算有限公司",
+				// 	'enterpriseType': "有限责任公司(自然人投资或控股)",
+				// 	'establishData': "2020年02月24日",
+				// 	'legalName': "江瑾",
+				// 	'registeredCapital': "6000万元",
+				// }
+				// that.qylist.splice(idx,1,obj)
+				// return
+				var params={
+					image:obj.url,
+					idCardSide:obj.type
+				}
+				getOcrBusinessLicense(params).then(res=>{
+					if(res.code==200){
+						that.qylist.splice(idx,1,res.data)
+					}
+				})
+			},
 			getSubmit() {
 				var that = this;
 				this.$refs.form.validate().then(res => {
@@ -227,7 +282,7 @@ page{
 .rzbox /deep/ .uni-easyinput__placeholder-class{font-size: 30rpx;color: #AAAAAA;}
 .rzbox /deep/ .uni-input-input{font-size: 30rpx;}
 .rzbox /deep/ .uni-textarea-textarea{font-size: 30rpx;}
-  
+.rzbox /deep/ .is-disabled{color: #222327;background-color: #ffffff !important;}  
 .rzbox{padding: 44rpx 34rpx 324rpx;
 	.carbox{width: 320rpx;border-radius: 14rpx;overflow: hidden;
 		.img{width: 320rpx;height: 216rpx;}
@@ -246,6 +301,9 @@ color: #FFFFFF;}
 			image{transform: rotate(180deg);}
 		}
 	}
+	.delimg{font-weight: 500;font-size: 26rpx;color: #FF6969;
+		image{width: 26rpx;height: 26rpx;margin-right: 12rpx;}
+	}
 }
 .rzbfot{
 	.rzbtns{width: 100%;border-radius:10rpx;height: 100rpx;display: flex;align-items: center;justify-content: center;font-weight: bold;font-size: 30rpx;

+ 3 - 2
work/pages/prove/dbcltips.vue

@@ -26,9 +26,10 @@
 		}
 	}
 </script>
-
+<style>
+	page{background:#ffffff;}
+</style>
 <style lang="scss" scoped>
-page{background-color: #ffffff;}
 .zcbox{
 	display: flex;flex-direction: column;height: 100vh;
 	.zctop{

+ 11 - 11
work/pages/prove/face.vue

@@ -26,7 +26,7 @@
 			<view>请把脸移入框内并保持不动</view>
 			<image :src="phoimg"></image>
 		</view>
-		<view class="rzbtn" @click="onScanFace">提交</view>
+		<view class="rzbtn" @click="getSumit">提交</view>
 	</view>
 </template>
 
@@ -114,7 +114,7 @@
 		methods:{
 			checkPermi, checkRole,
 			getSumit(){
-				// this.$tab.navigateTo("/work/pages/prove/addqy")
+				this.$tab.navigateTo("/work/pages/prove/addqy")
 			},
 			//刷脸
 			onScanFace() {
@@ -131,16 +131,17 @@
 				}
 			
 				if (uni.getSystemInfoSync().platform == "android") {//安卓
-				console.log(lyBDFaceAuth,1)
+				
 					lyBDFaceAuth.scanFace({
-						licenseID: this.licenseIDStr,
-						actionAry: ["Eye", "Mouth",], //不传无动作
-						isLivenessRandom: this.isLivenessRandom, //不传默认有序,0有序,1随机
-						isSound: this.isSound, //不传默认有声音,0无声,1有声
+						licenseID: 'rongzidanbao-face-android',
+						actionAry: ['Eye'], //不传无动作
+						isLivenessRandom: 0, //不传默认有序,0有序,1随机
+						isSound: 0, //不传默认有声音,0无声,1有声
 						txtColor:this.txtColor,//文字颜色
 						bgColor:this.bgColor,//背景颜色
 						roundColor:this.roundColor//圆的颜色
 					}, result => {
+						console.log(result,1)
 						console.log('file://' + result.imgPath);
 			
 						self.resultStr = "返回结果:\n" + JSON.stringify(result);
@@ -212,11 +213,10 @@
 		}
 	}
 </script>
-
+<style>
+	page{background:#ffffff;}
+</style>
 <style lang="scss" scoped>
-page{
-	background:#ffffff;
-}
 .rzbox{padding: 78rpx 34rpx 76rpx;}
 // 面容
 .facea{width: 100%;margin:0 auto 16rpx;position: relative;width: 450rpx;height: 450rpx;

+ 58 - 22
work/pages/prove/index.vue

@@ -2,13 +2,15 @@
 	<view class="rzbox">
 		<view class="f15 co23 fw5 mb24">请使用注册人身份证</view>
 		<view class="flexcj mb20">
-			<view class="carbox">
-				<image :src="cardz" class="img" @click="getaddImage"></image>
+			<view class="carbox" @click="getaddImage('front')">
+				<image :src="frontimg" class="img" v-if="frontimg"></image>
+				<image :src="cardz" class="img" v-else></image>
 				<view class="tit">拍摄正面</view>
 				<!-- <view class="tit">身份证正面</view> -->
 			</view>
-			<view class="carbox">
-				<image :src="cardf" class="img"></image>
+			<view class="carbox" @click="getaddImage('back')">
+				<image :src="backimg" class="img" v-if="backimg"></image>
+				<image :src="cardf" class="img" v-else></image>
 				<view class="tit">拍摄反面</view>
 				<!-- <view class="tit">身份证反面</view> -->
 			</view>
@@ -20,20 +22,20 @@
 				
 		<!-- 身份信息 -->
 		<uni-forms ref="form" :model="user">
-		  <uni-forms-item label="真实姓名" name="nickName">
-			  <uni-easyinput v-model="user.email" :inputBorder='false' placeholder="自动识别" />
+		  <uni-forms-item label="真实姓名" name="realName">
+			  <uni-easyinput v-model="user.realName" disabled :inputBorder='false' placeholder="自动识别" />
 		  </uni-forms-item>
-		  <uni-forms-item label="身份证号" name="phonenumber">
-		    <uni-easyinput v-model="user.email" :inputBorder='false' placeholder="自动识别" />
+		  <uni-forms-item label="身份证号" name="idCard">
+		    <uni-easyinput v-model="user.idCard" disabled :inputBorder='false' placeholder="自动识别" />
 		  </uni-forms-item>
-		  <uni-forms-item label="证件有效期" name="email">
-		    <uni-easyinput v-model="user.email" :inputBorder='false' placeholder="自动识别" />
+		  <uni-forms-item label="证件有效期" name="expirationDate">
+		    <uni-easyinput v-model="user.expirationDate" disabled :inputBorder='false' placeholder="自动识别" />
 		  </uni-forms-item>
-		  <uni-forms-item label="居住地址" name="email">
-			<uni-easyinput type="textarea" :autoHeight="true" v-model="user.email" :inputBorder='false' placeholder="自动识别" />
+		  <uni-forms-item label="居住地址" name="address">
+			<uni-easyinput type="textarea" :autoHeight="true" disabled v-model="user.address" :inputBorder='false' placeholder="自动识别" />
 		  </uni-forms-item>
-			<uni-forms-item label="手机号码" name="email">
-			  <uni-easyinput v-model="user.email" :inputBorder='false' placeholder="请输入手机号码,以便接收短信" />
+			<uni-forms-item label="手机号码" name="phone">
+			  <uni-easyinput v-model="user.phone" :inputBorder='false' placeholder="请输入手机号码,以便接收短信" />
 			</uni-forms-item>
 		</uni-forms>
 		<view class="formtip">* 请确保填写的信息准确无误</view>
@@ -45,6 +47,7 @@
 	import config from '@/config'
 	const baseUrl = config.baseUrl
 	import {uploadmore} from '@/utils/common.js'
+	import {getOcrIdCard} from "@/api/mine/card.js"
 	import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
 	export default{
 		components:{},
@@ -56,6 +59,8 @@
 				ftipa:require('@/work/static/images/prove/ftipa.png'),
 				ftipb:require('@/work/static/images/prove/ftipb.png'),
 				ftipc:require('@/work/static/images/prove/ftipc.png'),
+				frontimg:'',
+				backimg:'',
 				count:1,
 				file:[],
 				user:{
@@ -70,6 +75,16 @@
 			},
 			getaddImage(e){
 				let that = this;
+				var rs=['D:\\idcard.png']
+				if(rs&&rs.length>0){
+					var obj={
+						type:e,
+						// url:baseUrl+rs.join(',')
+						url:rs.join(',')
+					}
+					that.getOcrIdCard(obj)
+				}
+				return
 				let file =[],count=9
 				// if(e=='zj'){
 				// 	file = that.zjfile;
@@ -92,23 +107,44 @@
 							let imglen = res.tempFilePaths.length;
 							var fuwufile = [];
 							uploadmore('/common/upload',img,0,0,0,imglen,fuwufile,function(rs){
-								if(e=='zj'){
-									that.zjfile = that.zjfile.concat(rs);
-									that.datainfo.identificationPhoto=that.zjfile.join(',')
+								console.log(rs)
+								// /profile/upload/2024/04/24/a_20240424105401A004.png
+								// http://192.168.101.168:8056/profile/upload/2024/04/24/a_20240424105401A004.png
+								if(rs&&rs.length>0){
+									var obj={
+										type:e,
+										url:baseUrl+rs.join(',')
+									}
+									that.getOcrIdCard(obj)
 								}
+								
+								// if(e=='zj'){
+								// 	that.zjfile = that.zjfile.concat(rs);
+								// 	that.datainfo.identificationPhoto=that.zjfile.join(',')
+								// }
 							})	
 						}
 					}
 				});
 			},
+			getOcrIdCard(obj){
+				var params={
+					image:obj.url,
+					idCardSide:obj.type
+				}
+				getOcrIdCard(params).then(res=>{
+					if(res.code==200){
+						this.user=res.data
+					}
+				})
+			}
 		}
 	}
 </script>
-
+<style>
+	page{background:#ffffff;}
+</style>
 <style lang="scss" scoped>
-page{
-	background:#ffffff;
-}
 .rzbox /deep/ .uni-forms-item{min-height: 116rpx;box-sizing: border-box;display: flex;align-items: center;margin-bottom: 0;border-bottom: 2rpx solid #E6E6E6;padding:22rpx 0;}
 .rzbox /deep/ .uni-forms-item__label{font-weight: bold;font-size: 30rpx;color: #222327;flex: 0 0 auto;width: auto !important;}
 .rzbox /deep/ .uni-easyinput{flex: 1;text-align: right;font-size: 30rpx;color: #222327;}
@@ -116,7 +152,7 @@ page{
 .rzbox /deep/ .uni-easyinput__placeholder-class{font-size: 30rpx;color: #AAAAAA;}
 .rzbox /deep/ .uni-input-input{font-size: 30rpx;}
 .rzbox /deep/ .uni-textarea-textarea{font-size: 30rpx;}
-  
+.rzbox /deep/ .is-disabled{color: #222327;background-color: #ffffff !important;}
 .rzbox{padding: 44rpx 34rpx 76rpx;
 	.carbox{width: 320rpx;border-radius: 14rpx;overflow: hidden;
 		.img{width: 320rpx;height: 216rpx;}

+ 3 - 2
work/pages/success.vue

@@ -33,9 +33,10 @@
 		}
 	}
 </script>
-
+<style>
+	page{background:#ffffff;}
+</style>
 <style lang="scss" scoped>
-page{background-color: #ffffff;}
 .sucbox{min-height: 100vh;display: flex;flex-direction: column;padding: 100rpx 0 200rpx;align-items: center;
 	.subtop{
 		flex: 1;display: flex;flex-direction: column;align-items: center;

BIN
work/static/images/back.png


BIN
work/static/images/delb.png


BIN
work/static/images/fedit.png