gglist.vue 629 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <template>
  2. <view class="content">
  3. <view class="list" v-for="(item, index) in listInfo">
  4. <view class="icon"><image src="../../static/img/gglist.png" mode=""></image></view>
  5. <view class="main"></view>
  6. </view>
  7. </view>
  8. </template>
  9. <script>
  10. import { gglist } from '@/api/index.js';
  11. export default {
  12. data() {
  13. return {
  14. listInfo: []
  15. };
  16. },
  17. onLoad() {},
  18. onShow() {
  19. this.getgg();
  20. },
  21. methods: {
  22. getgg() {
  23. const obj = this;
  24. gglist({ page: 1, limit: 1000 }).then(e => {
  25. obj.listInfo = e.data;
  26. });
  27. }
  28. }
  29. };
  30. </script>
  31. <style lang="scss">
  32. page,
  33. .content {
  34. min-height: 100%;
  35. height: auto;
  36. }
  37. </style>