소스 검색

no message

DaMowang 3 년 전
부모
커밋
87ba1ba88e
1개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 5 3
      src/pages/szw-order-details/index.vue

+ 5 - 3
src/pages/szw-order-details/index.vue

@@ -72,9 +72,11 @@
 
             <view class="detail_btn-row-box">
                 <view class="detail_btn-row">
-                    <view class="btn cancel-btn" @tap="toCancel" v-if="orderInfo.pay_status === 0">取消订单</view>
-                    <view class="btn topay-btn" @tap="toPay" v-if="orderInfo.pay_status === 0">立即支付</view>
-                    <view class="btn topay-btn" @tap="toTake" v-if="[0, 1].includes(orderInfo.order_status)">确认收货</view>
+                    <template v-if="orderInfo.order_status != 5">
+                        <view class="btn cancel-btn" @tap="toCancel" v-if="[0,1].includes(orderInfo.order_status)">取消订单</view>
+                        <view class="btn topay-btn" @tap="toPay" v-if="[0,2].includes(orderInfo.pay_status)">立即支付</view>
+                        <view class="btn topay-btn" @tap="toTake" v-if="[0, 1].includes(orderInfo.order_status)&&[1].includes(orderInfo.pay_status)">确认收货</view>
+                    </template>
                     <view class="btn cancel-btn" @tap="goBack">返回</view>
                 </view>
             </view>