3 Commits 27f2db5ec4 ... 94ed8c1fc3

Autor SHA1 Mensaje Fecha
  liwei2496 94ed8c1fc3 1 hace 8 meses
  liwei2496 f8f7312df9 Merge branch 'master' of http://git.ringzle.com:3000/htcwl/hotelHomestayWx hace 8 meses
  liwei2496 0afc6e6289 1 hace 8 meses
Se han modificado 2 ficheros con 30 adiciones y 9 borrados
  1. 15 3
      pagesHouse/Verification/detailsewm.vue
  2. 15 6
      pagesHouse/Verification/ems.vue

+ 15 - 3
pagesHouse/Verification/detailsewm.vue

@@ -184,9 +184,21 @@ this.hexiaodata=JSON.parse(option.list);
 			};
 			
 			this.$api.get('/api/merchant/food/queryOrderDetail', postdata).then(res => {
-				  console.log('111111111111111111',res.data.data)
-				this.getalllist=res.data.data;
-				
+				  console.log('111111111111111111',res.data)
+				if(res.data.code==500){
+					uni.showToast({
+					title:res.data.msg,
+					icon:'none',
+					duration:1500
+					})
+					setTimeout(()=>{
+						uni.navigateBack({
+							delta: 1
+						});
+					},1500)
+				}else{
+					this.getalllist=res.data.data;
+				}
 				
 			})
 

+ 15 - 6
pagesHouse/Verification/ems.vue

@@ -25,12 +25,21 @@
 				uni.scanCode({
 					onlyFromCamera: true,
 					success: (res) => {
-						console.log('扫描二维码成功,结果:' + res.result);
-						
-						uni.navigateTo({
-							url: "/pagesHouse/Verification/detailsewm?list=" + res.result
-						})
-					
+						//
+						console.log('扫描二维码成功,结果:' + JSON.parse(res.result).merchantId,);
+						console.log(uni.getStorageSync('merchantId'))
+						if(JSON.parse(res.result).merchantId!=uni.getStorageSync('merchantId')){
+							uni.showToast({
+							title:'您的核销码不是该商家的核销码',
+							icon:'none',
+							duration:1500
+							})
+						}else{
+							uni.navigateTo({
+								url: "/pagesHouse/Verification/detailsewm?list=" + res.result
+							})
+						}
+											
 					},
 					error: (res) => {
 						console.log('扫描二维码出现错误')