sdsd
This commit is contained in:
parent
decaf470dd
commit
1eaf786919
@ -20,7 +20,11 @@ Page({
|
|||||||
async getList(append = false) {
|
async getList(append = false) {
|
||||||
if (!this.data.hasMore && append) return;
|
if (!this.data.hasMore && append) return;
|
||||||
const res = await request(`doctor/patients?page=${this.page}&page_size=${this.page_size}&username=${this.data.username}`)
|
const res = await request(`doctor/patients?page=${this.page}&page_size=${this.page_size}&username=${this.data.username}`)
|
||||||
const newList = append ? this.data.list.concat(res.list) : res.list;
|
const arr = res.list.map(item => {
|
||||||
|
item.avatar = item.avatar ? item.avatar : 'https://image-fudan.oss-cn-beijing.aliyuncs.com/mini_images/my/baby.png'
|
||||||
|
return item
|
||||||
|
})
|
||||||
|
const newList = append ? this.data.list.concat(arr) : arr;
|
||||||
this.setData({
|
this.setData({
|
||||||
list: newList,
|
list: newList,
|
||||||
hasMore: res.list.length === this.page_size
|
hasMore: res.list.length === this.page_size
|
||||||
|
|||||||
@ -20,13 +20,16 @@
|
|||||||
height: calc(100% - 180rpx);
|
height: calc(100% - 180rpx);
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
padding: 24rpx;
|
|
||||||
padding-top: 0;
|
padding-top: 0;
|
||||||
scroll-view{
|
scroll-view{
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
padding-top: 12rpx;
|
padding-top: 12rpx;
|
||||||
|
.scroll-view-box{
|
||||||
|
padding: 0 28rpx;
|
||||||
|
// padding-bottom: 160rpx;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.scroll-top{
|
.scroll-top{
|
||||||
@ -102,7 +105,6 @@
|
|||||||
}
|
}
|
||||||
.box_5 {
|
.box_5 {
|
||||||
border-radius: 100%;
|
border-radius: 100%;
|
||||||
background-image: url(https://lanhu-dds-backend.oss-cn-beijing.aliyuncs.com/merge_image/imgs/0541ba31b7264f1ab9115b54b31a4f09_mergeImage.png);
|
|
||||||
width: 84rpx;
|
width: 84rpx;
|
||||||
height: 84rpx;
|
height: 84rpx;
|
||||||
border-radius: 84rpx;
|
border-radius: 84rpx;
|
||||||
|
|||||||
@ -3,8 +3,8 @@
|
|||||||
<t-navbar t-class-placeholder="t-navbar-placeholder" t-class-content="t-navbar-content" class="block" title="患者管理" />
|
<t-navbar t-class-placeholder="t-navbar-placeholder" t-class-content="t-navbar-content" class="block" title="患者管理" />
|
||||||
<view class="box_1">
|
<view class="box_1">
|
||||||
<scroll-view scroll-y="true" bindscrolltolower="scrolltolower">
|
<scroll-view scroll-y="true" bindscrolltolower="scrolltolower">
|
||||||
<view class="scroll-top">
|
<view class="scroll-view-box">
|
||||||
</view>
|
<view class="scroll-top"></view>
|
||||||
<view class="box_3">
|
<view class="box_3">
|
||||||
<view class="image-text_1">
|
<view class="image-text_1">
|
||||||
<text class="iconfont icon-sousuo thumbnail_1"></text>
|
<text class="iconfont icon-sousuo thumbnail_1"></text>
|
||||||
@ -15,7 +15,7 @@
|
|||||||
<view class="block_1" wx:for="{{list}}" data-id="{{item.id}}" bind:tap="handleClick">
|
<view class="block_1" wx:for="{{list}}" data-id="{{item.id}}" bind:tap="handleClick">
|
||||||
<view class="image-text_2">
|
<view class="image-text_2">
|
||||||
<view class="box_5">
|
<view class="box_5">
|
||||||
<image :src="{{item.avatar}}" class="label_1"></image>
|
<image src="{{item.avatar}}" class="label_1"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="text-group_2">
|
<view class="text-group_2">
|
||||||
<view class="text-wrapper_1">
|
<view class="text-wrapper_1">
|
||||||
@ -43,48 +43,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="block_2">
|
|
||||||
<view class="image-text_3">
|
|
||||||
<view class="box_7"></view>
|
|
||||||
<view class="text-group_3">
|
|
||||||
<view class="text-wrapper_4">
|
|
||||||
<text lines="1" class="text_8">王景琛</text>
|
|
||||||
<text lines="1" decode="true" class="text_9">男 · 2岁6个月</text>
|
|
||||||
</view>
|
</view>
|
||||||
<text lines="1" class="text_10">PELD评分:7</text>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<text lines="1" class="text_11">下次随访时间:2025-12-12</text>
|
|
||||||
<view class="section_1">
|
|
||||||
<view class="text-wrapper_5">
|
|
||||||
<text lines="1" class="text_12">中危</text>
|
|
||||||
</view>
|
|
||||||
<view class="text-wrapper_6">
|
|
||||||
<text lines="1" class="text_13">术后3月</text>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="block_3">
|
|
||||||
<view class="image-text_4">
|
|
||||||
<image src="https://lanhu-oss-2537-2.lanhuapp.com/SketchPng71431139148678087ccbf1497ba051dcae5dbd440b4d5f0dee9a483c1e64ad45" class="label_1"></image>
|
|
||||||
<view class="text-group_4">
|
|
||||||
<view class="text-wrapper_7">
|
|
||||||
<text lines="1" class="text_14">赵谦昌</text>
|
|
||||||
<text lines="1" decode="true" class="text_15">男 · 10个月</text>
|
|
||||||
</view>
|
|
||||||
<text lines="1" class="text_16">PELD评分:2</text>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<text lines="1" class="text_17">下次随访时间:2025-12-12</text>
|
|
||||||
<view class="group_1">
|
|
||||||
<view class="text-wrapper_8">
|
|
||||||
<text lines="1" class="text_18">低危</text>
|
|
||||||
</view>
|
|
||||||
<view class="text-wrapper_9">
|
|
||||||
<text lines="1" class="text_19">术后3月</text>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view> -->
|
|
||||||
</view>
|
</view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user