|
@@ -127,13 +127,34 @@ export default {
|
|
user:this.getUser(),
|
|
user:this.getUser(),
|
|
list: [],
|
|
list: [],
|
|
loadMore: true,
|
|
loadMore: true,
|
|
- user: this.getUser(),
|
|
|
|
confirmType: 1,//边民确认类型[1=刷脸,2=指纹]
|
|
confirmType: 1,//边民确认类型[1=刷脸,2=指纹]
|
|
|
|
+ id: '',
|
|
|
|
+ flag: '',
|
|
};
|
|
};
|
|
},
|
|
},
|
|
onLoad() {
|
|
onLoad() {
|
|
this.getData();
|
|
this.getData();
|
|
- console.log("111111",this.list)
|
|
|
|
|
|
+ uni.$on('face', res => {
|
|
|
|
+ if(this.flag == 1) {
|
|
|
|
+ this.http.request({
|
|
|
|
+ url: '/level-one-server/app/TbOrder/confirmOrder',
|
|
|
|
+ data: { orderId: this.id , confirmType: this.confirmType},
|
|
|
|
+ success: resp => {
|
|
|
|
+ uni.showToast({ title: '订单确认成功' });
|
|
|
|
+ this.refresh();
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ } else if(this.flag == 2) {
|
|
|
|
+ this.http.request({
|
|
|
|
+ url: '/level-one-server/app/TbOrder/applyOrder',
|
|
|
|
+ data: { orderId: this.id },
|
|
|
|
+ success: resp => {
|
|
|
|
+ uni.showToast({ title: '进口申报确认成功' });
|
|
|
|
+ this.refresh();
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ })
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
getData() {
|
|
getData() {
|
|
@@ -179,25 +200,15 @@ export default {
|
|
},
|
|
},
|
|
//边民确认订单
|
|
//边民确认订单
|
|
confirmOrder(id) {
|
|
confirmOrder(id) {
|
|
- this.http.request({
|
|
|
|
- url: '/level-one-server/app/TbOrder/confirmOrder',
|
|
|
|
- data: { orderId: id , confirmType: this.confirmType},
|
|
|
|
- success: resp => {
|
|
|
|
- uni.showToast({ title: '操作成功' });
|
|
|
|
- this.refresh();
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+ this.id = id;
|
|
|
|
+ this.flag = 1;
|
|
|
|
+ uni.navigateTo({url: '/pages/authentication/face'});
|
|
},
|
|
},
|
|
//边民进口申报确认
|
|
//边民进口申报确认
|
|
applyOrder(id) {
|
|
applyOrder(id) {
|
|
- this.http.request({
|
|
|
|
- url: '/level-one-server/app/TbOrder/applyOrder',
|
|
|
|
- data: { orderId: id },
|
|
|
|
- success: resp => {
|
|
|
|
- uni.showToast({ title: '操作成功' });
|
|
|
|
- this.refresh();
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+ this.id = id;
|
|
|
|
+ this.flag = 2;
|
|
|
|
+ uni.navigateTo({url: '/pages/authentication/face'});
|
|
},
|
|
},
|
|
// 取消订单
|
|
// 取消订单
|
|
confirm(id) {
|
|
confirm(id) {
|