作者 朱振飞

术后修改

2.1 KB | 宽: | 高:

20.8 KB | 宽: | 高:

  • 两方对比
  • 交换覆盖
  • 透明覆盖

1.9 KB | 宽: | 高:

21.8 KB | 宽: | 高:

  • 两方对比
  • 交换覆盖
  • 透明覆盖

2.6 KB | 宽: | 高:

23.4 KB | 宽: | 高:

  • 两方对比
  • 交换覆盖
  • 透明覆盖

2.3 KB | 宽: | 高:

22.7 KB | 宽: | 高:

  • 两方对比
  • 交换覆盖
  • 透明覆盖
... ... @@ -78,7 +78,7 @@ Page({
uploadImages() {
let that = this;
wx.chooseImage({
count: 9 - that.data.upimg.length ,
count: 8 - that.data.upimg.length ,
sizeType: ['original', 'compressed'],
success: function (res) {
let successUp = 0; //成功个数
... ... @@ -116,10 +116,13 @@ Page({
wx.hideNavigationBarLoading();
wx.hideLoading();
let upimg = that.data.upimg;
if(upimg.length<8){
upimg.push(temdata.data.url);
that.setData({
upimg: upimg
})
}
},
fail: function (res) {
wx.hideNavigationBarLoading()
... ... @@ -169,6 +172,35 @@ Page({
err = '请填写血小板数量'
}
if (err == '') {
if (that.data.white_blood_cell > 100) {
wx.showModal({
title: '提示',
content: '请输入正确的白细胞指标',
showCancel: false
})
return false
} else if (that.data.neutrophils > 100) {
wx.showModal({
title: '提示',
content: '请输入正确的中性粒细胞指标',
showCancel: false
})
return false
} else if (that.data.hemoglobin > 250) {
wx.showModal({
title: '提示',
content: '请输入正确的血红蛋白指标',
showCancel: false
})
return false
} else if (that.data.hemoglobin > 1000) {
wx.showModal({
title: '提示',
content: '请输入正确的血小板指标',
showCancel: false
})
return false
} else {
let url = 'user/addFilesLog';
let header = {
'XX-Token': wx.getStorageSync('token'),
... ... @@ -187,7 +219,7 @@ Page({
remark: that.data.remarks,
images: that.data.upimg
}
app.post(url, params,header).then((res) => {
app.post(url, params, header).then((res) => {
wx.showModal({
title: '成功',
content: '添加记录成功',
... ... @@ -205,6 +237,7 @@ Page({
}).catch((errMsg) => {
console.log(errMsg)
})
}
} else {
wx.showModal({
title: '提示',
... ...
... ... @@ -30,30 +30,30 @@
<view class='input_box'>
<view>白细胞计数:</view>
<view class="input_cell">
<input placeholder='请输入' type='digit' placeholder-class='placeholderStyle' bindinput='setwhite_blood_cell'></input>
<view class='cell_txt'> *10^9/L</view>
<input placeholder='0-100' type='digit' placeholder-class='placeholderStyle' bindinput='setwhite_blood_cell'></input>
<view class='cell_txt'> *10⁹/L</view>
</view>
</view>
<view class='input_box'>
<view>中性粒细胞计数:</view>
<view class="input_cell">
<input placeholder='请输入' type='digit' placeholder-class='placeholderStyle' bindinput='setneutrophils'></input>
<view class='cell_txt'> *10^9/L</view>
<input placeholder='0-100' type='digit' placeholder-class='placeholderStyle' bindinput='setneutrophils'></input>
<view class='cell_txt'> *10⁹/L</view>
</view>
</view>
<view class='input_box'>
<view>血红蛋白:</view>
<view class="input_cell">
<input placeholder='请输入' type='digit' placeholder-class='placeholderStyle' bindinput='sethemoglobin'></input>
<input placeholder='0-250' type='digit' placeholder-class='placeholderStyle' bindinput='sethemoglobin'></input>
<view class='cell_txt'>g/L</view>
</view>
</view>
<view class='input_box'>
<view>血小板计数:</view>
<view class="input_cell">
<input placeholder='请输入' type='digit' placeholder-class='placeholderStyle' bindinput='setplatelet'></input>
<div class='cell_txt'>*10^9/L</div>
<input placeholder='0-1000' type='digit' placeholder-class='placeholderStyle' bindinput='setplatelet'></input>
<div class='cell_txt'>*10⁹/L</div>
</view>
</view>
<view class='upimgbox'>
... ... @@ -65,13 +65,13 @@
</view>
<image bindtap="imgYu" data-list="{{upimg}}" src="{{item}}"></image>
</view>
<view class='upbox' bindtap='uploadImages'>
<view class='upbox' bindtap='uploadImages' wx:if="{{upimg.length<8}}">
<image src='../../img/noimg.png'></image>
</view>
<view class='up_txt'>添加图片(患者化验单,用药情况和皮肤粘膜情况等)</view>
<view class='up_txt' wx:if='{{upimg.length<1}}'>添加图片(患者化验单,用药情况和皮肤粘膜情况等)</view>
</view>
</view>
</view>
<form bindsubmit="formSubmit" report-submit='true' >
<cover-view class='btn'><button formType="submit" class='btn'> 保 存</button></cover-view>
<cover-view class='bt_bg'><button formType="submit" class='btn'> 保 存</button></cover-view>
</form>
... ...
... ... @@ -38,28 +38,29 @@ page{
font-size:28rpx;
}
.input_cell input{
text-align: right;
padding:0 10rpx 0 0;
color:#E88686;
font-size:34rpx;
flex: 1;
}
.input_cell{
width:50%;
text-align: right;
flex: 1;
display: flex;
justify-content: flex-end;
align-items: center;
color:#999;
font-size:34rpx;
}
.placeholderStyle{
font-size:34rpx;
font-size:30rpx;
color: #ccc;
}
.upimgbox{
margin: 30rpx 0 0 0;
margin: 30rpx 0 20rpx 0;
border:1rpx solid #e5e5e5;
border-radius: 5rpx;
padding:30rpx 30rpx 40rpx 30rpx;
... ... @@ -70,7 +71,7 @@ page{
display: flex;
align-items: center;
flex-wrap:wrap;
margin-top: 30rpx;
}
.upbox{
position: relative;
... ... @@ -90,11 +91,11 @@ page{
position: absolute;
top:-15rpx;
right:-5rpx;
width: 30rpx;
height: 30rpx;
width: 40rpx;
height: 40rpx;
border-radius: 50%;
overflow: hidden;
z-index:100;
z-index:10;
background: #fff;
}
.up_colse image{
... ... @@ -105,6 +106,14 @@ page{
.up_txt{
flex: 1;
}
.bt_bg{
background: #FFF;
position: fixed;
height: 140rpx;
bottom: 0;
left: 0;
width: 100%;
}
.btn{
position: fixed;
margin: 20rpx 30rpx 0 30rpx;
... ...
... ... @@ -167,11 +167,40 @@ Page({
err = '请填写血小板数量'
}
if (err == '') {
if (that.data.white_blood_cell>100){
wx.showModal({
title: '提示',
content: '请输入正确的白细胞指标',
showCancel: false
})
return false
} else if (that.data.neutrophils > 100){
wx.showModal({
title: '提示',
content: '请输入正确的中性粒细胞指标',
showCancel: false
})
return false
} else if (that.data.hemoglobin > 250) {
wx.showModal({
title: '提示',
content: '请输入正确的血红蛋白指标',
showCancel: false
})
return false
} else if (that.data.hemoglobin > 1000) {
wx.showModal({
title: '提示',
content: '请输入正确的血小板指标',
showCancel: false
})
return false
}else{
wx.showModal({
title: '提示',
content: '修改记录会影响医生的建议准确性,是否确认修改',
confirmText: '确认修改',
cancelText:'暂不修改',
cancelText: '暂不修改',
success(res) {
if (res.confirm) {
let url = 'user/editFilesLog';
... ... @@ -186,10 +215,10 @@ Page({
drug_name: that.data.drug,
stop_date: that.data.date,
blood_test_date: that.data.date1,
hemoglobin: that.data.hemoglobin,
white_blood_cell: that.data.white_blood_cell,
neutrophils: that.data.neutrophils,
platelet: that.data.platelet,
hemoglobin: that.data.hemoglobin,//血红蛋白
white_blood_cell: that.data.white_blood_cell,//白细胞
neutrophils: that.data.neutrophils,//中性粒细胞
platelet: that.data.platelet,//血小板
remark: that.data.remarks,
images: that.data.upimg
}
... ... @@ -214,6 +243,7 @@ Page({
}
}
})
}
} else {
wx.showModal({
title: '提示',
... ...
... ... @@ -29,21 +29,21 @@
</picker>
<view class='input_box'>
<view>白细胞计数:</view>
<view class="input_cell"><input placeholder='请输入' type='digit' placeholder-class='placeholderStyle' bindinput='setwhite_blood_cell' value='{{white_blood_cell}}'></input><view class='cell_txt'> *10^9/L</view></view>
<view class="input_cell"><input placeholder='0-100' type='digit' placeholder-class='placeholderStyle' bindinput='setwhite_blood_cell' value='{{white_blood_cell}}'></input><view class='cell_txt'> *10⁹/L</view></view>
</view>
<view class='input_box'>
<view>中性粒细胞计数:</view>
<view class="input_cell"><input placeholder='请输入' type='digit' placeholder-class='placeholderStyle' bindinput='setneutrophils' value='{{neutrophils}}'></input><view class='cell_txt'> *10^9/L</view></view>
<view class="input_cell"><input placeholder='0-100' type='digit' placeholder-class='placeholderStyle' bindinput='setneutrophils' value='{{neutrophils}}'></input><view class='cell_txt'> *10⁹/L</view></view>
</view>
<view class='input_box'>
<view>血红蛋白:</view>
<view class="input_cell"><input placeholder='请输入' type='digit' placeholder-class='placeholderStyle' bindinput='sethemoglobin' value='{{hemoglobin}}'></input><view class='cell_txt'>g/L</view></view>
<view class="input_cell"><input placeholder='0-250' type='digit' placeholder-class='placeholderStyle' bindinput='sethemoglobin' value='{{hemoglobin}}'></input><view class='cell_txt'>g/L</view></view>
</view>
<view class='input_box'>
<view>血小板计数:</view>
<view class="input_cell">
<input placeholder='请输入' type='digit' placeholder-class='placeholderStyle' bindinput='setplatelet' value='{{platelet}}'></input><div class='cell_txt'>*10^9/L</div></view>
<input placeholder='0-1000' type='digit' placeholder-class='placeholderStyle' bindinput='setplatelet' value='{{platelet}}'></input><div class='cell_txt'>*10⁹/L</div></view>
</view>
<view class='upimgbox'>
<view><textarea placeholder='特殊情况请给医生留言并上传照片。' placeholder-style='text_class' bindinput='setremarks' value='{{remarks}}'></textarea></view>
... ... @@ -54,15 +54,15 @@
</view>
<image bindtap="imgYu" data-list="{{upimg}}" src="{{item}}"></image>
</view>
<view class='upbox' bindtap='uploadImages'>
<view class='upbox' bindtap='uploadImages' wx:if="{{upimg.length<8}}">
<image src='../../img/noimg.png'></image>
</view>
<view class='up_txt'>添加图片(患者化验单,用药情况和皮肤粘膜情况等)</view>
<view class='up_txt' wx:if="{{upimg.length<1}}">添加图片(患者化验单,用药情况和皮肤粘膜情况等)</view>
</view>
</view>
</view>
<form bindsubmit="formSubmit" report-submit='true' >
<cover-view class='btn'><button formType="submit" class='btn'> 保 存</button></cover-view>
<cover-view class='bt_bg'><button formType="submit" class='btn'> 保 存</button></cover-view>
</form>
... ...
... ... @@ -52,7 +52,7 @@
</view>
</view>
<view class="two_item_rigth">
<text class='two_num'> {{fileslog.more.white_blood_cell}}</text>*10^9/L</view>
<text class='two_num'> {{fileslog.more.white_blood_cell}}</text>*10/L</view>
</view>
<view class="two_item two_items {{fileslog.more.neutrophils_result=='正常'?'':'danger'}} ">
<view class='two_items_left'>
... ... @@ -65,7 +65,7 @@
</view>
</view>
<view class="two_item_rigth">
<text class='two_num'> {{fileslog.more.neutrophils}}</text>*10^9/L</view>
<text class='two_num'> {{fileslog.more.neutrophils}}</text>*10/L</view>
</view>
<view class="two_item two_items {{fileslog.more.hemoglobin_result=='正常'?'':'danger'}} ">
<view class='two_items_left'>
... ... @@ -91,7 +91,7 @@
</view>
</view>
<view class="two_item_rigth">
<text class='two_num'> {{fileslog.more.platelet}}</text>*10^9/L</view>
<text class='two_num'> {{fileslog.more.platelet}}</text>*10/L</view>
</view>
</view>
<view class='notest' wx:else>暂无记录</view>
... ...
... ... @@ -36,7 +36,8 @@
</view>
<view class='my_itembox'>
<view class='my_item' bindtap='goopinion'>
<button class='my_item button_item' open-type="feedback">
<!-- <view class='my_item' bindtap='goopinion'> -->
<view class='my_item_left'>
<view class='my_itemimg'>
<image src='../../img/edit_yijian.png'></image>
... ... @@ -44,7 +45,8 @@
<view>意见反馈</view>
</view>
<view class='iconfont icon-xiangyou'></view>
</view>
<!-- </view> -->
</button>
<button class='my_item button_item' open-type="contact">
<view class='my_item_left'>
<view class='my_itemimg'>
... ...
... ... @@ -49,6 +49,9 @@ page{
border-bottom:1rpx solid #e5e5e5;
}
button.my_item:after{
border: none;
}
.my_item:last-child{
border:none
}
... ... @@ -65,7 +68,7 @@ page{
display: flex;
align-items: center;
color:#333;
font-size:34rpx;
font-size:32rpx;
}
.my_item .iconfont{
color:#c7c7c7;
... ...
... ... @@ -96,7 +96,7 @@ Page({
lineCharthemoglobin=new wxCharts({
canvasId: 'lineCanvashemoglobin',
type: 'area',
type: 'line',
categories: cate,
animation: true, //是否开启动画
... ... @@ -123,7 +123,7 @@ Page({
let cate = this.data.categories;
lineChartwhite = new wxCharts({
canvasId: 'lineCanvaswhite',
type: 'area',
type: 'line',
categories: cate,
animation: true, //是否开启动画
series: [{
... ... @@ -150,11 +150,11 @@ Page({
console.log(cate)
lineChartneutrophils = new wxCharts({
canvasId: 'lineCanvasneutrophils',
type: 'area',
type: 'line',
categories: cate,
animation: true, //是否开启动画
series: [{
name: '血红蛋白',
name: '中性粒细胞',
data: that.data.series.neutrophils,
format: function (val, name) { //点击显示的数据注释
return val + '*10^9/L';
... ... @@ -177,7 +177,7 @@ Page({
console.log(cate)
lineChartplatelet = new wxCharts({
canvasId: 'lineCanvasplatelet',
type: 'area',
type: 'line',
categories: cate,
animation: true, //是否开启动画
series: [{
... ...
<!--pages/record/record.wxml-->
<cover-view class='record_tab'>
<!-- <cover-view class='record_tab'>
<cover-view class="record_left border_left {{showrecord?' active':''}}" bindtap='setshowrecord'>趋势图</cover-view>
<cover-view class="record_left {{showrecord?'':'active'}}" bindtap='setshowrecord'>病情记录</cover-view>
</cover-view>
</cover-view> -->
<view class='container_box' wx:if='{{showrecord}}'>
<view class="container">
... ...
... ... @@ -22,6 +22,7 @@ box-shadow:0 0 100rpx #DADADA;
}
.container canvas{
height: 500rpx;
width: 100%;
}
.container_txt{
color:#999;
... ...