tanxue пре 2 месеци
родитељ
комит
ec7159e1b7
3 измењених фајлова са 4 додато и 2 уклоњено
  1. 2 0
      common/styles/global/pages.scss
  2. 0 1
      pages/client/my/index.vue
  3. 2 1
      pages/client/my/myInfo.vue

+ 2 - 0
common/styles/global/pages.scss

@@ -434,6 +434,8 @@
 		.user-file-picker{
 			.file-picker-image{max-height: 200rpx;max-width: 160rpx;}
 		}
+		.head-icon-box{width: 160rpx;height: 200rpx;margin: 0 auto;
+		background-image: url("@/static/images/my/client-default-icon.png");@include ezy-no-repeat-cover();}
 	}
 	.info-btn{width: 360rpx;margin: 100rpx auto 24rpx;font-size: 30rpx;}
 }

+ 0 - 1
pages/client/my/index.vue

@@ -128,7 +128,6 @@
 		getMineLogout().then(res => {
 			console.log(res,'res');
 			toast('退出登录成功')
-			console.log(6666,'666');
 			cacheManager.clearAll();
 			uni.reLaunch({
 				url: '/pages/Login/index'

+ 2 - 1
pages/client/my/myInfo.vue

@@ -7,10 +7,11 @@
 		</view>
 		<!-- 头像 -->
 		<view class="user-img-box">
-			<uni-file-picker limit="1" :del-icon="false" disable-preview :auto-upload="false"
+			<uni-file-picker limit="1" :del-icon="false" disable-preview :auto-upload="false" v-if="data.icon"
 				@select="handleSelect" file-mediatype="image" class="phone-file-picker user-file-picker">
 				<image :src="data.icon" class="file-picker-image"></image>
 			</uni-file-picker>
+			<icon class="head-icon-box" v-else></icon>
 			<!-- <view>图片地址:{{data.icon}}</view> -->
 		</view>
 		<!-- 姓名 -->