add file
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
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,
|
||||
result: ['a'],
|
||||
page: 1,
|
||||
per_page: 10,
|
||||
order_list: [],
|
||||
total: 0
|
||||
},
|
||||
|
||||
onChange(event) {
|
||||
this.setData({
|
||||
result: event.detail,
|
||||
});
|
||||
},
|
||||
onLoad(){
|
||||
//可提现问诊订单列表
|
||||
let params = {};
|
||||
params.page = page;
|
||||
params.per_page = per_page;
|
||||
api.getDoctorWithdrawalOrder(params).then(response => {
|
||||
console.log(response);
|
||||
if(response.data.total > 0){
|
||||
this.setData({
|
||||
order_list: response.data.data,
|
||||
current_page: response.data.current_page,
|
||||
per_page: response.data.per_page,
|
||||
last_page: response.data.last_page
|
||||
})
|
||||
}
|
||||
}).catch(errors => {console.error(errors);})
|
||||
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"te-nav-bar": "/commpents/te_navbar",
|
||||
"van-checkbox": "@vant/weapp/checkbox/index",
|
||||
"van-checkbox-group": "@vant/weapp/checkbox-group/index",
|
||||
"van-button": "@vant/weapp/button/index"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
<!-- 问诊订单 -->
|
||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||
<view class="container" style="height: calc(100vh - 96rpx - {{height}}px);">
|
||||
<van-checkbox-group value="{{ result }}" bind:change="onChange">
|
||||
<view class="order_list">
|
||||
<view class="order_item">
|
||||
<view class="order_item_checkbox">
|
||||
<van-checkbox name="a"></van-checkbox>
|
||||
</view>
|
||||
<view class="order_item_content">
|
||||
<view class="order_item_content_top">快速问诊</view>
|
||||
<view class="order_item_content_data">
|
||||
<view class="order_id">订单编号:<text style="font-size: 30rpx;color: #666666;">2131231xxxx</text></view>
|
||||
<view class="order_id">就诊患者:<text style="font-size: 30rpx;color: #666666;">张三三(女,25岁)</text></view>
|
||||
<view class="order_id">接诊时间:<text style="font-size: 30rpx;color: #666666;">2022-12-30 11:23:23</text></view>
|
||||
<view class="order_id">结束时间:<text style="font-size: 30rpx;color: #666666;">2022-12-12 11:23:23</text></view>
|
||||
<view class="order_id">订单金额:<text style="font-size: 30rpx;color: #666666;">¥1212.00元</text></view>
|
||||
<view class="order_id">预计收入:<text style="font-size: 30rpx;color: #666666;">¥112.00元</text></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="order_item" wx:for="{{order_list}}" wx:for-index="idx">
|
||||
<view class="order_item_checkbox">
|
||||
<van-checkbox name="a{{idx}}"></van-checkbox>
|
||||
</view>
|
||||
<view class="order_item_content">
|
||||
<!-- (1:专家问诊 2:快速问诊 3:公益问诊 4:问诊购药) -->
|
||||
<view class="order_item_content_top">{{item.inquiry_type}}</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}},{{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">结束时间:<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.payment_amount_total}}元</text></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
</view>
|
||||
</van-checkbox-group>
|
||||
|
||||
<view class="bottom">
|
||||
<view class="bottom_checkbox">
|
||||
<van-checkbox value="{{ checked }}" bind:change="onChange">全选</van-checkbox>
|
||||
</view>
|
||||
<view class="bottom_content">共10个订单,金额: <text style="color: red;font-size: 30rpx;">¥302元 </text> </view>
|
||||
<view class="bottom_btn">
|
||||
<van-button block color="linear-gradient(310deg, #FF931A 0%, #FF931A 0%, #FCB75D 100%);">
|
||||
确定
|
||||
</van-button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -0,0 +1,74 @@
|
||||
.container{
|
||||
background-color: #F4F4F4;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
}
|
||||
.order_list{
|
||||
display: flex;
|
||||
width: 92vw;
|
||||
margin: 0 auto;
|
||||
flex-direction: column;
|
||||
}
|
||||
.order_item{
|
||||
display: flex;
|
||||
width: 100%;
|
||||
margin-top: 30rpx;
|
||||
}
|
||||
.order_item_checkbox{
|
||||
flex: 1;
|
||||
align-self: center;
|
||||
}
|
||||
.order_item_content{
|
||||
flex: 10;
|
||||
background-color: #fff;
|
||||
border-radius: 20rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 20rpx;
|
||||
height: 400rpx;
|
||||
}
|
||||
.order_item_content_top{
|
||||
flex: 1;
|
||||
border-bottom: 1px solid #E5E5E5;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 36rpx;
|
||||
}
|
||||
.order_item_content_data{
|
||||
flex: 3;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.order_id{
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
.bottom{
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
width: 100vw;
|
||||
display: flex;
|
||||
background-color: #fff;
|
||||
align-items: center;
|
||||
z-index: 99;
|
||||
}
|
||||
.bottom_checkbox{
|
||||
flex: 2;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
.bottom_content{
|
||||
flex: 6;
|
||||
text-align: center;
|
||||
font-size: 28rpx;
|
||||
color: #666666;
|
||||
}
|
||||
.bottom_btn{
|
||||
flex: 2;
|
||||
justify-content: flex-end;
|
||||
font-size: 34rpx;
|
||||
background-color: limegreen;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user