学员端小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
765 B

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <template>
  2. <view class="pageBgImg">
  3. <topNavbar title="信息资讯"></topNavbar>
  4. <view class="ul">
  5. <view class="card" v-for="(item,index) in infoList" :key="index">
  6. <newItem :item="item"></newItem>
  7. </view>
  8. </view>
  9. </view>
  10. </template>
  11. <script>
  12. import newItem from '../comp/newItem'
  13. export default {
  14. components: { newItem },
  15. data() {
  16. return {
  17. infoList: [],
  18. id: ''
  19. }
  20. },
  21. onLoad(options) {
  22. this.id = options.id
  23. this.getExamSiteInfoFn()
  24. },
  25. methods: {
  26. async getExamSiteInfoFn() {
  27. const {data: res} = await getExamSiteInfo({id: this.id,pageNo: 1,pageSize: 2, })
  28. this.infoList = res.list
  29. }
  30. }
  31. }
  32. </script>
  33. <style lang="scss" scoped>
  34. .ul {
  35. padding: 28rpx;
  36. }
  37. .card {
  38. margin-bottom: 20rpx;
  39. }
  40. </style>