Prechádzať zdrojové kódy

[dev]
1、增加一个扫码数据查询无结果的判断

Neo 1 rok pred
rodič
commit
b9b44f44db
1 zmenil súbory, kde vykonal 7 pridanie a 2 odobranie
  1. 7 2
      components/nav-bar/nav-bar.vue

+ 7 - 2
components/nav-bar/nav-bar.vue

@@ -128,7 +128,10 @@ const handleScanbara = ()=>{
 				console.log('depoly success>>>')
 				// proxy.$refs.alertDialog.open()
 				console.log('res1',res1)
-				if(res1.msg=='处方已复核,无需重复操作!'){
+				if(res1.msg=='未查询到有效数据'){
+					uni.$showMsg(res1.msg, 2000)
+				}
+				else if(res1.msg=='处方已复核,无需重复操作!'){
 					uni.$showMsg(res1.msg, 2000)
 				} else {
 					uni.navigateTo({
@@ -136,7 +139,9 @@ const handleScanbara = ()=>{
 					})
 				}
 			}
-			
+		},
+		fail: (res) => {
+			console.log('扫码结果:' + res);
 		}
 	});
 }