xklr/wlj 2 years ago
parent
commit
0fbcc7b908

+ 2 - 7
pages/chart-model/chart-model.vue

@@ -1,11 +1,6 @@
 <template>
 	<view>
-		<view 
-		@click="echarts.onClick" 
-		:prop="option" 
-		:change:prop="echarts.updateEcharts" 
-		id="echarts" 
-		class="echarts">
+		<view @click="echarts.onClick" :prop="option" :change:prop="echarts.updateEcharts" id="echarts" class="echarts">
 		</view>
 	</view>
 </template>
@@ -23,7 +18,7 @@
 		},
 		data() {
 			return {
-option: {
+				option: {
 					title: {
 						text: 'ECharts 入门示例'
 					},

+ 5 - 5
pages/eye_ground/eye_ground.vue

@@ -14,7 +14,7 @@
 				</view>
 			</view>
 		</view>
-		<view class="px-3 pb-3 mt-n2"  v-if="dataArray.length>0">
+		<view class="px-3 pb-3 mt-n2" v-if="dataArray.length>0">
 			<view class="bg-white px-3 py-2 mt-3" style="border-radius: 16rpx;" v-for="(item,index) in dataArray">
 				<view class="centerY mb-2 text-gry">
 					<text class="iconfont Clock fs-20"></text>
@@ -139,7 +139,7 @@
 				accessType: 1,
 				dataArray: [],
 				status: 'loading',
-				hospital:{},
+				hospital: {},
 				filter: {
 					size: 10,
 					current: 1
@@ -183,7 +183,7 @@
 					idCard
 				})
 				if (code == 0) {
-					this.hospital=data
+					this.hospital = data
 					uni.stopPullDownRefresh()
 				} else {
 					this.status = 'more';
@@ -234,7 +234,7 @@
 				})
 				if (code == 0) {
 					uni.setStorageSync('userData', data || {})
-					this.dataArray=[...this.dataArray,...data||[]]
+					this.dataArray = [...this.dataArray, ...data || []]
 					uni.hideLoading();
 					console.log(count / this.filter.size > this.filter.current)
 					if (count / this.filter.size > this.filter.current) {
@@ -251,7 +251,7 @@
 			},
 		},
 		onPullDownRefresh() {
-			this.dataArray=[]
+			this.dataArray = []
 			this.get_medicinal(1)
 		}
 	}

File diff suppressed because it is too large
+ 41 - 38
pages/health_report/component/annual_inspection_plan.vue


+ 11 - 47
pages/health_report/component/detection_result.vue

@@ -39,45 +39,10 @@
 </template>
 
 <script>
-	const config = {
-		pulse: [60, 100],
-		temperature: [36.5, 37.5],
-		shrink: [90, 139],
-		diastole: [60, 90],
-		shrinktop: [90, 149], //大于65
-		shrinklow: [90, 139], //小于65  
-		bmi: [18.50, 23.90],
-		urine1: [
-			[53, 106],
-			[44, 97], "肌酐"
-		],
-		urine2: [0, 30, "微量白蛋白"],
-		urine3: [8.4, 13.2, "尿微/肌酐"],
-		kidney1: [
-			[208, 428],
-			[155, 357], "血尿酸"
-		],
-		kidney2: [
-			[54, 133],
-			[44, 97], "血肌酐"
-		],
-		kidney3: [13.9, 6.1, "尿素氮"],
-		bloodFat1: [0.45, 1.7, "甘油三酯"],
-		bloodFat2: [2.85, 5.69, "总胆固醇"],
-		bloodFat3: [0, 3.4, "低密度脂蛋白"],
-		bloodFat4: [1.16, 1.55, "高密度脂蛋白"],
-		lvision: [1.0, 5.0, '左视力'],
-		rvision: [1.0, 5.0, '右视力'],
-		bloodGlucose: [3.9, 6.9, '血糖'],
-		chol: [2.85, 5.69, '总胆固醇'],
-		ua: [
-			[149, 416],
-			[89, 357], '尿酸'
-		],
-		spo2: [95, 99, '血氧'],
-		rxyl: [0, 0],
-		ryjl: [0, 0],
-	}
+	import {
+		config
+	} from '@/static/js/defult_value.js';
+
 	let data1 = {
 		checkList: [],
 		visit: {
@@ -340,13 +305,13 @@
 				],
 			}
 		},
