|
@@ -307,14 +307,20 @@ export default {
|
|
'user': that.username,
|
|
'user': that.username,
|
|
},
|
|
},
|
|
success: (res) => {
|
|
success: (res) => {
|
|
- console.log(res,'识别成功!');
|
|
|
|
- if(res){
|
|
|
|
- that.indexList=res.data.dara
|
|
|
|
|
|
+ if (res) {
|
|
|
|
+ that.indexList = res.data.dara
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '识别成功!',
|
|
|
|
+ icon: 'none' // 可选图标,'success', 'loading', 'none'
|
|
|
|
+ });
|
|
}
|
|
}
|
|
|
|
|
|
},
|
|
},
|
|
- fail:(errpr)=>{
|
|
|
|
- console.log(error.data,'识别失败!');
|
|
|
|
|
|
+ fail: (errpr) => {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '识别失败!',
|
|
|
|
+ icon: 'none' // 可选图标,'success', 'loading', 'none'
|
|
|
|
+ });
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -345,7 +351,7 @@ export default {
|
|
delSb() {
|
|
delSb() {
|
|
this.indexList = []
|
|
this.indexList = []
|
|
this.indexParam = {}
|
|
this.indexParam = {}
|
|
- this.imageSrc=''
|
|
|
|
|
|
+ this.imageSrc = ''
|
|
},
|
|
},
|
|
//班次下拉选项切换
|
|
//班次下拉选项切换
|
|
changeBc(e) {
|
|
changeBc(e) {
|