Commit 307aafd79ccdebef68cb4117a78191188669ad1e

Authored by shaoshuai
1 parent 53f7b1c195
Exists in master

孕前优生

Showing 7 changed files with 244 additions and 2 deletions

woman/app.json View file @ 307aafd
... ... @@ -13,7 +13,10 @@
13 13 "pages/cancerCheck/cancerCheck",
14 14 "pages/report_first/report_first",
15 15 "pages/premaritalCheckup/premaritalCheckup",
16   - "pages/premaritalReport/premaritalReport"
  16 + "pages/premaritalReport/premaritalReport",
  17 + "pages/eugenics/eugenics"
  18 +
  19 +
17 20  
18 21 ],
19 22 "window": {
woman/pages/eugenics/eugenics.js View file @ 307aafd
  1 +//articleLists.js 文章列表
  2 +// 网络请求工具类
  3 +var networkUtil = require('../../utils/network_util.js')
  4 +var api = require('../../utils/apiFile.js')
  5 +var hospital = ''
  6 +
  7 +Page({
  8 +
  9 + data: {
  10 + checkList: ['白带检查','血细胞分析','尿常规检查','血型','血糖','乙肝血清学检查','肝肾功能检测','甲状腺功能检测','病毒筛查','B超'],
  11 + text : "qqqaaa",
  12 + baseCheck: [{ 'title': '首诊日期', 'word': 'checkTime', value: '' }, { 'title': '末次月经', 'word': 'lastMenses', value: '' }, { 'title': '预产期', 'word': 'dueDate', value: '' }, { 'title': '月经周期', 'word': 'mensDay', value: '' }],
  13 + bodyCheck: [{ title: '身高', word: 'height', value: '' }, { title: '体重', word: 'weight', value: '' }, { title: '心', word: 'heart', value: '' }, { title: '肺', word: 'lungs', value: '' }],
  14 +
  15 + womenCheck: [{ title: '外阴', word: 'vulva', value: '' }, { title: '阴道', word: 'vagina', value: 'vagina' }, { title: '宫颈', word: 'cervical', value: '' }, { title: '宫体', word: 'uterus', value: '' }, { title: '附件', word: 'fujian', value: '' }],
  16 +
  17 + obstetricsCheck: [{ title: '腹围', word: 'fuwei', value: '' }, { title: '宫高', word: 'gongGao', value: '' }, { title: '胎位', word: 'fetalPositionVal', value: '' }, { title: '胎心', word: 'heartRateVal', value: '' }, { title: '先露', word: 'fetalPresentationVal', value: '' }],
  18 +
  19 + assistantCheck: [{ 'top_title': '血常规', content: [{ 'title': '血红蛋白', 'word': 'xhdb', value: '' }, { 'title': '血红蛋白券', 'word': '', value: '' }, { 'title': '白细胞计数', 'word': 'bxbjs', value: '' }, { 'title': '血小板计数', 'word': 'platelet', value: '' }, { 'title': '血常规其他', 'word': 'chgOther', value: '' }] },
  20 +
  21 + { '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: '' }] },
  22 +
  23 + { 'top_title': '肾功', content: [{ 'title': '血清肌酐', 'word': 'xqjq', value: '' }, { 'title': '血尿素氮', 'word': 'xnsd', value: '' }] },
  24 +
  25 + { 'top_title': '血型', content: [{ 'title': '血型', 'word': 'abo', value: '' }, { 'title': 'RH血型', 'word': 'rh', value: '' }, { 'title': '血糖', 'word': 'bloodSugar', value: '' }] },
  26 +
  27 + { '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: '' }] },
  28 +
  29 + { 'top_title': '尿常规', content: [{ 'title': '尿蛋白', 'word': 'ndb', value: '' }, { 'title': '尿糖', 'word': 'nt', value: '' }, { 'title': '尿酮体', 'word': 'urineKetone', value: '' }, { 'title': '尿潜血', 'word': 'bld', value: '' }, { 'title': '尿其他', 'word': 'ncgOther', value: '' }] },],
  30 + // 孕产史
  31 + ycHistory:''
  32 + },
  33 + onLoad: function (options) {
  34 + //hospital = options.hospital
  35 + //this.requestData(options.id)
  36 + },
  37 + /*---------自定义函数--------*/
  38 + requestData(Id) {
  39 + var self = this
  40 + networkUtil.showLoading()
  41 + // 报告详情
  42 + networkUtil._get(api.pregnancyReports + '/' + Id, {}, function (res) {
  43 + if (res.data.list.length == 0) {
  44 + return
  45 + }
  46 + var data = res.data.list[0].result2
  47 + self.getBaseCheckWith(data)
  48 + self.getbodyCheck(data)
  49 + self.getwomenCheck(data)
  50 + self.getobstetricsCheck(data)
  51 + self.getassistantCheck(data)
  52 + var risk = ''
  53 + for (var key in res.data.list[0].result) {
  54 + if (res.data.list[0].result[key].k == '高危因素') {
  55 + risk = res.data.list[0].result[key].v
  56 + }
  57 + }
  58 + self.setData({
  59 + checkData:data,
  60 + risk:risk
  61 + })
  62 + }, function (res) {
  63 +
  64 + })
  65 + },
  66 + // 检查基础信息
  67 + getBaseCheckWith(data){
  68 + var baseCheck = this.data.baseCheck
  69 + for (var index in this.data.baseCheck) {
  70 + var item = this.data.baseCheck[index]
  71 + if (data[item.word]) {
  72 + item.value = data[item.word]
  73 + }
  74 + }
  75 + this.setData({
  76 + baseCheck: baseCheck
  77 + })
  78 + },
  79 + // 检查基础信息
  80 + getbodyCheck(data) {
  81 + var bodyCheck = this.data.bodyCheck
  82 + for (var index in bodyCheck) {
  83 + var item = bodyCheck[index]
  84 + if (data[item.word]) {
  85 + item.value = data[item.word]
  86 + }
  87 + }
  88 + this.setData({
  89 + bodyCheck: bodyCheck
  90 + })
  91 + },
  92 + // 检查基础信息
  93 + getwomenCheck(data) {
  94 + var womenCheck = this.data.womenCheck
  95 + for (var index in womenCheck) {
  96 + var item = womenCheck[index]
  97 + if (data[item.word]) {
  98 + item.value = data[item.word]
  99 + }
  100 + }
  101 + this.setData({
  102 + womenCheck: womenCheck
  103 + })
  104 + },
  105 + // 检查基础信息
  106 + getobstetricsCheck(data) {
  107 + var obstetricsCheck = this.data.obstetricsCheck
  108 + for (var index in obstetricsCheck) {
  109 + var item = obstetricsCheck[index]
  110 + if (data[item.word]) {
  111 + item.value = data[item.word]
  112 + }
  113 + }
  114 + this.setData({
  115 + obstetricsCheck: obstetricsCheck
  116 + })
  117 + },
  118 + // 检查基础信息
  119 + getassistantCheck(data) {
  120 + var assistantCheck = this.data.assistantCheck
  121 + for (var index in assistantCheck) {
  122 + var item = assistantCheck[index]
  123 + for (var newItem in item.content) {
  124 + if (data[item.content[newItem].word]) {
  125 + item.content[newItem].value = data[item.content[newItem].word]
  126 + }
  127 + }
  128 + }
  129 + this.setData({
  130 + assistantCheck: assistantCheck
  131 + })
  132 + },
  133 + getycHistory(data){
  134 + var str = ''
  135 + if(data.pregnacyTimes){
  136 + str = '孕次:' + data.pregnacyTimes + '次'
  137 + }
  138 + if (data.prodTime) {
  139 + str = '产次:' + data.prodTime + '次'
  140 + }
  141 + if (data.pregnacyTimes) {
  142 + str = '孕次:' + data.pregnacyTimes + '次'
  143 + }
  144 + },
  145 + triggers(e) {
  146 + console.log(e.target.dataset.idtype,e); // 1
  147 +},
  148 + goDetail(e) {
  149 + console.log("检测详情",e,e.currentTarget.dataset)
  150 + let item = networkUtil.urlParams("index",e)
  151 +
  152 + console.log("检测",item)
  153 + wx.navigateTo({
  154 + url: '../premaritalReport/premaritalReport?index='+item,
  155 + })
  156 + },
  157 +
  158 +})
woman/pages/eugenics/eugenics.json View file @ 307aafd
  1 +{
  2 + "navigationBarBackgroundColor": "#ffffff",
  3 + "navigationBarTitleText": "孕前优生",
  4 + "navigationBarTextStyle": "black"
  5 +
  6 +}
woman/pages/eugenics/eugenics.wxml View file @ 307aafd
  1 +<!--pages/premaritalCheckup/premaritalCheckup.wxml-->
  2 +<view>
  3 + <view>
  4 + <view class = "menuList_title margin-lr40 margin-tb38">婚前报告查询</view>
  5 + <view class="menuList_bg margin-l40 i-column">
  6 + <view class="font-white-40 font-weight-500 margin-l26 margin-t30">婚前医学检查证明</view>
  7 + <view class="i-row i-between i-align-center margin-l34 margin-r12 margin-t50">
  8 + <view class="font-white-30"></view>
  9 + <view class="i-row i-align-center">
  10 + <view class="menuList_text">详细报告</view>
  11 + <view class="menuList_next margin-l5 margin-r12"></view>
  12 + </view>
  13 + </view>
  14 + </view>
  15 + </view>
  16 + <view>
  17 +
  18 + <view class = "menuList_title margin-lr40 margin-tb38">检验报告查询</view>
  19 + <view class="menuList_bg margin-l40 i-column margin-b20" wx:for="{{checkList}}" wx:key="index" >
  20 + <view class="font-white-40 font-weight-500 margin-l26 margin-t30">{{item}}</view>
  21 + <view class="i-row i-between i-align-center margin-l34 margin-r12 margin-t50">
  22 + <view class="font-white-30">未见异常</view>
  23 + <view class="i-row i-align-center" bindtap="goDetail" data-index="{{index}}">
  24 + <view class="menuList_text">详细报告</view>
  25 + <view class="menuList_next margin-l5 margin-r12"></view>
  26 + </view>
  27 + </view>
  28 + </view>
  29 + </view>
  30 +</view>
woman/pages/eugenics/eugenics.wxss View file @ 307aafd
  1 +/* pages/cancerCheck/cancerCheck.wxss */
  2 +/* pages/folicAcid/folicAcid.wxss */
  3 +.menuList_title {
  4 + font-size: 34rpx;
  5 + font-weight: 600;
  6 + line-height: 34rpx;
  7 + background: linear-gradient(135deg, #FFB4B4 0%, #FF8EA9 100%);
  8 + -webkit-background-clip: text;
  9 + -webkit-text-fill-color: transparent;
  10 +}
  11 +
  12 +.menuList_bg{
  13 + width: 670rpx;
  14 + height: 180rpx;
  15 + background: linear-gradient(134deg, rgba(255,150,171,0.61) 0%, rgba(255,174,178,0.07) 100%);
  16 + box-shadow: 0rpx 4rpx 8rpx 5rpx rgba(245,33,84,0.1);
  17 + border-radius: 20rpx 20rpx 20rpx 20rpx;
  18 + opacity: 1;
  19 +}
  20 +
  21 +.menuList_text {
  22 + font-size: 26rpx;
  23 + font-weight: 500;
  24 + background: linear-gradient(135deg, #FFB4B4 0%, #FF8EA9 100%);
  25 + -webkit-background-clip: text;
  26 + -webkit-text-fill-color: transparent;
  27 + line-height: 26rpx;
  28 +}
  29 +.menuList_next{
  30 + width: 20rpx;
  31 + height: 20rpx;
  32 + opacity: 1;
  33 + border: 2rpx solid #FF8EA9;
  34 + display: inline-block;
  35 + width: 18rpx;
  36 + height: 18rpx;
  37 + border-bottom: none;
  38 + border-left: none;
  39 + transform: rotate(45deg);
  40 +}
woman/pages/home/home.js View file @ 307aafd
... ... @@ -950,6 +950,11 @@
950 950 url: '../premaritalCheckup/premaritalCheckup',
951 951 })
952 952 },
  953 + goMenu2(e) {
  954 + wx.navigateTo({
  955 + url: '../eugenics/eugenics',
  956 + })
  957 + },
953 958 goMenu3(e) {
954 959 wx.navigateTo({
955 960 url: '../cancerCheck/cancerCheck',
woman/pages/home/home.wxml View file @ 307aafd
... ... @@ -39,7 +39,7 @@
39 39 <image class="menu" src="../../source/imageSource/menu/hunqianjiancha.png" mode="aspectFill"></image>
40 40 <view class="font-333-26 margin-t12">婚前检查</view>
41 41 </view>
42   - <view class="i-column">
  42 + <view class="i-column" bindtap="goMenu2">
43 43 <image class="menu" src="../../source/imageSource/menu/yunqianyousheng.png" mode="aspectFill"></image>
44 44 <view class="font-333-26 margin-t12">孕前优生</view>
45 45 </view>