shish 4 лет назад
Родитель
Сommit
d0a52d7cc6
1 измененных файлов с 14 добавлено и 14 удалено
  1. 14 14
      ghsApp/src/admin/home/me.vue

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

@@ -4,15 +4,15 @@
       :src="`${constant.imgUrl}/ghs/me/bg.png`"
       :src="`${constant.imgUrl}/ghs/me/bg.png`"
       class="me-content_bg"
       class="me-content_bg"
     ></image>
     ></image>
-    <template v-if="!$util.isEmpty(infoData)">
+    <template v-if="!$util.isEmpty(shopInfo)">
       <view class="me-user_box">
       <view class="me-user_box">
         <view class="user-info_item">
         <view class="user-info_item">
           <view>
           <view>
             <view class="name">
             <view class="name">
-              {{ infoData.adminName }}
+              {{ shopInfo.adminName }}
             </view>
             </view>
             <view class="mobile">
             <view class="mobile">
-              ID:{{ infoData.shopAdminId }}
+              ID:{{ shopInfo.shopAdminId }}
             </view>
             </view>
           </view>
           </view>
           <!-- <i class="iconfont iconxiangyou"></i> -->
           <!-- <i class="iconfont iconxiangyou"></i> -->
@@ -23,15 +23,15 @@
           <view class="me-shop_top">
           <view class="me-shop_top">
             <view class="shop-top_left">
             <view class="shop-top_left">
               <app-avatar-module
               <app-avatar-module
-                :src="infoData.shopImg"
+                :src="shopInfo.shopImg"
                 :width="100"
                 :width="100"
               />
               />
               <view class="top-info_box">
               <view class="top-info_box">
                 <view>
                 <view>
-                  {{ infoData.shopName }}
+                  {{ shopInfo.shopName }}
                 </view>
                 </view>
                 <view>
                 <view>
-                  <text>{{ infoData.sjName }}</text>
+                  <text>{{ shopInfo.sjName }} | SID {{shopInfo.shopId}}</text>
                 </view>
                 </view>
               </view>
               </view>
             </view>
             </view>
@@ -52,18 +52,18 @@
             "
             "
             class="image-box"
             class="image-box"
           >
           >
-            <view class="dec"> 店铺服务期至: {{ infoData.deadline }} </view>
+            <view class="dec"> 店铺服务期至: {{ shopInfo.deadline.substr(0,11) }} </view>
             <image :src="`${constant.imgUrl}/ghs/me/upgrade.png`"></image>
             <image :src="`${constant.imgUrl}/ghs/me/upgrade.png`"></image>
           </view>
           </view>
         </view>
         </view>
         <view class="account-info_box content_box">
         <view class="account-info_box content_box">
           <view class="info-lf_box">
           <view class="info-lf_box">
             <view> 账户余额(元) </view>
             <view> 账户余额(元) </view>
-            <view> <text>¥ </text> {{ infoData.balance }} </view>
+            <view> <text>¥ </text> {{ shopInfo.balance }} </view>
             <view>
             <view>
-              可提现余额 ¥ {{ infoData.txBalance }}
+              可提现余额 ¥ {{ shopInfo.txBalance }}
               <text
               <text
-                v-if="infoData.txBalance > 0"
+                v-if="shopInfo.txBalance > 0"
                 @click="checkToApplyCash"
                 @click="checkToApplyCash"
                 class="to-cash"
                 class="to-cash"
               >提现</text>
               >提现</text>
@@ -78,7 +78,7 @@
               class="line-cell"
               class="line-cell"
               :hover="false"
               :hover="false"
               :arrow="true"
               :arrow="true"
-              v-if="infoData.adminId == 2 || infoData.adminId == 497"
+              v-if="shopInfo.adminId == 2 || shopInfo.adminId == 497"
             >
             >
               <div class="tui-title">切换门店</div>
               <div class="tui-title">切换门店</div>
             </tui-list-cell>
             </tui-list-cell>
@@ -194,7 +194,7 @@ export default {
   data () {
   data () {
     return {
     return {
       constant: this.$constant,
       constant: this.$constant,
-      infoData: {},
+      shopInfo: {},
     };
     };
   },
   },
   onPullDownRefresh () {
   onPullDownRefresh () {
@@ -234,7 +234,7 @@ export default {
       if(!this.AUTHORITY_SHOW) {
       if(!this.AUTHORITY_SHOW) {
         try {
         try {
           const { data } = await mainMy();
           const { data } = await mainMy();
-          this.infoData = data;
+          this.shopInfo = data;
           //不要删除此输出,方法查看 shish 20210512
           //不要删除此输出,方法查看 shish 20210512
           console.log('商家ID',data.sjId,'门店ID',data.shopId)
           console.log('商家ID',data.sjId,'门店ID',data.shopId)
           uni.stopPullDownRefresh();
           uni.stopPullDownRefresh();
@@ -265,7 +265,7 @@ export default {
     checkToApplyCash () {
     checkToApplyCash () {
       let self = this;
       let self = this;
       //没有设置提现帐号则提示
       //没有设置提现帐号则提示
-      if (self.infoData.cashAccount == "") {
+      if (self.shopInfo.cashAccount == "") {
         uni.showModal({
         uni.showModal({
           title: "提示",
           title: "提示",
           content: "您还没有设置提现帐号",
           content: "您还没有设置提现帐号",