浏览代码

优化:用户端账单明细页数值颜色

萤火科技 1 年之前
父节点
当前提交
6b22333247
共有 3 个文件被更改,包括 11 次插入 和 14 次删除
  1. 4 5
      pages/points/log.vue
  2. 4 5
      pages/wallet/balance/log.vue
  3. 3 4
      pages/wallet/recharge/order.vue

+ 4 - 5
pages/points/log.vue

@@ -1,7 +1,6 @@
 <template>
-  <view class="container">
-    <mescroll-body ref="mescrollRef" :sticky="true" @init="mescrollInit" :down="{ use: false }" :up="upOption"
-      @up="upCallback">
+  <view class="container" :style="appThemeStyle">
+    <mescroll-body ref="mescrollRef" :sticky="true" @init="mescrollInit" :down="{ use: false }" :up="upOption" @up="upCallback">
       <view class="log-list">
         <view v-for="(item, index) in list.data" :key="index" class="log-item">
           <view class="item-left flex-box">
@@ -12,7 +11,7 @@
               <text>{{ item.create_time }}</text>
             </view>
           </view>
-          <view class="item-right" :class="[item.value > 0 ? 'col-green' : 'col-6']">
+          <view class="item-right col-m">
             <text>{{ item.value > 0 ? '+' : '' }}{{ item.value }}</text>
           </view>
         </view>
@@ -120,4 +119,4 @@
       font-size: 26rpx;
     }
   }
-</style>
+</style>

+ 4 - 5
pages/wallet/balance/log.vue

@@ -1,7 +1,6 @@
 <template>
-  <view class="container">
-    <mescroll-body ref="mescrollRef" :sticky="true" @init="mescrollInit" :down="{ use: false }" :up="upOption"
-      @up="upCallback">
+  <view class="container" :style="appThemeStyle">
+    <mescroll-body ref="mescrollRef" :sticky="true" @init="mescrollInit" :down="{ use: false }" :up="upOption" @up="upCallback">
       <view class="log-list">
         <view v-for="(item, index) in list.data" :key="index" class="log-item">
           <view class="item-left flex-box">
@@ -12,7 +11,7 @@
               <text>{{ item.create_time }}</text>
             </view>
           </view>
-          <view class="item-right">
+          <view class="item-right col-m">
             <text>{{ item.money > 0 ? '+' : '' }}{{ item.money }}元</text>
           </view>
         </view>
@@ -120,4 +119,4 @@
       font-size: 26rpx;
     }
   }
-</style>
+</style>

+ 3 - 4
pages/wallet/recharge/order.vue

@@ -1,7 +1,6 @@
 <template>
   <view class="container">
-    <mescroll-body ref="mescrollRef" :sticky="true" @init="mescrollInit" :down="{ use: false }" :up="upOption"
-      @up="upCallback">
+    <mescroll-body ref="mescrollRef" :sticky="true" @init="mescrollInit" :down="{ use: false }" :up="upOption" @up="upCallback">
       <view class="log-list">
         <view v-for="(item, index) in list.data" :key="index" class="log-item">
           <view class="item-left flex-box">
@@ -12,7 +11,7 @@
               <text>{{ item.pay_time }}</text>
             </view>
           </view>
-          <view class="item-right">
+          <view class="item-right col-m">
             <text>+{{ item.actual_money }}元</text>
           </view>
         </view>
@@ -120,4 +119,4 @@
       font-size: 26rpx;
     }
   }
-</style>
+</style>