index.vue 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  1. <template>
  2. <view class="money">
  3. <view class="moneytop flexc">
  4. <view class="topl flexc flex1 overh">
  5. <image :src="adr"></image>
  6. <view class="over">幸福小区1号楼3单元1204</view>
  7. </view>
  8. <view class="topr flexcc flex0" @click="getLsFn">
  9. <image :src="zd"></image>
  10. <view>历史账单</view>
  11. </view>
  12. </view>
  13. <view class="count">
  14. <image :src="bg" class="bgimg"></image>
  15. <view class="counbox">
  16. <view class="tit mb16">尊敬的业主/租户您好!</view>
  17. <view class="num">您的待缴总额<text>677.20</text>元</view>
  18. </view>
  19. </view>
  20. <view class="mdetail">
  21. <view class="mdtop flexc">
  22. <!-- <view class="flexc flex0" @click.stop="choseflag=!choseflag">
  23. <image :src="chose" class="chose" v-if="choseflag"></image>
  24. <image :src="nchose" class="chose" v-else></image>
  25. 全选
  26. </view> -->
  27. <view class="mdtnum">357.20 元</view>
  28. </view>
  29. <view>
  30. <uni-collapse ref="collapse" @change="change">
  31. <uni-collapse-item title-border="none">
  32. <template v-slot:title>
  33. <view class="coltit flexcj">
  34. <view class="flexc flex0" @click.stop="choseflag=!choseflag">
  35. <image :src="chose" v-if="choseflag" class="chose"></image>
  36. <image :src="nchose" v-else class="chose"></image>
  37. 物业管理费
  38. </view>
  39. <view class="colnum flexc">
  40. <view class="num">277.20元</view>
  41. <view class="btn bga">待缴</view>
  42. <view class="btn bgb">已缴</view>
  43. </view>
  44. </view>
  45. </template>
  46. <view class="content">
  47. <view class="cuntlist flexc">
  48. <view class="cltit">计费区间</view>
  49. <view class="cltxt">2024-11-01 至224-11-30</view>
  50. </view>
  51. <view class="cuntlist flexc">
  52. <view class="cltit">优惠金额</view>
  53. <view class="cltxt">0.00元</view>
  54. </view>
  55. <view class="cuntlist flexc">
  56. <view class="cltit">违约金额</view>
  57. <view class="cltxt">0.00元</view>
  58. </view>
  59. <view class="cuntlist flexc">
  60. <view class="cltit">应缴金额</view>
  61. <view class="cltxt co025">80.00元</view>
  62. </view>
  63. </view>
  64. </uni-collapse-item>
  65. <uni-collapse-item title-border="none">
  66. <template v-slot:title>
  67. <view class="coltit flexcj">
  68. <view class="flexc flex0" @click.stop="choseflag=!choseflag">
  69. <image :src="chose" v-if="choseflag" class="chose"></image>
  70. <image :src="nchose" v-else class="chose"></image>
  71. 能耗费
  72. </view>
  73. <view class="colnum flexc">
  74. <view class="num">277.20元</view>
  75. <view class="btn bga">待缴</view>
  76. <view class="btn bgb">已缴</view>
  77. </view>
  78. </view>
  79. </template>
  80. <view class="content">
  81. <view class="cuntlist flexc">
  82. <view class="cltit">计费区间</view>
  83. <view class="cltxt">2024-11-01 至224-11-30</view>
  84. </view>
  85. <view class="cuntlist flexc">
  86. <view class="cltit">优惠金额</view>
  87. <view class="cltxt">0.00元</view>
  88. </view>
  89. <view class="cuntlist flexc">
  90. <view class="cltit">违约金额</view>
  91. <view class="cltxt">0.00元</view>
  92. </view>
  93. <view class="cuntlist flexc">
  94. <view class="cltit">应缴金额</view>
  95. <view class="cltxt co025">80.00元</view>
  96. </view>
  97. </view>
  98. </uni-collapse-item>
  99. </uni-collapse>
  100. </view>
  101. </view>
  102. <view class="mdetail">
  103. <view class="mdtop flexc">
  104. <!-- <view class="flexc flex0" @click.stop="choseflag=!choseflag">
  105. <image :src="chose" class="chose" v-if="choseflag"></image>
  106. <image :src="nchose" class="chose" v-else></image>
  107. 全选
  108. </view> -->
  109. <view class="mdtnum">357.20 元</view>
  110. </view>
  111. <view>
  112. <uni-collapse ref="collapse" @change="change">
  113. <uni-collapse-item title-border="none">
  114. <template v-slot:title>
  115. <view class="coltit flexcj">
  116. <view class="flexc flex0" @click.stop="choseflag=!choseflag">
  117. <image :src="chose" v-if="choseflag" class="chose"></image>
  118. <image :src="nchose" v-else class="chose"></image>
  119. 车位费
  120. </view>
  121. <view class="colnum flexc">
  122. <view class="num">277.20元</view>
  123. <view class="btn bga">待缴</view>
  124. <view class="btn bgb">已缴</view>
  125. </view>
  126. </view>
  127. </template>
  128. <view class="content">
  129. <view class="cuntlist flexc">
  130. <view class="cltit">计费区间</view>
  131. <view class="cltxt">2024-11-01 至224-11-30</view>
  132. </view>
  133. <view class="cuntlist flexc">
  134. <view class="cltit">优惠金额</view>
  135. <view class="cltxt">0.00元</view>
  136. </view>
  137. <view class="cuntlist flexc">
  138. <view class="cltit">违约金额</view>
  139. <view class="cltxt">0.00元</view>
  140. </view>
  141. <view class="cuntlist flexc">
  142. <view class="cltit">应缴金额</view>
  143. <view class="cltxt co025">80.00元</view>
  144. </view>
  145. </view>
  146. </uni-collapse-item>
  147. </uni-collapse>
  148. </view>
  149. </view>
  150. <view class="mfoot flexc">
  151. <view class="mgtit">待支付<text>¥ 357.20</text></view>
  152. <view class="mfbtn flexcc" @click="getPayFn">支付账单</view>
  153. </view>
  154. <loading></loading>
  155. </view>
  156. </template>
  157. <script>
  158. import config from '@/config'
  159. const baseUrl = config.baseUrl
  160. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  161. export default{
  162. components:{},
  163. data(){
  164. return{
  165. adr:require("@/work/static/manage/adr.png"),
  166. bg:require("@/work/static/manage/bg.png"),
  167. zd:require("@/work/static/manage/zd.png"),
  168. chose:require("@/work/static/manage/chose.png"),
  169. nchose:require("@/work/static/manage/nchose.png"),
  170. choseflag:true,
  171. list:[],
  172. pageSize: 10,
  173. pageNum: 1,
  174. reachflag: true,
  175. wtdt:'',
  176. }
  177. },
  178. onLoad: function() {
  179. },
  180. onPageScroll(e) {
  181. // var scrollTop = Number(e.scrollTop);
  182. // // var listTop=Number(this.listTop)-Number(this.nvaHeight)
  183. // if(scrollTop>2){
  184. // this.scroflag=true
  185. // }else{
  186. // this.scroflag=false
  187. // }
  188. },
  189. // 上拉触底加载更多触发事件
  190. onReachBottom() {
  191. // if (this.reachflag) {
  192. // this.pageNum++
  193. // this.getDataFn()
  194. // }
  195. },
  196. methods:{
  197. checkPermi, checkRole,
  198. getLsFn(){
  199. this.$tab.navigateTo("/work/pages/manage/moneybill")
  200. },
  201. getPayFn(){
  202. this.$tab.navigateTo("/work/pages/manage/pay")
  203. },
  204. change(){
  205. },
  206. getDataFn(){
  207. var params={
  208. pageSize:this.pageSize,
  209. pageNum: this.pageNum,
  210. }
  211. params.noticeType=this.tabidx
  212. getNoticeList(params).then(res=>{
  213. if(res.code==200){
  214. if (res.rows.length < this.pageSize) {
  215. this.reachflag = false
  216. this.wtdt = '到底了~';
  217. } else {
  218. var num = parseInt(res.rows.length) + parseInt(this.pageSize) * parseInt(this.pageNum - 1)
  219. if (num < res.total) {
  220. this.reachflag = true
  221. this.wtdt = ''
  222. } else {
  223. this.reachflag = false
  224. this.wtdt = '到底了~';
  225. }
  226. }
  227. if (this.pageNum == 1) {
  228. this.list = res.rows;
  229. } else {
  230. this.list = this.list.concat(res.rows)
  231. }
  232. }else{
  233. this.$toast(res.msg)
  234. }
  235. })
  236. },
  237. }
  238. }
  239. </script>
  240. <style>
  241. page{background: #F3F3F0;}
  242. </style>
  243. <style lang="scss" scoped>
  244. .money /deep/ .uni-collapse-item__title{background: #F3F3F3;margin-top: 10rpx;
  245. border-radius: 10rpx;min-height: 92rpx;padding:12rpx 0 12rpx 24rpx;box-sizing: border-box;}
  246. .money{padding: 124rpx 0 122rpx;
  247. .moneytop{position: fixed;left: 0;right: 0;top: 0;background: #ffffff;z-index: 2;padding: 24rpx 30rpx 34rpx;
  248. image{flex: 0 0 auto;}
  249. .topl{
  250. image{width: 26rpx;height: 24rpx;margin-right: 26rpx;}
  251. font-weight: bold;font-size: 26rpx;color: #272727;
  252. }
  253. .topr{margin-left: 24rpx;
  254. min-width: 166rpx;height: 42rpx;background: #EFF4FF;border-radius: 22rpx;background: #EFF4FF;font-weight: bold;font-size: 24rpx;color: #0256FD;padding: 4rpx 12rpx;box-sizing: border-box;
  255. image{width: 20rpx;height: 22rpx;margin-right: 6rpx;}
  256. }
  257. }
  258. .count{width:720rpx;height: 166rpx;position: relative;margin: 0 auto 30rpx;
  259. .bgimg{width: 100%;height: 100%;}
  260. .counbox{position: absolute;left: 0;right: 0;top: 0;bottom: 0;padding-top: 26rpx;padding-left: 42rpx;
  261. .tit{font-weight: bold;font-size: 22rpx;color: #0AB664;}
  262. .num{font-weight: bold;font-size: 22rpx;color: #FFFFFF;
  263. text{font-size: 40rpx;padding: 0 10rpx;}
  264. }
  265. }
  266. }
  267. .mdetail{width: 714rpx;background: #FFFFFF;border-radius: 20rpx;margin: 0 auto;padding: 24rpx;box-sizing: border-box;margin-bottom: 24rpx;
  268. .mdtop{padding-bottom: 20rpx;
  269. .mdttit{font-size: 30rpx;color: #272727;flex: 0 0 auto;}
  270. .mdtnum{font-size: 30rpx;color: #0256FD;font-weight: bold;flex: 1;text-align: right;margin-left: 20rpx;}
  271. }
  272. .chose{width: 26rpx;height: 26rpx;margin-right: 18rpx;flex: 0 0 auto;}
  273. .coltit{
  274. .table{font-size: 26rpx;color: #272727;font-weight: bold;}
  275. }
  276. .colnum{
  277. .num{font-size: 26rpx;color: #272727;font-weight: bold;}
  278. .btn{font-weight: 500;font-size: 20rpx;padding: 0 10rpx;margin-left: 16rpx;border-radius: 16rpx;
  279. &.bga{color: #FE5A0E;background: #FFE8DE;border: 2rpx solid #FE5A0E;}
  280. &.bgb{color: #666666;background: #F1F1F1;border: 2rpx solid #C1C1C1;}
  281. }
  282. }
  283. .content{background: #F3F3F3;padding:20rpx 26rpx 4rpx;margin-top: 10rpx;
  284. border-radius: 10rpx;
  285. .cuntlist{padding: 10rpx 0;}
  286. .cltit{font-weight: 500;font-size: 24rpx;color: #666666;flex: 0 0 auto;}
  287. .cltxt{font-weight: 500;font-size: 26rpx;color: #272727;flex: 1;text-align: right;margin-left: 12rpx;}
  288. }
  289. }
  290. }
  291. .mfoot{background: #ffffff;position: fixed;left: 0;right: 0;bottom: 0;min-height: 110rpx;z-index: 2;padding: 14rpx 18rpx;box-sizing: border-box;
  292. .mgtit{font-weight: bold;font-size: 24rpx;color: #272727;flex: 1;text-align: center;
  293. text{font-weight: bold;margin-left: 16rpx;font-size: 26rpx;color: #F40027;}
  294. }
  295. .mfbtn{width: 388rpx;height: 88rpx;font-weight: bold;margin-left: 18rpx;
  296. font-size: 26rpx;color: #FFFFFF;
  297. background: #0256FD;border-radius: 20rpx;}
  298. }
  299. </style>