message.vue 433 B

123456789101112131415161718192021222324252627282930313233343536
  1. <template>
  2. <view class="center">
  3. </view>
  4. </template>
  5. <script>
  6. import { messageList } from '@/api/finance.js'
  7. export default {
  8. data(){
  9. return {
  10. list:[],
  11. }
  12. },
  13. onLoad() {
  14. this.loadData()
  15. },
  16. methods: {
  17. loadData() {
  18. messageList({page:1,limit:10}).then(({data}) =>{
  19. console.log(data)
  20. })
  21. }
  22. }
  23. }
  24. </script>
  25. <style lang="scss">
  26. .center,page {
  27. height: 100%;
  28. width: 100%;
  29. background: #F8F8F8;
  30. }
  31. </style>