Ver Fonte

1、健康会诊问答页修改
2、健康档案展示修改

XSLu08042 há 2 semanas atrás
pai
commit
6416ef8d49
2 ficheiros alterados com 14 adições e 17 exclusões
  1. 4 9
      pages_index/packageForm.vue
  2. 10 8
      pages_user/healthRecords/index.vue

+ 4 - 9
pages_index/packageForm.vue

@@ -40,12 +40,12 @@
 					<view class="msg-item" v-for="(item,index) in msgs" >
 						<view class="left" v-if="item.type==1">
 							<!-- <image class="img" src="https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/be32b8d2ae9f497297d10327656bb43c.png"></image> -->
-							<image class="img" :src="agreement.avatar?agreement.avatar:'https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/1d7eb0607a074892964dd32e8735e540.jpg'"></image>
+							<image class="img" mode="aspectFill" :src="agreement.avatar?agreement.avatar:'https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/1d7eb0607a074892964dd32e8735e540.jpg'"></image>
 							<view class="msg-content">{{item.content}}</view>
 						</view>
 						<view class="right" v-if="item.type==2">
 							<view class="msg-content">{{item.content}}</view>
-							<image class="img" :src="avatar?avatar:'https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/1d7eb0607a074892964dd32e8735e540.jpg'"></image>
+							<image class="img" mode="aspectFill" :src="avatar?avatar:'https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/1d7eb0607a074892964dd32e8735e540.jpg'"></image>
 						</view>
 					</view>
 				</view>
@@ -154,6 +154,7 @@
 			this.item=this.items[0];
 			this.addMsg(1,this.item.title);
 			this.getAgreement()
+			this.avatar = uni.getStorageSync('userInfo')&&JSON.parse(uni.getStorageSync('userInfo')).avatar
 		},
 		onShow() {
 			this.$nextTick(()=>{
@@ -201,6 +202,7 @@
 					  .createSelectorQuery()
 					  .select(".msgs")
 					  .boundingClientRect((res) => {
+						  console.log(res)
 						   if(res) {
 								const scrollH = res.height;
 								that.scrollTop = scrollH;
@@ -341,13 +343,6 @@
 </script>
 
 <style lang="scss">
-	.patient {
-		position: absolute;
-		width: 100%;
-		z-index: 999;
-		top: 0;
-		left: 0;
-	}
 	.content{
 		flex: 1;
 		width: 100%;

+ 10 - 8
pages_user/healthRecords/index.vue

@@ -26,21 +26,23 @@
 			</view>
 			<view class="box-title">
 				<text>健康数据</text>
-				<view class="box-title-right">
+				<!-- <view class="box-title-right">
 					<image :src="baseUrl+'/images/healthRecords/edit_add_orange_icon.png'" mode="aspectFill"></image>
 					<text>绑定智能设备</text>
-				</view>
+				</view> -->
 			</view>
 			<view class="cardbox">
-				<view class="cardbox-item bmibox">
-					<view class="cardbox-title">
+				<view class="cardbox-item bmibox" style="height:auto;min-height: auto;">
+					<view class="cardbox-title x-f">
 						<view>
 							<view class="cardbox-maintitle">BMI {{recordInfo.bmi || "--"}}</view>
 							<view class="bmibox-tagbox"><view class="bmibox-tag" v-if="recordInfo.bmi">{{fat}}</view></view>
 						</view>
 						<image :src="baseUrl+'/images/healthRecords//BMI_icon.png'" mode="aspectFill"></image>
 					</view>
-					<view class="bmibox-info" style="margin-top: 46rpx;">
+				</view>
+				<view class="cardbox-item bmibox" style="height:auto;min-height: auto;">
+					<view class="bmibox-info">
 						<text class="bmibox-infolabel">身高</text>
 						<view class="bmibox-infoval">{{recordInfo.height || "--"}}cm</view>
 						<image class="bmibox-edit" :src="baseUrl+'/images/healthRecords/services_edit_icon.png'"
@@ -53,7 +55,7 @@
 							@click="handleEdit('weight')"></image>
 					</view>
 				</view>
-				<view class="cardbox-item" v-for="(item,index) in healthData" :key="index">
+				<!-- <view class="cardbox-item" v-for="(item,index) in healthData" :key="index">
 					<view class="cardbox-title">
 						<view>
 							<view class="cardbox-maintitle">{{item.title}}</view>
@@ -63,7 +65,7 @@
 					</view>
 					<view class="cardbox-res resnum">{{item.data || '--'}}</view>
 					<view class="cardbox-time">{{item.date && item.date.substring(5,16)}}</view>
-				</view>
+				</view> -->
 			</view>
 			<!-- 健康史 -->
 			<view class="box-title">
@@ -252,7 +254,7 @@
 								this.user=res.user;
 								this.defaultHeadimg=this.user.avatar;
 								this.getMyRecord()
-								this.getHealthDataList()
+								// this.getHealthDataList()
 								this.getHealthLife()
 								 
 							}