瀏覽代碼

加气优惠

chenlei 1 年之前
父節點
當前提交
be70b8de7a
共有 2 個文件被更改,包括 12 次插入2 次删除
  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">