Ver código fonte

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

DELL 3 anos atrás
pai
commit
325ea6cd65
1 arquivos alterados com 3 adições e 3 exclusões
  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();
 					}
 				})
 			},