CustomerMap.vue 721 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <template>
  2. <view>
  3. <view class="charts-box">
  4. <qiun-data-charts type="map" :chartData="chartData" :echartsH5="true" :echartsApp="true" background="none"
  5. :animation="false" />
  6. </view>
  7. </view>
  8. </template>
  9. <script>
  10. export default {
  11. data() {
  12. return {
  13. chartData: {
  14. categories: [],
  15. series: []
  16. },
  17. }
  18. },
  19. onLoad() {
  20. this.getCustomerDistributed()
  21. },
  22. methods: {
  23. getCustomerDistributed() {
  24. this.$u.api.getCustomerDistributed().then((res) => {
  25. console.log(res.data)
  26. });
  27. }
  28. }
  29. }
  30. </script>
  31. <style lang="scss" scoped>
  32. .charts-box {
  33. margin: 0 auto;
  34. width: 710rpx;
  35. height: 530rpx;
  36. padding: 24rpx 24rpx 0 0;
  37. background-color: #ffffff;
  38. }
  39. </style>