|
@@ -239,6 +239,47 @@ export default {
|
|
|
this.getData2();
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ //人脸认证回调
|
|
|
+ uni.$on('face',res=>{
|
|
|
+ if (this.current == 0){
|
|
|
+ this.http.request({
|
|
|
+ url: '/level-one-server/app/TbOrder/confirmOrder',
|
|
|
+ method: 'POST',
|
|
|
+ data: { orderId: this.item.id },
|
|
|
+ success: res => {
|
|
|
+ uni.showToast({ title: '订单确认成功' });
|
|
|
+ this.current = 1;
|
|
|
+ uni.setNavigationBarTitle({ title: '互助委托确认' });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (this.current == 1){
|
|
|
+ this.http.request({
|
|
|
+ url: '/level-one-server/app/TbOrder/cooperOrder',
|
|
|
+ method: 'POST',
|
|
|
+ data: { orderId: this.item.id },
|
|
|
+ success: res => {
|
|
|
+ uni.showToast({ title: '互助委托确认成功' });
|
|
|
+ this.current = 2;
|
|
|
+ uni.setNavigationBarTitle({ title: '进口申报确认' });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (this.current == 2){
|
|
|
+ this.http.request({
|
|
|
+ url: '/level-one-server/app/TbOrder/applyOrder',
|
|
|
+ method: 'POST',
|
|
|
+ data: { orderId: this.item.id },
|
|
|
+ success: res => {
|
|
|
+ uni.showToast({ title: '进口申报确认成功' });
|
|
|
+ setTimeout(() => {
|
|
|
+ uni.switchTab({ url: '/pages/index/index' });
|
|
|
+ }, 1000);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
methods: {
|
|
|
getData1() {
|
|
@@ -267,16 +308,8 @@ export default {
|
|
|
content: '我已核对信息无误',
|
|
|
success: res => {
|
|
|
if (res.confirm) {
|
|
|
- this.http.request({
|
|
|
- url: '/level-one-server/app/TbOrder/confirmOrder',
|
|
|
- method: 'POST',
|
|
|
- data: { orderId: this.item.id },
|
|
|
- success: res => {
|
|
|
- uni.showToast({ title: '订单确认成功' });
|
|
|
- this.current = 1;
|
|
|
- uni.setNavigationBarTitle({ title: '互助委托确认' });
|
|
|
- }
|
|
|
- });
|
|
|
+ //跳转到人脸认证
|
|
|
+ uni.navigateTo({url:'/pages/face/faceRegister?type=2'})
|
|
|
}
|
|
|
}
|
|
|
});
|
|
@@ -287,16 +320,8 @@ export default {
|
|
|
content: '我已核对信息无误',
|
|
|
success: res => {
|
|
|
if (res.confirm) {
|
|
|
- this.http.request({
|
|
|
- url: '/level-one-server/app/TbOrder/cooperOrder',
|
|
|
- method: 'POST',
|
|
|
- data: { orderId: this.item.id },
|
|
|
- success: res => {
|
|
|
- uni.showToast({ title: '互助委托确认成功' });
|
|
|
- this.current = 2;
|
|
|
- uni.setNavigationBarTitle({ title: '进口申报确认' });
|
|
|
- }
|
|
|
- });
|
|
|
+ //跳转到人脸认证
|
|
|
+ uni.navigateTo({url:'/pages/face/faceRegister?type=2'})
|
|
|
}
|
|
|
}
|
|
|
});
|
|
@@ -307,17 +332,8 @@ export default {
|
|
|
content: '我已核对信息无误',
|
|
|
success: res => {
|
|
|
if (res.confirm) {
|
|
|
- this.http.request({
|
|
|
- url: '/level-one-server/app/TbOrder/applyOrder',
|
|
|
- method: 'POST',
|
|
|
- data: { orderId: this.item.id },
|
|
|
- success: res => {
|
|
|
- uni.showToast({ title: '进口申报确认成功' });
|
|
|
- setTimeout(() => {
|
|
|
- uni.switchTab({ url: '/pages/index/index' });
|
|
|
- }, 1000);
|
|
|
- }
|
|
|
- });
|
|
|
+ //跳转到人脸认证
|
|
|
+ uni.navigateTo({url:'/pages/face/faceRegister?type=2'})
|
|
|
}
|
|
|
}
|
|
|
});
|