shish 3 жил өмнө
parent
commit
871294d40a

+ 15 - 15
ghsApp/src/admin/home/me.vue

@@ -4,7 +4,7 @@
     <template>
       <view class="me-user_box" @click="goAdmin()">
         <view class="user-info_item">
-          <view v-if="shopInfo.shopAdminId > 0"> <view class="name"> {{ shopInfo.adminName }} </view> <view class="mobile"> ID:{{ shopInfo.shopAdminId }} </view> </view>
+          <view v-if="myInfo.shopAdminId > 0"> <view class="name"> {{ myInfo.adminName }} </view> <view class="mobile"> ID:{{ myInfo.shopAdminId }} </view> </view>
         </view>
       </view>
       <view class="me-shop_box">
@@ -12,16 +12,16 @@
           <view class="me-shop_top">
             <view class="shop-top_left">
 
-              <image :src="shopInfo.shopImg" style="width:110upx;border-radius:100upx;" mode="widthFix" v-if="!$util.isEmpty(getLoginInfo.admin) && getLoginInfo.admin.currentGhsShopId > 0">
+              <image :src="myInfo.shopImg" style="width:110upx;border-radius:100upx;" mode="widthFix" v-if="!$util.isEmpty(getLoginInfo.admin) && getLoginInfo.admin.currentGhsShopId > 0">
               </image>
-              <image :src="shopInfo.shopImg" style="width:110upx;border-radius:100upx;" mode="widthFix" @click="pageTo({url:'/admin/home/login'})" v-else>
+              <image :src="myInfo.shopImg" style="width:110upx;border-radius:100upx;" mode="widthFix" @click="pageTo({url:'/admin/home/login'})" v-else>
               </image>
 
               <view class="top-info_box" v-if="!$util.isEmpty(getLoginInfo.admin) && getLoginInfo.admin.currentGhsShopId > 0">
-                <view> {{ shopInfo.shopName||'' }}
-                <text v-if="shopInfo.shopInfo && shopInfo.shopInfo.default && shopInfo.shopInfo.default == 1" class="default-shop">总店</text>
+                <view> {{ myInfo.shopName||'' }}
+                <text v-if="myInfo.shopInfo && myInfo.shopInfo.default && myInfo.shopInfo.default == 1" class="default-shop">总店</text>
                 </view>
-                <view> <text>{{ shopInfo.sjName||'' }} | ID {{shopInfo.shopId||''}}</text> </view>
+                <view> <text>{{ myInfo.sjName||'' }} | ID {{myInfo.shopId||''}}</text> </view>
               </view>
               <view class="top-info_box" @click="pageTo({url:'/admin/home/login'})" v-else>
                 <view style="font-size:40upx;"> 登录/注册 </view>
@@ -37,12 +37,12 @@
           <view class="account-info_box content_box">
             <view class="info-lf_box">
               <view> 账户余额(元) <text style="float:right;margin-right:15upx;font-size:28upx;" @click.stop="suggest()">联系客服</text></view>
-              <view> <text>¥ </text> {{ shopInfo.balance||0 }} </view>
+              <view> <text>¥ </text> {{ myInfo.balance||0 }} </view>
               <view>
-                可提现 ¥ {{ shopInfo.txBalance||0 }}
+                可提现 ¥ {{ myInfo.txBalance||0 }}
                 <text class="to-cash" @click="pageTo({ url: '/admin/shopYeChange/list' })">变动明细</text>
                 <text class="to-cash" @click="pageTo({ url: '/pagesStore/me/withdraw' })">提现记录</text>
-                <text class="to-cash" v-if="shopInfo.txBalance > 0" @click="checkToApplyCash">提现</text>
+                <text class="to-cash" v-if="myInfo.txBalance > 0" @click="checkToApplyCash">提现</text>
               </view>
             </view>
           </view>
@@ -51,7 +51,7 @@
         <view class="account-info_box content_box">
           <view class="info-lf_box">
             <view> 现金(元) </view>
-            <view> <text>¥ </text> {{ shopInfo.money||0 }} </view>
+            <view> <text>¥ </text> {{ myInfo.money||0 }} </view>
             <view>
               <text class="to-cash" @click="pageTo({ url: '/admin/shopMoneyChange/list' })" style="margin-left:0upx;">变动明细</text>
               <text @click="outAmountFn" class="to-cash">取出</text>
@@ -137,7 +137,7 @@
           <text class="right" @click.stop="goToPrivacy">隐私政策</text>
           <text class="right" @click.stop="closeAccount()">注销账号</text>
         </view>
-        <view class="bottom-version">version {{version}}</view>
+        <view class="bottom-version">中央编号 {{myInfo && myInfo.shopInfo && myInfo.shopInfo.mainId ? myInfo.shopInfo.mainId : 0}}&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;version {{version}}</view>
 
       </view>
     </template>
@@ -196,7 +196,7 @@ export default {
   data () {
     return {
       constant: this.$constant,
-      shopInfo: {},
+      myInfo: {},
       version:'1.0.0',
       inAmount:'',
       outAmount:'',
@@ -323,7 +323,7 @@ export default {
     },
     async init () {
       const { data } = await mainMy();
-      this.shopInfo = data;
+      this.myInfo = data;
       uni.stopPullDownRefresh()      
     },
     // #ifdef APP-PLUS
@@ -360,7 +360,7 @@ export default {
     checkToApplyCash () {
       let that = this;
       //没有设置提现账号则提示
-      if (that.shopInfo.cashAccount == "") {
+      if (that.myInfo.cashAccount == "") {
         that.$util.confirmModal({content:'您还没有设置提现账号'},() => {
           that.$util.pageTo({ url: "/pagesStore/me/cashSet" });
         })
@@ -509,7 +509,7 @@ export default {
     .bottom-version{
       text-align:center;
       color:#CCCCCC;
-      font-size:23upx;
+      font-size:25upx;
       margin-top:20upx;
     }
   }