money.vue 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. <template>
  2. <view class="car">
  3. <view class="cartop">
  4. <view class="topa flexc">
  5. <image :src="reset" class="resetimg" @click="getReset"></image>
  6. <picker mode="date" fields="year" @change='bindDateChangea'>
  7. <view class="chekt flexc">
  8. <view>{{cxrq|| "选择日期"}}</view>
  9. <image :src="up"></image>
  10. </view>
  11. </picker>
  12. <view class="search flexc">
  13. <image :src="search"></image>
  14. <!-- confirm-type="search" @confirm="getConfirm" -->
  15. <input placeholder="请输入房号进行搜索" v-model="text"/>
  16. <view class="btn" @click="getConfirm">搜索</view>
  17. </view>
  18. </view>
  19. <view class="mcont">
  20. <image :src="contbg" class="contbg"></image>
  21. <view class="mconta">
  22. <view class="mcontb">
  23. <view class="w50">
  24. <view class="mctit">已缴物业费 /元</view>
  25. <view class="mctxt over">1,482,800</view>
  26. </view>
  27. <view class="w50">
  28. <view class="mctit">未缴物业费 /元</view>
  29. <view class="mctxt over">281,600</view>
  30. </view>
  31. </view>
  32. <view class="mcontc">
  33. <view class="w50">
  34. <view class="mctit mb10">车位费 /元</view>
  35. <view class="mctxta">已缴费:<text>626,400</text></view>
  36. <view class="mctxta">未缴费:<text>626,400</text></view>
  37. </view>
  38. <view class="w50">
  39. <view class="mctit mb10">能耗费 /元</view>
  40. <view class="mctxta">已缴费:<text>626,400</text></view>
  41. <view class="mctxta">未缴费:<text>626,400</text></view>
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. <view class="tabtop flexc">
  47. <view class="tabt" :class="tabval==ite.val?'act':''" v-for="(ite,idx) in tablist" :key="idx" @click="getTabFn(ite.val)">{{ite.tit}}</view>
  48. </view>
  49. </view>
  50. <!-- 列表 -->
  51. <view class="carlists">
  52. <car-list :datainfo="list" :topval="tabval" :wtdt="wtdt" type='money' @getDetail="getDetail"></car-list>
  53. </view>
  54. <view class="rfbtn" @click="getAddFn">一键催缴</view>
  55. <loading></loading>
  56. </view>
  57. </template>
  58. <script>
  59. import config from '@/config'
  60. const baseUrl = config.baseUrl
  61. import carList from "@/work/components/car/list.vue"
  62. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  63. export default{
  64. components:{carList},
  65. data(){
  66. return{
  67. reset:require('@/car/static/car/reset.png'),
  68. contbg:require('@/work/static/manage/contbg.png'),
  69. search:require('@/car/static/car/search.png'),
  70. up:require('@/car/static/car/up.png'),
  71. cxrq:"",
  72. text:'',
  73. list:[{tit:'皖A IC520',type:1},{tit:'晋E KD783',type:2},],
  74. pageSize: 10,
  75. pageNum: 1,
  76. reachflag: true,
  77. wtdt:'',
  78. tabval:'0',
  79. tablist:[{tit:'未缴费',val:0},{tit:'已缴费',val:1},]
  80. }
  81. },
  82. onLoad: function() {
  83. },
  84. // 上拉触底加载更多触发事件
  85. onReachBottom() {
  86. if (this.reachflag) {
  87. this.pageNum++
  88. this.getDataFn()
  89. }
  90. },
  91. methods:{
  92. checkPermi, checkRole,
  93. getDetail(){
  94. this.$tab.navigateTo("/work/pages/manage/moneydetail")
  95. },
  96. getAddFn(){
  97. },
  98. getConfirm(){
  99. this.getrefreshData()
  100. },
  101. getReset(){
  102. this.cxrq='';
  103. this.text='';
  104. this.getrefreshData()
  105. },
  106. getrefreshData(){
  107. this.pageNum=1;
  108. this.list=[];
  109. this.reachflag=true;
  110. this.getDataFn()
  111. },
  112. getTabFn(val){
  113. this.tabval=val
  114. },
  115. bindDateChangea(e){
  116. var val=e.detail.value;
  117. this.cxrq=val;
  118. },
  119. getDataFn(){
  120. var params={
  121. pageSize:this.pageSize,
  122. pageNum: this.pageNum,
  123. }
  124. params.noticeType=this.tabidx
  125. getNoticeList(params).then(res=>{
  126. if(res.code==200){
  127. if (res.rows.length < this.pageSize) {
  128. this.reachflag = false
  129. this.wtdt = '到底了~';
  130. } else {
  131. var num = parseInt(res.rows.length) + parseInt(this.pageSize) * parseInt(this.pageNum - 1)
  132. if (num < res.total) {
  133. this.reachflag = true
  134. this.wtdt = ''
  135. } else {
  136. this.reachflag = false
  137. this.wtdt = '到底了~';
  138. }
  139. }
  140. if (this.pageNum == 1) {
  141. this.list = res.rows;
  142. } else {
  143. this.list = this.list.concat(res.rows)
  144. }
  145. }else{
  146. this.$toast(res.msg)
  147. }
  148. })
  149. },
  150. }
  151. }
  152. </script>
  153. <style>
  154. page{background: #F3F3F0;}
  155. </style>
  156. <style lang="scss" scoped>
  157. .car{padding: 624rpx 0 110rpx;}
  158. .cartop{position: fixed;left: 0;right: 0;top: 0;background-color: #ffffff;z-index: 2;
  159. .topa{padding: 20rpx ;
  160. .resetimg{width: 36rpx;height: 36rpx;margin-right: 24rpx;flex: 0 0 auto;}
  161. .chekt{min-width: 180rpx;
  162. view{font-weight: 500;font-size: 26rpx;color: #272727;flex: 1;}
  163. image{width: 24rpx;height: 16rpx;margin-left: 18rpx;flex: 0 0 auto;}
  164. }
  165. .search{flex: 1;margin-left: 16rpx;height: 64rpx;background: #EEEEEE;border-radius: 32rpx;border: 2rpx solid #E6E6E6;padding-left: 24rpx;box-sizing: border-box;
  166. image{width: 32rpx;height: 34rpx;margin-right: 22rpx;flex: 0 0 auto;}
  167. input{flex: 1;font-size: 26rpx;color: #272727;}
  168. .btn{width: 100rpx;height: 64rpx;background: #3565ED;border-radius: 32rpx;flex: 0 0 auto;font-weight: bold;text-align: center;line-height: 64rpx;
  169. font-size: 26rpx;
  170. color: #FFFFFF;}
  171. }
  172. }
  173. .tabtop{padding-bottom: 40rpx;
  174. .tabt{font-weight: 500;font-size: 32rpx;color: #666666;position: relative;line-height: 56rpx;padding: 0 40rpx;margin-right: 6rpx;
  175. &.act{font-weight: bold;font-size: 32rpx;color: #272727;
  176. &::after{content: '';width: 40rpx;height: 10rpx;background: #0156FE;border-radius: 6rpx;position: absolute;left: 50%;margin-left: -20rpx;bottom: -10rpx;}
  177. }
  178. }
  179. }
  180. .mcont{position: relative;margin-top: 12rpx;
  181. .contbg{width: 100%;height: 382rpx;}
  182. .mconta{position: absolute;left: 0;top: 0;width: 100%;height: 382rpx;box-sizing: border-box;padding: 28rpx 56rpx;
  183. .w50{width: 50%;}
  184. .mctit{font-weight: 500;font-size: 24rpx;color: #CFE1FF;}
  185. .mctxt{font-size: 46rpx;color: #FFFFFF;font-weight: bold;margin-top: 26rpx;}
  186. .mctxta{font-weight: bold;font-size: 26rpx;color: #FFFFFF;margin-bottom: 14rpx;
  187. text{font-size: 30rpx;}
  188. }
  189. .mcontb{height: 124rpx;display: flex;}
  190. .mcontc{display: flex;padding-top: 28rpx;}
  191. }
  192. }
  193. }
  194. .carlists{padding: 0 18rpx;}
  195. </style>