companyreport.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <template>
  2. <div>
  3. <van-tabs
  4. class="companyreport"
  5. :active="active"
  6. @change="onChange"
  7. title-active-color="#1D18BC"
  8. >
  9. <van-tab title="走访上报" class="housemange">
  10. <go-report ref="goReport" @changeActive="changeActive" />
  11. </van-tab>
  12. <van-tab title="上报历史">
  13. <report-history ref="reportHistory" />
  14. </van-tab>
  15. </van-tabs>
  16. </div>
  17. </template>
  18. <script>
  19. import goReport from "./components/goReport.vue";
  20. import reportHistory from "./components/reportHistory.vue";
  21. import { findYuanQuList } from "@/js_sdk/http.js";
  22. const form = {
  23. status: [],
  24. chaoxiang: [],
  25. };
  26. export default {
  27. components: {
  28. goReport,
  29. reportHistory,
  30. },
  31. data() {
  32. return {
  33. active: 0,
  34. };
  35. },
  36. // onLoad: function (){
  37. // this.$refs.findYuanQuList()
  38. // },
  39. onShow() {
  40. this.$refs.reportHistory.getInterviewList();
  41. },
  42. methods: {
  43. onLoadMore() {},
  44. getChaoxiang() {},
  45. getStatus() {},
  46. changeActive() {
  47. this.active = 1;
  48. this.$refs.reportHistory.getInterviewList();
  49. },
  50. onChange(e) {
  51. this.active = e.detail.name;
  52. },
  53. },
  54. onPullDownRefresh: function () {
  55. // 加载数据
  56. },
  57. onReachBottom() {
  58. if (this.active == 1) {
  59. const reportHistory = this.$refs.reportHistory;
  60. console.log(reportHistory);
  61. reportHistory.getMoreListData();
  62. }
  63. console.log("滑动到距离底部100px的时候触发,可以放 。。业务逻辑");
  64. }, //下拉执行的时候触发 (下拉刷新)
  65. };
  66. </script>
  67. <style lang="scss">
  68. .gaisideshurukuang {
  69. .uni-forms-item__label {
  70. font-size: 26rpx !important;
  71. }
  72. }
  73. .float_left {
  74. float: left;
  75. }
  76. .chuzu_label {
  77. width: 312rpx;
  78. height: 36rpx;
  79. font-size: 26rpx;
  80. font-family: PingFang SC-Medium, PingFang SC;
  81. font-weight: 500;
  82. color: #333333;
  83. line-height: 36rpx;
  84. }
  85. .chuzu_vlaue {
  86. width: 86rpx;
  87. font-size: 32rpx;
  88. font-family: PingFang SC-Bold, PingFang SC;
  89. font-weight: bold;
  90. color: #ec7359;
  91. line-height: 38rpx;
  92. }
  93. .mb14rpx {
  94. margin-bottom: 14rpx;
  95. }
  96. .height34rpx {
  97. height: 34rpx;
  98. }
  99. .height50rpx {
  100. height: 50rpx;
  101. }
  102. .roomstatus {
  103. height: 50rpx;
  104. line-height: 50rpx;
  105. font-size: 24rpx;
  106. padding: 0rpx 16rpx;
  107. float: left;
  108. border-radius: 8rpx 8rpx 8rpx 8rpx;
  109. font-family: PingFang SC-Medium, PingFang SC;
  110. font-weight: 500;
  111. color: #1d18bc;
  112. border: 2rpx solid #1d18bc;
  113. margin-left: 16rpx;
  114. }
  115. .roomstatus:first-child {
  116. margin-left: 0;
  117. }
  118. .height50px {
  119. height: 50rpx;
  120. }
  121. .mb8rpx {
  122. margin-bottom: 8rpx;
  123. }
  124. .width100 {
  125. width: 100%;
  126. }
  127. .height36rpx {
  128. height: 36rpx;
  129. }
  130. .height40rpx {
  131. height: 40rpx;
  132. }
  133. .height66rpx {
  134. height: 66rpx;
  135. }
  136. .height44rpx {
  137. height: 44rpx;
  138. }
  139. .total {
  140. padding: 8rpx 32rpx 8rpx 0;
  141. text-align: right;
  142. background: #ffffff;
  143. }
  144. .gaisideshurukuang {
  145. .is-input-border {
  146. border-top: none;
  147. border-left: none;
  148. border-right: none;
  149. border: none;
  150. border-radius: 0;
  151. }
  152. .uni-forms-item {
  153. border-bottom: 2rpx solid #cccccc !important;
  154. margin-top: 10rpx !important;
  155. margin-bottom: 0rpx !important;
  156. padding-bottom: 10rpx !important;
  157. }
  158. }
  159. </style>