liveActivityList.vue 918 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <template>
  2. <view class="activityList">
  3. <statusBar :item="navbarData"></statusBar>
  4. <!-- <teaching-case :item="teaData"></teaching-case> -->
  5. <view class="" style="padding-bottom: 50rpx;">
  6. <teaching-case :activeList="activeList" :indexId="index" :item="teaData"></teaching-case>
  7. </view>
  8. </view>
  9. </template>
  10. <script>
  11. export default {
  12. data() {
  13. return {
  14. navbarData: {
  15. title: '直播活动',
  16. btn: 1
  17. },
  18. teaData: {
  19. btn: 1,
  20. btn_2: 2
  21. },
  22. activeList: [],
  23. };
  24. },
  25. methods:{
  26. // 获取教研活动
  27. getData(){
  28. let data={
  29. openid:uni.getStorageSync('oId'),ty:0
  30. }
  31. this.$request('/selectActivity',"POST",data).then(res=>{
  32. console.log(res[0]);
  33. // this.activeList=[...this.activeList,...res[0]]
  34. this.activeList=res[0]
  35. })
  36. },
  37. },
  38. onShow() {
  39. this.getData()
  40. }
  41. }
  42. </script>
  43. <style lang="scss">
  44. .activityList {}
  45. </style>