소스 검색

修复盲票的物流报错不切换

DELL 3 년 전
부모
커밋
325ea6cd65
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      src/packageGoods/order/logistics.vue

+ 3 - 3
src/packageGoods/order/logistics.vue

@@ -117,9 +117,6 @@
 					deliveryId: this.deliverListData[this.listIndex][0].deliveryId,
 				}
 				$http.post('/api/v1/mp/logistics/query', data).then(res => {
-					if (res.code == 500) {
-						uni.hideToast();
-					}
 					if (res.code == 0) {
 						this.logistics = res.data.map(item=>{
 							return {
@@ -128,6 +125,9 @@
 							}
 						})
 						console.log(this.logistics);
+					}else {
+						this.logistics = ''
+						uni.hideToast();
 					}
 				})
 			},