consumption.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. <template>
  2. <view>
  3. <!-- 搜索 -->
  4. <view class="search">
  5. <u-search :clearabled="false" placeholder="输入姓名或手机号搜索" v-model="keyword"></u-search>
  6. </view>
  7. <!-- 筛选 -->
  8. <view class="options">
  9. <view class="date-option" @click="changeDateShow">
  10. 2023年4月<u-icon name="arrow-down" size="24"></u-icon>
  11. <view class="date-box" v-if="dateShow">
  12. <view class="options-item">
  13. 2023年4月
  14. </view>
  15. </view>
  16. </view>
  17. <view class="department-option" @click="changeDepartmentShow">
  18. 全部部门<u-icon name="arrow-down" size="24"></u-icon>
  19. <view class="department-box" v-if="departmentShow">
  20. <view class="options-item">
  21. 全部部门
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. <!-- 明细 -->
  27. <view class="details">
  28. <view class="detail-item" v-for="item in 8">
  29. <view class="head">
  30. <view class="name">
  31. 李四
  32. </view>
  33. <view class="tel">
  34. 197****2849
  35. </view>
  36. <view class="money">
  37. 15.00
  38. </view>
  39. </view>
  40. <view class="content">
  41. <view class="department">
  42. 荆州地方铁路 机务段
  43. </view>
  44. <view class="date">
  45. 4月1日 12:00
  46. </view>
  47. </view>
  48. </view>
  49. </view>
  50. <canteenTabbar ref="mytabbar"
  51. current="1"></canteenTabbar>
  52. </view>
  53. </template>
  54. <script>
  55. import canteenTabbar from "../../../components/canteenTabbar.vue"
  56. export default {
  57. components: {
  58. canteenTabbar
  59. },
  60. data() {
  61. return {
  62. keyword: '',
  63. dateShow:false,
  64. departmentShow:false
  65. }
  66. },
  67. methods: {
  68. changeDateShow() {
  69. this.dateShow = !this.dateShow
  70. },
  71. changeDepartmentShow() {
  72. this.departmentShow = !this.departmentShow
  73. },
  74. }
  75. }
  76. </script>
  77. <style lang="scss" scoped>
  78. page{
  79. padding-bottom: 100px;
  80. }
  81. // 搜索
  82. .search{
  83. padding: 16rpx 32rpx;
  84. background-color: #fff;
  85. /deep/.u-search{
  86. position: relative;
  87. }
  88. /deep/.u-action{
  89. position: absolute;
  90. right: 16rpx;
  91. color: rgba(31, 74, 153, 1);
  92. }
  93. }
  94. // 筛选
  95. .options{
  96. background-color: #fff;
  97. padding: 0 92rpx;
  98. line-height: 88rpx;
  99. display: flex;
  100. justify-content: space-between;
  101. color: #7D7D7D;
  102. border-bottom: 1px solid rgba(232, 232, 232, 1);
  103. .date-option,.department-option{
  104. position: relative;
  105. }
  106. /deep/.uicon-arrow-down{
  107. margin-left: 8rpx;
  108. }
  109. .date-box{
  110. background-color: #fff;
  111. z-index: 999;
  112. width: 180rpx;
  113. box-shadow: 0px 0px 2px #999999;
  114. position: absolute;
  115. top: 70rpx;
  116. right: 0px;
  117. .options-item {
  118. line-height: 60rpx;
  119. padding-left: 8rpx;
  120. background-color: #2A8EFB ;
  121. color: #fff;
  122. }
  123. }
  124. .department-box{
  125. background-color: #fff;
  126. z-index: 999;
  127. width: 180rpx;
  128. box-shadow: 0px 0px 2px #999999;
  129. position: absolute;
  130. top: 70rpx;
  131. left: 0px;
  132. .options-item {
  133. line-height: 60rpx;
  134. padding-left: 8rpx;
  135. background-color: #2A8EFB ;
  136. color: #fff;
  137. }
  138. }
  139. }
  140. // 明细
  141. .details{
  142. background-color: #fff;
  143. .detail-item{
  144. padding: 32rpx;
  145. border-bottom: 1px solid rgba(232, 232, 232, 1);
  146. .head{
  147. display: flex;
  148. align-items: center;
  149. .name{
  150. color: rgba(51, 51, 51, 1);
  151. font-size: 32rpx;
  152. font-family: 'PingFang Regular';
  153. font-weight: bold;
  154. }
  155. .tel{
  156. color: rgba(16, 16, 16, 1);
  157. font-size: 32rpx;
  158. margin-left: 16rpx;
  159. }
  160. .money{
  161. color: rgba(31, 74, 153, 1);
  162. font-size: 40rpx;
  163. font-weight: bold;
  164. margin-left: auto;
  165. }
  166. }
  167. .content{
  168. display: flex;
  169. justify-content: space-between;
  170. align-items: center;
  171. font-family: 'Alibaba-PuHuiTi-Regular';
  172. color: rgba(119, 119, 119, 1);
  173. margin-top:12rpx;
  174. }
  175. }
  176. }
  177. </style>