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
+84
View File
@@ -0,0 +1,84 @@
// commpents/wenzhen_data/index.js
Component({
/**
* 组件的属性列表
*/
properties: {
name: {
type: String,
value: '张三三',
},
sex: {
type: String,
value: '未知',
},
age: {
type: String,
value: '0',
},
date: {
type: String,
value: '12:89',
},
desc: {
type: String,
value: '这是示例备注desc',
},
status_text: {
type: String,
value: "接诊中",
},
status: {
type: String,
value: "0",
},
status_class: {
type: String,
},
note: {
type: String,
value: '不接诊24小时后自动取消',
},
},
/**
* 组件的初始数据
*/
data: {
show: false
},
/**
* 组件的方法列表
*/
methods: {
go(e){
wx.navigateTo({
url: e.currentTarget.dataset.url,
events: {
// 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据
acceptDataFromOpenedPage: function(data) {
console.log(data)
},
someEvent: function(data) {
console.log(data)
}
},
success: function(res) {
// 通过 eventChannel 向被打开页面传送数据
res.eventChannel.emit('acceptDataFromOpenerPage', { data: 'test' })
}
})
},
tabShow(){
this.setData({
show: true
})
},
onClose(){
this.setData({
show: false
})
}
}
})
+7
View File
@@ -0,0 +1,7 @@
{
"component": true,
"usingComponents": {
"van-button": "@vant/weapp/button/index",
"van-popup": "@vant/weapp/popup/index"
}
}
+29
View File
@@ -0,0 +1,29 @@
<view class="content">
<view class="content_1">
<view class="name"><text style="font-size: 34rpx;color: #333;">就诊人:</text>{{name}} {{sex}}{{age}}岁</view>
<view class="date"> {{date}}</view>
</view>
<view class="content_2">{{desc}}</view>
<view class="content_3">
<view class="status {{ status_class }}">{{status_text}}</view>
<view class="btn" wx:if="{{ status == 0 }}">
<van-button bind:click="go" data-url="/Pages/yishi/case/index" plain custom-style="width:200rpx; border-radius: 10rpx;" color="#3CC7C0">查看病历</van-button>
<van-button type="default" bindtap="tabShow" custom-style="width:200rpx; border-radius: 10rpx;" color="#3CC7C0">去接诊</van-button>
</view>
<view class="btn" wx:if="{{ status == 1 }}">
<van-button plain custom-style="width:200rpx; border-radius: 10rpx;" color="#3CC7C0">问诊详情</van-button>
</view>
</view>
<view class="content_4" wx:if="{{ status == 0 }}">{{note}}</view>
</view>
<van-popup show="{{ show }}" bind:close="onClose" round>
<view class="pop_content">
<view class="pop_title">温馨提示</view>
<view class="pop_note">为保障服务质量,请您查看患者病历信息在选择是否接诊。</view>
<view class="pop_btn">
<view class="pop_btn_left" bindtap="go" data-url="/Pages/yishi/case/index" >去查看</view>
<view class="pop_btn_right" bindtap="go" data-url="/Pages/yishi/chat/index" >去接诊</view>
</view>
</view>
</van-popup>
+88
View File
@@ -0,0 +1,88 @@
.content{
background-color: #fff;
display: flex;
flex-direction: column;
margin-bottom: 20rpx;
}
.content_1,.content_3,.content_2{
display: flex;
justify-content: space-between;
margin: 20rpx 30rpx;
align-items: center;
}
.content_1,.content_3{
flex: 5;
}
.name{
font-size: 30rpx;
color: #666666;
}
.date{
font-size: 30rpx;
color: #999;
}
.content_2{
background-color: #FAFAFA;
font-size: 26rpx;
color: #999999;
min-height: 70rpx;
padding: 10rpx 20rpx;
}
.status{
font-size: 26rpx;
color: #FA541C;
flex: 1;
}
.status_end{
color: #666666;
}
.btn{
flex: 2;
display: flex;
justify-content: space-around;
}
.content_4{
flex: 5;
font-size: 24rpx;
color: #E34D59;
justify-self:flex-end;
text-align:right;
display: flex;
justify-content: flex-end;
border-top: 1px solid #E3E4E5;
align-items: center;
margin: 0 30rpx;
min-height: 50rpx;
}
.pop_content{
text-align: center;
display: flex;
flex-direction: column;
width: 80vw;
}
.pop_title{
font-size: 34rpx;
color: #333333;
padding: 30rpx 20rpx;
}
.pop_note{
font-size: 32rpx;
color: #999999;
padding: 0rpx 20rpx 30rpx 20rpx;
}
.pop_btn{
display: flex;
border-top: 1px solid #E3E4E5;
}
.pop_btn_left{
flex: 1;
border-right: 1px solid #E3E4E5;
padding: 30rpx 0rpx;
color: #999999;
}
.pop_btn_right{
flex: 1;
color: #49B9AD;
padding: 30rpx 0rpx;
}