blob: efe1ff22295ca43e7eae5be74cdd150ea968772d [file] [log] [blame]
guangchao.xu070005a2020-12-07 09:56:40 +08001<template>
2 <view class="cashFlow">
3 <view style="padding: 30rpx 0;">
4 <view class="cashFlow-header">
5 <view :class="'cashFlow-header-items left ' + (leftOright?'color':'')" @click="changeTurnoverList(true)">待缴费</view>
6 <view :class="'cashFlow-header-items right ' + (leftOright?'':'color')" @click="changeTurnoverList(false)">已缴费</view>
7 </view>
8 </view>
9 <view v-if="leftOright">
10 <scroll-view scroll-y :enable-back-to-top="true" @scrolltolower="" class="scrollView">
11 <view class="cashFlow-ul">
12 <view class="cashFlow-ul-item">
13 <view class="cashFlow-ul-item-left">
14 <view class="cashFlow-ul-item-left-top">
15 <u-image src="./images/pay.png" width="80" height="80"></u-image>
16 <text>挂号费</text>
17 </view>
18 <view class="cashFlow-ul-item-left-bottom">
19 <text class="cashFlow-ul-item-left-bottom-bold">01</text>
20 <text class="cashFlow-ul-item-left-bottom-normal">天内缴费,截止日期2020/10/28 23:59:59</text>
21 </view>
22 </view>
23 <view class="cashFlow-ul-item-right">
24 <text>¥23.5</text>
25 </view>
26 </view>
27 </view>
28 </scroll-view>
29 </view>
30 <view v-if="!leftOright">
31 <scroll-view scroll-y :enable-back-to-top="true" @scrolltolower="" class="scrollView">
32 <view class="cashFlow-ul">
33 <view class="cashFlow-ul-item">
34 <view class="cashFlow-ul-item-left">
35 <view class="cashFlow-ul-item-left-top">
36 <u-image src="./images/pay.png" width="80" height="80"></u-image>
37 <text>挂号费</text>
38 </view>
39 <view class="cashFlow-ul-item-left-bottom">
40 <text class="cashFlow-ul-item-left-bottom-normal">缴费日期:</text>
41 <text class="cashFlow-ul-item-left-bottom-normal">2020-10-28 12:30:59</text>
42 </view>
43 </view>
44 <view class="cashFlow-ul-item-right">
45 <text>¥23.5</text>
46 </view>
47 </view>
48 </view>
49 </scroll-view>
50 </view>
51 </view>
52</template>
53
54<script>
55 export default {
56 data() {
57 return {
58 leftOright: true
59 }
60 },
61 methods: {
62 changeTurnoverList(e) {
63 this.leftOright = e
64 },
65 }
66 }
67</script>
68
69<style lang="scss" scoped>
70 .scrollView{
71 height: calc(100vh - 130rpx - 100rpx);
72 }
73 .cashFlow {
74 font-family: "PingFang-SC-Medium";
75 &-header {
76 width: 80%;
77 display: flex;
78 justify-content: center;
79 align-items: center;
80 border-radius: 50rpx;
81 margin: 0rpx auto;
82
83 &-items {
84 width: 50%;
85 text-align: center;
86 background-color: #ffffff;
87 padding: 20rpx;
88 color: #999999;
89 border-top: 2rpx solid #F1F1F1;
90 border-bottom: 2rpx solid #F1F1F1;
91 }
92 .left {
93 border-top-left-radius: 50rpx;
94 border-bottom-left-radius: 50rpx;
95 border-left: 2rpx solid #F1F1F1;
96 }
97
98 .right {
99 border-top-right-radius: 50rpx;
100 border-bottom-right-radius: 50rpx;
101 border-right: 2rpx solid #F1F1F1;
102 }
103
104 .color {
105 background-color: #3599fb;
106 color: #ffffff;
107 padding: 20rpx;
108 border: 2rpx solid transparent;
109 }
110 }
111 &-ul{
112 padding: 0 20rpx;
113 &-item{
114 background-color: #FFFFFF;
115 display: flex;
116 justify-content: space-between;
117 align-items: center;
118 padding: 30rpx 20rpx;
119 border-radius: 10rpx;
120 &-left{
121 display: flex;
122 flex-direction: column;
123 justify-content: space-between;
124 &-top{
125 display: flex;
126 align-items: center;
127 text{
128 font-size: 36rpx;
129 margin-left: 10rpx;
130 font-weight: bold;
131 }
132 }
133 &-bottom{
134 margin-top: 20rpx;
135 &-bold{
136 font-size: 32rpx;
137 font-weight: bold;
138 }
139 &-normal{
140 color: #a1a1a1;
141 }
142 }
143 }
144 &-right{
145 font-size: 40rpx;
146 color: #FF6F6F;
147 font-weight: bold;
148 }
149 }
150 }
151
152 }
153</style>