|
@@ -190,7 +190,7 @@
|
|
|
sourceType: ['album','camera'],
|
|
|
count:1,
|
|
|
success: (chooseImageRes) => {
|
|
|
- console.log(chooseImageRes)
|
|
|
+ //console.log(chooseImageRes)
|
|
|
const tempFilePaths = chooseImageRes.tempFilePaths;
|
|
|
this.fileURl=tempFilePaths[0]
|
|
|
uni.showLoading({ title: '加载中'});
|
|
@@ -204,7 +204,7 @@
|
|
|
success: (uploadFileRes) => {
|
|
|
var data=JSON.parse(uploadFileRes.data);
|
|
|
uni.hideLoading();
|
|
|
- if(data.code!=1){
|
|
|
+ if(data.code == 0){
|
|
|
console.log(data.data)
|
|
|
that.vinNum=data.data;
|
|
|
that.queryCarModelGroupByVinAggregation()
|
|
@@ -219,13 +219,23 @@
|
|
|
//console.log(JSON.parse(uploadFileRes.data).data );
|
|
|
|
|
|
},fail(err) {
|
|
|
+ uni.hideLoading();
|
|
|
console.log(err)
|
|
|
uni.showToast({
|
|
|
title: '拉取失败',
|
|
|
icon:'none',
|
|
|
duration: 3000,
|
|
|
});
|
|
|
- }
|
|
|
+ },
|
|
|
+ complete(){
|
|
|
+ uni.hideLoading();
|
|
|
+ uni.showToast({
|
|
|
+ title: 'vin扫描失败,请重试',
|
|
|
+ icon:'none',
|
|
|
+ duration: 3000,
|
|
|
+ });
|
|
|
+ console.log("vin扫描失败,请重试")
|
|
|
+ }
|
|
|
});
|
|
|
|
|
|
|