Browse Source

头像绿光

panhui 4 years ago
parent
commit
8fed2effb9
2 changed files with 3 additions and 3 deletions
  1. 2 2
      src/views/Home.vue
  2. 1 1
      src/views/Mine.vue

+ 2 - 2
src/views/Home.vue

@@ -10,7 +10,7 @@
                 width="38"
                 height="38"
                 :radius="32"
-                :class="{ activeAvatar: userInfo.useCollectionPic }"
+                :class="{ activeAvatar: isLogin && userInfo.useCollectionPic }"
                 :src="isLogin ? userInfo.avatar : require('@assets/img_default_photo.png')"
             ></van-image>
         </div>
@@ -24,7 +24,7 @@
             v-if="banners.length > 0"
         >
             <swiper-slide v-for="item in banners" :key="item.id">
-                <product-small :info="item"></product-small>
+                <product-small :info="item"></product-small>    
             </swiper-slide>
         </swiper>
 

+ 1 - 1
src/views/Mine.vue

@@ -17,7 +17,7 @@
                         height="78"
                         :src="userInfo.avatar || require('@assets/img_default_photo.png')"
                         fit="cover"
-                        :class="{ activeAvatar: userInfo.useCollectionPic }"
+                        :class="{ activeAvatar: isLogin && userInfo.useCollectionPic }"
                         @click="$router.push('/setting')"
                     />
                     <div class="text">