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
+35
View File
@@ -0,0 +1,35 @@
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,
record_list: [],
current_page: 0,
total: 0,
per_page: 0,
last_page: 0
},
onLoad(){
//获取提现数据
api.getDoctorWithdrawalRecord({year:'2023'}).then(response => {
console.log(response);
if(response.data.total > 0){
this.setData({
record_list: 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",
"van-icon": "@vant/weapp/icon/index",
"t-image": "tdesign-miniprogram/image/image"
}
}
+71
View File
@@ -0,0 +1,71 @@
<!-- 提现记录 -->
<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_txt">
<view class="month">2022年<van-icon name="arrow-down" color="#fff" size="40rpx" /></view>
</view>
</view>
<view class="data_list">
<view class="data_item" wx:for="{{record_list}}">
<view class="data_item_top">
<view class="data_item_top_icon">
<t-image custom-style="" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/bankcard/js_icon.png" mode="heightFix" height="50rpx" aria-label="role" />
</view>
<view class="data_item_top_content">
<view class="name">{{item.account_name}}<text style="margin-left:20rpx;font-size: 28rpx;corlor:#999;">(尾号{{item.bank_card_code_four}})</text></view>
<view class="date">{{item.examine_time}}</view>
</view>
<view class="data_item_top_num">
<view class="jine">¥{{item.applied_withdrawal_amount}}</view>
<view class="status_box">
<!-- 审核状态(1:审核中 2:审核通过 3:审核未通过) -->
<view class="status status_ing">{{item.examine_status}}</view>
</view>
</view>
</view>
<view class="data_item_bottom">个人所得税:¥{{item.income_tax}}</view>
</view>
<view class="data_item">
<view class="data_item_top">
<view class="data_item_top_icon">
<t-image custom-style="" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/bankcard/js_icon.png" mode="heightFix" height="50rpx" aria-label="role" />
</view>
<view class="data_item_top_content">
<view class="name">张三三<text style="margin-left:20rpx;font-size: 28rpx;corlor:#999;">(尾号9900)</text></view>
<view class="date">12.09 13:23</view>
</view>
<view class="data_item_top_num">
<view class="jine">¥123.00</view>
<view class="status_box">
<view class="status status_end">结算成功</view>
</view>
</view>
</view>
<view class="data_item_bottom">个人所得税:¥12.00</view>
</view>
<view class="data_item">
<view class="data_item_top">
<view class="data_item_top_icon">
<t-image custom-style="" src="/static/images/yishi/bankcard/js_icon.png" mode="heightFix" height="50rpx" aria-label="role" />
</view>
<view class="data_item_top_content">
<view class="name">张三三<text style="margin-left:20rpx;font-size: 28rpx;corlor:#999;">(尾号9900)</text></view>
<view class="date">12.09 13:23</view>
</view>
<view class="data_item_top_num">
<view class="jine">¥123.00</view>
<view class="status_box">
<view class="status status_ing">结算中</view>
</view>
</view>
</view>
<view class="data_item_bottom">个人所得税:¥12.00</view>
</view>
</view>
</view>
+95
View File
@@ -0,0 +1,95 @@
.container{
background-color: #F4F4F4;
width: 100vw;
height: 100vh;
}
.top{
width: 92vw;
margin: 50rpx auto 0 auto;
background-color: #3CC7C0;
height: 150rpx;
border-radius: 20rpx;
color: #ffffff;
}
.top_txt{
display: flex;
align-items: center;
height: 110rpx;
padding-left: 20rpx;
}
.data_list{
width: 92vw;
margin: -40rpx auto 0 auto;
}
.data_item{
display: flex;
flex-direction: column;
margin-bottom: 50rpx;
height: 200rpx;
background-color: #ffffff;
border-radius: 20rpx;
padding: 20rpx 0 0 0;
}
.data_item_top{
flex: 2;
display: flex;
border-bottom: 1px solid #E7E7E7;
}
.data_item_top_icon{
flex: 1;
text-align: center;
height: 70%;
align-self: start;
}
.data_item_top_content{
flex: 3;
display: flex;
flex-direction: column;
}
.name{
font-size: 32rpx;
color: #333333;
flex: 1;
}
.date{
flex: 1;
font-size: 28rpx;
color: #999999;
}
.data_item_top_num{
flex: 2;
display: flex;
flex-direction: column;
justify-content: space-between;
text-align: center;
}
.jine{
color: #FF0000;
font-size: 34rpx;
}
.status_box{
display: flex;
justify-content: center;
}
.status{
border-radius: 10px;
font-size: 24rpx;
padding: 10rpx 40rpx;
margin-bottom: 20rpx;
}
.status_ing{
background-color: #FFF2E8;
color: #FA541C;
}
.status_end{
background-color: #C5C5C5;
color: #FFFFFF;
}
.data_item_bottom{
flex: 1;
display: flex;
align-items: center;
justify-content: flex-end;
margin-right: 20rpx;
color: #666;
}