This commit is contained in:
haomingming
2023-03-06 17:57:39 +08:00
parent 3794faceae
commit 1066e37c96
4230 changed files with 193453 additions and 0 deletions
@@ -0,0 +1,23 @@
// Pages/authentication/authentication.js
const app = getApp()
Page({
data: {
nbFrontColor: '#000000',
nbBackgroundColor: '#ffffff',
navbarData: {
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
title: '实名认证', //导航栏 中间的标题
},
// 此页面 页面内容距最顶部的距离
height: app.globalData.height,
},
onLoad() {
console.log(this.data.height)
},
onShow(){
this.setData({
nbLoading: false,
})
}
})
@@ -0,0 +1,15 @@
{
"component": true,
"usingComponents": {
"te-nav-bar": "/commpents/te_navbar",
"t-avatar": "tdesign-miniprogram/avatar/avatar",
"van-cell": "@vant/weapp/cell/index",
"van-cell-group": "@vant/weapp/cell-group/index",
"van-button": "@vant/weapp/button/index"
},
"navigationBarBackgroundColor": "#ffffff",
"navigationBarTextStyle": "black",
"navigationBarTitleText": "实名认证",
"backgroundColor": "#eeeeee",
"backgroundTextStyle": "light"
}
@@ -0,0 +1,18 @@
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
<view class="container">
<van-cell-group>
<van-cell title="真实姓名" title-width="120rpx" required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
<van-cell title="身份证号" title-width="120rpx" required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
<van-cell title="联系邮箱" title-width="120rpx" required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
<van-cell title="手机号码" title-width="120rpx" required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
<van-cell title="所在医疗机构" title-width="120rpx" required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
<van-cell title="所在科室" title-width="120rpx" is-link required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
<van-cell title="职称" title-width="120rpx" is-link required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
<van-cell title="医龄" title-width="120rpx" required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
<van-cell title="执业经历" title-width="120rpx" required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
<van-cell title="擅长" title-width="120rpx" required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
</van-cell-group>
<view class="submit">
<van-button color="linear-gradient(to right, #4CABEA, #64CFE9)" block round type="info">下一步</van-button>
</view>
</view>
@@ -0,0 +1,4 @@
.submit{
width: 90vw;
margin: 20rpx auto;
}
+32
View File
@@ -0,0 +1,32 @@
// Pages/home.js
const app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
active: 0,
active_color: "rgb(116,162,250)",
navbarData: {
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
title: '药师端', //导航栏 中间的标题
},
// 此页面 页面内容距最顶部的距离
height: app.globalData.height
},
onLoad() {
console.log(this.data.height)
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
if (typeof this.getTabBar === 'function' && this.getTabBar()) {
this.getTabBar().setData({
currentTab: 0 //数字是当前页面在tabbar的索引,如我的查询页索引是2,因此这边为2,同理首页就为0,审批页面为1
})
}
}
})
+10
View File
@@ -0,0 +1,10 @@
{
"component": true,
"usingComponents": {
"te-nav-bar": "/commpents/te_navbar",
"van-tab": "@vant/weapp/tab/index",
"van-tabs": "@vant/weapp/tabs/index",
"t-avatar": "tdesign-miniprogram/avatar/avatar",
"van-button": "@vant/weapp/button/index"
}
}
+101
View File
@@ -0,0 +1,101 @@
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
<view class="container">
<view class="main title">
<view class="photo">
<t-avatar class="avatar-example" width="20" image="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/default_photo.png" />
</view>
<view class="name">
<view class="realname">李四</view>
<view class="today_num">今日审方 9</view>
</view>
<view class="status">
<view class="status_text status_offline">离线</view>
</view>
</view>
<view class="main content">
<van-tabs active="{{ active }}" color="{{ active_color }}" bind:change="onChange">
<van-tab title="待审核处方">
<view class="item">
<view class="item_txt">
<view class="pre_content">处方订单号:2023010510324649</view>
<view class="end_content">
<navigator url="/Pages/yaoshi/medicalrecord/medicalrecord" open-type="navigate" hover-class="other-navigator-hover">
<van-button type="primary" size="small">查看病例</van-button>
</navigator>
</view>
</view>
<view class="item_txt">
<view class="pre_content">开方时间:2023-01-16 08:52</view>
<view class="end_content">
<navigator url="/Pages/yaoshi/medicalrecord/medicalrecord" open-type="navigate" hover-class="other-navigator-hover">
<van-button type="primary" size="small">查看病例</van-button>
</navigator>
</view>
</view>
<view class="item_txt">
<view class="pre_content">张三/男/45岁</view>
<view class="end_content">
<van-button type="primary" color="linear-gradient(to bottom, #5EA8D5, #63CFEA)" size="small">去审方</van-button>
</view>
</view>
</view>
<view class="item">
<view class="item_txt">
<view class="pre_content">处方订单号:2023010510324649</view>
<view class="end_content">
<van-button type="primary" size="small">查看病例</van-button>
</view>
</view>
<view class="item_txt">
<view class="pre_content">开方时间:2023-01-16 08:52</view>
<view class="end_content">
<van-button type="primary" size="small">查看病例</van-button>
</view>
</view>
<view class="item_txt">
<view class="pre_content">张三/男/45岁</view>
<view class="end_content">
<van-button type="primary" color="linear-gradient(to bottom, #5EA8D5, #63CFEA)" size="small">去审方</van-button>
</view>
</view>
</view>
</van-tab>
<van-tab title="已审核处方">
<view class="item">
<view class="pre_content">
处方订单号 2023010510324649
</view>
<view class="end_content">
<van-button type="primary" size="mini">迷你按钮</van-button>
</view>
</view>
</van-tab>
<van-tab title="驳回处方">
<view class="item">
<view class="pre_content">
处方订单号 2023010510324649
</view>
<view class="end_content">
<van-button type="primary" size="mini">迷你按钮</van-button>
</view>
</view>
</van-tab>
<van-tab title="不通过">
<view class="item">
<view class="pre_content">
处方订单号 2023010510324649
</view>
<view class="end_content">
<van-button type="primary" size="mini">迷你按钮</van-button>
</view>
</view>
</van-tab>
</van-tabs>
</view>
</view>
+93
View File
@@ -0,0 +1,93 @@
.container{
background-color: #F4F5F7;
width: 100vw;
height: 100vh;
}
.main{
width: 90vw;
margin: 30rpx auto 0 auto;
background-color: #ffffff;
border-radius: 10rpx;
}
.title{
height: 200rpx;
display: flex;
justify-content: center;
align-items: center;
}
.photo{
flex: 1;
/* background-color: cyan; */
}
.name{
display: flex;
flex-direction: column;
flex: 2;
font-size: 30rpx;
line-height: 50rpx;
/* background-color: burlywood; */
}
.today_num{
font-size: 28rpx;
color: rgb(116,162,250);
}
.status{
flex: 1;
/* background-color: #ace247; */
height: 70%;
}
.status_offline{
background-color: #BFBFBF;
}
.status_text{
display: inline-block;
padding: 10rpx 20rpx;
border-radius: 20rpx;
word-spacing: 10rpx;
letter-spacing: 10rpx;
float: right;
margin-right: 25rpx;
font-size: 20rpx;
}
.custom-tabs {
margin-bottom: 32rpx;
}
.avatar-example {
display: flex;
justify-content: center;
align-items: center;
}
.external-class-content {
color: #fff;
background-color: #0052d9;
font-weight: 400;
}
.avatar-example--medium:not(:last-child) {
margin-right: 96rpx;
}
.item{
border-top: solid rgb(187, 185, 185) 1rpx;
width: 95%;
margin: 10rpx auto;
}
.item_txt{
display: flex;
/* background-color: #0052d9; */
padding: 10rpx 0;
}
.pre_content{
display: flex;
flex: 3;
/* background-color: chartreuse; */
justify-content: flex-start;
align-items: center;
margin-left: 20rpx;
font-size: 28rpx;
}
.end_content{
display: flex;
flex: 1;
justify-content:center;
align-items: center;
/* background-color: coral; */
}
+20
View File
@@ -0,0 +1,20 @@
// Pages/index/index.js
Page({
/**
* 生命周期函数--监听页面显示
*/
onShow() {
if (typeof this.getTabBar === 'function' && this.getTabBar()) {
this.getTabBar().setData({
tabBarShow:false, //true/false
})
}
},
toGo(e){
console.log(e.currentTarget.dataset.url)
wx.switchTab({
url: e.currentTarget.dataset.url
})
}
})
+6
View File
@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"t-image": "tdesign-miniprogram/image/image"
}
}
+29
View File
@@ -0,0 +1,29 @@
<view class="title">请选择您的身份</view>
<view>
<view class="item">
<t-image
bindtap="toGo" data-url="/Pages/yaoshi/home/home"
class="item_img"
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yi.png"
mode="heightFix"
height="220rpx"
aria-label="医师端"
loading="slot"
>
<t-loading slot="loading" theme="circular" size="40rpx" loading />
</t-image>
</view>
<view class="item">
<t-image
bindtap="toGo" data-url="/Pages/yaoshi/my/my"
class="item_img"
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yao.png"
mode="heightFix"
height="220rpx"
aria-label="药师端"
loading="slot">
<t-loading slot="loading" theme="circular" size="40rpx" loading />
</t-image>
</view>
</view>
+19
View File
@@ -0,0 +1,19 @@
.title{
margin-top: 250rpx ;
margin-left: 50rpx;
margin-bottom: 100rpx;
font-size: 50rpx;
font-weight: bold;
}
.item{
display: flex;
flex-direction: row;
margin-bottom: 100rpx;
justify-content: center;
align-content: center;
}
.item_img{
flex: 1;
display: flex;
justify-content: center;
}
+19
View File
@@ -0,0 +1,19 @@
//index.js
//获取应用实例
const app = getApp()
Page({
data: {
// 组件所需的参数
navbarData: {
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
title: '基本资料', //导航栏 中间的标题
},
// 此页面 页面内容距最顶部的距离
height: app.globalData.height ,
},
onLoad() {
console.log(this.data.height)
}
})
+14
View File
@@ -0,0 +1,14 @@
{
"component": true,
"usingComponents": {
"te-nav-bar": "/commpents/te_navbar",
"t-avatar": "tdesign-miniprogram/avatar/avatar",
"van-cell": "@vant/weapp/cell/index",
"van-cell-group": "@vant/weapp/cell-group/index"
},
"navigationBarBackgroundColor": "#ffffff",
"navigationBarTextStyle": "black",
"navigationBarTitleText": "基本资料",
"backgroundColor": "#eeeeee",
"backgroundTextStyle": "light"
}
+19
View File
@@ -0,0 +1,19 @@
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
<view class="container">
<view class="top">
<t-avatar class="avatar" size="large" image="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/default_photo.png" />
<text class="name">李四</text>
</view>
<view class="content">
<van-cell-group>
<van-cell title="姓名" title-width="120rpx" title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="李四" />
<van-cell title="性别" title-width="120rpx" title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
<van-cell title="年龄" title-width="120rpx" title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
<van-cell title="身份证号" title-width="120rpx" title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
<van-cell title="手机号码" title-width="120rpx" title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
<van-cell title="我的地址" title-width="120rpx" title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
<van-cell title="科室" title-width="120rpx" title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
<van-cell title="职称" title-width="120rpx" title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
</van-cell-group>
</view>
</view>
+19
View File
@@ -0,0 +1,19 @@
.top{
width: 100vw;
background-color: cornflowerblue;
height: 370rpx;
display: flex;
justify-content: center;
align-items: center;
align-content: center;
flex-direction: column;
}
.name{
color: white;
margin-top: 30rpx;
text-align: justify;
text-justify:distribute-all-lines;
text-align-last: justify;
width: 60rpx;
font-size: 28rpx;
}
@@ -0,0 +1,19 @@
//index.js
//获取应用实例
const app = getApp()
Page({
data: {
// 组件所需的参数
navbarData: {
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
title: '患者病历', //导航栏 中间的标题
},
// 此页面 页面内容距最顶部的距离
height: app.globalData.height ,
},
onLoad() {
console.log(this.data.height)
}
})
@@ -0,0 +1,12 @@
{
"component": true,
"usingComponents": {
"te-nav-bar": "/commpents/te_navbar",
"van-button": "@vant/weapp/button/index"
},
"navigationBarBackgroundColor": "#ffffff",
"navigationBarTextStyle": "black",
"navigationBarTitleText": "患者病历",
"backgroundColor": "#eeeeee",
"backgroundTextStyle": "light"
}
@@ -0,0 +1,29 @@
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
<view class="container">
<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岁
</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></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>
<view class="bottom">肝胆相照提供技术支持</view>
</view>
@@ -0,0 +1,34 @@
.container{
letter-spacing: 3rpx;
background-color: #F3F5F7;
height: 100vh;
}
.user_info{
background-color: #fff;
margin: 30rpx 0;
padding: 20rpx;
}
.case_info{
background-color: #fff;
padding: 20rpx;
}
.user_item{
padding: 20rpx 0;
}
.item{
padding: 30rpx 0;
border-bottom: 1rpx solid #F1F1F1;
}
.item_title{
color: #909090;
}
.bottom{
text-align: center;
margin: 30rpx 0;
font-size: 20rpx;
letter-spacing: 5rpx;
}
.go_check{
width: 90vw;
margin: 20rpx auto 50rpx auto;
}
+31
View File
@@ -0,0 +1,31 @@
// Pages/my/my.js
const app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
navbarData: {
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
title: '个人中心', //导航栏 中间的标题
},
// 此页面 页面内容距最顶部的距离
height: app.globalData.height,
},
onLoad() {
console.log(this.data.height)
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
if (typeof this.getTabBar === 'function' && this.getTabBar()) {
this.getTabBar().setData({
currentTab: 1 //数字是当前页面在tabbar的索引,如我的查询页索引是2,因此这边为2,同理首页就为0,审批页面为1
})
}
}
})
+13
View File
@@ -0,0 +1,13 @@
{
"component": true,
"usingComponents": {
"te-nav-bar": "/commpents/te_navbar",
"t-avatar": "tdesign-miniprogram/avatar/avatar",
"van-icon": "@vant/weapp/icon/index"
},
"navigationBarBackgroundColor": "#ffffff",
"navigationBarTextStyle": "black",
"navigationBarTitleText": "个人中心",
"backgroundColor": "#eeeeee",
"backgroundTextStyle": "light"
}
+20
View File
@@ -0,0 +1,20 @@
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
<view class="container">
<view class="top">
<t-avatar class="avatar" size="large" image="/static/images/default_photo.png" />
<text class="name">李四</text>
</view>
<view class="content">
<navigator url="/Pages/yaoshi/info/info" open-type="navigate" hover-class="other-navigator-hover">
<view class="my">个人中心</view>
</navigator>
<view class="item_list">
<view class="item">
<navigator url="/Pages/yaoshi/authentication/authentication" open-type="navigate" hover-class="other-navigator-hover">
<van-icon name="user-o" size="50rpx" color="#55B0E5"/>
<text class="item_name">实名认证</text>
</navigator>
</view>
</view>
</view>
</view>
+39
View File
@@ -0,0 +1,39 @@
.top{
width: 100vw;
background-color: cornflowerblue;
height: 370rpx;
display: flex;
justify-content: center;
align-items: center;
align-content: center;
flex-direction: column;
}
.name{
color: white;
margin-top: 30rpx;
text-align: justify;
text-justify:distribute-all-lines;
text-align-last: justify;
width: 60rpx;
font-size: 28rpx;
}
.my{
display: flex;
height: 100rpx;
/* background-color: teal; */
align-items: center;
padding-left: 30rpx;
color: black;
border-bottom: 1px solid rgb(209, 206, 206);
}
.item{
display: flex;
height: 100rpx;
/* background-color: teal; */
align-items: center;
padding-left: 30rpx;
color: black;
}
.item_name{
margin-left: 20rpx;
}
+73
View File
@@ -0,0 +1,73 @@
import Toast from '@vant/weapp/toast/toast';
const app = getApp()
Page({
data: {
bohuishow: false,
reasonshow: false,
resonText: "请选择驳回理由",
columns: ['用法错误', '超适应症用药', '诊断与用药不符', '抗生素使用不合理', '重复用药'],
navbarData: {
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
title: '处方详情', //导航栏 中间的标题
},
// 此页面 页面内容距最顶部的距离
height: app.globalData.height,
},
onLoad() {
console.log(this.data.height)
},
onConfirmReason(event) {
const { picker, value, index } = event.detail;
console.log(`当前值:${value}, 当前索引:${index}`);
let _resonText = `${value}`;
this.setData({ resonText: _resonText });
this.setData({ reasonshow: false });
},
onCancelReason() {
Toast('取消');
this.setData({ reasonshow: false });
},
showPopup() {
this.setData({ bohuishow: true });
},
showReasonPopup(){
console.log(222);
this.setData({ reasonshow: true });
},
onClose() {
console.log(111);
this.setData({ bohuishow: false });
},
onCloseReason(){
this.setData({ reasonshow: false });
},
closePopup(){
this.setData({ bohuishow: false });
},
submitBohui() {
console.log(444);
Toast.loading({
message: '加载中...',
forbidClick: true,
onClose: () => {
console.log('执行OnClose函数');
this.setData({ bohuishow: false });
},
});
},
submit(){
console.log(555);
}
})
@@ -0,0 +1,17 @@
{
"component": true,
"usingComponents": {
"te-nav-bar": "/commpents/te_navbar",
"van-button": "@vant/weapp/button/index",
"van-cell": "@vant/weapp/cell/index",
"van-cell-group": "@vant/weapp/cell-group/index",
"van-toast": "@vant/weapp/toast/index",
"van-popup": "@vant/weapp/popup/index",
"van-picker": "@vant/weapp/picker/index"
},
"navigationBarBackgroundColor": "#ffffff",
"navigationBarTextStyle": "black",
"navigationBarTitleText": "处方详情",
"backgroundColor": "#eeeeee",
"backgroundTextStyle": "light"
}
@@ -0,0 +1,48 @@
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
<view class="container">
<view class="img_box">
<view class="img_content">
<image class="case_img"
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/prescription_demo.png"
mode="widthFix"
/>
</view>
</view>
<view class="button_group">
<view class="button_item">
<van-button round plain type="danger" bind:click="showPopup">
<text decode="true">&nbsp;&nbsp;&nbsp;&nbsp;驳回&nbsp;&nbsp;&nbsp;&nbsp;</text>
</van-button>
</view>
<view class="button_item">
<van-button round type="primary" bind:click="submit">
<text decode="true">&nbsp;&nbsp;&nbsp;&nbsp;通过&nbsp;&nbsp;&nbsp;&nbsp;</text>
</van-button>
</view>
</view>
<van-popup show="{{ bohuishow }}" bind:close="onClose">
<view class="pop">
<van-cell title="驳回理由:" is-link value="{{ resonText }}" bind:click="showReasonPopup"/>
<view class="pop_button">
<view class="pop_button_txt" bindtap="closePopup">取消</view>
<view class="pop_button_txt" bindtap="submitBohui">确认驳回</view>
</view>
</view>
</van-popup>
<van-popup
show="{{ reasonshow }}"
position="bottom"
bind:close="onCloseReason"
>
<van-picker show-toolbar
title="请选择"
columns="{{ columns }}"
bind:cancel="onCancelReason"
bind:confirm="onConfirmReason" />
</van-popup>
<van-toast id="van-toast" />
</view>
@@ -0,0 +1,36 @@
.container{
background-color: #F3F5F7;
}
.img_box{
width: 90vw;
margin: 20rpx auto;
text-align: center;
}
.case_img{
width: 100%;
}
.img_content{
background-color: #F1F1F3;
padding: 20rpx;
border-radius: 10rpx;
}
.button_group{
display: flex;
justify-content: space-around;
margin-bottom: 50rpx;
}
.button_item{
display:inline-block;
}
.pop{
width: 80vw;
margin-bottom: 30rpx;
}
.pop_button{
margin-top: 30rpx;
display: flex;
justify-content: space-around;
}
.pop_button_txt{
color: red;
}