From ce13324c947d21d300dd470a3d57816f134a6cad Mon Sep 17 00:00:00 2001 From: shaoshuai <975432984@qq.com> Date: Thu, 18 May 2023 17:24:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A9=9A=E5=89=8D=E6=A3=80=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- woman/app.json | 4 +- woman/pages/home/home.js | 5 + woman/pages/home/home.wxml | 2 +- woman/pages/index/hospitalDetail.wxml | 53 ------ woman/pages/index/index.js | 2 +- woman/pages/index/index.wxml | 3 +- woman/pages/premaritalCheckup/premaritalCheckup.js | 66 +++++++ .../pages/premaritalCheckup/premaritalCheckup.json | 6 + .../pages/premaritalCheckup/premaritalCheckup.wxml | 29 +++ .../pages/premaritalCheckup/premaritalCheckup.wxss | 43 +++++ woman/pages/report_first/report_first.js | 144 ++++++++++++++ woman/pages/report_first/report_first.json | 5 + woman/pages/report_first/report_first.wxml | 209 +++++++++++++++++++++ woman/pages/report_first/report_first.wxss | 209 +++++++++++++++++++++ 14 files changed, 723 insertions(+), 57 deletions(-) delete mode 100644 woman/pages/index/hospitalDetail.wxml create mode 100644 woman/pages/premaritalCheckup/premaritalCheckup.js create mode 100644 woman/pages/premaritalCheckup/premaritalCheckup.json create mode 100644 woman/pages/premaritalCheckup/premaritalCheckup.wxml create mode 100644 woman/pages/premaritalCheckup/premaritalCheckup.wxss create mode 100644 woman/pages/report_first/report_first.js create mode 100644 woman/pages/report_first/report_first.json create mode 100644 woman/pages/report_first/report_first.wxml create mode 100644 woman/pages/report_first/report_first.wxss diff --git a/woman/app.json b/woman/app.json index 6b56627..1372504 100644 --- a/woman/app.json +++ b/woman/app.json @@ -10,7 +10,9 @@ "pages/login/login", "pages/logs/logs", "pages/folicAcid/folicAcid", - "pages/cancerCheck/cancerCheck" + "pages/cancerCheck/cancerCheck", + "pages/report_first/report_first", + "pages/premaritalCheckup/premaritalCheckup" ], "window": { "backgroundTextStyle": "light", diff --git a/woman/pages/home/home.js b/woman/pages/home/home.js index 589fcb5..30df4b6 100644 --- a/woman/pages/home/home.js +++ b/woman/pages/home/home.js @@ -945,6 +945,11 @@ Page({ index: swiperCurrent }) }, + goMenu1(e) { + wx.navigateTo({ + url: '../premaritalCheckup/premaritalCheckup', + }) + }, goMenu3(e) { wx.navigateTo({ url: '../cancerCheck/cancerCheck', diff --git a/woman/pages/home/home.wxml b/woman/pages/home/home.wxml index 7349508..08a625b 100644 --- a/woman/pages/home/home.wxml +++ b/woman/pages/home/home.wxml @@ -35,7 +35,7 @@ 信息查询 - + 婚前检查 diff --git a/woman/pages/index/hospitalDetail.wxml b/woman/pages/index/hospitalDetail.wxml deleted file mode 100644 index 9d363f4..0000000 --- a/woman/pages/index/hospitalDetail.wxml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - {{hosiptalInfo.title}} - - - - - - 医院概况 - - - {{hosiptalInfo.introduction ? hosiptalInfo.introduction : '暂时没有获取到医院描述信息哦!'}} - - - - - - - 医院图片 - - - - - - - - - - - - - - - 联系方式 - - - - - 地址: - {{hosiptalInfo.address ? hosiptalInfo.address : '-'}} - - - 电话: - {{hosiptalInfo.mobile ? hosiptalInfo.mobile : '-'}} - - - - - - diff --git a/woman/pages/index/index.js b/woman/pages/index/index.js index aa6f1fa..85ac02a 100644 --- a/woman/pages/index/index.js +++ b/woman/pages/index/index.js @@ -52,7 +52,7 @@ Page({ }, go1(e) { wx.navigateTo({ - url: '../doctorList/doctorList', + url: '../report_first/report_first', }) }, go2(e) { diff --git a/woman/pages/index/index.wxml b/woman/pages/index/index.wxml index 1a9db9b..ed08297 100644 --- a/woman/pages/index/index.wxml +++ b/woman/pages/index/index.wxml @@ -23,10 +23,11 @@ 快速建档页面 - 医生列表 + 测试 医院详情 登录 首页 + diff --git a/woman/pages/premaritalCheckup/premaritalCheckup.js b/woman/pages/premaritalCheckup/premaritalCheckup.js new file mode 100644 index 0000000..cb2107a --- /dev/null +++ b/woman/pages/premaritalCheckup/premaritalCheckup.js @@ -0,0 +1,66 @@ +// pages/premaritalCheckup/premaritalCheckup.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/woman/pages/premaritalCheckup/premaritalCheckup.json b/woman/pages/premaritalCheckup/premaritalCheckup.json new file mode 100644 index 0000000..4a7dd37 --- /dev/null +++ b/woman/pages/premaritalCheckup/premaritalCheckup.json @@ -0,0 +1,6 @@ +{ + "navigationBarBackgroundColor": "#ffffff", + "navigationBarTitleText": "婚前检测", + "navigationBarTextStyle": "black" + +} \ No newline at end of file diff --git a/woman/pages/premaritalCheckup/premaritalCheckup.wxml b/woman/pages/premaritalCheckup/premaritalCheckup.wxml new file mode 100644 index 0000000..45befa2 --- /dev/null +++ b/woman/pages/premaritalCheckup/premaritalCheckup.wxml @@ -0,0 +1,29 @@ + + + + 婚前报告查询 + + 婚前医学检查证明 + + + + 详细报告 + + + + + + + 检验报告查询 + + 血常规检查 + + 未见异常 + + 详细报告 + + + + + + diff --git a/woman/pages/premaritalCheckup/premaritalCheckup.wxss b/woman/pages/premaritalCheckup/premaritalCheckup.wxss new file mode 100644 index 0000000..0bcfa86 --- /dev/null +++ b/woman/pages/premaritalCheckup/premaritalCheckup.wxss @@ -0,0 +1,43 @@ +/* pages/cancerCheck/cancerCheck.wxss */ +/* pages/folicAcid/folicAcid.wxss */ +.menuList_title { + font-size: 34rpx; + font-family: PingFang SC-Medium, PingFang SC; + font-weight: 600; + line-height: 34rpx; + background: linear-gradient(135deg, #FFB4B4 0%, #FF8EA9 100%); + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; +} + +.menuList_bg{ + width: 670rpx; + height: 180rpx; + background: linear-gradient(134deg, rgba(255,150,171,0.61) 0%, rgba(255,174,178,0.07) 100%); + box-shadow: 0rpx 4rpx 8rpx 5rpx rgba(245,33,84,0.1); + border-radius: 20rpx 20rpx 20rpx 20rpx; + opacity: 1; +} + +.menuList_text { + font-size: 26rpx; + font-family: PingFang SC-Medium, PingFang SC; + font-weight: 500; + background: linear-gradient(135deg, #FFB4B4 0%, #FF8EA9 100%); + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; + line-height: 26rpx; +} +.menuList_next{ + width: 20rpx; + height: 20rpx; + + opacity: 1; + border: 2rpx solid #FF8EA9; + display: inline-block; + width: 18rpx; + height: 18rpx; + border-bottom: none; + border-left: none; + transform: rotate(45deg); +} \ No newline at end of file diff --git a/woman/pages/report_first/report_first.js b/woman/pages/report_first/report_first.js new file mode 100644 index 0000000..bdcd945 --- /dev/null +++ b/woman/pages/report_first/report_first.js @@ -0,0 +1,144 @@ +//articleLists.js 文章列表 +// 网络请求工具类 +var networkUtil = require('../../utils/network_util.js') +var api = require('../../utils/apiFile.js') +var hospital = '' + +Page({ + + data: { + baseCheck: [{ 'title': '首诊日期', 'word': 'checkTime', value: '' }, { 'title': '末次月经', 'word': 'lastMenses', value: '' }, { 'title': '预产期', 'word': 'dueDate', value: '' }, { 'title': '月经周期', 'word': 'mensDay', value: '' }], + bodyCheck: [{ title: '身高', word: 'height', value: '' }, { title: '体重', word: 'weight', value: '' }, { title: '心', word: 'heart', value: '' }, { title: '肺', word: 'lungs', value: '' }], + + womenCheck: [{ title: '外阴', word: 'vulva', value: '' }, { title: '阴道', word: 'vagina', value: 'vagina' }, { title: '宫颈', word: 'cervical', value: '' }, { title: '宫体', word: 'uterus', value: '' }, { title: '附件', word: 'fujian', value: '' }], + + obstetricsCheck: [{ title: '腹围', word: 'fuwei', value: '' }, { title: '宫高', word: 'gongGao', value: '' }, { title: '胎位', word: 'fetalPositionVal', value: '' }, { title: '胎心', word: 'heartRateVal', value: '' }, { title: '先露', word: 'fetalPresentationVal', value: '' }], + + assistantCheck: [{ 'top_title': '血常规', content: [{ 'title': '血红蛋白', 'word': 'xhdb', value: '' }, { 'title': '血红蛋白券', 'word': '', value: '' }, { 'title': '白细胞计数', 'word': 'bxbjs', value: '' }, { 'title': '血小板计数', 'word': 'platelet', value: '' }, { 'title': '血常规其他', 'word': 'chgOther', value: '' }] }, + + { 'top_title': '乙肝五项', content: [{ 'title': '乙肝表面抗原', 'word': 'ygbmky', value: '' }, { 'title': '乙肝表面抗体', 'word': 'ygbmkt', value: '' }, { 'title': '乙肝e抗原', 'word': 'ygeky', value: '' }, { 'title': '乙肝e抗体', 'word': 'ygekt', value: '' }, { 'title': '乙肝核心抗体', 'word': 'yghxkt', value: '' }] }, + + { 'top_title': '肾功', content: [{ 'title': '血清肌酐', 'word': 'xqjq', value: '' }, { 'title': '血尿素氮', 'word': 'xnsd', value: '' }] }, + + { 'top_title': '血型', content: [{ 'title': '血型', 'word': 'abo', value: '' }, { 'title': 'RH血型', 'word': 'rh', value: '' }, { 'title': '血糖', 'word': 'bloodSugar', value: '' }] }, + + { 'top_title': '肝功能', content: [{ 'title': '血清谷丙转氨酶', 'word': 'xqgbzam', value: '' }, { 'title': '血清谷草转氨酶', 'word': 'xqgczam', value: '' }, { 'title': '白蛋白', 'word': 'albumin', value: '' }, { 'title': '总胆红素', 'word': 'totalBilirubin', value: '' }, { 'title': '结合胆红素', 'word': 'jhBilirubin', value: '' }, { 'title': '丙肝', 'word': 'bg', value: '' }] }, + + { 'top_title': '尿常规', content: [{ 'title': '尿蛋白', 'word': 'ndb', value: '' }, { 'title': '尿糖', 'word': 'nt', value: '' }, { 'title': '尿酮体', 'word': 'urineKetone', value: '' }, { 'title': '尿潜血', 'word': 'bld', value: '' }, { 'title': '尿其他', 'word': 'ncgOther', value: '' }] },], + // 孕产史 + ycHistory:'' + }, + onLoad: function (options) { + hospital = options.hospital + this.requestData(options.id) + }, + /*---------自定义函数--------*/ + requestData(Id) { + var self = this + networkUtil.showLoading() + // 报告详情 + networkUtil._get(api.pregnancyReports + '/' + Id, {}, function (res) { + if (res.data.list.length == 0) { + return + } + var data = res.data.list[0].result2 + self.getBaseCheckWith(data) + self.getbodyCheck(data) + self.getwomenCheck(data) + self.getobstetricsCheck(data) + self.getassistantCheck(data) + var risk = '' + for (var key in res.data.list[0].result) { + if (res.data.list[0].result[key].k == '高危因素') { + risk = res.data.list[0].result[key].v + } + } + self.setData({ + checkData:data, + risk:risk + }) + }, function (res) { + + }) + }, + // 检查基础信息 + getBaseCheckWith(data){ + var baseCheck = this.data.baseCheck + for (var index in this.data.baseCheck) { + var item = this.data.baseCheck[index] + if (data[item.word]) { + item.value = data[item.word] + } + } + this.setData({ + baseCheck: baseCheck + }) + }, + // 检查基础信息 + getbodyCheck(data) { + var bodyCheck = this.data.bodyCheck + for (var index in bodyCheck) { + var item = bodyCheck[index] + if (data[item.word]) { + item.value = data[item.word] + } + } + this.setData({ + bodyCheck: bodyCheck + }) + }, + // 检查基础信息 + getwomenCheck(data) { + var womenCheck = this.data.womenCheck + for (var index in womenCheck) { + var item = womenCheck[index] + if (data[item.word]) { + item.value = data[item.word] + } + } + this.setData({ + womenCheck: womenCheck + }) + }, + // 检查基础信息 + getobstetricsCheck(data) { + var obstetricsCheck = this.data.obstetricsCheck + for (var index in obstetricsCheck) { + var item = obstetricsCheck[index] + if (data[item.word]) { + item.value = data[item.word] + } + } + this.setData({ + obstetricsCheck: obstetricsCheck + }) + }, + // 检查基础信息 + getassistantCheck(data) { + var assistantCheck = this.data.assistantCheck + for (var index in assistantCheck) { + var item = assistantCheck[index] + for (var newItem in item.content) { + if (data[item.content[newItem].word]) { + item.content[newItem].value = data[item.content[newItem].word] + } + } + } + this.setData({ + assistantCheck: assistantCheck + }) + }, + getycHistory(data){ + var str = '' + if(data.pregnacyTimes){ + str = '孕次:' + data.pregnacyTimes + '次' + } + if (data.prodTime) { + str = '产次:' + data.prodTime + '次' + } + if (data.pregnacyTimes) { + str = '孕次:' + data.pregnacyTimes + '次' + } + } + +}) diff --git a/woman/pages/report_first/report_first.json b/woman/pages/report_first/report_first.json new file mode 100644 index 0000000..b4cd81b --- /dev/null +++ b/woman/pages/report_first/report_first.json @@ -0,0 +1,5 @@ +{ + "navigationBarBackgroundColor": "#f4879b", + "navigationBarTitleText": "初诊详情", + "navigationBarTextStyle": "white" +} \ No newline at end of file diff --git a/woman/pages/report_first/report_first.wxml b/woman/pages/report_first/report_first.wxml new file mode 100644 index 0000000..5787dca --- /dev/null +++ b/woman/pages/report_first/report_first.wxml @@ -0,0 +1,209 @@ + + 产前检查记录 + 产检日期:{{checkData.checkTime}} + 产检医生:{{checkData.prodDoctorStr}} + +高危因素:{{risk}} +提示:该信息只展示产检报告中的部分信息,只用于提醒和检查结果参考,不作为产检诊断依据。最终和完整结果以纸质检查报告结果为准。 + + + + + + + + {{item.title}}: + {{item.value}} + + + + + + + + + {{checkData.bp || '-'}} + 孕前血压(mmHg) + + + {{checkData.yqWeight || '-'}} + 孕前体重(kg) + + + {{checkData.tzzs || '-'}} + 孕前BMI(kg/m) + + + + + + + 家族史: + + {{checkData.familyHistory}} + + + + + 孕产史: + + {{checkData.hisGestation}} + + + + 流产史: + + {{checkData.abortion}} + + + + + + + + + 既往史: + {{checkData.pastHistory}} + + + 孕期情况: + {{checkData.cestationInfo}} + + + + + + + + 全身疾病 + + + + + + {{item.title}}: + {{item.value || ''}} + + + + + + + + + + 妇科检查 + + + + + + {{item.title}}: + {{item.value || ''}} + + + + + + + + + + 产科检查 + + + + + + {{item.title}}: + {{item.value || ''}} + + + + + + + + + + 辅助检查 + + + + + + + {{item.top_title}} + + + + {{newItem.title}}: + {{newItem.value || ''}} + + + + + + + + HIV: + {{checkData.hivkt || ''}} + + + 彩超: + {{checkData.bChao || ''}} + + + + + + + + + + 诊断 + + + {{checkData.diagnosis + ', ' + (checkData.diagnosisOther ? checkData.diagnosisOther : '')}} + + + + + + + 处理意见 + + + {{checkData.treatOpinion}} + + \ No newline at end of file diff --git a/woman/pages/report_first/report_first.wxss b/woman/pages/report_first/report_first.wxss new file mode 100644 index 0000000..7016245 --- /dev/null +++ b/woman/pages/report_first/report_first.wxss @@ -0,0 +1,209 @@ +.top_title { + height: 68px; + background: white; + padding-left: 15px; +} + +.notice { + font-size: 12px; + color: #888; + padding: 15px 15px 0px 15px; + background: white; +} + +.top_title view:first-child { + font-size: 22px; + color: #333333; + font-weight: 555; + line-height: 22px; + margin-top: 13px; + display: inline-block; +} + +.top_title view:last-child { + font-size: 14px; + color: #888888; + margin-top: 3px; + display: inline-block; + margin-left: 20px; +} + + +/* section */ +.section { + background: white; + margin-top: 10px; + width: 100%; + overflow: hidden +} + +/* 检查内容 */ +report-info-bg { + border-top: solid 1rpx #d3d6d0; + border-bottom: solid 1rpx #d3d6d0; + background: white; + +} + +.report-info-box { + display: flex; + flex-wrap: wrap; + margin-left: 15px; + margin-right: 15px; + padding-top: 15px; +} + +.report-info-item { + min-width: 50%; + min-height: 30px; + font: lighter; + font-size: 14px; + color: #888888; + line-height: 14px; + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; +} + +.report-info-text-title { + margin-left:5px; + font-size: 14px; + color: #333333; +} + +/* 健康检查 体重 */ + +.health_exam { + height: 84px; + width: 33%; + background: white; + display: inline-block; + overflow: hidden; +} + +.health_exam_detail { + margin-top: 18px; + font-size: 22px; + color: #333333; + width: 100%; + text-align: center; +} + +.health_exam_item { + font-size: 12px; + color: #888888; + line-height: 14px; + width: 100%; + text-align: center; +} + + +/* 病史 */ +.medical_history { + min-height: 44px; + width: 100%; + font-size: 14px; + /* display: flex; + flex-direction: row; + align-items: center; + justify-content: flex-start; */ + padding-left: 15px; + clear: both; +} + +.medical_history_title { + float: left; + width: 66px; + color: #333333; + margin-top: 13px; +} + +.medical_history_content { + float: left; + width: calc(100% - 85px); + color: #888888; + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 10; + margin-top: 13px; +} + +.medical_history_last { + color: #6BB56E; +} + +.previous_history { + min-height: 44px; + border-bottom: 0.5px #E8E9DE solid; + width: calc(100% - 30px); + margin-left: 15px; + margin-right: 15px; +} + +.previous_history_title { + font-size: 14px; + width: 75px; + display: inline-block; + margin-top: 10px; +} + +.previous_history text { + font-size: 14px; + color: #888888; + line-height: 22px; +} + +.section_title { + height: 40px; + display: flex; + flex-direction: row; + align-items: center; + justify-content: flex-start; + border-bottom: 1px #E8E9DE solid; +} + +.section_title view { + background: #F4879B; + width: 4px; + height: 18px; +} + +.section_title text { + font-size: 14px; + color: #333333; + margin-left: 14px; +} + +.suggestion { + font-size: 14px; + color: #888888; + line-height: 22px; + padding:10px 15px 10px 15px; +} + + +.report-item-title { + width: 100%; + height: 35px; + display: flex; + flex-direction: row; + align-items: center; + justify-content: flex-start; +} + +.report-item-title-dot { + width: 6px; + height: 6px; + background: #F4879B; + border-radius: 3px; + display: inline-block; +} + +.report-item-title-text { + font-size: 14px; + color: #333333; +} \ No newline at end of file -- 1.8.3.1