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
+38
View File
@@ -0,0 +1,38 @@
const app = getApp()
Page({
data: {
navbarData: {
showCapsule: 0, //是否显示左上角图标 1表示显示 0表示不显示
title: '问诊消息', //导航栏 中间的标题
},
height: app.globalData.height,
has_data: true
},
onShow: function () {
if (typeof this.getTabBar === 'function' && this.getTabBar()) {
this.getTabBar().setData({
active: 1 //数字是当前页面在tabbar的索引,如我的查询页索引是2,因此这边为2,同理首页就为0,审批页面为1
})
}
},
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' })
}
})
}
})
+11
View File
@@ -0,0 +1,11 @@
{
"component": true,
"usingComponents": {
"te-nav-bar": "/commpents/te_navbar",
"wenzhen-data": "/commpents/wenzhen_data/index",
"t-image": "tdesign-miniprogram/image/image",
"t-tabs": "tdesign-miniprogram/tabs/tabs",
"t-tab-panel": "tdesign-miniprogram/tab-panel/tab-panel",
"van-button": "@vant/weapp/button/index"
}
}
+102
View File
@@ -0,0 +1,102 @@
<!-- 问诊页面 -->
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
<view class="container" style="height: calc(100vh - 96rpx - {{height}}px);">
<view class="top">
<view class="top_left" bindtap="go" data-url="/Pages/yishi/service_notice/index">
<t-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice.png" mode="heightFix" height="108rpx" aria-label="notice" />
服务通知
</view>
<view class="top_right" bindtap="go" data-url="/Pages/yishi/system_notice/index">
<t-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/system_notice.png" mode="heightFix" height="108rpx" aria-label="notice" />
系统公告
</view>
</view>
<view class="empty" wx:if="{{ !has_data }}" >
<t-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/wnzhen_empty.png" mode="heightFix" height="108rpx" aria-label="empty" />
<view class="empty_note">您还未设置在线问诊价格</view>
</view>
<van-button color="#3CC7C0" custom-style="width: 92vw;margin: 0 auto;border-radius: 10rpx;" block wx:if="{{ !has_data }}">开通图文问诊</van-button>
<view class="tabs" wx:if="{{ has_data }}" >
<t-tabs
defaultValue="{{0}}"
sticky
bind:change="onTabsChange"
bind:click="onTabsClick"
bind:scroll="onStickyScroll"
t-class="custom-tabs"
theme="line"
custom-style="font-size: 32rpx"
>
<t-tab-panel label="快速问诊" value="0">
<wenzhen-data
name="李四"
sex="女"
age="19"
desc="VVVVVVVV"
status="0"
status_text="待接诊"
note="xxx"
/>
<wenzhen-data
name="李放四"
sex="女"
age="199"
desc="VVVVVVVV"
status="1"
status_text="接诊中"
/>
</t-tab-panel>
<t-tab-panel label="问诊购药" value="1">
<wenzhen-data
name="张三"
sex="男"
age="19"
desc="VVVVVVVV"
status="0"
status_text="待接诊"
note="xxx"
/>
</t-tab-panel>
<t-tab-panel label="在线问诊" value="2">
<wenzhen-data
name="王五"
sex="女"
age="19"
desc="VVVVVVVV"
status="0"
status_text="待接诊"
note="xxx"
/>
</t-tab-panel>
<t-tab-panel label="公益问诊" value="3">
<wenzhen-data
name="赵柳"
sex="女"
age="19"
desc="VVVVVVVV"
status="0"
status_text="待接诊"
note="xxx"
/>
</t-tab-panel>
<t-tab-panel label="问诊结束" value="4">
<wenzhen-data
name="谢广坤"
sex="女"
age="199"
desc="VVVVVVVV"
status="2"
status_class="status_end"
status_text="快速问诊"
/>
</t-tab-panel>
</t-tabs>
</view>
<view style="height: 200rpx;"></view>
</view>
+49
View File
@@ -0,0 +1,49 @@
.container{
background-color: #F4F4F4;
width: 100vw;
height: 100vh;
}
.top{
margin: 30rpx auto;
display: flex;
padding: 20rpx 20rpx;
background-color: rgb(255, 255, 255);
}
.top_left, .top_right{
flex: 1;
text-align: center;
display: flex;
flex-direction: column;
color: #666666;
font-size: 20rpx;
}
.top_left{
border-right: 1px solid #F4F4F4;
}
.t-tab-panel {
background-color: #F4F4F4;
}
.t-tabs__item--active{
color: #49B9AD !important;
font-size: 32rpx !important;
}
.t-tabs__item-inner--line{
font-size: 28rpx !important;
}
.t-tabs__track{
background-color: var(--td-tab-track-color, var(--td-primary-color, #49B9AD)) !important;
}
.empty{
width: 92vw;
margin: 0 auto;
height: 500rpx;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
.empty_note{
font-size: 24rpx;
color: #999999;
margin-top: 30rpx;
}