gglist.vue 595 B

1234567891011121314151617181920212223242526272829303132333435363738
  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>
  6. </view>
  7. </template>
  8. <script>
  9. import { gglist } from '@/api/index.js';
  10. export default {
  11. data() {
  12. return {
  13. listInfo
  14. };
  15. },
  16. onLoad() {},
  17. onShow() {
  18. this.getgg();
  19. },
  20. methods: {
  21. getgg() {
  22. const obj = this;
  23. gglist({ page: 1, limit: 1000 }).then(e => {
  24. obj.listInfo = e.data;
  25. });
  26. }
  27. }
  28. };
  29. </script>
  30. <style lang="scss">
  31. page,
  32. .content {
  33. min-height: 100%;
  34. height: auto;
  35. }
  36. </style>