li.shaoyi 23 hours ago
parent
commit
ccf0fec731

+ 1 - 1
src/packages/digital/views/home/main/index.vue

@@ -65,7 +65,7 @@ const accountStore = useAccountStore()
 const spotAccountStore = useSpotAccountStore()
 
 const totalBalance = computed(() => {
-  const { balance = 0, currencydecimalplace = 2 } = accountStore.getAccountItem({ currencyid: 102 }) ?? {}
+  const { currentbalance: balance = 0, currencydecimalplace = 2 } = accountStore.getAccountItem({ currencyid: 102 }) ?? {}
   const { currentbalance = 0 } = spotAccountStore.getAccountItem({ currencyid: 102 }) ?? {}
 
   return Decimal(balance).plus(currentbalance).toFixed(currencydecimalplace)

+ 2 - 2
src/packages/digital/views/listing/goods/list/index.vue

@@ -38,13 +38,13 @@
                                     <td>
                                         <div class="table-cell">
                                             <span :class="item.lastColor">
-                                                {{ handleNumberValue(item.last) }}
+                                                {{ handleNumberValue(item.last.toFixed(item.decimalplace)) }}
                                             </span>
                                         </div>
                                     </td>
                                     <td>
                                         <div class="table-cell">
-                                            <span>
+                                            <span :class="item.lastColor">
                                                 {{ parsePercent(item.change) }}
                                             </span>
                                         </div>

+ 14 - 4
src/packages/mobile/components/modules/article/index.less

@@ -46,17 +46,27 @@
                 padding-bottom: 28px;
             }
 
-            &::before {
+            .shape() {
                 position: absolute;
                 left: -2px;
                 content: '';
                 width: 5px;
                 height: 5px;
                 line-height: 0;
-                background-color: #777;
+                background-color: var(--color-info);
                 transform: rotate(45deg);
             }
 
+            &::before {
+                .shape()
+            }
+
+            &:only-of-type {
+                &::after {
+                    .shape()
+                }
+            }
+
             &:last-child {
                 &::before {
                     bottom: 0;
@@ -77,7 +87,7 @@
                 display: flex;
                 align-items: center;
                 font-size: 12px;
-                color: #777;
+                color: var(--color-info);
                 margin-top: 4px;
             }
 
@@ -90,7 +100,7 @@
                     content: '';
                     width: 1px;
                     height: 12px;
-                    background-color: #777;
+                    background-color: var(--color-info);
                     margin-left: 8px;
                     margin-right: 8px;
                 }