Administrator 4 years ago
parent
commit
7bdb90adfc
1 changed files with 7 additions and 1 deletions
  1. 7 1
      pages/user/order/order-details.vue

+ 7 - 1
pages/user/order/order-details.vue

@@ -22,7 +22,7 @@
 			<payment-record ref="payment" v-if="isRequest" :discernReceiptList="discernReceiptList" :receiptAmount="receiptAmount"></payment-record>
 			<!-- 退款记录 -->
 			<refund-record ref="refund" v-if="isRequest" :returnedPurchaseList="returnedPurchaseList" :returnedPurchaseFee="returnedPurchaseFee"></refund-record>
-			<view class="clause" v-if="information.secondHandOrderFlag!=1 && information.orderSubmitType != 0 || information.orderSubmitType != 1 ||information.orderSubmitType != 2" @tap.stop="openclauseConten(clauseData.id)" :class="clauseData.name=='无条款'?'noclick':''">
+			<view class="clause" v-if="information.secondHandOrderFlag!=1 && !orderSubmitType" @tap.stop="openclauseConten(clauseData.id)" :class="clauseData.name=='无条款'?'noclick':''">
 				售后条款:<label class="text" :class="clauseData.name=='无条款'?'color-bg':''">{{clauseData.name}}</label>
 			</view>
 			<!-- 底部button -->
@@ -118,6 +118,7 @@
 					title: '订单详情', // 导航栏 中间的标题
 				},
 				clauseData:{},
+				orderSubmitType:false,//自主订单
 			}
 		},
 		onLoad(option){
@@ -189,6 +190,11 @@
 					this.receiptAmount = resData.order.receiptAmount
 					this.returnedPurchaseFee = resData.order.returnedPurchaseFee
 					this.clauseData = resData.clause
+					if(this.information.orderSubmitType == 0 || this.information.orderSubmitType == 1 ||this.information.orderSubmitType == 2){
+						this.orderSubmitType=true
+					}else{
+						this.orderSubmitType=false
+					}
 				}).catch(error =>{
 					this.$util.modal('提示','订单查询失败,请稍后重试~','确定','',false,() =>{
 						this.$api.switchTabTo('/pages/tabBar/home/index')