学员端小程序
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.

59 lines
1.2 KiB

1 year ago
1 year ago
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="pad">
  5. <view class="searcBox">
  6. <searchRow placeholder="搜索视频名称"/>
  7. </view>
  8. <view class="ul">
  9. <view class="li" v-for="(item,index) in 10" :key="index" @click="$goPage('/pages/indexEntry/publicVideo/videoDetail/videoDetail')">
  10. <videoItem></videoItem>
  11. </view>
  12. </view>
  13. </view>
  14. </view>
  15. </template>
  16. <script>
  17. import videoItem from './comp/videoItem'
  18. import { publicVideoPage } from '@/config/api.js'
  19. export default {
  20. components: { videoItem },
  21. data() {
  22. return {
  23. pageNo: 1,
  24. pageSize: 20,
  25. }
  26. },
  27. onLoad() {
  28. this.publicVideoPageFn()
  29. },
  30. methods: {
  31. async publicVideoPageFn() {
  32. const {data: res} = await publicVideoPage(this.params)
  33. }
  34. }
  35. }
  36. </script>
  37. <style lang="scss" scoped>
  38. .ul {
  39. width: 100%;
  40. display: flex;
  41. justify-content: space-between;
  42. flex-wrap: wrap;
  43. .li {
  44. width: 100%;
  45. width: 48%;
  46. height: 260rpx;
  47. background: #FFFFFF;
  48. box-shadow: 0px 8rpx 20rpx 0px rgba(0,0,0,0.04), 2rpx 2rpx 8rpx 0px rgba(0,0,0,0.06);
  49. border-radius: 16rpx;
  50. margin-bottom: 24rpx;
  51. padding: 16rpx;
  52. }
  53. }
  54. .searcBox {
  55. padding: 0rpx 0 32rpx 0;
  56. }
  57. </style>