shish %!s(int64=3) %!d(string=hai) anos
pai
achega
a2c94d8bb7
Modificáronse 2 ficheiros con 14 adicións e 14 borrados
  1. 1 1
      ghsApp/src/admin/home/me.vue
  2. 13 13
      hdApp/src/admin/home/me.vue

+ 1 - 1
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="myInfo.shopAdminId > 0"> <view class="name"> {{ myInfo.adminName }} </view> <view class="mobile"> ID:{{ myInfo.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">

+ 13 - 13
hdApp/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,14 +12,14 @@
           <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.currentShopId > 0">
+              <image :src="myInfo.shopImg" style="width:110upx;border-radius:100upx;" mode="widthFix" v-if="!$util.isEmpty(getLoginInfo.admin) && getLoginInfo.admin.currentShopId > 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.currentShopId > 0">
-                <view> {{ shopInfo.shopName||'' }} </view>
-                <view><text>{{ shopInfo.sjName||'' }} | ID {{shopInfo.shopId||''}}</text></view>
+                <view> {{ myInfo.shopName||'' }} </view>
+                <view><text>{{ myInfo.sjName||'' }} | ID {{myInfo.shopId||''}}</text></view>
               </view>
 
               <view class="top-info_box" @click="pageTo({url:'/admin/home/login'})" v-else>
@@ -36,11 +36,11 @@
         <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> 可提现 ¥ {{ shopInfo.txBalance||0 }}
+            <view> <text>¥ </text> {{ myInfo.balance||0 }} </view>
+            <view> 可提现 ¥ {{ myInfo.txBalance||0 }}
             <text class="to-cash" @click="pageTo({ url: '/pagesStore/me/shopYeChange' })">变动明细</text>
             <text class="to-cash" @click="pageTo({ url: '/pagesStore/me/withdraw' })">提现记录</text>
-            <text v-if="shopInfo.txBalance > 0" @click="checkToApplyCash" class="to-cash">提现</text> </view>
+            <text v-if="myInfo.txBalance > 0" @click="checkToApplyCash" class="to-cash">提现</text> </view>
           </view>
         </view>
         </template>
@@ -119,7 +119,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.mainId ? myInfo.mainId : 0}}&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;version {{version}}</view>
 
       </view>
     </template>
@@ -150,7 +150,7 @@ export default {
   data () {
     return {
       constant:this.$constant,
-      shopInfo:{},
+      myInfo:{},
       version:'1.0.0'
     };
   },
@@ -248,7 +248,7 @@ export default {
     getMyInfo () {
       mainMy().then(res=>{
         if(res.code == 1){
-          this.shopInfo = res.data
+          this.myInfo = res.data
         }
       })
       uni.stopPullDownRefresh()
@@ -256,7 +256,7 @@ export default {
     checkToApplyCash () {
       let self = this;
       //没有设置提现账号则提示
-      if (self.shopInfo.cashAccount == "") {
+      if (self.myInfo.cashAccount == "") {
         uni.showModal({
           title: "提示",
           content: "您还没有设置提现账号",
@@ -414,7 +414,7 @@ export default {
     .bottom-version{
       text-align:center;
       color:#CCCCCC;
-      font-size:23upx;
+      font-size:25upx;
       margin-top:20upx;
     }
   & .account-info_box {