visits_details.vue 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <template>
  2. <view class="details">
  3. <view class="visits-time">{{ accessTime }}</view>
  4. <template>
  5. <view class="details-title"><visits-cell @handlerVisits="handlerVisits" :visits-info="visitsInfo" /></view>
  6. </template>
  7. <view class="trajectory">
  8. <Trajectory :trajectory-list="detailList"/>
  9. </view>
  10. </view>
  11. </template>
  12. <script>
  13. import VisitsCell from '../components/visits-cell.vue'
  14. import Trajectory from '../components/trajectory.vue'
  15. export default {
  16. components: {
  17. VisitsCell,
  18. Trajectory
  19. },
  20. data() {
  21. return {
  22. visitsInfo: {
  23. id: 1
  24. },
  25. accessTime: '', // 访问日期
  26. spId: '', // 协销id
  27. clubId: '' ,// 机构id
  28. detailList: []
  29. }
  30. },
  31. onLoad(options) {
  32. this.accessTime = options.accessTime
  33. this.spId = options.spId
  34. this.clubId = options.clubId
  35. },
  36. mounted() {
  37. this.getVisitesClubDetail()
  38. },
  39. methods: {
  40. handlerVisits($event) {
  41. this.$api.navigateTo(
  42. '/pages/seller/notice/service/visits_details?spId=' +
  43. this.spId +
  44. '&clubId=' +
  45. this.clubId +
  46. '&accessTime=' +
  47. this.accessTime
  48. )
  49. },
  50. async getVisitesClubDetail() {
  51. const {data} = await this.SellerService.getVisitesClubInfo({accessTime: this.accessTime, spId: this.spId, clubId: this.clubId})
  52. this.detailList = data
  53. }
  54. }
  55. }
  56. </script>
  57. <style lang="scss">
  58. page {
  59. background-color: #f7f7f7;
  60. }
  61. .details {
  62. .visits-time {
  63. font-size: 32rpx;
  64. font-weight: bold;
  65. color: #333333;
  66. padding: 40rpx 0 24rpx 16rpx;
  67. }
  68. .details-title {
  69. margin-bottom: 24rpx;
  70. }
  71. }
  72. </style>