8.24 医生端
This commit is contained in:
@@ -21,6 +21,22 @@ Page({
|
||||
},
|
||||
goReport(event){
|
||||
const url=event.currentTarget.dataset.url;
|
||||
const randfile = new Date().getTime() + '检测报告';
|
||||
const newPath = `${wx.env.USER_DATA_PATH}/${randfile}`;
|
||||
wx.downloadFile({
|
||||
// 示例 url,并非真实存在
|
||||
url:url,
|
||||
filePath: newPath,
|
||||
success: function (res) {
|
||||
//const filePath = res.tempFilePath
|
||||
wx.openDocument({
|
||||
filePath: newPath,
|
||||
success: function (res) {
|
||||
console.log('打开文档成功')
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
formatImgList(){
|
||||
let diagnose_images = this.data.case_detail.diagnose_images?this.data.case_detail.diagnose_images:[];
|
||||
|
||||
@@ -15,13 +15,13 @@
|
||||
<view class="hunyin info_item"><text class="info_title">婚姻:</text><text class="info_val">{{case_detail.marital_status==0?'未婚':case_detail.marital_status==1?'已婚':case_detail.marital_status==2?'离异':'未知'}}</text></view>
|
||||
</view>
|
||||
<view class="disease_box">
|
||||
<view class="disease_box_item">
|
||||
<view class="disease_box_item" wx:if="{{case_detail.disease_class_name}}">
|
||||
<view class="title">所患疾病:</view>
|
||||
<view class="conent">{{case_detail.disease_class_name}}</view>
|
||||
</view>
|
||||
<view class="disease_box_item">
|
||||
<view class="disease_box_item" wx:if="{{case_detail.diagnosis_date}}">
|
||||
<view class="title">确诊日期:</view>
|
||||
<view class="conent">{{dateSubstr.substring(case_detail.diagnosis_date,0,10)}}</view>
|
||||
<view class="conent" >{{dateSubstr.substring(case_detail.diagnosis_date,0,10)}}</view>
|
||||
</view>
|
||||
<!-- <view class="disease_box_item">
|
||||
<view class="title">医生诊断:</view>
|
||||
@@ -38,7 +38,7 @@
|
||||
<view class="disease_info" wx:if="{{case_detail.drugs_name != '' && case_detail.drugs_name != null}}">
|
||||
详细描述:{{case_detail.drugs_name}}
|
||||
</view>
|
||||
<view class="disease_box_item">
|
||||
<view class="disease_box_item" wx:if="{{case_detail.disease_desc}}">
|
||||
<view class="title">病情描述:</view>
|
||||
<view class="conent">{{case_detail.disease_desc}}</view>
|
||||
</view>
|
||||
@@ -52,18 +52,18 @@
|
||||
<view class="title">复诊凭证(病例/处方单/检查报告/住院单):</view>
|
||||
<view class="conent" wx:if="{{case_detail.diagnose_images.length == 0}}">无</view>
|
||||
</view>
|
||||
<view class="img_box">
|
||||
<view class="img_box" >
|
||||
<van-uploader image-fit="aspectFit" file-list="{{ imglist }}" show-upload="{{false}}" deletable="{{false}}" />
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<view class="sugarbox" wx:if="{{case_detail.detection_project}}" bindtap="goReport" data-url="{{case_detail.detection_link}}">
|
||||
<view class="sugarbox" wx:if="{{case_detail.detection_project}}" data-url="{{case_detail.detection_project.detection_link}}" bindtap="goReport">
|
||||
<view class="main_title">{{case_detail.detection_project_name}}</view>
|
||||
<view class="data_box sugar">
|
||||
<view class="data_box sugar" >
|
||||
<view class="sugar_left">
|
||||
<view class="name">糖组检测</view>
|
||||
<view class="date">{{case_detail.detection_time}}</view>
|
||||
<view class="date">{{case_detail.detection_project.detection_time}}</view>
|
||||
</view>
|
||||
<van-icon name="arrow" />
|
||||
</view>
|
||||
|
||||
@@ -34,7 +34,8 @@ page{
|
||||
border-radius: 10rpx;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
margin: 20rpx 0;
|
||||
margin: 20rpx 0 0;
|
||||
padding-bottom: 20rpx;
|
||||
}
|
||||
.info_item{
|
||||
text-align: left;
|
||||
@@ -62,6 +63,12 @@ page{
|
||||
margin-bottom: 30rpx;
|
||||
display: flex;
|
||||
}
|
||||
.data_box .disease_box_item:first-child{
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
.orther .disease_box_item:first-child{
|
||||
margin-top: 0rpx;
|
||||
}
|
||||
.title{
|
||||
font-size: 30rpx;
|
||||
color: #333333;
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
// pages/linkPage/linkPage.js
|
||||
const app = getApp()
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
url:''
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
if(options.url){
|
||||
this.setData({
|
||||
url:decodeURIComponent(options.url)
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
|
||||
})
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
<!--pages/linkPage/linkPage.wxml-->
|
||||
<web-view src="{{url}}" ></web-view>
|
||||
@@ -0,0 +1 @@
|
||||
/* pages/linkPage/linkPage.wxss */
|
||||
@@ -3,7 +3,7 @@ let api = new API()
|
||||
const app = getApp();
|
||||
Page({
|
||||
data: {
|
||||
title: "个人中心",
|
||||
title: "我的",
|
||||
navHeight: 0,
|
||||
stateHeight: 0,
|
||||
user_name: "医师姓名",
|
||||
|
||||
+26
-20
@@ -1,58 +1,64 @@
|
||||
<view class="container">
|
||||
<view class="top"></view>
|
||||
<view class="title" style="top: {{stateHeight}}px;height: {{navHeight}}px;line-height: {{navHeight}}px;">{{ title }}</view>
|
||||
<view class="info_box" >
|
||||
<view class="info_box">
|
||||
<!-- 跳转我的信息 -->
|
||||
<view class="photo" bindtap="go" data-url="/Pages/yishi/myinfo/index">
|
||||
<t-avatar class="avatar" size="large" image="{{avatar}}" />
|
||||
</view>
|
||||
<view class="info">
|
||||
<view class="name" bindtap="go" data-url="/Pages/yishi/myinfo/index">{{user_name}}</view>
|
||||
<view class="namebox">
|
||||
|
||||
<view class="name" bindtap="go" data-url="/Pages/yishi/myinfo/index">{{user_name}}</view>
|
||||
<view class="iconbox" bindtap="go" data-url="/Pages/yishi/myinfo/index">
|
||||
<text>设置</text>
|
||||
<van-icon name="arrow" class="arrow"/>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="renzheng">
|
||||
<view class="yishi" bindtap="go" data-url="/Pages/yishi/identity/index">{{iden_auth_status==1?'已医师认证':'未医师认证'}}></view>
|
||||
<view class="zhiye" bindtap="go" data-url="/Pages/yishi/zhiye_identity/index">{{multi_point_status==1?'已多点执业认证':'未多点执业认证'}}></view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="icon" bindtap="go" data-url="/Pages/yishi/myinfo/index">
|
||||
<van-icon name="arrow" />
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
<view class="account" >
|
||||
<view class="account">
|
||||
<view class="account_top">
|
||||
<view class="account_top_left">
|
||||
<view class="account_title">
|
||||
<view>
|
||||
账户余额(元)
|
||||
</view>
|
||||
<view>
|
||||
账户余额(元)
|
||||
</view>
|
||||
</view>
|
||||
<view class="account_num">
|
||||
<view>
|
||||
<text style="font-size: 42rpx;">¥</text>
|
||||
<text style="font-size: 64rpx;">{{balance_account}}</text>
|
||||
<text style="font-size: 42rpx;">¥</text>
|
||||
<text style="font-size: 64rpx;">{{balance_account}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="account_top_right">
|
||||
<navigator url="/Pages/yishi/cash/index" open-type="navigate" hover-class="other-navigator-hover">
|
||||
<van-button custom-style="text-indent: 20rpx;letter-spacing: 20rpx;text-align: center;border-radius: 10rpx;padding: 20rpx 50rpx;" color="linear-gradient(310deg, #FF931A 0%, #FF931A 0%, #FCB75D 100%);font-size: 32rpx;">
|
||||
<van-button custom-style="text-indent: 20rpx;letter-spacing: 20rpx;text-align: center;height:70rpx;border-radius: 40rpx;padding: 0rpx 44rpx;" color="linear-gradient(310deg, #FF931A 0%, #FF931A 0%, #FCB75D 100%);font-size: 32rpx;">
|
||||
提现
|
||||
</van-button>
|
||||
</navigator>
|
||||
</view>
|
||||
</view>
|
||||
<view class="account_bottom">
|
||||
<view style="font-size: 30rpx;color: #666666;">当日预计收益金额:</view>
|
||||
<view style="font-size: 42rpx;color: #333333;">¥{{estimate_income}}</view>
|
||||
<view style="font-size: 28rpx;color: #666666;">当日预计收益金额:</view>
|
||||
<view style="font-size: 28rpx;color: rgba(0,0,0,0.85);">¥{{estimate_income}}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="content">
|
||||
<van-cell size="large" url="/Pages/yishi/medince_list/index" link-type="navigateTo" title-style="font-size: 34rpx;" title="药品清单" is-link />
|
||||
<van-cell size="large" url="/Pages/yishi/myaccount/index" link-type="navigateTo" title-style="font-size: 34rpx;" title="我的账户" is-link />
|
||||
<van-cell size="large" url="/Pages/yishi/bankcard/index" link-type="navigateTo" title-style="font-size: 34rpx;" title="我的银行卡" is-link />
|
||||
<van-cell size="large" url="/Pages/yishi/mycard/index" link-type="navigateTo" title-style="font-size: 34rpx;" title="我的名片" is-link />
|
||||
<van-cell size="large" url="/Pages/yishi/appraise/index?doctor_id={{doctor_id}}" link-type="navigateTo" title-style="font-size: 34rpx;" title="患者评价" is-link />
|
||||
<van-cell size="large" url="/Pages/yishi/quickreply/index" link-type="navigateTo" title-style="font-size: 34rpx;" title="常用语" is-link border="{{ false }}"/>
|
||||
<van-cell size="large" url="/Pages/yishi/medince_list/index" link-type="navigateTo" title-style="font-size: 30rpx;color: rgba(0,0,0,0.65);" title="药品清单" is-link />
|
||||
<van-cell size="large" url="/Pages/yishi/myaccount/index" link-type="navigateTo" title-style="font-size: 30rpx;color: rgba(0,0,0,0.65);" title="我的账户" is-link />
|
||||
<van-cell size="large" url="/Pages/yishi/bankcard/index" link-type="navigateTo" title-style="font-size: 30rpx;color: rgba(0,0,0,0.65);" title="我的银行卡" is-link />
|
||||
<van-cell size="large" url="/Pages/yishi/mycard/index" link-type="navigateTo" title-style="font-size: 30rpx;color: rgba(0,0,0,0.65);" title="我的名片" is-link />
|
||||
<van-cell size="large" url="/Pages/yishi/appraise/index?doctor_id={{doctor_id}}" link-type="navigateTo" title-style="font-size: 30rpx;color: rgba(0,0,0,0.65);" title="患者评价" is-link />
|
||||
<van-cell size="large" url="/Pages/yishi/quickreply/index" link-type="navigateTo" title-style="font-size: 30rpx;color: rgba(0,0,0,0.65);" title="常用语" is-link border="{{ false }}" />
|
||||
</view>
|
||||
</view>
|
||||
@@ -4,7 +4,7 @@ page{
|
||||
.container{
|
||||
background: linear-gradient(180deg, #3CC7C0 0%, rgba(60,199,192,0) 50%);
|
||||
|
||||
padding-bottom: 100rpx;
|
||||
padding-bottom: 70rpx;
|
||||
min-height:100vh;
|
||||
width: 100vw;
|
||||
color: #fff;
|
||||
@@ -17,6 +17,7 @@ page{
|
||||
position: absolute;
|
||||
}
|
||||
.title{
|
||||
color: #000000;
|
||||
position:relative;
|
||||
text-align: center;
|
||||
}
|
||||
@@ -34,7 +35,8 @@ page{
|
||||
}
|
||||
.name{
|
||||
height: 50rpx;
|
||||
font-size: 36rpx;
|
||||
font-size: 34rpx;
|
||||
color: rgba(0,0,0,0.85);
|
||||
line-height: 50rpx;
|
||||
}
|
||||
.renzheng{
|
||||
@@ -50,6 +52,12 @@ page{
|
||||
padding: 0 20rpx;
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
.zhiye{
|
||||
background: #999999;
|
||||
}
|
||||
.yishi{
|
||||
background: #FAAD14;
|
||||
}
|
||||
.photo{
|
||||
flex: 3;
|
||||
text-align: center;
|
||||
@@ -62,11 +70,26 @@ page{
|
||||
text-align: right;
|
||||
padding-right: 20rpx;
|
||||
}
|
||||
.namebox{
|
||||
justify-content: space-between;
|
||||
display: flex;
|
||||
}
|
||||
.iconbox{
|
||||
align-items: center;
|
||||
font-size: 30rpx;
|
||||
color: rgba(0,0,0,0.65);
|
||||
margin-right: 24rpx;
|
||||
display: flex;
|
||||
}
|
||||
.iconbox .arrow{
|
||||
margin-top: 4rpx;
|
||||
margin-left: 4px;
|
||||
}
|
||||
.account{
|
||||
background-color: rgb(255, 255, 255);
|
||||
width: 92vw;
|
||||
margin: 0 auto;
|
||||
height: 272rpx;
|
||||
height: 280rpx;
|
||||
margin-top: 24rpx;
|
||||
position: relative;
|
||||
border-radius: 20rpx;
|
||||
@@ -85,12 +108,16 @@ page{
|
||||
margin-left: 20rpx;
|
||||
}
|
||||
.account_title{
|
||||
flex: 9;
|
||||
margin-top: 32rpx;
|
||||
display: flex;
|
||||
font-size: 30rpx;
|
||||
font-weight: 400;
|
||||
color: rgba(0,0,0,0.65);
|
||||
align-items: center;
|
||||
}
|
||||
.account_num{
|
||||
flex: 10;
|
||||
margin-top: 10rpx;
|
||||
font-weight: bold;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
@@ -98,7 +125,8 @@ page{
|
||||
flex: 2;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
align-items:flex-end;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
.account_bottom{
|
||||
flex: 1;
|
||||
@@ -112,14 +140,15 @@ page{
|
||||
background-color: #fff;
|
||||
margin: 24rpx auto 0;
|
||||
position: static;
|
||||
overflow: hidden;
|
||||
border-radius: 20rpx;
|
||||
padding: 20rpx 0;
|
||||
padding: 0rpx 0 20rpx;
|
||||
}
|
||||
.t-badge__content-text {
|
||||
line-height: 70rpx !important;
|
||||
}
|
||||
.van-cell {
|
||||
padding: 32rpx !important;
|
||||
padding: 30rpx !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user