money.vue 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  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="ttopval==ite.val?'act':''" v-for="(ite,idx) in ttoplist" :key="idx" @click="getTabtop(ite.val)">{{ite.tit}}</view>
  48. </view>
  49. </view>
  50. <!-- 列表 -->
  51. <view class="carlists">
  52. <car-list :datainfo="list" :topval="ttopval" :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('@/work/static/car/reset.png'),
  68. contbg:require('@/work/static/manage/contbg.png'),
  69. search:require('@/work/static/car/search.png'),
  70. up:require('@/work/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. ttopval:'0',
  79. ttoplist:[{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. getTabtop(val){
  99. this.ttopval=val
  100. },
  101. getConfirm(){
  102. this.getrefreshData()
  103. },
  104. getReset(){
  105. this.cxrq='';
  106. this.text='';
  107. this.getrefreshData()
  108. },
  109. getrefreshData(){
  110. this.pageNum=1;
  111. this.list=[];
  112. this.reachflag=true;
  113. this.getDataFn()
  114. },
  115. getTabFn(val){
  116. this.tabval=val
  117. },
  118. bindDateChangea(e){
  119. var val=e.detail.value;
  120. this.cxrq=val;
  121. },
  122. getDataFn(){
  123. var params={
  124. pageSize:this.pageSize,
  125. pageNum: this.pageNum,
  126. }
  127. params.noticeType=this.tabidx
  128. getNoticeList(params).then(res=>{
  129. if(res.code==200){
  130. if (res.rows.length < this.pageSize) {
  131. this.reachflag = false
  132. this.wtdt = '到底了~';
  133. } else {
  134. var num = parseInt(res.rows.length) + parseInt(this.pageSize) * parseInt(this.pageNum - 1)
  135. if (num < res.total) {
  136. this.reachflag = true
  137. this.wtdt = ''
  138. } else {
  139. this.reachflag = false
  140. this.wtdt = '到底了~';
  141. }
  142. }
  143. if (this.pageNum == 1) {
  144. this.list = res.rows;
  145. } else {
  146. this.list = this.list.concat(res.rows)
  147. }
  148. }else{
  149. this.$toast(res.msg)
  150. }
  151. })
  152. },
  153. }
  154. }
  155. </script>
  156. <style>
  157. page{background: #F3F3F0;}
  158. </style>
  159. <style lang="scss" scoped>
  160. .car{padding: 630rpx 0 110rpx;}
  161. .cartop{position: fixed;left: 0;right: 0;top: 0;background-color: #ffffff;z-index: 2;
  162. .topa{padding: 20rpx ;
  163. .resetimg{width: 36rpx;height: 36rpx;margin-right: 24rpx;flex: 0 0 auto;}
  164. .chekt{min-width: 180rpx;
  165. view{font-weight: 500;font-size: 26rpx;color: #272727;flex: 1;}
  166. image{width: 24rpx;height: 16rpx;margin-left: 18rpx;flex: 0 0 auto;}
  167. }
  168. .search{flex: 1;margin-left: 16rpx;height: 64rpx;background: #EEEEEE;border-radius: 32rpx;border: 2rpx solid #E6E6E6;padding-left: 24rpx;box-sizing: border-box;
  169. image{width: 32rpx;height: 34rpx;margin-right: 22rpx;flex: 0 0 auto;}
  170. input{flex: 1;font-size: 26rpx;color: #272727;}
  171. .btn{width: 100rpx;height: 64rpx;background: #3565ED;border-radius: 32rpx;flex: 0 0 auto;font-weight: bold;text-align: center;line-height: 64rpx;
  172. font-size: 26rpx;
  173. color: #FFFFFF;}
  174. }
  175. }
  176. .tabtop{padding-bottom: 46rpx;
  177. .tabt{font-weight: 500;font-size: 32rpx;color: #666666;position: relative;line-height: 56rpx;padding: 0 40rpx;margin-right: 6rpx;
  178. &.act{font-weight: bold;font-size: 32rpx;color: #272727;
  179. &::after{content: '';width: 40rpx;height: 10rpx;background: #0156FE;border-radius: 6rpx;position: absolute;left: 50%;margin-left: -20rpx;bottom: -10rpx;}
  180. }
  181. }
  182. }
  183. .mcont{position: relative;margin-top: 12rpx;
  184. .contbg{width: 100%;height: 382rpx;}
  185. .mconta{position: absolute;left: 0;top: 0;width: 100%;height: 382rpx;box-sizing: border-box;padding: 28rpx 56rpx;
  186. .w50{width: 50%;}
  187. .mctit{font-weight: 500;font-size: 24rpx;color: #CFE1FF;}
  188. .mctxt{font-size: 46rpx;color: #FFFFFF;font-weight: bold;margin-top: 26rpx;}
  189. .mctxta{font-weight: bold;font-size: 26rpx;color: #FFFFFF;margin-bottom: 14rpx;
  190. text{font-size: 30rpx;}
  191. }
  192. .mcontb{height: 124rpx;display: flex;}
  193. .mcontc{display: flex;padding-top: 28rpx;}
  194. }
  195. }
  196. }
  197. .carlists{padding: 0 18rpx;}
  198. </style>