category.vue 586 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <template>
  2. <view class="content">
  3. </view>
  4. </template>
  5. <script>
  6. import { getCategoryList } from '@/api/product.js';
  7. export default {
  8. data() {
  9. return {
  10. };
  11. },
  12. onLoad() {
  13. this.loadData();
  14. },
  15. methods: {
  16. // 载入数据
  17. async loadData() {
  18. let obj = this;
  19. },
  20. navToList(sid, tid) {
  21. // 点击导航跳转到详细页面
  22. uni.navigateTo({
  23. url: '/pages/product/list?fid='+this.currentId+'&sid='+sid+'&tid='+tid
  24. });
  25. }
  26. }
  27. };
  28. </script>
  29. <style lang="scss">
  30. page,
  31. .content {
  32. height: 100%;
  33. background-color: #f8f8f8;
  34. }
  35. .content {
  36. display: flex;
  37. }
  38. </style>