-		props:{
+		props: {
 			propData: {
 				type: Object,
 				default () {
 					return {
 						patient: {},
-						checkResult:{}
+						checkResult: {}
 					}
 				},
 			},
@@ -354,14 +319,14 @@
 		watch: {
 			propData: {
 				handler(val) {
-					if(val.patient.id){
+					if (val.patient.id) {
 						this.setlist(val.checkResult)
 					}
 				},
 			},
 		},
 		created() {
-			
+
 		},
 		methods: {
 			setlist(checkResult) {
@@ -408,12 +373,11 @@
 					value: val,
 					type: this.check({
 							type: key,
-			  		value: val,
+							value: val,
 							age: this.propData.patient.age,
 							sex: this.propData.patient.sex,
 						}) ?
-						0 :
-						1,
+						0 : 1,
 				}
 			},
 			check({
@@ -472,7 +436,7 @@
 				}
 				return false
 			},
-			
+
 
 		}
 	}

+ 3 - 9
pages/health_report/component/report.vue

@@ -93,7 +93,7 @@
 						</view>
 					</view>
 				</view>
-				<view class="centerY mt-3 mb-2"  v-if="1">
+				<view class="centerY mt-3 mb-2" v-if="1">
 					<view class="bule_line"></view>
 					<text class="font-bold text-dark ml-2 fs-16 line-height1">血糖管理等级</text>
 				</view>
@@ -243,7 +243,7 @@
 						v-if="echarts3data.data1.length||echarts3data.data2.length||echarts3data.data3.length">
 						<view id="echarts3" class="echarts"></view>
 					</view>
-					
+
 					<view class="fs-14 font-bold text-dark my-2"
 						v-if="echarts3data.data4.length||echarts3data.data5.length||echarts3data.data6.length">
 						肾功能检测
@@ -251,7 +251,7 @@
 					<view class="mt-2 "
 						v-if="echarts3data.data4.length||echarts3data.data5.length||echarts3data.data6.length">
 						<view id="echarts4" class="echarts"></view>
-					
+
 					</view>
 					<!-- <view class="mt-2 centerY">
 						<view class="card-boxshow centerY px-2 py-1 w-50 fs-12">
@@ -462,13 +462,9 @@
 		error: 600,
 		warning: 750,
 		success: 1000,
-
 	}
 	import {
-		CULTURE,
-		MEDICAL_INSURANCE_TYPE,
 		CHRONIC_DISEASE_TYPE,
-		DISEASE_HISTORY,
 	} from '@/static/js/defult_value.js'
 	export default {
 		components: {
@@ -688,7 +684,6 @@
 	export default {
 		mounted() {
 			console.log(echarts)
-
 			// this.initChart('echarts1', this.option)
 			// this.initChart('echarts2', this.option2)
 		},
@@ -703,7 +698,6 @@
 			// },
 			onClick(event, ownerInstance) {
 				// 调用 service 层的方法
-
 			},
 			check({
 				type,

+ 28 - 26
pages/health_report/health_report.vue

@@ -1,6 +1,5 @@
 <template>
 	<view class="">
-
 		<view class=" tab position-relative">
 			<view class="mx-3 mt-3 tab-box centerY text-center fs-14 font-bold">
 				<view @click="tabactive(index)" v-for="(item,index) in ['健康报告','全年检查计划','检测结果']"
@@ -12,19 +11,16 @@
 			</view>
 			<view class="position-relative px-3" style="height: 50vh;" ref="ccc">
 				<view
-					
 					:class="{'w-100 tab-content position-absolute':true,'tab-content-active': tab_index==0,'tab-content-hidden':tab_index!==0}">
-					<report :propData="dataAll"/>
+					<report :propData="dataAll" />
 				</view>
 				<view
-					
 					:class="{'w-100 tab-content position-absolute':true,'tab-content-active': tab_index==1,'tab-content-hidden':tab_index!==1}">
-					<annual-inspection-plan :propData="dataAll"/>
+					<annual-inspection-plan :propData="dataAll" />
 				</view>
 				<view
-					
 					:class="{'w-100 tab-content position-absolute':true,'tab-content-active': tab_index==2,'tab-content-hidden':tab_index!==2}">
-					<detection-result :propData="dataAll"/>
+					<detection-result :propData="dataAll" />
 				</view>
 			</view>
 			<view class="" @click="resttop" v-if="isshowbtntop"
@@ -50,35 +46,41 @@
 		data() {
 			return {
 				tab_index: 0,
-				isshowbtntop:false,
-				dataAll:{}
+				isshowbtntop: false,
+				dataAll: {}
 			}
 		},
 		onPageScroll: function(e) { //nvue暂不支持滚动监听,可用bindingx代替
 			// console.log("滚动距离为:" + e.scrollTop);
-			if(e.scrollTop>=500){
-				this.isshowbtntop=true
-			}else{
-				this.isshowbtntop=false
+			if (e.scrollTop >= 500) {
+				this.isshowbtntop = true
+			} else {
+				this.isshowbtntop = false
 			}
 		},
 		onLoad() {
 			this.find_health_report()
 		},
 		methods: {
-			async find_health_report(){
-					uni.showLoading({
-						title: '加载中'
-					});
-					let {data,code} =await this.$api.find_health_report({"idCard":"330222194512283184"})
-						if(code==0){
-							console.log(data)
-							this.dataAll = data||{}
-							uni.hideLoading();
-						}else{
-							uni.hideLoading();
-							uni.stopPullDownRefresh()
-						}
+			async find_health_report() {
+				let idCard = uni.getStorageSync('idCard')
+				uni.showLoading({
+					title: '加载中'
+				});
+				let {
+					data,
+					code
+				} = await this.$api.find_health_report({
+					idCard
+				})
+				if (code == 0) {
+					console.log(data)
+					this.dataAll = data || {}
+					uni.hideLoading();
+				} else {
+					uni.hideLoading();
+					uni.stopPullDownRefresh()
+				}
 			},
 			tabactive(i) {
 				this.tab_index = i

+ 1 - 40
pages/home_monitoring/home_monitoring.vue

@@ -256,46 +256,7 @@
 
 <script module="echarts" lang="renderjs">
 	import * as echarts from 'echarts';
-	
-	const config = {
-		pulse: [60, 100],
-		temperature: [36.5, 37.5],
-		shrink: [90, 139],
-		diastole: [60, 90],
-		shrinktop: [90, 149], //大于65
-		shrinklow: [90, 139], //小于65  
-		bmi: [18.50, 23.90],
-		urine1: [
-			[53, 106],
-			[44, 97], "肌酐"
-		],
-		urine2: [0, 30, "微量白蛋白"],
-		urine3: [8.4, 13.2, "尿微/肌酐"],
-		kidney1: [
-			[208, 428],
-			[155, 357], "血尿酸"
-		],
-		kidney2: [
-			[54, 133],
-			[44, 97], "血肌酐"
-		],
-		kidney3: [13.9, 6.1, "尿素氮"],
-		bloodFat1: [0.45, 1.7, "甘油三酯"],
-		bloodFat2: [2.85, 5.69, "总胆固醇"],
-		bloodFat3: [0, 3.4, "低密度脂蛋白"],
-		bloodFat4: [1.16, 1.55, "高密度脂蛋白"],
-		lvision: [1.0, 5.0, '左视力'],
-		rvision: [1.0, 5.0, '右视力'],
-		bloodGlucose: [3.9, 6.9, '血糖'],
-		chol: [2.85, 5.69, '总胆固醇'],
-		ua: [
-			[149, 416],
-			[89, 357], '尿酸'
-		],
-		spo2: [95, 99, '血氧'],
-		rxyl: [0, 0],
-		ryjl: [0, 0],
-	}
+	import { config } from '@/static/js/defult_value.js';
 	export default {
 		mounted() {
 			console.log(echarts)

+ 2 - 2
pages/index/index.vue

@@ -3,8 +3,8 @@
 		<view class="" v-if="userData.id">
 			<view class="header p-3">
 				<view class="centerY">
-					<span class="fs-18 text-white font-bold">个人档案</span>
-					<span class="p-3 d-inline-block ml-auto text-white1" @click="closet">退出</span>
+					<span class="d-inline-block fs-18 text-white font-bold">个人档案</span>
+					<span class="d-inline-block py-1 d-inline-block ml-auto text-white1" @click="closet">[ 退出 ]</span>
 				</view>
 				<view class="centerY mt-2" @click="$mf.clickNavto('/pages/userinfo/userinfo')">
 					<view class="w-15 userhead">

+ 0 - 2
pages/userinfo/userinfo.vue

@@ -273,10 +273,8 @@
 
 <script>
 	import {
-		CULTURE,
 		MEDICAL_INSURANCE_TYPE,
 		CHRONIC_DISEASE_TYPE,
-		DISEASE_HISTORY,
 	} from '@/static/js/defult_value.js'
 	export default {
 		data() {

File diff suppressed because it is too large
+ 1189 - 773
static/js/defult_value.js