zsjyShengxue.vue 514 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <template>
  2. <view>
  3. </view>
  4. </template>
  5. <script setup>
  6. import {
  7. ref,
  8. reactive
  9. } from "vue";
  10. import {
  11. onLoad
  12. } from "@dcloudio/uni-app"
  13. import * as httpApi from "@/api/common.js"
  14. const data = reactive({
  15. page: 1,
  16. size: 5,
  17. total: 0,
  18. list: []
  19. })
  20. onLoad(() => {
  21. pageInit();
  22. })
  23. function pageInit() {
  24. httpApi.getCommonZSJYShengxueList({page:data.page,size:data.size}).then(res => {
  25. data.list = res.data.data;
  26. data.total = res.data.total;
  27. })
  28. }
  29. </script>
  30. <style>
  31. </style>