twt 11 月之前
父节点
当前提交
47cfe8dfeb
共有 1 个文件被更改,包括 11 次插入7 次删除
  1. 11 7
      pages/index/index.vue

+ 11 - 7
pages/index/index.vue

@@ -227,14 +227,18 @@
 										       duration: 3000,
 										       duration: 3000,
 										   });
 										   });
 							            },
 							            },
-										complete(){
+										complete(obj){
 											uni.hideLoading();
 											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扫描失败,请重试")
+											}
+											
+											
 										}
 										}
 							        }); 
 							        });