Browse Source

refactor(doctor home & patient): update homepage stats and scroll style

1. 修改医生首页第2个统计卡片的文案和数据字段,替换为本月新增邀约相关内容
2. 调整患者列表页的滚动样式,改为纵向隐藏横向自动滚动
3. 修正首页统计项的绑定类型和显示文本
master
kola-web 4 hours ago
parent
commit
14e56c5eae
  1. 4
      src/doctor/pages/d_home/index.ts
  2. 7
      src/doctor/pages/d_home/index.wxml
  3. 3
      src/doctor/pages/d_patient/index.scss

4
src/doctor/pages/d_home/index.ts

@ -309,8 +309,8 @@ Page({
title: '累计邀约', title: '累计邀约',
}, },
2: { 2: {
content: `今年至少完成 1 次ADL 测评的患者数`, content: `本月新邀约患者数`,
title: `${dayjs().format('YY')}年激活`, title: '本月新增',
}, },
}[id] }[id]
Dialog.alert({ Dialog.alert({

7
src/doctor/pages/d_home/index.wxml

@ -24,15 +24,16 @@
</view> </view>
</view> </view>
</view> </view>
<view class="item" bind:tap="handlePatient" data-type="3" data-name="{{detail.yr}}年激活患者"> <view class="item" bind:tap="handlePatient" data-type="2" data-name="当月邀约">
<image class="icon" src="{{imageUrl}}icon54.png?t={{Timestamp}}"></image> <image class="icon" src="{{imageUrl}}icon54.png?t={{Timestamp}}"></image>
<view class="wrap"> <view class="wrap">
<view class="title"> <view class="title">
{{detail.yr}}年激活 当月邀约
<van-icon catch:tap="handleQuestion" data-id="2" name="question" color="rgba(33, 33, 32, 0.30)" /> <van-icon catch:tap="handleQuestion" data-id="2" name="question" color="rgba(33, 33, 32, 0.30)" />
</view> </view>
<view class="num"> <view class="num">
{{detail.YearActivePCount}} {{detail.MonthInvitePCount}}
<text class="sub">人</text> <text class="sub">人</text>
</view> </view>
</view> </view>

3
src/doctor/pages/d_patient/index.scss

@ -42,7 +42,8 @@ page {
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
gap: 16rpx; gap: 16rpx;
overflow-y: scroll; overflow-y: hidden;
overflow-x: auto;
&::-webkit-scrollbar { &::-webkit-scrollbar {
display: none; display: none;
} }

Loading…
Cancel
Save