Kaynağa Gözat

update pages/receipt/index.vue

vbea 1 yıl önce
ebeveyn
işleme
3b37d56e92
1 değiştirilmiş dosya ile 7 ekleme ve 7 silme
  1. 7 7
      WebApp-Lite/pages/receipt/index.vue

+ 7 - 7
WebApp-Lite/pages/receipt/index.vue

@@ -47,31 +47,31 @@
         </view>
       </view>
       <view class="card-view" v-if="receiptInfo.subtotal">
-        <view class="final-receipt-row">
+        <view class="final-receipt-row" v-if="receiptInfo.subtotal.finalPayment">
           <view class="receipt-final-label">Final Payment:</view>
           <view class="receipt-final-value">{{receiptInfo.subtotal.finalPayment}}</view>
         </view>
-        <view class="receipt-row">
+        <view class="receipt-row" v-if="receiptInfo.subtotal.transId">
           <text class="receipt-label">Transaction ID:</text>
           <text class="receipt-value">{{receiptInfo.subtotal.transId}}</text>
         </view>
-        <view class="receipt-row">
+        <view class="receipt-row" v-if="receiptInfo.subtotal.refId">
           <text class="receipt-label">Reference ID:</text>
           <text class="receipt-value">{{receiptInfo.subtotal.refId}}</text>
         </view>
-        <view class="receipt-row">
+        <view class="receipt-row" v-if="receiptInfo.subtotal.transStartTime">
           <text class="receipt-label">Date Time:</text>
           <text class="receipt-value" style="zoom: 0.9;">{{receiptInfo.subtotal.transStartTime}}</text>
         </view>
-        <view class="receipt-row">
+        <view class="receipt-row" v-if="receiptInfo.subtotal.paymentMethod">
           <text class="receipt-label">Payment Method:</text>
           <text class="receipt-value">{{receiptInfo.subtotal.paymentMethod}}</text>
         </view>
-        <view class="receipt-row">
+        <view class="receipt-row" v-if="receiptInfo.subtotal.exchangeRate">
           <text class="receipt-label">Exchange Rate:</text>
           <text class="receipt-value">{{receiptInfo.subtotal.exchangeRate}}</text>
         </view>
-        <view class="receipt-row">
+        <view class="receipt-row" v-if="receiptInfo.subtotal.balance">
           <text class="receipt-label">Resulting Balance:</text>
           <text class="receipt-value">{{receiptInfo.subtotal.balance}}</text>
         </view>