Browse Source

进口确认不需要刷脸

qzy 7 months ago
parent
commit
6a53c91b70
3 changed files with 7 additions and 5 deletions
  1. 2 2
      common/http.js
  2. 2 1
      pages/face/faceRegister.nvue
  3. 3 2
      pages/market/one/leader/handleThree.vue

+ 2 - 2
common/http.js

@@ -2,8 +2,8 @@
 // const ip = 'http://192.168.2.8:8080'; //线下
 //const ip = 'http://hs-server.aseanbusiness.cn'; //线上
 const ngip = 'http://hs.tbgjhc.top:7010'
-// const ip = 'http://hs-server.tbgjhc.top:8018';
-const ip = 'http:///192.168.31.251:8080'; //线下
+const ip = 'http://hs-server.tbgjhc.top:8018';
+// const ip = 'http:///192.168.31.251:8080'; //线下
 
 /**
  * 封装的http请求

+ 2 - 1
pages/face/faceRegister.nvue

@@ -67,12 +67,13 @@
 						if (res.code == 200) {
 							that.release();
 							uni.showToast({
-								title: this.type == 1 ? '录入成功' : '验证成功'
+								title: that.type == 1 ? '录入成功' : '验证成功'
 							});
 							let user = uni.getStorageSync('info');
 							user.face = 1;
 							uni.setStorageSync('info', user)
 							setTimeout(() => {
+								uni.$emit('face', true);
 								uni.navigateBack();
 								uni.hideLoading();
 							}, 1000)

+ 3 - 2
pages/market/one/leader/handleThree.vue

@@ -387,15 +387,16 @@ export default {
 				});
 			}
 			if (this.current == 2) {
+				//进口确认不用刷脸
 				uni.showModal({
 					title: '提示',
 					content: '我已核对信息无误',
 					success: res => {
 						if (res.confirm) {
-							this.confirmFn();
 							//return;
 							//跳转到人脸认证
-							uni.navigateTo({url:'/pages/face/faceRegister?type=2'})
+							this.confirmFn();
+							//uni.navigateTo({url:'/pages/face/faceRegister?type=2'})
 						}
 					}
 				});