This commit is contained in:
haomingming
2023-03-22 09:01:58 +08:00
parent 589c2cf823
commit cfa69efd15
71 changed files with 1300 additions and 588 deletions
+30 -8
View File
@@ -1,7 +1,6 @@
//index.js
//获取应用实例
import { API } from './../../../utils/network/api'
const api = new API()
const app = getApp()
Page({
data: {
// 组件所需的参数
@@ -9,11 +8,34 @@ Page({
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
title: '患者病历', //导航栏 中间的标题
},
// 此页面 页面内容距最顶部的距离
height: app.globalData.height ,
height: app.globalData.height,
order_inquiry_id: "",
order_prescription_id: "",
case_detail: {}
},
onLoad(options) {
let order_inquiry_id = options.order_inquiry_id;
let order_prescription_id = options.order_prescription_id;
console.log("order_inquiry_id: ", order_inquiry_id);
this.setData({
order_inquiry_id: order_inquiry_id,
order_prescription_id: order_prescription_id,
})
},
onShow(){
api.getCase({order_inquiry_id: this.data.order_inquiry_id}).then(response => {
console.log(response.data);
this.setData({
case_detail: response.data
})
}).catch(errors => {
console.error(errors);
})
},
go(e){
let url = e.currentTarget.dataset.url;
app.go(url)
},
onLoad() {
console.log(this.data.height)
}
})
+15 -16
View File
@@ -3,27 +3,26 @@
<view class="user_info">
<view class="user_item">患者信息</view>
<view class="user_item">
<text class="item_title">姓名:</text>张三
<text class="item_title">性别:</text>男
<text class="item_title">年龄:</text>30岁
<text class="item_title">姓名:</text>{{case_detail.name}}
<text class="item_title">性别:</text>{{case_detail.sex==1?'男':'女'}}
<text class="item_title">年龄:</text>{{case_detail.age}}岁
</view>
</view>
<view class="case_info">
<view class="item">疾病资料</view>
<view class="item"><text class="item_title">病情主要述:</text>我问问</view>
<view class="item"><text class="item_title">用药意向:</text>【未匹配】连花清瘟胶囊*1</view>
<view class="item"><text class="item_title">体重:</text>56KG</view>
<view class="item"><text class="item_title">本次用药已相关确认病症:</text>无</view>
<view class="item"><text class="item_title">是否服用过您想购买的药品且无相关禁忌症:</text>是</view>
<view class="item"><text class="item_title">是否有药物过敏史:</text>否</view>
<view class="item"><text class="item_title">您的肝功能、肾功能是否存在异常:</text>否</view>
<view class="item"><text class="item_title">您是否处于备孕、妊娠、哺乳期:</text>否</view>
<view class="item"><text class="item_title">病情主要述:</text>{{case_detail.disease_desc}}</view>
<view class="item">
<text class="item_title">用药意向:</text>
<text wx:for="{{case_detail.product}}">{{item}}</text>
</view>
<view class="item"><text class="item_title">体重:</text>{{case_detail.weight}}KG</view>
<view class="item"><text class="item_title">是否服用过您想购买的药品且无相关禁忌症:</text>{{case_detail.is_taboo==0?'否':'是'}}</view>
<view class="item"><text class="item_title">是否有药物过敏史:</text>{{case_detail.is_allergy_history==0?'否':'是'}}</view>
<view class="item"><text class="item_title">您是否处于备孕、妊娠、哺乳期:</text>{{case_detail.is_pregnant==0?'否':'是'}}</view>
<view class="item"><text class="item_title">复诊凭证</text></view>
</view>
<view class="go_check">
<navigator url="/Pages/yaoshi/prescription/prescription" open-type="navigate" hover-class="other-navigator-hover">
<van-button color="linear-gradient(to right, #4CABEA, #64CFE9)" block round type="info">前往审方</van-button>
</navigator>
<view class="go_check" bindtap="go" data-url="/Pages/yaoshi/prescription/prescription?order_prescription_id={{order_prescription_id}}">
<van-button color="linear-gradient(to right, #4CABEA, #64CFE9)" block round type="info">前往审方</van-button>
</view>
<view class="bottom">肝胆相照提供技术支持</view>
<view class="bottom"></view>
</view>
@@ -1,7 +1,8 @@
page{
background-color: #F3F5F7;
}
.container{
letter-spacing: 3rpx;
background-color: #F3F5F7;
height: 100vh;
}
.user_info{
background-color: #fff;