chenlei 1 år sedan
förälder
incheckning
be70b8de7a
2 ändrade filer med 12 tillägg och 2 borttagningar
  1. 6 1
      src/pages/account/index.vue
  2. 6 1
      src/pages/index/index.vue

+ 6 - 1
src/pages/account/index.vue

@@ -6,7 +6,12 @@
     <div class="chunk relative s-fz">
       <div class="yebz absolute" v-if="data.accountInfo.flag === 0">[余额不足]</div>
       <div class="flex items-baseline mb-spacd2">
-        <ay-numer :value="data.accountInfo.showBalance" :unit="data.accountInfo.unit" />
+        <ay-numer
+          :value="data.accountInfo.showBalance"
+          :unit="data.accountInfo.unit"
+          v-if="data.accountInfo.showBalance"
+        />
+        <div v-else>{{ data.accountInfo.unit }}</div>
         <span v-if="data.accountInfo.showDet">
           (直销 {{ data.accountInfo.carrierDirectBalance }} | 经销
           {{ data.accountInfo.carrierBalance }})

+ 6 - 1
src/pages/index/index.vue

@@ -66,7 +66,12 @@
               [余额不足]
             </div>
           </div>
-          <ay-numer :value="data.accountInfo.showBalance" :unit="data.accountInfo.unit" />
+          <ay-numer
+            :value="data.accountInfo.showBalance"
+            :unit="data.accountInfo.unit"
+            v-if="data.accountInfo.showBalance"
+          />
+          <div v-else>{{ data.accountInfo.unit }}</div>
         </div>
       </ay-flowLine>
       <ay-flowLine class="flex-1" :loading="store.webapi.strategy.get_truck_info.ing">