From 3ccb19702f5850c0ae066a206b8b27c797fc00f2 Mon Sep 17 00:00:00 2001 From: Lacue <337883080@qq.com> Date: Wed, 24 Feb 2021 16:11:18 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9C=BC=E4=BF=9D=E5=81=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- littleApp_child/app.json | 4 +- littleApp_child/pages/diet/measuret.js | 6 + littleApp_child/pages/diet/measuret.wxml | 4 +- littleApp_child/pages/eyeReoort/eyeReoort.js | 48 ++- littleApp_child/pages/eyeReoort/eyeReoort.wxml | 50 +-- littleApp_child/pages/eyeReoort/eyeReoort.wxss | 5 +- littleApp_child/pages/home/home.js | 35 ++- littleApp_child/pages/home/home.wxml | 13 +- .../pages/illnessArchives/illnessArchives.js | 10 + .../pages/illnessArchives/illnessArchives.wxml | 90 ------ littleApp_child/pages/weightReport/weightReport.js | 81 +++++ .../pages/weightReport/weightReport.json | 5 + .../pages/weightReport/weightReport.wxml | 347 +++++++++++++++++++++ .../pages/weightReport/weightReport.wxss | 199 ++++++++++++ .../pages/weightReportList/weightReportList.js | 89 ++++++ .../pages/weightReportList/weightReportList.json | 6 + .../pages/weightReportList/weightReportList.wxml | 6 + .../pages/weightReportList/weightReportList.wxss | 14 + littleApp_child/project.config.json | 21 +- littleApp_child/utils/apiFile.js | 6 +- littleApp_child/utils/network_util.js | 2 +- 21 files changed, 886 insertions(+), 155 deletions(-) create mode 100644 littleApp_child/pages/weightReport/weightReport.js create mode 100644 littleApp_child/pages/weightReport/weightReport.json create mode 100644 littleApp_child/pages/weightReport/weightReport.wxml create mode 100644 littleApp_child/pages/weightReport/weightReport.wxss create mode 100644 littleApp_child/pages/weightReportList/weightReportList.js create mode 100644 littleApp_child/pages/weightReportList/weightReportList.json create mode 100644 littleApp_child/pages/weightReportList/weightReportList.wxml create mode 100644 littleApp_child/pages/weightReportList/weightReportList.wxss diff --git a/littleApp_child/app.json b/littleApp_child/app.json index f7bab0d..b4d321e 100644 --- a/littleApp_child/app.json +++ b/littleApp_child/app.json @@ -41,7 +41,9 @@ "pages/consulting/consulting", "pages/consultationRecord/consultationRecord", "pages/chatHis/chatHis", - "pages/eyeReoort/eyeReoort" + "pages/eyeReoort/eyeReoort", + "pages/weightReport/weightReport", + "pages/weightReportList/weightReportList" ], "window": { "backgroundTextStyle": "light", diff --git a/littleApp_child/pages/diet/measuret.js b/littleApp_child/pages/diet/measuret.js index 10c374a..10f1572 100644 --- a/littleApp_child/pages/diet/measuret.js +++ b/littleApp_child/pages/diet/measuret.js @@ -276,6 +276,12 @@ Page({ }, 'application/json') }, + // 获取膳食检查列表 + getBabyNutritionList:function(){ + wx.navigateTo({ + url: '../weightReportList/weightReportList', + }) + }, /** * 生命周期函数--监听页面加载 */ diff --git a/littleApp_child/pages/diet/measuret.wxml b/littleApp_child/pages/diet/measuret.wxml index b4fb313..e0bd8f7 100644 --- a/littleApp_child/pages/diet/measuret.wxml +++ b/littleApp_child/pages/diet/measuret.wxml @@ -28,7 +28,9 @@ - + + 查看历史报告 + diff --git a/littleApp_child/pages/eyeReoort/eyeReoort.js b/littleApp_child/pages/eyeReoort/eyeReoort.js index a00f748..f9442c2 100644 --- a/littleApp_child/pages/eyeReoort/eyeReoort.js +++ b/littleApp_child/pages/eyeReoort/eyeReoort.js @@ -17,6 +17,7 @@ Page({ currentShowFormId:'', eyesReports:[], selectId:'', + uerInfo:{}, mouths : [ { id: "0", name: "0月龄", showFormId: "1", isShow: true }, { id: "1", name: "30天", showFormId: 1, isShow: true }, @@ -100,19 +101,56 @@ Page({ }) } }, + // 获取用户信息 + getUserInfo(userId) { + networkUtil.showLoading() + var self = this + var param = { + 'token': app.globalData.token + } + if (getApp().globalData.tourist == true) { + param.type = 2 + } + networkUtil._get(api.userInfo + app.globalData.currentId, param, function(res) { + + self.setData({ uerInfo : res.data.data }); + console.log('获取用户信息', self.uerInfo) + }, function(res) { + + if (res.errorcode == 4002) { + wx.showModal({ + title: '提示', + content: res.errormsg, + showCancel: false, + success: function(res) { + wx.setStorageSync('userToken', '') + wx.setStorageSync('userId', '') + getApp().globalData.token = '' + getApp().globalData.userId = '' + self.toLogin() + } + }) + } else { + networkUtil.showErrorToast(res.errormsg) + } + }) + }, /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { var me = this; + this.getUserInfo(); networkUtil._get(api.getBabyEyeCheck,{},function(res){ if(0 == res.data.errorcode){ now = res.data.now; - me.setData({ - eyesReports : res.data.data, - selectId:res.data.data[0].id - }) - me.calcMouths(res.data.data[0]) + if(res.data.data.length>0){ + me.setData({ + eyesReports : res.data.data, + selectId:res.data.data[0].id + }) + me.calcMouths(res.data.data[0]) + } } },function(res){ diff --git a/littleApp_child/pages/eyeReoort/eyeReoort.wxml b/littleApp_child/pages/eyeReoort/eyeReoort.wxml index 338b0fe..595e656 100644 --- a/littleApp_child/pages/eyeReoort/eyeReoort.wxml +++ b/littleApp_child/pages/eyeReoort/eyeReoort.wxml @@ -4,42 +4,24 @@ - 患者信息 + 儿童记录 姓名: - {{viewData.username}} - - - 性别: - {{viewData.sex}} - - - 年龄: - {{viewData.age}} - - - 婚姻状态: - {{viewData.marriage}} - - - - - 联系方式: - {{viewData.phone}} + {{uerInfo.username}} - 证件号: - {{viewData.certificateNum}} + 年龄: + {{uerInfo.monthage}} - 居住地: - {{viewData.addressRegister}} + 联系方式: + {{uerInfo.phone}} @@ -975,4 +957,24 @@ + + + + + + 处理意见 + + {{viewData.handleOpinionsId}}{{item.content}} + + + + + + + + 指导意见 + + {{viewData.guidanceOpinions}} + + \ No newline at end of file diff --git a/littleApp_child/pages/eyeReoort/eyeReoort.wxss b/littleApp_child/pages/eyeReoort/eyeReoort.wxss index 8c8b3fd..c491612 100644 --- a/littleApp_child/pages/eyeReoort/eyeReoort.wxss +++ b/littleApp_child/pages/eyeReoort/eyeReoort.wxss @@ -23,6 +23,9 @@ page{ font-weight: 700; padding-left: 9px; } +.baseInfo .textItem { + padding-right: 8px; +} .rowsFlex{ display: flex; } @@ -48,7 +51,7 @@ page{ .medicalHis .panelBox{ width: calc(100% - 20px); background-color: rgb(231, 243, 255); - margin-top: 10rpx; + margin: 10rpx 0; border-radius: 10rpx; padding: 10px; line-height: 23px; diff --git a/littleApp_child/pages/home/home.js b/littleApp_child/pages/home/home.js index 27c7491..d4e6b05 100644 --- a/littleApp_child/pages/home/home.js +++ b/littleApp_child/pages/home/home.js @@ -655,23 +655,24 @@ Page({ that.setData({ time: '0s' }) - if (res.errorcode == 4003) { - wx.showModal({ - title: '提示', - content: '暂未查询到您宝宝的建档信息,是否立即使用游客身份注册?', - success: function(res) { - if (res.confirm) { - wx.navigateTo({ - url: '../Register/Register?name=' + name + '&phone=' + phone, - }) - } else if (res.cancel) { - console.log('用户点击取消') - } - } - }) - } else { - networkUtil.showErrorToast(res.errormsg) - } + // if (res.errorcode == 4003) { + // wx.showModal({ + // title: '提示', + // content: '暂未查询到您宝宝的建档信息,是否立即使用游客身份注册?', + // success: function(res) { + // if (res.confirm) { + // wx.navigateTo({ + // url: '../Register/Register?name=' + name + '&phone=' + phone, + // }) + // } else if (res.cancel) { + // console.log('用户点击取消') + // } + // } + // }) + // } else { + // networkUtil.showErrorToast(res.errormsg) + // } + networkUtil.showErrorToast(res.errormsg) }) if (timeCount == 60) { this.keepTime() diff --git a/littleApp_child/pages/home/home.wxml b/littleApp_child/pages/home/home.wxml index a2a2c74..d073c61 100644 --- a/littleApp_child/pages/home/home.wxml +++ b/littleApp_child/pages/home/home.wxml @@ -63,10 +63,10 @@ 消息通知 - + 历史咨询记录 @@ -89,15 +89,16 @@ - 膳食录入 + 膳食管理 - + + - 检查报告 + 眼保健记录 diff --git a/littleApp_child/pages/illnessArchives/illnessArchives.js b/littleApp_child/pages/illnessArchives/illnessArchives.js index 58811ed..9787e41 100644 --- a/littleApp_child/pages/illnessArchives/illnessArchives.js +++ b/littleApp_child/pages/illnessArchives/illnessArchives.js @@ -395,6 +395,16 @@ Page({ }, function(res) { networkUtil.showErrorToast(res.errormsg) }) + networkUtil._get(api.getBabyDeptInfo,{'hospitalId':hospital.hospitalId}, function(res) { + if(0 == res.data.errorcode){ + that.setData({ + isOpen:res.data.data.isOpen, + doctors:res.data.data.doctors + }) + } + },function(res){ + networkUtil.showErrorToast(res.errormsg) + }) }, cancel(e){ this.setData({ diff --git a/littleApp_child/pages/illnessArchives/illnessArchives.wxml b/littleApp_child/pages/illnessArchives/illnessArchives.wxml index e962cab..f90ccce 100644 --- a/littleApp_child/pages/illnessArchives/illnessArchives.wxml +++ b/littleApp_child/pages/illnessArchives/illnessArchives.wxml @@ -140,96 +140,6 @@ - - - - - - - 儿童社保卡号 - - - - - - - - 儿童社保卡号 - - - - - - - - 儿童社保卡号 - - - - - - - - 儿童社保卡号 - - - - - - - - 儿童社保卡号 - - - - - - - - 儿童社保卡号 - - - - - - - - 儿童社保卡号 - - - - - - - 儿童社保卡号 - - - - - - - - 儿童社保卡号 - - - - - - - - 儿童社保卡号 - - - - - - - 儿童社保卡号 - - - - - diff --git a/littleApp_child/pages/weightReport/weightReport.js b/littleApp_child/pages/weightReport/weightReport.js new file mode 100644 index 0000000..a78b802 --- /dev/null +++ b/littleApp_child/pages/weightReport/weightReport.js @@ -0,0 +1,81 @@ +// pages/weightReport/weightReport.js +// 网络请求工具类 +var networkUtil = require('../../utils/network_util.js') +var api = require('../../utils/apiFile.js') +Page({ + /** + * 页面的初始数据 + */ + data: { + recordTime:'', + recordWeight:'', + info:'', + printDataS:{}, + isShow:0, + hospitalId:0, + id:0 + }, + + onLoad: function (options) { + networkUtil.showLoading() + this.setData({ + hospitalId:options.hospitalId, + id:options.id + }) + this.requestData() + }, + requestData() { + var self = this + networkUtil._get(api.querybabyAppDiet+'/'+self.data.id, { hospitalId:self.data.hospitalId}, function (res) { + if (!res.data.data || res.data.data == 0){ + networkUtil.showErrorToast('暂时没有体重报告!') + return + } + self.setData({ + info: res.data.data.userInfo.reportMonthAge, + printDataS:res.data.data, + date: res.data.now + }) + if (self.data.printDataS.oneDayRecipes && self.data.printDataS.oneDayRecipes.length == 1) { + var d = [], f = []; + d = self.data.printDataS.oneDayRecipes[0].split(";"); + for (var i = 0; i < d.length; i++) { + f[i] = d[i].split('-') + } + self.data.printDataS.oneDayRecipes = f; + } + if (self.data.printDataS.feedingWeek && self.data.printDataS.feedingWeek.length == 7) { + var sevends = ['mondays', 'tuesdays', 'wednesdays', 'thursdays', 'fridays', 'saturdays', 'sundays'] + for (var j = 0; j < 7; j++) { + var p = []; + var t = self.data.printDataS.feedingWeek[j].split(";"); + for (var k = 0; k < t.length; k++) { + p[k] = t[k].split("$"); + } + self.data.printDataS[sevends[j]] = p; + } + } + }, function (res) { + self.setData({ + printDataS:{} + }) + }) + }, + godetails(e){ + var id = e.currentTarget.dataset.id; + wx.pageScrollTo({ + scrollTop: 0 + }) + this.setData({ + isShow:Number(id) + }) + }, + goBack(){ + wx.pageScrollTo({ + scrollTop: 0 + }) + this.setData({ + isShow:0 + }) + } +}) \ No newline at end of file diff --git a/littleApp_child/pages/weightReport/weightReport.json b/littleApp_child/pages/weightReport/weightReport.json new file mode 100644 index 0000000..ebb6f42 --- /dev/null +++ b/littleApp_child/pages/weightReport/weightReport.json @@ -0,0 +1,5 @@ +{ + "navigationBarBackgroundColor": "#48C17B", + "navigationBarTitleText": "膳食报告详情", + "navigationBarTextStyle": "white" +} \ No newline at end of file diff --git a/littleApp_child/pages/weightReport/weightReport.wxml b/littleApp_child/pages/weightReport/weightReport.wxml new file mode 100644 index 0000000..51023b2 --- /dev/null +++ b/littleApp_child/pages/weightReport/weightReport.wxml @@ -0,0 +1,347 @@ + + + + 膳食营养报告{{recordTime}} + + + {{info}} + + + + + + 儿童基本信息 + 查看详情 + + + + 喂养指南 + 查看详情 + + + + 膳食结构 + 查看详情 + + + + 一日喂养参考 + 查看详情 + + + + 一周喂养参考 + 查看详情 + + + + 菜谱推荐 + 食谱推荐 + 查看详情 + + + + 辅食添加建议 + 查看详情 + + + + 挑食建议 + 查看详情 + + + + 进食行为建议 + 查看详情 + + + + 喂养常见问题及处理 + 查看详情 + + + + + + + 儿童基本信息 + + + + 姓名 + {{printDataS.userInfo.babyName}} + 就诊卡 + {{printDataS.userInfo.vcCardNo}} + 性别 + {{printDataS.userInfo.babySex}} + 月龄 + {{printDataS.userInfo.monthAge}} + 所需热量 + {{printDataS.userInfo.kaul}} + + + + + {{printDataS.userInfo.height}} + 测量身长(高) + + + {{printDataS.userInfo.weight}} + 测量体重 + + + {{printDataS.userInfo.bmi}} + BMI + + + + + 返回 + + + + + + 喂养指南 + + + {{printDataS.userInfo.totalSuggest}} + + {{val}} + + + 返回 + + + + + 膳食结构 + + + + {{fstjItem}} + + + 返回 + + + + + 一日喂养参考 + + + + {{item}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
早餐 + + + + + +
{{item.split(':')[0]}}{{item.split(':')[1]}}
+ + + +
早加餐 + + + + + +
{{item.split(':')[0]}}{{item.split(':')[1]}}
+ + + +
午餐 + + + + + +
{{item.split(':')[0]}}{{item.split(':')[1]}}
+ + + +
午加餐 + + + + + +
{{item.split(':')[0]}}{{item.split(':')[1]}}
+ + + +
晚餐 + + + + + +
{{item.split(':')[0]}}{{item.split(':')[1]}}
+ + + +
晚加餐 + + + + + +
{{item.split(':')[0]}}{{item.split(':')[1]}}
+ + + +
+
+ 返回 +
+ + + + 一周喂养参考 + + + + + + + + + + + + + + + + + + + + + + + +
时间周一周二周三周四周五周六周日
{{item[0]}}{{printDataS.mondays[$index][1]}}{{printDataS.tuesdays[$index][1]}}{{printDataS.wednesdays[$index][1]}}{{printDataS.thursdays[$index][1]}}{{printDataS.fridays[$index][1]}}{{printDataS.saturdays[$index][1]}}{{printDataS.sundays[$index][1]}}
+ + + + + + + + + + + + + + + + + + + + + +
时间周一周二周三周四周五周六周日
{{item.split(':')[0]}}{{printDataS.monday[$index].split(':')[1]}}{{printDataS.tuesday[$index].split(':')[1]}}{{printDataS.wednesday[$index].split(':')[1]}}{{printDataS.thursday[$index].split(':')[1]}}{{printDataS.friday[$index].split(':')[1]}}{{printDataS.saturday[$index].split(':')[1]}}{{printDataS.sunday[$index].split(':')[1]}}
+
+ 返回 +
+ + + + 菜谱推荐 + 食谱推荐 + + + + {{yszlItem}} + + + 返回 + + + + + 辅食添加建议 + + + + + {{ojbk}} + + + + 返回 + + + + + 挑食建议 + + + + {{tsItem}} + + + 返回 + + + + + 进食行为建议 + + + + {{val}} + + + 返回 + + + + + 喂养常见问题及处理 + + + + {{val}} + + + 返回 + \ No newline at end of file diff --git a/littleApp_child/pages/weightReport/weightReport.wxss b/littleApp_child/pages/weightReport/weightReport.wxss new file mode 100644 index 0000000..59d21e0 --- /dev/null +++ b/littleApp_child/pages/weightReport/weightReport.wxss @@ -0,0 +1,199 @@ +/* pages/weightReport/weightReport.wxss */ + +.top_bar { + height: 102px; + background-image: linear-gradient(-180deg, #88ddab 1%, #48C17B 100%); + width: calc(100% - 15px); + color: white; + font-size: 20px; + padding-top: 20px; + padding-left: 15px; +} + +.top_bar_text text:first-child { + font-size: 42px; + font-weight: 200; +} + +.top_bar_text text:last-child { + font-size: 14px; + font-weight: 200; + margin-left: 10px; +} +.collectionView { + display: flex; + flex-wrap: wrap; + justify-content: space-between; + margin-left: 20px; + margin-right: 20px; +} + +.cell { + background: white; + width: calc(50% - 5px); + margin-top: 10px; + box-shadow: 0 1px 19px 4px #F3F2EE; + border-radius: 4px; +} + +.cell_img { + width: 42px; + height: 42px; + background: #b3eecc; + margin-left: 20px; + font-size: 50px; + text-align: center; + color: #48C17B; +} + +.cell_img view { + + transform: translateY(-7px); +} + +.cell_title { + margin-left: 20px; + margin-top: 12px; + font-weight: 600; + font-size: 16px; + color: #261F0C; +} + +.cell_checkDetail { + margin-left: 20px; + margin-top: 32px; + font-size: 12px; + color: #b3eecc; + font-weight: 600; + margin-bottom: 24px; +} + +/* 个人信息 */ +.top_title { + font-size: 20px; + color: #261f0c; + font-weight: 600; + height: 54px; + background: white; +} + +.top_title image { + width: 8px; + height: 20px; + background: #48C17B; + margin-right: 10px; +} + +.info_card { + background: #fff; + box-shadow: 0 1px 19px 4px #f3f2ee; + border-radius: 4px; + display: flex; + flex-wrap: wrap; + margin: 10px 20px 20px 20px; +} + +.info_card_title { + font-size: 15px; + color: #261f0c; + font-weight: 600; + width: 100px; + text-align: center; + height: 44px; + line-height: 44px; +} + +.info_card_content { + width: calc(100% - 120px); + font-size: 15px; + color: #89857b; + height: 44px; + line-height: 44px; +} + +.weightInfo_card { + margin: 20px; + background: #fff; + box-shadow: 0 1px 19px 4px #f3f2ee; + border-radius: 4px; + display: flex; +} + +.weightInfo_item { + flex: 1; + height: 84px; + text-align: center; +} + +.weightInfo_item_text { + font-size: 28px; + color: #333; + font-weight: 555; + margin-top: 10px; +} + +.weightInfo_item_unit { + font-size: 13px; + color: #a6a091; +} + +.risk_view_item { + min-height: 24px; + padding-top: 5px; + padding-bottom: 5px; + background: #f4879b; + border-radius: 17px; + color: white; + + font-size: 15px; + display: inline-block; + padding-left: 15px; + padding-right: 15px; +} +.white-block{ + background: #fff; + padding: .5rem; +} +.caca-table{ + border-top-left-radius: 4mm; + overflow: hidden; +} +.caca-table tr th{ + background-color: #51D8DA; + color: #fff; + border-right:2px solid #fff; + height: 10mm; + font-weight: normal; +} +.caca-table tr:nth-child(2n+2){ + background-color: #CCF7F8; +} +.caca-table tr:nth-child(2n+1){ + background-color: #ABECED; +} +.caca-table td{ + border-right:2px solid #fff; + padding: 2mm 0.5mm; + height: 20mm; +} +.caca-table td:nth-child(1){ + min-width: 12mm; +} +.boxShadow{ + margin-top: .3rem; + box-shadow: 0 2rpx 20rpx 2rpx #999; +} +.my_apport { + height: 30px; + text-align: center; + line-height: 30px; + font-size: 14px; + margin-top: 5px; + right: 10px; + background: #48c17b; + border-radius: 50rem; + color: white; + margin: 15px auto 5px auto; + position: relative; + width: 120px; +} \ No newline at end of file diff --git a/littleApp_child/pages/weightReportList/weightReportList.js b/littleApp_child/pages/weightReportList/weightReportList.js new file mode 100644 index 0000000..521396d --- /dev/null +++ b/littleApp_child/pages/weightReportList/weightReportList.js @@ -0,0 +1,89 @@ +// pages/weightReportList/weightReportList.js +var networkUtil = require('../../utils/network_util.js') +var api = require('../../utils/apiFile.js') +var exchgeDate = require('../../utils/exchgeDate.js') +Page({ + + /** + * 页面的初始数据 + */ + data: { + listData:[] + }, + // 获取膳食检查列表 + getBabyNutritionList:function(){ + let self = this; + networkUtil._get(api.getBabyNutritionList, {}, res => { + if (res.statusCode == 200 && res.data.errorcode == 0) { + var data = res.data.data; + if (data.length<=0){ + wx.showModal({ + title: '提醒', + content: '为查询到历史报告信息', + showCancel: false + }); + return + } + self.setData({ + listData:data + }) + } + }, err => { + }) + }, + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + this.getBabyNutritionList() + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } +}) \ No newline at end of file diff --git a/littleApp_child/pages/weightReportList/weightReportList.json b/littleApp_child/pages/weightReportList/weightReportList.json new file mode 100644 index 0000000..2fd38d4 --- /dev/null +++ b/littleApp_child/pages/weightReportList/weightReportList.json @@ -0,0 +1,6 @@ +{ + "navigationBarBackgroundColor": "#48C17B", + "navigationBarTitleText": "查看历史记录", + "navigationBarTextStyle": "white", + "usingComponents": {} +} \ No newline at end of file diff --git a/littleApp_child/pages/weightReportList/weightReportList.wxml b/littleApp_child/pages/weightReportList/weightReportList.wxml new file mode 100644 index 0000000..1107a5b --- /dev/null +++ b/littleApp_child/pages/weightReportList/weightReportList.wxml @@ -0,0 +1,6 @@ + + + + 记录时间{{item.recordTime}} 月龄{{item.monthAge}} + + diff --git a/littleApp_child/pages/weightReportList/weightReportList.wxss b/littleApp_child/pages/weightReportList/weightReportList.wxss new file mode 100644 index 0000000..3534581 --- /dev/null +++ b/littleApp_child/pages/weightReportList/weightReportList.wxss @@ -0,0 +1,14 @@ +/* pages/weightReportList/weightReportList.wxss */ +.list{ + box-shadow: 0 2rpx 20rpx 2rpx #999; +} +.item{ + background: #fff; + height: 64rpx; + line-height: 64rpx; + padding: 1rem; + border-bottom: 1px solid rgb(218, 218, 218); +} +.item text { + padding: 0 0.2rem 0 0; +} \ No newline at end of file diff --git a/littleApp_child/project.config.json b/littleApp_child/project.config.json index 848462f..55a3251 100644 --- a/littleApp_child/project.config.json +++ b/littleApp_child/project.config.json @@ -6,35 +6,41 @@ "setting": { "urlCheck": true, "es6": true, + "enhance": false, "postcss": true, "preloadBackgroundData": false, "minified": true, "newFeature": true, "coverView": true, + "nodeModules": false, "autoAudits": false, "showShadowRootInWxmlPanel": true, "scopeDataCheck": false, + "uglifyFileName": false, "checkInvalidKey": true, "checkSiteMap": true, "uploadWithSourceMap": true, - "useMultiFrameRuntime": false, + "compileHotReLoad": false, + "useMultiFrameRuntime": true, "useApiHook": true, + "useApiHostProcess": false, "babelSetting": { "ignore": [], "disablePlugins": [], "outputPath": "" }, + "enableEngineNative": false, + "bundle": false, "useIsolateContext": true, "useCompilerModule": true, "userConfirmedUseCompilerModuleSwitch": false, "userConfirmedBundleSwitch": false, "packNpmManually": false, "packNpmRelationList": [], - "minifyWXSS": true, - "bundle": false + "minifyWXSS": true }, "compileType": "miniprogram", - "libVersion": "2.2.1", + "libVersion": "2.15.0", "appid": "wx60e0071c56800f71", "projectname": "littleApp_child", "isGameTourist": false, @@ -53,10 +59,9 @@ "miniprogram": { "list": [ { - "id": 0, - "name": "多选", - "pathName": "components/multiple/multiple", - "query": " illnessList:[{id:'1',name:'咳嗽'},{id:'2',name:'发热'},{id:'3',name:'贫血'},{id:'4',name:'腹泻'},{id:'5',name:'肺炎'}, {id:'6',name:'手足口病'},{id:'7',name:'鹅口疮'},{id:'8',name:'湿疹'},{id:'9',name:'肠炎'},{id:'10',name:'便秘'}],", + "name": "ss", + "pathName": "pages/weightReportList/weightReportList", + "query": "recordTime=2019-07-10&weight=10", "scene": null }, { diff --git a/littleApp_child/utils/apiFile.js b/littleApp_child/utils/apiFile.js index a99ec49..5787555 100644 --- a/littleApp_child/utils/apiFile.js +++ b/littleApp_child/utils/apiFile.js @@ -100,5 +100,9 @@ module.exports = { //儿童疾病建档获取就诊医生 getBabyDeptInfo:'baby/getBabyDeptInfo', //眼科检查 - getBabyEyeCheck:'baby/getBabyEyeCheck' + getBabyEyeCheck:'baby/getBabyEyeCheck', + //膳食报告列表 + getBabyNutritionList:'baby/queryBabyNutritionList', + //膳食报告详情 + querybabyAppDiet:'baby/querybabyAppDiet' } \ No newline at end of file diff --git a/littleApp_child/utils/network_util.js b/littleApp_child/utils/network_util.js index a04f47e..be483bc 100644 --- a/littleApp_child/utils/network_util.js +++ b/littleApp_child/utils/network_util.js @@ -4,7 +4,7 @@ // 18382670036 多层次 // 18328537371 陈云 666666 // 0测试环境 1正式环境 2演示环境 3衡水 -var Builing_Release_AppStore = 0 +var Builing_Release_AppStore = 0; // 获取服务器地址 function kServerBaseUrl() { switch (Builing_Release_AppStore) { -- 1.8.3.1