zhaoxiaohai преди 3 години
родител
ревизия
20f0913f8e

+ 1 - 1
components/My_MembersAndProducts/index.wxml

@@ -3,7 +3,7 @@
         <!-- 图片 -->
         <view class="grey_rectangle_image" wx:if="{{attinfos.length<=1}}" style="height: {{imgSize}}; width:{{imgSize}}; border-radius: {{radius}};">
             <image wx:if="{{attinfos[0].fobsurl}}" src="{{attinfos[0].fobsurl}}" mode="aspectFill" data-index="0" catchtap="viewImg"></image>
-            <image wx:else src="/static/tacitly-approve/MRproduct.png" mode="aspectFit"></image>
+            <image wx:else src="/static/userCenter/userImg.png" mode="aspectFit"></image>
         </view>
         <swiper wx:else class="grey_rectangle_image" autoplay circular style="height: {{imgSize}}; width:{{imgSize}}; border-radius: {{radius}};">
             <swiper-item wx:for="{{attinfos}}">

+ 1 - 1
pages/tabbar-pages/user/index.wxml

@@ -7,7 +7,7 @@
             <!-- 头像 -->
             <view class="user_headPortrait">
                 <image wx:if="{{userMessage.attinfos[0].fobsurl}}" src="{{userMessage.attinfos[0].fobsurl}}" mode="aspectFill"></image>
-                <image wx:else src="/static/tacitly-approve/MRuserImg.png" mode="aspectFit"></image>
+                <image wx:else src="/static/userCenter/userImg.png" mode="aspectFit"></image>
             </view>
             <!-- 信息 -->
             <view class="user_message" bindtap="toUserCenter">

+ 3 - 5
pages/userCenter/index.wxml

@@ -4,14 +4,12 @@
         <view class="user_header_msg">
             <!-- 头像 -->
             <view class="user_headPortrait">
-                <image wx:if="{{attinfos[0].url}}" src="{{attinfos[0].url}}" mode="aspectFill"></image>
-                <view wx:else class="MRuserImg">
-                    <image src="/static/icon-10.png"></image>
-                </view>
+                <image wx:if="{{attinfos[0].url}}" src="{{attinfos[0].url}}" mode="aspectFill" />
+                <image wx:else src="/static/userCenter/userImg.png" mode="aspectFill" />
             </view>
             <!-- 修改头像 -->
             <My_UploadFiles id="UploadFiles" upType="userImage" bind:imageChange="userImageChange" fileList="{{attinfos}}" UploadShow='3' lineHeight="130rpx">
-                <view class="changeImage">修改头像</view>
+                <van-button custom-class='changeImage'>修改头像</van-button>
             </My_UploadFiles>
         </view>
         <view style="height: 2rpx; width: 100%; background-color: #979797; opacity: 0.3;"></view>

+ 9 - 18
pages/userCenter/index.wxss

@@ -32,28 +32,19 @@
     box-shadow: 0px 0px 20rpx 0px rgba(0, 0, 0, 0.1);
 }
 
-.MRuserImg {
-    display: flex;
-    align-items: center;
-    justify-content: center;
-    width: 100%;
-    height: 100%;
-    border-radius: 50%;
-    background-color: #F6F7F8;
-}
-
-.MRuserImg image {
-
-    width: 60rpx;
-    height: 60rpx;
-}
-
 /* 修改头像 */
 .changeImage {
-    font-size: 32rpx;
-    color: #333333;
+    width: 130rpx !important;
+    height: 50rpx !important;
+    line-height: 50rpx !important;
+    color: #ffffff;
+    background: #4DC2D4;
+    padding: 0 !important;
+    font-size: 26rpx;
+    border-radius: 10rpx;
 }
 
+
 .fbirthdate {
     color: #323233 !important;
 }

BIN
static/userCenter/userImg.png


BIN
static/userImage.png