wewe
This commit is contained in:
parent
93ba035171
commit
5e7f908fc9
5
app.less
5
app.less
@ -5,6 +5,7 @@ page {
|
||||
--td-brand-color: #005BA2; // 任何你想要的主题色
|
||||
--td-bg-color: #F8F8F8;
|
||||
--td-text-color: #222222;
|
||||
--td-radius-default: 16rpx;
|
||||
font-size: 28rpx;
|
||||
color: #222222;
|
||||
.t-cell__title-text {
|
||||
@ -53,7 +54,9 @@ page {
|
||||
.t-overlay {
|
||||
top: 0!important;
|
||||
}
|
||||
|
||||
.t-button{
|
||||
border-radius: 16rpx;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -1,10 +1,13 @@
|
||||
|
||||
|
||||
.page {
|
||||
background-color: rgba(248,248,248,1.000000);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 0 24rpx;
|
||||
padding-bottom: 24rpx;
|
||||
height: 100%;
|
||||
}
|
||||
.group_1 {
|
||||
background-color: rgba(255,255,255,1.000000);
|
||||
@ -148,15 +151,15 @@
|
||||
.block_1 {
|
||||
background-color: rgba(255,255,255,1.000000);
|
||||
border-radius: 16rpx;
|
||||
flex-direction: row;
|
||||
display: flex;
|
||||
// display: flex;
|
||||
padding: 24rpx 50rpx 24rpx 24rpx;
|
||||
width: 100%;
|
||||
// justify-content: space-between;
|
||||
position: relative;
|
||||
}
|
||||
.image-text_1 {
|
||||
width: 298rpx;
|
||||
flex-direction: row;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding-right: 134rpx;
|
||||
}
|
||||
.section_4 {
|
||||
border-radius: 16rpx;
|
||||
@ -164,13 +167,14 @@
|
||||
width: 100rpx;
|
||||
height: 100rpx;
|
||||
border: 1px solid rgba(0,91,162,0.1);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: none;
|
||||
}
|
||||
.text-group_1 {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: auto;
|
||||
// display: flex;
|
||||
// flex-direction: column;
|
||||
margin: 10rpx 0 8rpx 0;
|
||||
padding-left: 20rpx;
|
||||
}
|
||||
.text_5 {
|
||||
overflow-wrap: break-word;
|
||||
@ -178,10 +182,7 @@
|
||||
font-size: 32rpx;
|
||||
font-family: Alibaba-PuHuiTi-M;
|
||||
font-weight: normal;
|
||||
text-align: right;
|
||||
white-space: nowrap;
|
||||
line-height: 32rpx;
|
||||
margin-right: 86rpx;
|
||||
}
|
||||
.text_6 {
|
||||
overflow-wrap: break-word;
|
||||
@ -200,7 +201,10 @@
|
||||
height: 62rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin: 20rpx 0 18rpx 114rpx;
|
||||
position: absolute;
|
||||
right: 166rpx;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
.text_7 {
|
||||
overflow-wrap: break-word;
|
||||
@ -211,7 +215,10 @@
|
||||
text-align: right;
|
||||
white-space: nowrap;
|
||||
line-height: 32rpx;
|
||||
margin: 34rpx 0 0 50rpx;
|
||||
position: absolute;
|
||||
right: 50rpx;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
.section_5 {
|
||||
width: 112rpx;
|
||||
@ -378,10 +385,14 @@
|
||||
.text-wrapper_3 {
|
||||
background-color: rgba(0,91,162,1.000000);
|
||||
border-radius: 32rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin: 22rpx 0 22rpx 24rpx;
|
||||
padding: 12rpx 40rpx 12rpx 40rpx;
|
||||
|
||||
padding: 10rpx 32rpx 10rpx 32rpx;
|
||||
// width: 70rpx;
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
right: 24rpx;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
.text_14 {
|
||||
overflow-wrap: break-word;
|
||||
|
||||
@ -18,8 +18,8 @@
|
||||
<view class="image-text_1">
|
||||
<view class="section_4"></view>
|
||||
<view class="text-group_1">
|
||||
<text lines="1" class="text_5">{{detail.name}}</text>
|
||||
<text lines="1" class="text_6">{{detail.dose}} {{detail.time}}</text>
|
||||
<view lines="1" class="text_5">{{detail.name}}</view>
|
||||
<view lines="1" class="text_6">{{detail.dose}} {{detail.time}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="box_1"></view>
|
||||
|
||||
@ -225,7 +225,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), ...data})
|
||||
await request('patient/follow_questionnaire', 'post',{plan_id: Number(this.planId), questionnaire_id: Number(this.planId), ...data})
|
||||
wx.showToast({
|
||||
title: '提交成功',
|
||||
icon: 'success',
|
||||
|
||||
@ -309,17 +309,14 @@
|
||||
border-radius: 16rpx;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
flex-direction: row;
|
||||
display: flex;
|
||||
justify-content: flex-center;
|
||||
|
||||
padding: 24rpx 24rpx 24rpx 24rpx;
|
||||
margin-left: 30rpx;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
.image-text_5 {
|
||||
width: 298rpx;
|
||||
flex-direction: row;
|
||||
padding-right: 145rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.box_10 {
|
||||
border-radius: 16rpx;
|
||||
@ -327,14 +324,12 @@
|
||||
width: 100rpx;
|
||||
height: 100rpx;
|
||||
border: 1px solid rgba(0,91,162,0.1);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
box-sizing: border-box;
|
||||
margin-right:16rpx ;
|
||||
flex: none;
|
||||
}
|
||||
.text-group_5 {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: auto;
|
||||
margin: 12rpx 0 12rpx 0;
|
||||
}
|
||||
.text_21 {
|
||||
@ -342,9 +337,7 @@
|
||||
color: rgba(34,34,34,1);
|
||||
font-size: 32rpx;
|
||||
font-family: Alibaba-PuHuiTi-M;
|
||||
white-space: nowrap;
|
||||
line-height: 32rpx;
|
||||
margin-right: 86rpx;
|
||||
}
|
||||
.text_22 {
|
||||
overflow-wrap: break-word;
|
||||
@ -363,15 +356,22 @@
|
||||
height: 62rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin: 20rpx 0 18rpx 100rpx;
|
||||
position: absolute;
|
||||
right: 166rpx;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
.text-wrapper_6 {
|
||||
|
||||
border-radius: 32rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin: 22rpx 0 22rpx 24rpx;
|
||||
padding: 12rpx 40rpx 12rpx 40rpx;
|
||||
|
||||
padding: 10rpx 32rpx 10rpx 32rpx;
|
||||
// width: 70rpx;
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
right: 24rpx;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
.text_23 {
|
||||
color:rgba(0,91,162,1.000000);
|
||||
}
|
||||
|
||||
@ -44,8 +44,8 @@
|
||||
<view class="image-text_5">
|
||||
<view class="box_10"></view>
|
||||
<view class="text-group_5">
|
||||
<text lines="1" class="text_21">{{item2.name}}</text>
|
||||
<text lines="1" class="text_22">{{item2.frequency}}片,{{item2.time}}服用</text>
|
||||
<view lines="1" class="text_21">{{item2.name}}</view>
|
||||
<view lines="1" class="text_22">{{item2.frequency}}片,{{item2.time}}服用</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="box_11"></view>
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
/* pages/clockIn/index.wxss */
|
||||
.clockin{
|
||||
// padding: 28rpx;
|
||||
padding-bottom: 120rpx;
|
||||
// padding-bottom: 120rpx;
|
||||
.tip{
|
||||
font-size: 24rpx;
|
||||
color: #FF8E00;
|
||||
@ -77,13 +77,14 @@
|
||||
// 滚动容器样式
|
||||
.scroll-container {
|
||||
height: calc(100vh - 200rpx);
|
||||
padding-bottom: 120rpx;
|
||||
// padding-bottom: 120rpx;
|
||||
}
|
||||
|
||||
// 加载更多提示样式
|
||||
.loading-more {
|
||||
text-align: center;
|
||||
padding: 30rpx 0;
|
||||
padding-top: 0rpx;
|
||||
color: #999;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
@ -91,6 +92,7 @@
|
||||
.no-more {
|
||||
text-align: center;
|
||||
padding: 30rpx 0;
|
||||
padding-top: 0rpx;
|
||||
color: #ccc;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
@ -200,19 +202,17 @@
|
||||
margin: 16rpx 0 0 34rpx;
|
||||
}
|
||||
.block_1 {
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
background-color: rgba(255,255,255,1.000000);
|
||||
border-radius: 16rpx;
|
||||
flex-direction: row;
|
||||
display: flex;
|
||||
// display: flex;
|
||||
padding: 24rpx 50rpx 24rpx 24rpx;
|
||||
width: 100%;
|
||||
// justify-content: space-between;
|
||||
position: relative;
|
||||
}
|
||||
.image-text_1 {
|
||||
width: 298rpx;
|
||||
flex-direction: row;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding-right: 160rpx;
|
||||
}
|
||||
.section_4 {
|
||||
border-radius: 16rpx;
|
||||
@ -220,13 +220,14 @@
|
||||
width: 100rpx;
|
||||
height: 100rpx;
|
||||
border: 1px solid rgba(0,91,162,0.1);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: none;
|
||||
}
|
||||
.text-group_1 {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: auto;
|
||||
// display: flex;
|
||||
// flex-direction: column;
|
||||
margin: 10rpx 0 8rpx 0;
|
||||
padding-left: 20rpx;
|
||||
}
|
||||
.text_5 {
|
||||
overflow-wrap: break-word;
|
||||
@ -234,10 +235,7 @@
|
||||
font-size: 32rpx;
|
||||
font-family: Alibaba-PuHuiTi-M;
|
||||
font-weight: normal;
|
||||
text-align: right;
|
||||
white-space: nowrap;
|
||||
line-height: 32rpx;
|
||||
margin-right: 86rpx;
|
||||
}
|
||||
.text_6 {
|
||||
overflow-wrap: break-word;
|
||||
@ -256,7 +254,10 @@
|
||||
height: 62rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin: 20rpx 0 18rpx 114rpx;
|
||||
position: absolute;
|
||||
right: 140rpx;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
.text_7 {
|
||||
overflow-wrap: break-word;
|
||||
@ -267,7 +268,10 @@
|
||||
text-align: right;
|
||||
white-space: nowrap;
|
||||
line-height: 32rpx;
|
||||
margin: 34rpx 0 0 50rpx;
|
||||
position: absolute;
|
||||
right: 24rpx;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
.active{
|
||||
color: rgba(0,91,162,1);
|
||||
}
|
||||
@ -437,10 +441,14 @@
|
||||
.text-wrapper_3 {
|
||||
background-color: rgba(0,91,162,1.000000);
|
||||
border-radius: 32rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin: 22rpx 0 22rpx 24rpx;
|
||||
|
||||
padding: 12rpx 40rpx 12rpx 40rpx;
|
||||
// width: 70rpx;
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
right: 24rpx;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
.text_14 {
|
||||
overflow-wrap: break-word;
|
||||
|
||||
@ -46,8 +46,8 @@
|
||||
<view class="image-text_1">
|
||||
<view class="section_4"></view>
|
||||
<view class="text-group_1">
|
||||
<text lines="1" class="text_5">{{detail.name}}</text>
|
||||
<text lines="1" class="text_6">{{detail.dose}} {{detail.time}}</text>
|
||||
<view lines="1" class="text_5">{{detail.name}}</view>
|
||||
<view lines="1" class="text_6">{{detail.dose}} {{detail.time}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="box_1"></view>
|
||||
|
||||
@ -29,7 +29,7 @@ Page({
|
||||
}
|
||||
// If within 7 days and status is 1, update to 2
|
||||
if (diffDays <= 7 && diffDays >= 0 && item.status === 1) {
|
||||
return { ...item, status: 3 };
|
||||
return { ...item, status: 3, diffDays};
|
||||
}
|
||||
return item;
|
||||
});
|
||||
|
||||
@ -10,13 +10,16 @@
|
||||
<view class="clockin-item" wx:for="{{dataList}}" wx:key="id">
|
||||
<view class="margin-16 success" wx:if="{{item.status == 2}}">已完成</view>
|
||||
<view class="margin-16" wx:if="{{item.status == 1}}">未开始</view>
|
||||
<view class="margin-16 primary" wx:if="{{item.status == 3}}">待开始</view>
|
||||
<view class="margin-16 primary" wx:if="{{item.status == 3}}">
|
||||
待开始
|
||||
<text>{{item.diffDays}}天后</text>
|
||||
</view>
|
||||
<view class="item-top">
|
||||
<text>{{item.plan_date}}</text>
|
||||
|
||||
</view>
|
||||
<view class="dose">{{item.plan_name}}</view>
|
||||
<t-button theme="primary" block bindtap="toQuestionnaire" data-id="{{item.id}}" data-time="{{item.plan_date}}" data-name="{{item.plan_name}}" wx:if="{{item.status == 2}}">填写随访问卷</t-button>
|
||||
<t-button theme="primary" variant="outline" block bindtap="toQuestionnaire" data-id="{{item.id}}" data-time="{{item.plan_date}}" data-name="{{item.plan_name}}" wx:if="{{item.status == 2}}">填写随访问卷</t-button>
|
||||
<t-button bindtap="toRegister" theme="primary" block wx:if="{{item.status == 3}}">预约挂号</t-button>
|
||||
</view>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user