Ver código fonte

解决onShow的时候加入了多个失败原因

gcz 1 ano atrás
pai
commit
90c1772bdb
1 arquivos alterados com 6 adições e 5 exclusões
  1. 6 5
      center/invoicedetails.vue

+ 6 - 5
center/invoicedetails.vue

@@ -20,6 +20,12 @@
 						<text v-else>{{details[item.key]}}</text>
 					</view>
 				</view>
+				<view class="item u-flex" v-if="details.status>2">
+					<view class="left">失败原因</view>
+					<view class="con">
+						{{details.errReason}}
+					</view>
+				</view>
 			</view>
 		</view>
 		<view class="page-bottom" v-if="details.status===3">
@@ -92,12 +98,7 @@
 			getInvoiceDetail(){
 				this.$u.api.getInvoiceDetail({orderId:this.orderId}).then(res=>{
 					// console.log('res',res);
-					this.details = {};
 					this.details = res.data;
-					if(res.data.status>2){
-						this.detailsInfo[1].push({name:'失败原因 ',key:'errReason'});
-						this.detailsInfo[2].push({name:'失败原因 ',key:'errReason'});
-					}
 				}).catch(err=>{
 					console.log('getInvoiceInfo',err);
 				})