分包医生

This commit is contained in:
zoujiandong
2024-01-16 14:59:06 +08:00
parent 562d4e9691
commit d5a9339ddd
1060 changed files with 3177 additions and 44707 deletions
+61
View File
@@ -0,0 +1,61 @@
import { API } from '../../../../utils/network/api'
const api = new API()
const app = getApp()
Page({
data: {
navbarData: {
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
title: '收益明细 ', //导航栏 中间的标题
},
height: app.globalData.height,
list: [],
date: "",
current_page: 0,
total: 0,
per_page: 0,
last_page: 0
},
onReachBottom() {
console.log('===触底了!!===');
if(this.data.current_page < this.data.last_page){//最后一页时停止分页
this.getDoctorAccountInfo()
}
},
onLoad(option){
let date = option.date;
console.log(date);
this.setData({
date: date
})
},
onHide(){
this.setData({
list: [],
date: "",
current_page: 0,
total: 0,
per_page: 0,
last_page: 0
})
},
onShow(){
this.getDoctorAccountInfo();
},
getDoctorAccountInfo(){
let list = this.data.list
let params = {};
params.page = this.data.current_page + 1;
params.date = this.data.date;
api.getDoctorAccountInfo(params).then(response => {
console.log(response);
this.setData({
list: list.concat(response.data.data),
current_page: response.data.current_page,
total: response.data.total,
per_page: response.data.per_page,
last_page: response.data.last_page,
})
}).catch(errors => {console.error(errors);})
}
})
+8
View File
@@ -0,0 +1,8 @@
{
"component": true,
"usingComponents": {
"te-nav-bar": "../../../../commpents/te_navbar/index",
"van-empty": "@vant/weapp/empty/index",
"van-divider": "@vant/weapp/divider/index"
}
}
+25
View File
@@ -0,0 +1,25 @@
<!-- 收益明细 -->
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
<view class="container">
<view class="order_list">
<view class="order_item" wx:for="{{list}}">
<view class="order_item_content">
<view class="order_item_content_top ">
{{ item.inquiry_type==1?'专家问诊':item.inquiry_type==2?'快速问诊':item.inquiry_type==3?'公益问诊':item.inquiry_type==4?'问诊购药':'其他' }}
<!-- <view class="order_status order_status_cancle">{{ item.inquiry_status==1?'待支付':item.inquiry_status==2?'待分配':item.inquiry_status==3?'待接诊':item.inquiry_status==4?'接诊中':item.inquiry_status==5?'已完成':item.inquiry_status==6?'问诊结束':item.inquiry_status==7?'已取消':'其他' }}</view> -->
<view class="order_status order_status_cancle {{item.entry_status==1?'entrying':item.entry_status==2?'entrysuccess':item.entry_status==3?'entryfail':'' }}">{{ item.entry_status==1?'入账中':item.entry_status==2?'入账成功':item.entry_status==3?'入账失败':'未知' }}</view>
</view>
<view class="order_item_content_data">
<view class="order_id">订单编号:<text style="font-size: 30rpx;color: #666666;">{{item.inquiry_no}}</text></view>
<view class="order_id">就诊患者:<text style="font-size: 30rpx;color: #666666;">{{item.patient_name}}({{item.patient_sex==1?'男':'女'}},{{item.patient_age}}岁)</text></view>
<view class="order_id">接诊时间:<text style="font-size: 30rpx;color: #666666;">{{item.reception_time}}</text></view>
<view class="order_id" wx:if="{{item.finish_time}}">结束时间:<text style="font-size: 30rpx;color: #666666;">{{item.finish_time}}</text></view>
<view class="order_id">订单金额:<text style="font-size: 30rpx;color: #666666;">¥{{item.amount_total}}</text></view>
<view class="order_id">预计收入:<text style="font-size: 30rpx;color: #666666;">¥{{item.estimate_income}}</text></view>
</view>
</view>
</view>
<van-empty description="暂无数据" wx:if="{{list.length == 0}}" />
<van-divider contentPosition="center" wx:if="{{list.length > 0 && current_page == last_page}}">到底了~</van-divider>
</view>
</view>
+71
View File
@@ -0,0 +1,71 @@
page{
background-color: #F4F4F4;
}
.container{
width: 100vw;
}
.order_list{
display: flex;
width: 92vw;
margin: 0 auto;
flex-direction: column;
padding-bottom: 50rpx;
}
.order_item{
display: flex;
width: 100%;
margin-top: 30rpx;
height: 500rpx;
}
.order_item_content{
flex: 5;
background-color: #fff;
border-radius: 20rpx;
display: flex;
flex-direction: column;
padding: 20rpx;
}
.order_item_content_top{
flex: 1;
border-bottom: 1px solid #E5E5E5;
display: flex;
align-items: center;
font-size: 36rpx;
justify-content:space-between;
}
.order_status{
padding: 10rpx 20rpx;
font-size: 24rpx;
border-radius: 10rpx;
}
.order_status_ing{
background-color: #FFF2E8;
color: #FA541C;
}
.order_status_cancle{
background-color: #C5C5C5;
color: #fff;
}
.order_status.entrying{
background: #FFF2E8;
color: #FA541C;
}
.order_status.entrysuccess{
background: #E2FFFE;
color: #3CC7C0;
}
.order_status.entryfail{
background-color: #C5C5C5;
color: #fff;
}
.order_item_content_data{
flex: 5;
display: flex;
flex-direction: column;
}
.order_id{
flex: 1;
display: flex;
align-items: center;
font-size: 30rpx;
}