twt 11 mēneši atpakaļ
vecāks
revīzija
47cfe8dfeb
1 mainītis faili ar 11 papildinājumiem un 7 dzēšanām
  1. 11 7
      pages/index/index.vue

+ 11 - 7
pages/index/index.vue

@@ -227,14 +227,18 @@
 										       duration: 3000,
 										   });
 							            },
-										complete(){
+										complete(obj){
 											uni.hideLoading();
-											uni.showToast({
-											    title: 'vin扫描失败,请重试',
-												icon:'none',
-											    duration: 3000,
-											});
-											console.log("vin扫描失败,请重试")
+											if(obj.statusCode!=200){
+												uni.showToast({
+												    title: 'vin扫描失败,请重试',
+													icon:'none',
+												    duration: 3000,
+												}); 
+												console.log("vin扫描失败,请重试")
+											}
+											
+											
 										}
 							        });