Răsfoiți Sursa

增加现金模块

shish 4 ani în urmă
părinte
comite
e932aec7d4
1 a modificat fișierele cu 29 adăugiri și 12 ștergeri
  1. 29 12
      ghsApp/src/admin/home/me.vue

+ 29 - 12
ghsApp/src/admin/home/me.vue

@@ -31,18 +31,29 @@
           <view class="image-box" > <view class="dec"></view> <image :src="`${constant.imgUrl}/ghs/me/upgrade2.png`"></image> </view>
           <view class="image-box" > <view class="dec"></view> <image :src="`${constant.imgUrl}/ghs/me/upgrade2.png`"></image> </view>
         </view>
         </view>
 
 
-<template v-if="(getLoginInfo.staff && getLoginInfo.staff.super && getLoginInfo.staff.super == 1) || (getLoginInfo.staff && getLoginInfo.staff.lookStat && getLoginInfo.staff.lookStat ==1)">
-        <view class="account-info_box content_box">
-          <view class="info-lf_box">
-            <view> 账户余额(元) </view>
-            <view> <text>¥ </text> {{ shopInfo.balance||0 }} </view>
-            <view>
-              可提现 ¥ {{ shopInfo.txBalance||0 }}
-              <text v-if="shopInfo.txBalance > 0" @click="checkToApplyCash" class="to-cash" >提现</text>
+        <template v-if="(getLoginInfo.staff && getLoginInfo.staff.super && getLoginInfo.staff.super == 1) || (getLoginInfo.staff && getLoginInfo.staff.lookStat && getLoginInfo.staff.lookStat ==1)">
+          <view class="account-info_box content_box">
+            <view class="info-lf_box">
+              <view> 账户余额(元) </view>
+              <view> <text>¥ </text> {{ shopInfo.balance||0 }} </view>
+              <view>
+                可提现 ¥ {{ shopInfo.txBalance||0 }}
+                <text v-if="shopInfo.txBalance > 0" @click="checkToApplyCash" class="to-cash" >提现</text>
+              </view>
+            </view>
+          </view>
+        </template>
+
+          <view class="account-info_box content_box">
+            <view class="info-lf_box">
+              <view> 现金(元) </view>
+              <view> <text>¥ </text> {{ 0 }} </view>
+              <view>
+                <text @click="outCash" class="to-cash" style="margin-left:0upx;">提取</text>
+                <text @click="inCash" class="to-cash" style="margin-left:30upx;">存入</text>
+              </view>
             </view>
             </view>
           </view>
           </view>
-        </view>
-</template>
 
 
         <view class="module-com content_box user-open_bx">
         <view class="module-com content_box user-open_bx">
           <view class="input-line-wrap">
           <view class="input-line-wrap">
@@ -52,7 +63,7 @@
             </tui-list-cell>
             </tui-list-cell>
 
 
             <tui-list-cell @click="pageTo({ url: '/admin/shopYeChange/list' })" class="line-cell" :hover="false" :arrow="true" >
             <tui-list-cell @click="pageTo({ url: '/admin/shopYeChange/list' })" class="line-cell" :hover="false" :arrow="true" >
-              <view class="tui-title">余额明细</view>
+              <view class="tui-title">余额变动明细</view>
             </tui-list-cell>
             </tui-list-cell>
 
 
             <tui-list-cell @click="pageTo({ url: '/pagesStore/me/income' })" class="line-cell" :hover="false" :arrow="true" >
             <tui-list-cell @click="pageTo({ url: '/pagesStore/me/income' })" class="line-cell" :hover="false" :arrow="true" >
@@ -232,6 +243,12 @@ export default {
         plus.runtime.restart()
         plus.runtime.restart()
         // #endif
         // #endif
         getShopInfo(true)
         getShopInfo(true)
+    },
+    outCash(){
+
+    },
+    inCash(){
+
     },
     },
     checkToApplyCash () {
     checkToApplyCash () {
       let that = this;
       let that = this;
@@ -416,7 +433,7 @@ export default {
       border: 1upx solid rgba(0, 0, 0, 0.2);
       border: 1upx solid rgba(0, 0, 0, 0.2);
       border-radius: 25upx;
       border-radius: 25upx;
       font-size: 22upx;
       font-size: 22upx;
-      padding: 0 15upx 0 15upx;
+      padding: 6upx 17upx 6upx 17upx;
     }
     }
   }
   }
   & .user-open_bx {
   & .user-open_bx {