Tenantdetails.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. <template>
  2. <view class="billall">
  3. <view class="u-listdata">
  4. <view style="padding:10rpx 0 0 30rpx">
  5. 共有 <span style="color: red">{{totalnumber}}</span>条记录
  6. </view>
  7. <u-list @scrolltolower="scrolltolower" :pagingEnabled='true'>
  8. <u-list-item v-for="(item, index) in indexList" :key="index">
  9. <view class="companylist">
  10. <h3>{{item.roomName}}</h3>
  11. <view class="Currentamount">
  12. 房间编号:{{item.roomId}}
  13. </view>
  14. <view class="Currentamount">
  15. 租户名称: {{item.tenantsName}}
  16. </view>
  17. <view class="Currentamount">
  18. 门锁密码:{{item.issuedData}}
  19. </view>
  20. <view class="Currentamount">
  21. 区域名称: {{item.areaName}}
  22. </view>
  23. <view class="Currentamount">
  24. 更新时间: {{item.updateDate}}
  25. </view>
  26. </view>
  27. </u-list-item>
  28. </u-list>
  29. </view>
  30. </view>
  31. </template>
  32. <script>
  33. export default {
  34. data() {
  35. return {
  36. totalnumber: 0,
  37. setyesno: true,
  38. indexList: [],
  39. dataList: [],
  40. dataForm: {
  41. "currentPage": 0,
  42. "deviceId": "",
  43. "pageSize": 10,
  44. "roomId": "",
  45. "tempPwd": "",
  46. "tenantsId": "",
  47. "userName": ""
  48. },
  49. showtype: false,
  50. showdct: false,
  51. mytitle: '',
  52. alldata: [],
  53. showfloor: false,
  54. loading: false,
  55. columns: [],
  56. pd: true,
  57. columnData: [],
  58. myday: '',
  59. mytype: '全部',
  60. showPicker: false,
  61. }
  62. },
  63. //监听页面加载,其参数为上个页面传递的数据,参数类型为 Object(用于页面传参
  64. onLoad(options) {
  65. console.log(options.companyOrgId);
  66. this.dataForm.roomId= options.companyOrgId;
  67. this.getalldata();
  68. },
  69. //监听页面初次渲染完成。注意如果渲染速度快,会在页面进入动画完成前触发
  70. onReady() {
  71. // 微信小程序需要用此写法
  72. },
  73. //监听页面隐藏
  74. onHide() {},
  75. //监听窗口尺寸变化
  76. onResize() {},
  77. //监听页面卸载
  78. onUnload() {},
  79. //监听用户下拉动作,一般用于下拉刷新
  80. onPullDownRefresh() {},
  81. methods: {
  82. scrolltolower() {
  83. if (this.pd) {
  84. this.getalldata();
  85. } else {
  86. return
  87. }
  88. },
  89. getalldata() {
  90. this.$api.post('/lock/userPage', this.dataForm)
  91. .then(res => {
  92. this.totalnumber = res.data.data.total;
  93. if (res.data.data.list.length != 0) {
  94. this.indexList.push(...res.data.data.list);
  95. this.dataForm.currentPage = this.dataForm.currentPage + 1;
  96. this.pd = true;
  97. } else {
  98. uni.showToast({
  99. title: '暂无更多数据了',
  100. icon: 'none',
  101. duration: 1500
  102. })
  103. this.pd = false;
  104. }
  105. })
  106. },
  107. }
  108. }
  109. </script>
  110. <style lang="scss">
  111. .Currentamount {
  112. padding-left: 30rpx;
  113. min-height: 50rpx;
  114. line-height: 50rpx;
  115. color: #BCB3A7;
  116. span {
  117. color: #FA5555;
  118. padding-left: 9rpx;
  119. }
  120. }
  121. .Callfee {
  122. width: 100rpx;
  123. height: 45rpx;
  124. text-align: center;
  125. line-height: 45rpx;
  126. color: #5C8FFF;
  127. border: 1px solid #5C8FFF;
  128. font-size: 22rpx;
  129. position: absolute;
  130. bottom: 10rpx;
  131. right: 10px;
  132. font-weight: bold;
  133. }
  134. .companylist {
  135. margin: 20rpx 30rpx;
  136. background: #fff;
  137. min-height:340rpx;
  138. border-radius: 10px;
  139. position: relative;
  140. h3 {
  141. height: 70rpx;
  142. line-height: 70rpx;
  143. padding-left: 30rpx;
  144. }
  145. }
  146. .settled {
  147. background-color: #09C700;
  148. width: 120rpx;
  149. height: 60rpx;
  150. text-align: center;
  151. line-height: 60rpx;
  152. color: #fff;
  153. font-size: 14rpx;
  154. position: absolute;
  155. top: 0px;
  156. right: 0px;
  157. border-top-right-radius: 10rpx;
  158. border-bottom-left-radius: 10rpx;
  159. }
  160. .outstanding {
  161. background-color: #09C700;
  162. width: 120rpx;
  163. height: 60rpx;
  164. text-align: center;
  165. line-height: 60rpx;
  166. color: #fff;
  167. font-size: 14rpx;
  168. position: absolute;
  169. top: 110rpx;
  170. right: 0px;
  171. border-top-left-radius: 10rpx;
  172. border-bottom-left-radius: 10rpx;
  173. }
  174. .outstanding1 {
  175. background-color: #09C700;
  176. width: 120rpx;
  177. height: 60rpx;
  178. text-align: center;
  179. line-height: 60rpx;
  180. color: #fff;
  181. font-size: 14rpx;
  182. position: absolute;
  183. top: 215rpx;
  184. right: 0px;
  185. border-top-left-radius: 10rpx;
  186. border-bottom-left-radius: 10rpx;
  187. }
  188. .outstanding2 {
  189. background-color: #09C700;
  190. width: 120rpx;
  191. height: 60rpx;
  192. text-align: center;
  193. line-height: 60rpx;
  194. color: #fff;
  195. font-size: 14rpx;
  196. position: absolute;
  197. bottom: 0px;
  198. right: 0px;
  199. border-top-left-radius: 10rpx;
  200. border-bottom-right-radius: 10rpx;
  201. }
  202. .billall {}
  203. .topbill {
  204. display: flex;
  205. justify-content: space-around;
  206. align-items: center;
  207. height: 100rpx;
  208. background-color: #e6e6e6;
  209. }
  210. .topbilledit {
  211. display: flex;
  212. justify-content: space-around;
  213. align-items: center;
  214. }
  215. .changetime1 {
  216. padding-right: 10rpx;
  217. }
  218. </style>