From bd70ca8e0b3376ce150e8f1db8b796e1ed71c2f6 Mon Sep 17 00:00:00 2001 From: xianghenggang Date: Sat, 12 Aug 2017 13:58:26 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=AE=E8=AF=8A=E6=A3=80=E6=9F=A54=E4=B8=AA?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- littleApp_child/app.json | 7 +- littleApp_child/pages/checkTabList/checkTabList.js | 113 ++++++++ .../pages/checkTabList/checkTabList.json | 6 + .../pages/checkTabList/checkTabList.wxml | 307 +++++++++++++++++++++ .../pages/checkTabList/checkTabList.wxss | 115 ++++++++ littleApp_child/utils/apiFile.js | 6 + 6 files changed, 550 insertions(+), 4 deletions(-) create mode 100644 littleApp_child/pages/checkTabList/checkTabList.js create mode 100644 littleApp_child/pages/checkTabList/checkTabList.json create mode 100644 littleApp_child/pages/checkTabList/checkTabList.wxml create mode 100644 littleApp_child/pages/checkTabList/checkTabList.wxss diff --git a/littleApp_child/app.json b/littleApp_child/app.json index fa65b6f..5d6f45d 100644 --- a/littleApp_child/app.json +++ b/littleApp_child/app.json @@ -1,9 +1,9 @@ { "pages": [ - + "pages/home/home", + + "pages/checkTabList/checkTabList", - "pages/articleDetail/articleDetail", - "pages/home/home", "pages/articleLists/articleLists", "pages/hospitalList/hospitalList", @@ -16,7 +16,6 @@ "pages/doctorList/doctorList", "pages/doctor/doctor", - "pages/hospitalDetail/hospitalDetail", "pages/chatroom/chatroom", diff --git a/littleApp_child/pages/checkTabList/checkTabList.js b/littleApp_child/pages/checkTabList/checkTabList.js new file mode 100644 index 0000000..ecfa40d --- /dev/null +++ b/littleApp_child/pages/checkTabList/checkTabList.js @@ -0,0 +1,113 @@ +//articleLists.js 文章列表 +// 网络请求工具类 +var networkUtil = require('../../utils/network_util.js') +var api = require('../../utils/apiFile.js') +// 事件监听 +var event = require('../../utils/event.js') + +// 获取应用实例 +var app = getApp() +var patientId, checkTime + +Page({ + data: { + list: [ + // { likeCount: 12, title: "title1", introduction: "content1content1content1content1content1content1content1content1content1content1content1ds到场定损", image: "http://img02.tooopen.com/images/20150928/tooopen_sy_143912755726.jpg" } + // , { likeCount: 12, title: "title2", introduction: "content2", image: "http://img06.tooopen.com/images/20160818/tooopen_sy_175866434296.jpg" } + // , { likeCount: 12, title: "title2", introduction: "content2", image: "http://img06.tooopen.com/images/20160818/tooopen_sy_175833047715.jpg" } + // , { likeCount: 12, title: "title1", introduction: "content1", image: "http://img02.tooopen.com/images/20150928/tooopen_sy_143912755726.jpg" } + // , { likeCount: 12, title: "title2", introduction: "content2", image: "http://img06.tooopen.com/images/20160818/tooopen_sy_175866434296.jpg" } + // , { likeCount: 12, title: "title2", introduction: "content2", image: "http://img06.tooopen.com/images/20160818/tooopen_sy_175833047715.jpg" } + ], + + titles: ["问诊检查", "儿科检查", "一般检查", "辅助检查"], + current_index:0, + //问诊检查 + main_foster:"", + feed_type: "", + pee: "", + excrement: "", + sleep: "", + activity: "", + vitamin_d: "", + assist_food: "", + home_measure: "", + drug_gllergic: "", + morbidity: "", + other_text_wz: "", + + }, + onLoad: function (e) { + patientId = app.globalData.userId[0] + checkTime="2017-08-10" + // 数据初始化 + var self=this + this.setData({ + current_index: e.option.current_index + + }) + if (this.data.current_index==0){ + this.requestDataWZ() + } + + + + }, + onUnload: function() { + + }, + /*---------事件处理函数--------*/ + showMoreContent: function(e) { + var content = e.currentTarget.dataset.content + var title = e.currentTarget.dataset.title + wx.showModal({ + title: title, + content: content, + showCancel:false, + confirmText:'知道了', + confirmColor:'#48C17B' + }) + }, + + + titleClick:function(e){ + // console.log(e) + var self=this + var current_index = e.currentTarget.dataset.index + this.setData({ + current_index: current_index, + + }) + + // this.requestData() + }, + + /*---------自定义函数--------*/ + requestDataWZ(){ + var self = this + isRefresh = true + networkUtil.showLoading() + var param = { page: 10, limit: 100, patientId: patientId, checkTime: checkTime} + // console.log(param) + networkUtil._get(api.checkwz,param,function(res){ + console.log(res) + isRefresh = false + var arr = [] + if(page > 1) {// 加载更多模式 + arr = self.data.list + } + if (res.data.list.length < pageLimit){ + hasMore = false + }else{ + hasMore = true + } + arr = arr.concat(res.data.list) + self.setData({ + list:arr, + hasMore: hasMore + }) + },function(res){ + isRefresh = false + }) + }, +}) diff --git a/littleApp_child/pages/checkTabList/checkTabList.json b/littleApp_child/pages/checkTabList/checkTabList.json new file mode 100644 index 0000000..fd0bcae --- /dev/null +++ b/littleApp_child/pages/checkTabList/checkTabList.json @@ -0,0 +1,6 @@ +{ + "navigationBarBackgroundColor": "#48C17B ", + "navigationBarTitleText": "育儿知识", + "navigationBarTextStyle": "white", + "backgroundColor": "#d8dbd4" +} \ No newline at end of file diff --git a/littleApp_child/pages/checkTabList/checkTabList.wxml b/littleApp_child/pages/checkTabList/checkTabList.wxml new file mode 100644 index 0000000..852d20b --- /dev/null +++ b/littleApp_child/pages/checkTabList/checkTabList.wxml @@ -0,0 +1,307 @@ + + + + + + + + + + + + + 主要抚养人: + 1111主要1111主要1111主要1111主要 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 牙齿: + 1111主要1111主要1111主要1111主要 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 体温: + 1111主要1111主要1111主要1111主要 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 发育检查 + + + + 骨密度Z值: + 1111主要1111主要1111主要1111主要 + + + + + + + + + + + + + + + + + + + + + 血常规 + + + + 血红蛋白: + 1111主要1111主要1111主要1111主要 + + + + + + + + + + + + + + + + + + + + + 发育检查 + + + + 尿蛋白: + 1111主要1111主要1111主要1111主要 + + + + + + + + + + + + + + + + + + + + + 其他 + + 尿酮体尿酮体尿酮体尿酮体尿酮体尿酮体尿酮体尿酮体尿酮体尿酮体尿酮体尿酮体 + + + + + \ No newline at end of file diff --git a/littleApp_child/pages/checkTabList/checkTabList.wxss b/littleApp_child/pages/checkTabList/checkTabList.wxss new file mode 100644 index 0000000..c1b0bb8 --- /dev/null +++ b/littleApp_child/pages/checkTabList/checkTabList.wxss @@ -0,0 +1,115 @@ +.main { + background: #fff; + width: 100%; + margin-top: 40px; +} + +.title_top_view { + width: 100%; + display: flex; + background: white; + position: fixed; + height: 40px; + top: 0px; + z-index: 1; +} + +.title_scroll { + width: 100%; + /*可以滚动 */ + white-space: nowrap; + display: inline-block; +} + +/*隐藏Scrollview滚动条 */ + +::-webkit-scrollbar { + width: 0; + height: 0; + color: transparent; +} + +.scroll_title_label { + height: 40px; + width: 25%; + text-align: center; + line-height: 40px; + border: 1px; + font-size: 13px; + color: #494949; + border-bottom: 2px; + border-color: #ff5e5e; +} + +.title_text { + font-size: 13px; + padding-top: 10px; + padding-bottom: 7px; +} + +.content_line { + display: flex; + padding-top: 10px; + padding-right: 10px; + padding-left: 10px; +} + +.content_front { + font-size: 13px; + color: #222; + word-wrap: break-word; + margin-left: 5px; +} + +.content_after { + font-size: 13px; + color: #666; + margin-left: 5px; + height: 20px; + display: -webkit-box; + overflow: hidden; + text-overflow: ellipsis; + word-break: break-all; + -webkit-box-orient: vertical; + -webkit-line-clamp: 1; +} + +.other_line { + display: flex; + width: calc(100%-20); + background: #f5f5f5; + margin-top: 10px; + border-radius: 4px; + padding-top: 5px; + padding-bottom: 5px; + margin-left: 10px; + padding-left: 10px; + padding-right: 10px; + min-height: 57px; + margin-right: 10px; +} + +.other_text { + font-size: 13px; + margin-left: 5px; + color: #666; +} + +.fuzhu_check { + font-size: 12px; + color: #999; + background: #f5f5f5; + padding-left: 15px; + height: 30px; + line-height: 30px; +} +.fuzhu_other_text { + font-size: 13px; + color: #666; + background:#fff; + padding-left: 10px; + padding-right: 10px; + padding-top: 5px; + padding-bottom: 5px; + min-height:30px; +} \ No newline at end of file diff --git a/littleApp_child/utils/apiFile.js b/littleApp_child/utils/apiFile.js index 5ce6ad0..b39b7ef 100644 --- a/littleApp_child/utils/apiFile.js +++ b/littleApp_child/utils/apiFile.js @@ -18,4 +18,10 @@ module.exports = { messageTab:'/baby/messtab', //消息列表 messageList: '/baby/mess?typeid=', + //问诊接口 + checkwz: '/baby/check/wz', + //儿科检查 + checkeb: '/baby/check/eb', + //辅助检查 + checksub: '/baby/check/sub', } \ No newline at end of file -- 1.8.3.1