Просмотр исходного кода

修复健康档案图片显示问题

张田田 7 месяцев назад
Родитель
Сommit
3f9f511243

+ 2 - 2
miniprogram/module/health/components/report-health-patient/report-health-patient.scss

@@ -3,8 +3,8 @@
 @import "../../../../themes/card.scss";
 /* module/health/components/report-health-patient/report-health-patient.wxss */
 .user-image {
-  width: 208px;
-  height: 208px;
+  width: 104px;
+  height:104px;
   border-radius: 10px;
   margin-right: 10px;
 }

+ 3 - 3
miniprogram/module/health/components/report-health-patient/report-health-patient.wxml

@@ -2,9 +2,9 @@
 
 <!--module/health/components/report-health-patient/report-health-patient.wxml-->
 <view class="card-wrapper">
-  <t-cell t-class="card-header no-body" bordered="{{false}}" t-class-description="patient-info-content">
+  <t-cell t-class="card-header no-body" bordered="{{false}}" t-class-description="patient-info-content" style="padding:10px">
     <block slot="description">
-      <image src="../../assets/image/health-report.png" class="user-image" mode="widthFix" />
+      <image class="user-image avatar" src="/module/health/assets/image/health-report.png" mode="aspectFill" />
       <view class="content">
         <view class="row primary title">{{dataset.name}}</view>
         <view class="row">
@@ -45,7 +45,7 @@
         <view>{{dataset.willillStateName}}</view>
       </view>
       <view class="row">
-        <span class="col" wx:if="{{dataset.height}}">
+        <span class="col" wx:if="{{dataset.height}}" style="display:flex">
           <text style="color:#8C8C8C">身高:</text>
           <text>{{dataset.height}}cm</text>
         </span>