Browse Source

订单详情页镇宁0元按钮显示

zaijin 1 year ago
parent
commit
daa6fcdc8c
1 changed files with 14 additions and 6 deletions
  1. 14 6
      pages/center/order/orderDetails/orderDetails.vue

+ 14 - 6
pages/center/order/orderDetails/orderDetails.vue

@@ -136,12 +136,20 @@
     </view>
     <!-- 地磁显示支付按钮条件  支付状态(0-未支付,2-支付中,3-支付失败)并且订单金额不能为0 -->
     <template v-if="orderInfo.deviceType === 1 && orderInfo.payStatus !== 1 && openFlag !== 'open'">
-      <view class="bottom-btn-wrap" v-if="Number(orderInfo.payAmount) !== 0">
-        <view class="bottom-btn" @click="goPay(orderId)">去支付</view>
-      </view>
-      <view class="bottom-btn-wrap" v-else-if="Number(orderInfo.payAmount) === 0">
-        <view class="tips">提示:可寻找附近的收费员打印小票并扫码出场</view>
-      </view>
+      <!-- 镇宁支付0元也显示支付按钮 -->
+      <template v-if="projectFlag === 'zhenning'">
+        <view class="bottom-btn-wrap">
+          <view class="bottom-btn" @click="goPay(orderId)">去支付</view>
+        </view>
+      </template>
+      <template v-else>
+        <view class="bottom-btn-wrap" v-if="Number(orderInfo.payAmount) !== 0">
+          <view class="bottom-btn" @click="goPay(orderId)">去支付</view>
+        </view>
+        <view class="bottom-btn-wrap" v-else-if="Number(orderInfo.payAmount) === 0">
+          <view class="tips">提示:可寻找附近的收费员打印小票并扫码出场</view>
+        </view>
+      </template>
     </template>
     <!-- 其他显示支付按钮条件  支付状态(0-未支付,2-支付中,3-支付失败) 订单类型非停车场 -->
     <template v-else-if="orderInfo.deviceType !== 1 && orderInfo.payStatus !== 1 && openFlag !== 'open' && orderType !== 'park'">