index.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <template>
  2. <div class="enterPriseBill">
  3. <van-tabs :active="active" @change="onChange">
  4. <van-tab title="租赁费" :name="null"></van-tab>
  5. <van-tab title="物业费" :name="1"></van-tab>
  6. <van-tab title="电费" :name="2"></van-tab>
  7. <van-tab title="公摊电费" :name="3"></van-tab>
  8. <van-tab title="水费" :name="4"></van-tab>
  9. </van-tabs>
  10. <div class="enterPriseBillList">
  11. <div class="listItem" v-for="(item,index) in enterList" :key="index" @click="toDetail(item)">
  12. <div :style="{backgroundImage: 'url(' + (item.isDq ? dqBg : wdqBg) + ')'}" class="itemCard">
  13. 到期:{{item.dqDate}}
  14. </div>
  15. <div class="itemFirstRow">
  16. <span class="billName">{{item.billName}}</span>
  17. </div>
  18. <div class="itemSecondRow">
  19. <span>发票号:002939</span>
  20. <span>生成日期:2024.3.12</span>
  21. </div>
  22. <div class="itemLastRow">
  23. <div class="lastRowBox">
  24. <span class="rowNumber">30000.00</span>
  25. <span class="rowUnit">账单总金额(元)</span>
  26. </div>
  27. <div class="columLine"></div>
  28. <div class="lastRowBox">
  29. <span class="rowNumber">15000.00</span>
  30. <span class="rowUnit">欠款金额(元)</span>
  31. </div>
  32. </div>
  33. </div>
  34. </div>
  35. </div>
  36. </template>
  37. <script>
  38. export default {
  39. name: "index",
  40. data(){
  41. return{
  42. active: 0,
  43. dqBg: require("./image/dqBg.png"),
  44. wdqBg: require("./image/wdqBg.png"),
  45. enterList: [
  46. {billName:'入驻款(房租费)',dqDate:'2024.5.30',isDq:true},
  47. {billName:'入驻款(房租费)aaaaaaaaaaaaaaa',dqDate:'2024.5.30',isDq:false},
  48. {billName:'入驻款(房租费)',dqDate:'2024.5.30',isDq:false},
  49. ]
  50. }
  51. },
  52. methods:{
  53. onChange(e) {
  54. },
  55. toDetail(item){
  56. uni.navigateTo({
  57. url: "/pages/subPackages/enterPriseBill/detail",
  58. });
  59. }
  60. }
  61. }
  62. </script>
  63. <style lang="scss">
  64. .enterPriseBill{
  65. .enterPriseBillList{
  66. display: flex;
  67. flex-direction: column;
  68. align-items: center;
  69. .listItem{
  70. width: 686rpx;
  71. height: 304rpx;
  72. background: rgba(255, 255, 255, 1);
  73. display: flex;
  74. flex-direction: column;
  75. padding: 24rpx 32rpx 32rpx 32rpx;
  76. box-sizing: border-box;
  77. margin-top: 24rpx;
  78. border-radius: 16rpx;
  79. position: relative;
  80. .itemCard{
  81. position: absolute;
  82. background-size: 100%;
  83. background-repeat: no-repeat;
  84. width: 220rpx;
  85. height: 56rpx;
  86. font-size: 24rpx;
  87. color: white;
  88. display: flex;
  89. align-items: center;
  90. justify-content: center;
  91. right: 0;
  92. top: 0;
  93. padding-left: 10rpx;
  94. box-sizing: border-box;
  95. }
  96. .itemFirstRow{
  97. color: rgba(34, 34, 34, 1);
  98. font-size: 32rpx;
  99. font-weight: 600;
  100. .billName{
  101. display: inline-block;
  102. max-width: 394rpx;
  103. overflow: hidden;
  104. white-space: nowrap;
  105. text-overflow: ellipsis;
  106. }
  107. }
  108. .itemSecondRow{
  109. display: flex;
  110. justify-content: space-between;
  111. font-size: 28rpx;
  112. color: rgba(102, 102, 102, 1);
  113. margin: 16rpx 0;
  114. }
  115. .itemLastRow{
  116. display: flex;
  117. justify-content: space-between;
  118. align-items: center;
  119. width: 622rpx;
  120. height: 134rpx;
  121. padding: 20rpx 32rpx;
  122. background: rgba(245, 247, 250, 1);
  123. box-sizing: border-box;
  124. .lastRowBox{
  125. display: flex;
  126. flex-direction: column;
  127. .rowNumber{
  128. font-size: 40rpx;
  129. color: rgba(51, 51, 51, 1);
  130. font-weight: 600;
  131. }
  132. .rowUnit{
  133. font-size: 28rpx;
  134. color: rgba(136, 136, 136, 1);
  135. margin-top: 8rpx;
  136. }
  137. }
  138. .columLine{
  139. width: 2rpx;
  140. height: 72rpx;
  141. background: rgba(217, 219, 226, 1);
  142. }
  143. }
  144. }
  145. }
  146. }
  147. </style>