selectCity.vue 817 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <template>
  2. <view class="content">
  3. <lee-select-city :height="'100vh'" :defaultSelected="defaultSelected"/>
  4. </view>
  5. </template>
  6. <script>
  7. import LeeSelectCity from '@/components/lee-select-city/lee-select-city.vue'
  8. export default {
  9. data() {
  10. return {
  11. }
  12. },
  13. computed: {
  14. defaultSelected() {
  15. if(this.$store.state.chooseProvince) {
  16. return [this.$store.state.chooseProvince,this.$store.state.chooseCity,this.$store.state.chooseDistrict]
  17. }
  18. }
  19. },
  20. components: {
  21. LeeSelectCity
  22. },
  23. onLoad() {
  24. },
  25. onShow() {
  26. },
  27. onReachBottom() {
  28. },
  29. onReady() {
  30. },
  31. methods: {
  32. }
  33. }
  34. </script>
  35. <style lang="scss">
  36. page {
  37. height: 100%;
  38. }
  39. .content {
  40. min-height: 100%;
  41. height: auto;
  42. background-color: #bfa;
  43. }
  44. </style>