list.vue 699 B

123456789101112131415161718192021222324252627282930313233343536
  1. <template>
  2. <view class="container">
  3. <view class="main">
  4. <fs-cell-group border arrow>
  5. <fs-cell title="晋A7877H" @click="handleEdit('晋A7877H')"></fs-cell>
  6. </fs-cell-group>
  7. <fs-empty v-if="!carList.length && loaded"></fs-empty>
  8. </view>
  9. <view class="layout-box">
  10. <fs-button round full link="./add">添加车辆</fs-button>
  11. </view>
  12. </view>
  13. </template>
  14. <script setup>
  15. import { ref } from 'vue'
  16. import { onShow } from '@dcloudio/uni-app'
  17. let carList = ref([])
  18. let loaded = ref(false)
  19. const handleEdit = item => {
  20. getApp().globalData.carDetail = item
  21. uni.navigateTo({
  22. url: './add'
  23. })
  24. }
  25. onShow(() => {
  26. console.log('onshow');
  27. })
  28. </script>
  29. <style lang="scss">
  30. </style>