Browse Source

头像变小

shish 1 year ago
parent
commit
ef3514777b

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

@@ -16,8 +16,8 @@
           <view class="me-shop_top">
           <view class="me-shop_top">
             <view class="shop-top_left">
             <view class="shop-top_left">
 
 
-              <image :src="myInfo.shopImg" class="avatar-img" mode="aspectFill" v-if="!$util.isEmpty(getLoginInfo.admin) && getLoginInfo.admin.currentGhsShopId > 0" @click="openAvatarPopup"></image>
-              <image :src="myInfo.shopImg" class="avatar-img" mode="aspectFill" @click="pageTo({url:'/admin/home/login'})" v-else></image>
+              <image :src="myInfo.smallShopImg" class="avatar-img" mode="aspectFill" v-if="!$util.isEmpty(getLoginInfo.admin) && getLoginInfo.admin.currentGhsShopId > 0" @click="openAvatarPopup"></image>
+              <image :src="myInfo.smallShopImg" class="avatar-img" mode="aspectFill" @click="pageTo({url:'/admin/home/login'})" v-else></image>
 
 
               <view class="top-info_box" v-if="!$util.isEmpty(getLoginInfo.admin) && getLoginInfo.admin.currentGhsShopId > 0" @click="pageTo({url: '/admin/shop/add?id='+myInfo.shopInfo.id})">
               <view class="top-info_box" v-if="!$util.isEmpty(getLoginInfo.admin) && getLoginInfo.admin.currentGhsShopId > 0" @click="pageTo({url: '/admin/shop/add?id='+myInfo.shopInfo.id})">
                 <view> {{ myInfo.shopName||'' }}
                 <view> {{ myInfo.shopName||'' }}
@@ -214,7 +214,7 @@
 
 
     <uni-popup ref="avatarPopup" type="top" :animation="false">
     <uni-popup ref="avatarPopup" type="top" :animation="false">
       <view class="avatar-popup-content avatar-popup-bg">
       <view class="avatar-popup-content avatar-popup-bg">
-        <image :src="myInfo.shopImg" class="avatar-popup-img" mode="aspectFill"></image>
+        <image :src="myInfo.smallShopImg" class="avatar-popup-img" mode="aspectFill"></image>
         <button class="admin-button-com middle blue avatar-upload-btn" @click="triggerAvatarUpload">上传图片</button>
         <button class="admin-button-com middle blue avatar-upload-btn" @click="triggerAvatarUpload">上传图片</button>
       </view>
       </view>
       <!-- 隐藏上传组件,只用于触发上传 -->
       <!-- 隐藏上传组件,只用于触发上传 -->
@@ -529,7 +529,7 @@ export default {
           uni.hideLoading()
           uni.hideLoading()
           if(resp.code == 1) {
           if(resp.code == 1) {
             this.$msg('头像更新成功')
             this.$msg('头像更新成功')
-            this.myInfo.shopImg = resp.data.shopImg
+            this.myInfo.smallShopImg = resp.data.shopImg
             this.$refs.avatarPopup.close()
             this.$refs.avatarPopup.close()
           } else {
           } else {
             this.$msg(resp.msg || '头像更新失败')
             this.$msg(resp.msg || '头像更新失败')

+ 1 - 1
hdApp/src/admin/home/workbench.vue

@@ -155,7 +155,7 @@
         <view class="ghs_box flex-col justify-end" v-for="(ghsInfo, index) in supplierList" :key="index">
         <view class="ghs_box flex-col justify-end" v-for="(ghsInfo, index) in supplierList" :key="index">
           <view class="image-text_7 flex-row justify-between">
           <view class="image-text_7 flex-row justify-between">
             <view class="section_1 flex-col">
             <view class="section_1 flex-col">
-              <image class="logo" :src="ghsInfo.avatar" @click="enterShop(ghsInfo)" />
+              <image class="logo" :src="ghsInfo.smallAvatar" @click="enterShop(ghsInfo)" />
             </view>
             </view>
             <view class="text-group_7 flex-col justify-between" @click="enterShop(ghsInfo)">
             <view class="text-group_7 flex-col justify-between" @click="enterShop(ghsInfo)">
               <text class="text_8">{{ghsInfo.name}}</text>
               <text class="text_8">{{ghsInfo.name}}</text>

+ 1 - 1
hdApp/src/pagesPurchase/order.vue

@@ -14,7 +14,7 @@
             <view class="ghs_box flex-col justify-end" v-for="(ghsInfo, index) in supplierList" :key="index">
             <view class="ghs_box flex-col justify-end" v-for="(ghsInfo, index) in supplierList" :key="index">
               <view class="image-text_7 flex-row justify-between">
               <view class="image-text_7 flex-row justify-between">
                 <view class="section_1 flex-col">
                 <view class="section_1 flex-col">
-                  <image class="logo" :src="ghsInfo.avatar" />
+                  <image class="logo" :src="ghsInfo.smallAvatar" />
                 </view>
                 </view>
                 <view class="text-group_7 flex-col justify-between">
                 <view class="text-group_7 flex-col justify-between">
                   <text class="text_8">{{ghsInfo.name}}</text>
                   <text class="text_8">{{ghsInfo.name}}</text>