visits_details.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. async getVisitesClubDetail() {
  42. this.visitsInfo = JSON.parse(uni.getStorageSync('visitsInfo')) || {}
  43. const {data} = await this.SellerService.getVisitesClubInfo({accessTime: this.accessTime, spId: this.spId, clubId: this.clubId})
  44. this.detailList = data
  45. }
  46. }
  47. }
  48. </script>
  49. <style lang="scss">
  50. page {
  51. background-color: #f7f7f7;
  52. }
  53. .details {
  54. .visits-time {
  55. font-size: 32rpx;
  56. font-weight: bold;
  57. color: #333333;
  58. padding: 40rpx 0 24rpx 16rpx;
  59. }
  60. .details-title {
  61. margin-bottom: 24rpx;
  62. }
  63. }
  64. </style>