tanxue vor 2 Monaten
Ursprung
Commit
62b5f77e6f
2 geänderte Dateien mit 5 neuen und 4 gelöschten Zeilen
  1. 4 3
      common/styles/global/pages.scss
  2. 1 1
      pages/client/my/myInfo.vue

+ 4 - 3
common/styles/global/pages.scss

@@ -402,13 +402,14 @@
 	.user-img-box{
 		display: flex;background-color: #fff;margin-bottom: 24rpx;
 		padding: 16rpx;box-sizing: border-box;
-		.uni-file-picker__container{justify-content: center;border: 0;}
-		.file-picker__box-content{border: 0;border-width: 0 !important;;}
+		.uni-file-picker__container{justify-content: center;border: 0;border-radius: 50%;}
+		.file-picker__box-content{border: 0;border-width: 0 !important;}
 		.user-file-picker{
 			.file-picker-image{max-height: 200rpx;max-width: 160rpx;}
+			img{max-width: 100%;max-height: 200rpx;}
 		}
 		.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();}
+		background-image: url("@/static/images/my/user-default-img.png");@include ezy-no-repeat-cover();}
 	}
 	.info-btn{width: 360rpx;margin: 100rpx auto 24rpx;font-size: 30rpx;}
 }

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

@@ -9,7 +9,7 @@
 		<view class="user-img-box">
 			<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>
+				<img class="head-img" :src="data.icon" v-if="data.icon">
 			</uni-file-picker>
 			<icon class="head-icon-box" v-else></icon>
 			<!-- <view>图片地址:{{data.icon}}</view> -->