Institutional_visits.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <template>
  2. <view class="visitor">
  3. <view class="visits-time">{{ accDateTime }}</view>
  4. <template>
  5. <visits-cell
  6. @handlerVisits="handlerVisits"
  7. :visits-info="visitsInfo"
  8. v-for="visitsInfo in visitsList"
  9. :key="visitsInfo.clubId"
  10. />
  11. </template>
  12. </view>
  13. </template>
  14. <script>
  15. import VisitsCell from '../components/visits-cell.vue'
  16. export default {
  17. components: {
  18. VisitsCell
  19. },
  20. data() {
  21. return {
  22. visitsList: [{
  23. image: '',
  24. pageLabel: '',
  25. name: '',
  26. linkMan: '',
  27. contractMobile: '',
  28. accessTime: '2023-08-29',
  29. clubId: '1111'
  30. }],
  31. accDateTime: '',
  32. userInfo: {}
  33. }
  34. },
  35. onLoad(options) {
  36. this.accDateTime = options.accDateTime
  37. },
  38. mounted() {
  39. this.userInfo = uni.getStorageSync('userInfo')
  40. this.getVisitesClubList()
  41. },
  42. onReachBottom() {
  43. },
  44. onPullDownRefresh() {
  45. //下拉刷新
  46. this.getVisitesClubList()
  47. uni.stopPullDownRefresh()
  48. },
  49. methods: {
  50. handlerVisits($event) {
  51. this.$api.navigateTo(
  52. '/pages/seller/notice/service/visits_details?spId=' +
  53. this.userInfo.serviceProviderId +
  54. '&clubId=' +
  55. $event.clubId +
  56. '&accessTime=' +
  57. $event.accessTime
  58. )
  59. },
  60. async getVisitesClubList() {
  61. const { data } = await this.SellerService.getVisitesClubList({
  62. spId: this.userInfo.serviceProviderId,
  63. accDateTime: this.accDateTime
  64. })
  65. this.visitsList = data.list
  66. }
  67. }
  68. }
  69. </script>
  70. <style lang="scss">
  71. page {
  72. background-color: #f7f7f7;
  73. }
  74. .visitor {
  75. .visits-time {
  76. font-size: 32rpx;
  77. font-weight: bold;
  78. color: #333333;
  79. padding: 40rpx 0 24rpx 16rpx;
  80. }
  81. }
  82. </style>