feedbackList.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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 = res.data.data
  70. uni.hideLoading();
  71. }).catch(error => {
  72. uni.hideLoading();
  73. uni.showToast({
  74. title: error,
  75. icon: "none"
  76. })
  77. })
  78. },
  79. }
  80. }
  81. </script>
  82. <style lang="scss" scoped>
  83. .record{
  84. margin-top: 24rpx;
  85. background-color: #fff;
  86. padding: 32rpx;
  87. .title{
  88. display: flex;
  89. align-items: center;
  90. justify-content: space-between;
  91. .classify{
  92. color: rgba(22,119,255,1);
  93. font-size: 32rpx;
  94. }
  95. .date{
  96. color: rgba(119,119,119,1);
  97. }
  98. }
  99. .content{
  100. color: rgba(51,51,51,1);
  101. line-height: 44rpx;
  102. margin-top: 16rpx;
  103. }
  104. .picture{
  105. margin-top:24rpx;
  106. display: flex;
  107. justify-content: space-between;
  108. .img{
  109. width: 144rpx;
  110. height: 144rpx;
  111. border-radius: 8rpx;
  112. }
  113. }
  114. }
  115. // 底部
  116. .bottom{
  117. position: fixed;
  118. left: 0;
  119. right: 0;
  120. bottom: 0;
  121. background-color: #fff;
  122. padding: 20rpx 32rpx;
  123. .fill-in{
  124. line-height: 80rpx;
  125. border-radius: 8rpx;
  126. background-color: rgba(22,119,255,1);
  127. color: rgba(255,255,255,1);
  128. font-size: 32rpx;
  129. }
  130. }
  131. </style>