blob: efe1ff22295ca43e7eae5be74cdd150ea968772d [file] [log] [blame]
<template>
<view class="cashFlow">
<view style="padding: 30rpx 0;">
<view class="cashFlow-header">
<view :class="'cashFlow-header-items left ' + (leftOright?'color':'')" @click="changeTurnoverList(true)">待缴费</view>
<view :class="'cashFlow-header-items right ' + (leftOright?'':'color')" @click="changeTurnoverList(false)">已缴费</view>
</view>
</view>
<view v-if="leftOright">
<scroll-view scroll-y :enable-back-to-top="true" @scrolltolower="" class="scrollView">
<view class="cashFlow-ul">
<view class="cashFlow-ul-item">
<view class="cashFlow-ul-item-left">
<view class="cashFlow-ul-item-left-top">
<u-image src="./images/pay.png" width="80" height="80"></u-image>
<text>挂号费</text>
</view>
<view class="cashFlow-ul-item-left-bottom">
<text class="cashFlow-ul-item-left-bottom-bold">01</text>
<text class="cashFlow-ul-item-left-bottom-normal">天内缴费,截止日期2020/10/28 23:59:59</text>
</view>
</view>
<view class="cashFlow-ul-item-right">
<text>¥23.5</text>
</view>
</view>
</view>
</scroll-view>
</view>
<view v-if="!leftOright">
<scroll-view scroll-y :enable-back-to-top="true" @scrolltolower="" class="scrollView">
<view class="cashFlow-ul">
<view class="cashFlow-ul-item">
<view class="cashFlow-ul-item-left">
<view class="cashFlow-ul-item-left-top">
<u-image src="./images/pay.png" width="80" height="80"></u-image>
<text>挂号费</text>
</view>
<view class="cashFlow-ul-item-left-bottom">
<text class="cashFlow-ul-item-left-bottom-normal">缴费日期:</text>
<text class="cashFlow-ul-item-left-bottom-normal">2020-10-28 12:30:59</text>
</view>
</view>
<view class="cashFlow-ul-item-right">
<text>¥23.5</text>
</view>
</view>
</view>
</scroll-view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
leftOright: true
}
},
methods: {
changeTurnoverList(e) {
this.leftOright = e
},
}
}
</script>
<style lang="scss" scoped>
.scrollView{
height: calc(100vh - 130rpx - 100rpx);
}
.cashFlow {
font-family: "PingFang-SC-Medium";
&-header {
width: 80%;
display: flex;
justify-content: center;
align-items: center;
border-radius: 50rpx;
margin: 0rpx auto;
&-items {
width: 50%;
text-align: center;
background-color: #ffffff;
padding: 20rpx;
color: #999999;
border-top: 2rpx solid #F1F1F1;
border-bottom: 2rpx solid #F1F1F1;
}
.left {
border-top-left-radius: 50rpx;
border-bottom-left-radius: 50rpx;
border-left: 2rpx solid #F1F1F1;
}
.right {
border-top-right-radius: 50rpx;
border-bottom-right-radius: 50rpx;
border-right: 2rpx solid #F1F1F1;
}
.color {
background-color: #3599fb;
color: #ffffff;
padding: 20rpx;
border: 2rpx solid transparent;
}
}
&-ul{
padding: 0 20rpx;
&-item{
background-color: #FFFFFF;
display: flex;
justify-content: space-between;
align-items: center;
padding: 30rpx 20rpx;
border-radius: 10rpx;
&-left{
display: flex;
flex-direction: column;
justify-content: space-between;
&-top{
display: flex;
align-items: center;
text{
font-size: 36rpx;
margin-left: 10rpx;
font-weight: bold;
}
}
&-bottom{
margin-top: 20rpx;
&-bold{
font-size: 32rpx;
font-weight: bold;
}
&-normal{
color: #a1a1a1;
}
}
}
&-right{
font-size: 40rpx;
color: #FF6F6F;
font-weight: bold;
}
}
}
}
</style>