feedbackList.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <template>
  2. <view>
  3. <u-navbar title="反馈记录" title-color="#101010"></u-navbar>
  4. <view class="record" v-if="0">
  5. <view class="title">
  6. <view class="classify">
  7. 功能异常
  8. </view>
  9. <view class="date">
  10. 2024-02-04 20:00:00
  11. </view>
  12. </view>
  13. <view class="content">
  14. 在使用用电监控APP时,发现数据刷新偶有延迟,实时性不足;电量消耗统计与实际存在偏差,准确性有待提升。影响用户体验,建议优化性能并校准数据准确性。
  15. </view>
  16. <view class="picture">
  17. <!-- <image class="img" src="../../assets/img/feedbackPic.png" mode=""></image> -->
  18. </view>
  19. </view>
  20. <u-divider :isnone="list.length==0" nonetext="没有找到相关内容" border-color="#CFD2D5">已经到底了</u-divider>
  21. <!-- 底部 -->
  22. <view class="bottom" v-if='0'>
  23. <button class="fill-in">填写反馈</button>
  24. </view>
  25. </view>
  26. </template>
  27. <script>
  28. export default {
  29. data() {
  30. return {
  31. title: "场站列表",
  32. list: [],
  33. listForm: {
  34. pageIndex: 1,
  35. pageSize: 20,
  36. recordsTotal: 1,
  37. },
  38. };
  39. },
  40. onLoad(op) {
  41. this.getList()
  42. },
  43. onReachBottom() {
  44. if (this.list.length < this.listForm.recordsTotal) {
  45. this.myLoadmore();
  46. }
  47. },
  48. methods: {
  49. myLoadmore() {
  50. this.listForm.pageIndex += 1;
  51. this.getList()
  52. },
  53. getList() {
  54. return
  55. uni.showLoading({
  56. title: "加载中",
  57. mask: true,
  58. })
  59. API.floorlockList(this.listForm).then((res) => {
  60. var list = []
  61. if (this.listForm.pageIndex == 1) {
  62. list = res.data.data;
  63. } else {
  64. list = [
  65. ...list,
  66. ...res.data.data
  67. ];
  68. }
  69. this.list = list
  70. this.listForm.recordsTotal=res.data.recordsTotal
  71. uni.hideLoading();
  72. }).catch(error => {
  73. uni.hideLoading();
  74. uni.showToast({
  75. title: error,
  76. icon: "none"
  77. })
  78. })
  79. },
  80. }
  81. }
  82. </script>
  83. <style lang="scss" scoped>
  84. .record{
  85. margin-top: 24rpx;
  86. background-color: #fff;
  87. padding: 32rpx;
  88. .title{
  89. display: flex;
  90. align-items: center;
  91. justify-content: space-between;
  92. .classify{
  93. color: rgba(22,119,255,1);
  94. font-size: 32rpx;
  95. }
  96. .date{
  97. color: rgba(119,119,119,1);
  98. }
  99. }
  100. .content{
  101. color: rgba(51,51,51,1);
  102. line-height: 44rpx;
  103. margin-top: 16rpx;
  104. }
  105. .picture{
  106. margin-top:24rpx;
  107. display: flex;
  108. justify-content: space-between;
  109. .img{
  110. width: 144rpx;
  111. height: 144rpx;
  112. border-radius: 4px;
  113. }
  114. }
  115. }
  116. // 底部
  117. .bottom{
  118. position: fixed;
  119. left: 0;
  120. right: 0;
  121. bottom: 0;
  122. background-color: #fff;
  123. padding: 20rpx 32rpx;
  124. .fill-in{
  125. line-height: 80rpx;
  126. border-radius: 4px;
  127. background-color: rgba(22,119,255,1);
  128. color: rgba(255,255,255,1);
  129. font-size: 32rpx;
  130. }
  131. }
  132. </style>