12.19 患者bug
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
|
||||
const app = getApp()
|
||||
import {pathographyList,pathographyListDelte} from "../../api/sickRecord"
|
||||
import {pathographyList,pathographyDelete} from "../../api/sickRecord"
|
||||
import {throttle} from "../../utils/util"
|
||||
Page({
|
||||
|
||||
@@ -44,7 +44,8 @@ Page({
|
||||
}
|
||||
}),
|
||||
handlePathographyListDelte(){
|
||||
pathographyListDelte(id).then(data=>{
|
||||
let id=this.data.currentId
|
||||
pathographyDelete(id).then(data=>{
|
||||
wx.showToast({
|
||||
title: '删除成功',
|
||||
icon:'none'
|
||||
@@ -133,7 +134,7 @@ Page({
|
||||
showRadio:true
|
||||
})
|
||||
}
|
||||
this.handleFamily();
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -150,7 +151,7 @@ Page({
|
||||
this.setData({
|
||||
img_host:app.hostConfig().imghost
|
||||
});
|
||||
|
||||
this.handleRefresher();
|
||||
|
||||
},
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<!--pages/sickManage/sickManage.wxml-->
|
||||
<nav navName="病情记录"></nav>
|
||||
<nav navName="病情管理"></nav>
|
||||
<view class="page">
|
||||
<view class="hasdata">
|
||||
<scroll-view scroll-y="true" bindrefresherrefresh="handleRefresher" class="scrollbox" refresher-triggered="{{isTriggered}}" refresher-threshold="100" bindscrolltolower="lower" refresher-enabled="true" class="namebox" wx:if="{{list.length>0}}">
|
||||
@@ -11,7 +11,7 @@
|
||||
<view class="rightcon" bindtap="goDetail" data-id="{{item.pathography_id}}" data-index="{{index+1}}">
|
||||
<view class="time">{{item.created_at}}</view>
|
||||
<view class="disease">
|
||||
<view > {{item.disease_class_name}}</view>
|
||||
<view class="sickname"> {{item.disease_class_name}}</view>
|
||||
<view class="disease_desc">
|
||||
<view class="desctext">{{item.disease_desc}}</view>
|
||||
</view>
|
||||
@@ -23,6 +23,10 @@
|
||||
</van-swipe-cell>
|
||||
</van-radio-group>
|
||||
</scroll-view>
|
||||
<view wx:else class="nodata">
|
||||
<image src="../../assets/images/noManage.png" class="memberimg"></image>
|
||||
<view>暂无数据</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -47,7 +47,6 @@
|
||||
align-items: center;
|
||||
padding:0 20rpx 0 30rpx;
|
||||
background: #FFFFFF;
|
||||
box-sizing: content-box;
|
||||
border-radius: 10rpx;
|
||||
|
||||
}
|
||||
@@ -57,12 +56,17 @@ color: #333333;
|
||||
}
|
||||
.rightcon{
|
||||
flex:1;
|
||||
margin-right: 30rpx;
|
||||
}
|
||||
.namecell .disease{
|
||||
flex:1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-top: 10rpx;
|
||||
font-size: 24rpx;
|
||||
width:540rpx;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
color: #666666;
|
||||
}
|
||||
.disease{
|
||||
@@ -70,12 +74,20 @@ color: #333333;
|
||||
}
|
||||
.disease_desc{
|
||||
flex:1;
|
||||
margin-left: 8rpx;
|
||||
}
|
||||
.desctext{
|
||||
width:80%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
|
||||
text-overflow: ellipsis;
|
||||
margin-left: 8rpx;
|
||||
word-break: break-all;
|
||||
}
|
||||
.desctext{
|
||||
width:100%;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
|
||||
text-overflow: ellipsis;
|
||||
|
||||
}
|
||||
@@ -127,4 +139,12 @@ color: #999999;
|
||||
justify-content: center;
|
||||
background: #FA541C;
|
||||
color: #fff;
|
||||
}
|
||||
.nodata{
|
||||
margin-top: -172rpx;
|
||||
flex:1;
|
||||
display: flex;
|
||||
font-size: 24rpx;
|
||||
color: #999999;
|
||||
flex-direction: column;
|
||||
}
|
||||
Reference in New Issue
Block a user