diff --git a/pages/articleList/index.js b/pages/articleList/index.js index 5f82add..f6cd067 100644 --- a/pages/articleList/index.js +++ b/pages/articleList/index.js @@ -77,6 +77,7 @@ Page({ // 加载更多数据 async loadMore() { + console.log('loadMore'); if (this.data.hasMore && !this.data.loading) { this.setData({ page: this.data.page + 1 diff --git a/pages/articleList/index.less b/pages/articleList/index.less index 63f1293..07e5328 100644 --- a/pages/articleList/index.less +++ b/pages/articleList/index.less @@ -1,8 +1,9 @@ .page { background-color: rgba(248,248,248,1.000000); position: relative; - - padding: 0 28rpx; + height: 100vh; + overflow: hidden; + } .image_3 { @@ -14,10 +15,17 @@ z-index: 0; } .box_1 { - background-size: 100% 100%; - padding-bottom: 60rpx; + // background-size: 100% 100%; + // padding-bottom: 60rpx; + box-sizing: border-box; position: relative; z-index: 1; + height: 100%; + padding-top: 12rpx; + .scroll-view-box{ + padding: 0 28rpx; + padding-bottom: 160rpx; + } } .image_1 { height: 88rpx; @@ -45,7 +53,6 @@ .box_3 { background-color: rgba(255,255,255,1.000000); border-radius: 40rpx; - margin-top: 36rpx; display: flex; justify-content: space-between; padding: 10rpx 10rpx 10rpx 24rpx; @@ -197,11 +204,12 @@ border-radius: 30rpx; justify-content: center; align-items: center; padding: 40rpx 0; + padding-top: 26rpx; } .no-more-text { color: rgba(96,98,102,1); - font-size: 28rpx; + font-size: 24rpx; font-family: PingFangSC-Regular; } diff --git a/pages/articleList/index.wxml b/pages/articleList/index.wxml index 81eac90..f4f58be 100644 --- a/pages/articleList/index.wxml +++ b/pages/articleList/index.wxml @@ -1,39 +1,31 @@ - - - - - - - + + + + + + + + + + + {{item.title}} + + {{item.contentText}} + + + + + + 加载中... + + + 没有更多数据了 + + + 暂无相关文章 - - {{item.title}} - - {{item.contentText}} - - - - - - - 加载中... - - - 没有更多数据了 - - - 暂无相关文章 - - - + \ No newline at end of file diff --git a/pages/followUp/index.js b/pages/followUp/index.js index c22c2aa..6fb40f6 100644 --- a/pages/followUp/index.js +++ b/pages/followUp/index.js @@ -192,6 +192,7 @@ Page({ }, planId:'', + questionnaire_id: '', async toQuestionnaire() { let valid = true; // 必填项校验 @@ -225,7 +226,7 @@ Page({ data.nutritional_indicator_image = data.nutritional_indicator_image.length > 0 ? data.nutritional_indicator_image.join(',') : '' data.is_have_cyst = data.is_have_cyst ? Number(data.is_have_cyst) : 0 data.is_have_ascites = data.is_have_ascites ? Number(data.is_have_ascites) : 0 - await request('patient/follow_questionnaire', 'post',{plan_id: Number(this.planId), questionnaire_id: Number(this.planId), ...data}) + await request('patient/follow_questionnaire', 'post',{plan_id: Number(this.planId), questionnaire_id: Number(this.questionnaire_id), ...data}) wx.showToast({ title: '提交成功', icon: 'success', @@ -376,15 +377,19 @@ Page({ */ onLoad(options) { this.planId = options.planId + this.questionnaire_id = options.questionnaire_id this.setData({ ['form.follow_name']: options.name, ['form.follow_date']: options.time }) - this.getDetail() + console.log(options) + if(options.questionnaire_id != 0){ + this.getDetail() + } }, async getDetail(){ - const res = await request('patient/questionnaire_info', 'post',{patient_id : 0, questionnaire_id: Number(this.planId)}) + const res = await request('patient/questionnaire_info', 'post',{patient_id : 0, questionnaire_id: Number(this.questionnaire_id)}) const data = res data.liver_function_image = data.liver_function_image ? data.liver_function_image.split(',') : [] data.b_mode_image = data.b_mode_image ? data.b_mode_image.split(',') : [] diff --git a/pages/message/index.js b/pages/message/index.js index e62cd6e..b1e7f63 100644 --- a/pages/message/index.js +++ b/pages/message/index.js @@ -101,15 +101,16 @@ Page({ }, toQuestionnaire(e) { - const { id, time, name } = e.currentTarget.dataset + const { item } = e.currentTarget.dataset + console.log(item) wx.navigateTo({ - url: `/pages/followUp/index?planId=${id}&name=${name}&time=${time}` , + url: `/pages/followUp/index?planId=${item.id}&name=${item.plan_name}&time=${item.plan_date}&questionnaire_id=${item.questionnaire_id}` , }) }, goQuestionnaire(e) { const data = this.data.dataList[0] wx.navigateTo({ - url: `/pages/followUp/index?planId=${data.id}&name=${data.plan_name}&time=${data.plan_date}` , + url: `/pages/followUp/index?planId=${data.id}&name=${data.plan_name}&time=${data.plan_date}&questionnaire_id=${data.questionnaire_id}` , }) }, toRegister() { diff --git a/pages/message/index.less b/pages/message/index.less index a80b8db..9864a92 100644 --- a/pages/message/index.less +++ b/pages/message/index.less @@ -1,9 +1,22 @@ /* pages/clockIn/index.wxss */ -.clockin{ - padding: 28rpx; - padding-bottom: 130rpx; +.clockin { + // padding-bottom: 130rpx; position: relative; - .clockin-img{ + height: 100vh; + overflow: hidden; + + scroll-view { + height: 100%; + box-sizing: border-box; + padding-top: 12rpx; + .scroll-view-box { + padding: 28rpx; + padding-top: 0px; + padding-bottom: 280rpx; + } + } + + .clockin-img { position: absolute; width: 100%; @@ -11,10 +24,12 @@ top: 0; left: 0; } - .new-time{ + + .new-time { font-size: 28rpx; } - .clockin-item{ + + .clockin-item { margin-bottom: 28rpx; background-color: #fff; border-radius: 20rpx; @@ -22,7 +37,8 @@ position: relative; overflow: hidden; z-index: 1; - .margin-16{ + + .margin-16 { position: absolute; top: 0; right: 0; @@ -34,57 +50,66 @@ padding: 0 24rpx; font-size: 26rpx; } - .success{ + + .success { color: #00B095; background: rgba(0, 176, 149, 0.1); } - .primary{ + + .primary { color: var(--td-brand-color); background: rgba(237, 243, 248, 1); } - .item-top{ + + .item-top { display: flex; justify-content: space-between; margin-bottom: 10rpx; font-size: 32rpx; font-weight: bold; - - .active{ + + .active { color: var(--td-brand-color); } } - .medicine-name{ + + .medicine-name { font-weight: bold; margin-bottom: 12rpx; } - .dose{ + + .dose { font-size: 28rpx; // margin-bottom: 30rpx; color: #909399; } - .t-button{ + + .t-button { margin-top: 30rpx; } } - .footer-example{ + + .footer-example { position: fixed; - bottom: 40rpx; + bottom: 30rpx; display: flex; justify-content: center; width: 100%; left: 0; z-index: 2; - view{ + + view { width: 246rpx; height: 82rpx; background: #FFFFFF; - box-shadow: 0rpx 2rpx 14rpx 0rpx rgba(0,91,162,0.08); + box-shadow: 0rpx 2rpx 14rpx 0rpx rgba(0, 91, 162, 0.08); border-radius: 40rpx; line-height: 82rpx; text-align: center; font-size: 30rpx; color: #222222; - text{ + + text { font-size: 40rpx; color: var(--td-brand-color); vertical-align: middle; @@ -104,9 +129,10 @@ display: flex; align-items: center; justify-content: center; - background: linear-gradient( 152deg, #FF7954 0%, #D43030 100%); - box-shadow: 0rpx 2rpx 20rpx 0rpx rgba(236,89,68,0.21); - text{ + background: linear-gradient(152deg, #FF7954 0%, #D43030 100%); + box-shadow: 0rpx 2rpx 20rpx 0rpx rgba(236, 89, 68, 0.21); + + text { color: #fff; font-size: 48rpx; } diff --git a/pages/message/index.wxml b/pages/message/index.wxml index 257a7d1..8bcce17 100644 --- a/pages/message/index.wxml +++ b/pages/message/index.wxml @@ -1,38 +1,36 @@ - + - - - - 已完成 - 未开始 - - 待开始 - {{item.diffDays}}天后 + + + + + + 已完成 + 未开始 + + 待开始 + {{item.diffDays}}天后 + + + {{item.plan_date}} + + {{item.plan_name}} + + 填写随访问卷 + + + 预约挂号 + + - - {{item.plan_date}} - - - {{item.plan_name}} - 填写随访问卷 - 预约挂号 - - + - + 添加随访 - - - - + \ No newline at end of file diff --git a/pages/therapeuticRegimen/index.less b/pages/therapeuticRegimen/index.less index 49ca8be..f6e1b12 100644 --- a/pages/therapeuticRegimen/index.less +++ b/pages/therapeuticRegimen/index.less @@ -1,16 +1,26 @@ /* pages/therapeuticRegimen/index.wxss */ - +pages{ + height: 100vh; + overflow: hidden; +} .therapeuticRegimen{ box-sizing: border-box; - padding: 24rpx; + // padding: 24rpx; position: relative; - height: calc(100vh - 110rpx); + height: calc(100vh - 120rpx); + .scroll-view-box { + padding: 28rpx; + padding-bottom: 0; + // padding-top: 20rpx; + // padding-bottom: 280rpx; + } .therapeuticRegimen-item{ padding: 28rpx; background-color: #fff; border-radius: 24rpx; position: relative; overflow: hidden; + margin-bottom: 28rpx; .tab-text{ position: absolute; top: 0; diff --git a/pages/therapeuticRegimen/index.wxml b/pages/therapeuticRegimen/index.wxml index 349d32b..2070203 100644 --- a/pages/therapeuticRegimen/index.wxml +++ b/pages/therapeuticRegimen/index.wxml @@ -1,21 +1,6 @@ - + {{item.start_date}} 至 {{item.end_date}} @@ -38,4 +23,5 @@ 新增用药方案 + \ No newline at end of file