lex 2 anni fa
parent
commit
dae622fa4a
1 ha cambiato i file con 18 aggiunte e 1 eliminazioni
  1. 18 1
      src/views/cart/cart-confirm-agin/index.tsx

+ 18 - 1
src/views/cart/cart-confirm-agin/index.tsx

@@ -25,9 +25,9 @@ import ColHeader from '@/components/col-header'
 export default defineComponent({
   name: 'cartConfirmAgin',
   setup() {
-    // console.log(cartConfirm)
     const list = cartConfirm.orderInfo?.orderItemList || []
     const calcAmount = {
+      integrationAmount: cartConfirm.orderInfo?.integrationAmount || 0,
       totalAmount: cartConfirm.orderInfo?.totalAmount || 0,
       payAmount: cartConfirm.orderInfo?.payAmount || 0,
       freightAmount: cartConfirm.orderInfo?.freightAmount || 0,
@@ -137,6 +137,23 @@ export default defineComponent({
                 ></Cell>
                 <Cell
                   border={false}
+                  title="余额支付"
+                  v-slots={{
+                    value: () => (
+                      <span
+                        style={{
+                          fontSize: '0.42667rem',
+                          color: '#ff3535',
+                          fontWeight: 'bold'
+                        }}
+                      >
+                        {'-¥ ' + calcAmount.integrationAmount}
+                      </span>
+                    )
+                  }}
+                ></Cell>
+                <Cell
+                  border={false}
                   title="总额"
                   value={'¥ ' + calcAmount.totalAmount}
                 ></Cell>