inspect.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <template>
  2. <view class="route">
  3. <view class="list">
  4. <view class="item" v-for="(item,index) in list" :key="index">
  5. <zs-img :src="item.img" width="164rpx" height="164rpx" radius='full'></zs-img>
  6. <view class="info">
  7. <view class="title">
  8. 少儿编程培训基础班
  9. </view>
  10. <view class="types">
  11. AI培训 | 编程
  12. </view>
  13. <view class="author-info">
  14. <image class="head" :src="item.head" mode=""></image>
  15. <view class="name">
  16. 李老师
  17. </view>
  18. </view>
  19. </view>
  20. <image class="play" src="../static/play.png" mode=""></image>
  21. </view>
  22. </view>
  23. </view>
  24. </template>
  25. <script>
  26. export default {
  27. data() {
  28. return {
  29. list:[
  30. {
  31. img:'https://gd-hbimg.huaban.com/5519accd3d95a5f992bd2f485fa5ca04c9af67be56754-gus75N_fw658webp',
  32. head:'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fsafe-img.xhscdn.com%2Fbw1%2F1e0466ff-3a60-4544-9630-318439662daf%3FimageView2%2F2%2Fw%2F1080%2Fformat%2Fjpg&refer=http%3A%2F%2Fsafe-img.xhscdn.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1695371853&t=0d9cf33ea0b96e7e0d2778264668a623'
  33. },
  34. {
  35. img:'https://gd-hbimg.huaban.com/f6c02f600c1de991ba0e457c263f70d076c61cb535e9c-Yi5djy',
  36. head:'https://gd-hbimg.huaban.com/54c90225377e9ddb9aa260a735f429edf15309361cb73-QCueku_fw658webp'
  37. },
  38. {
  39. img:'https://gd-hbimg.huaban.com/e893b5ded9bcba900a5dde2dabe09d1cf8b4fa43a31c4-usH1ui_fw658webp',
  40. head:'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fsafe-img.xhscdn.com%2Fbw1%2F1e0466ff-3a60-4544-9630-318439662daf%3FimageView2%2F2%2Fw%2F1080%2Fformat%2Fjpg&refer=http%3A%2F%2Fsafe-img.xhscdn.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1695371853&t=0d9cf33ea0b96e7e0d2778264668a623'
  41. }
  42. ]
  43. }
  44. },
  45. }
  46. </script>
  47. <style lang="scss" scoped>
  48. .route{
  49. .list{
  50. padding: 0 30rpx;
  51. .item{
  52. background: #fff;
  53. padding: 20rpx;
  54. border-radius: 16rpx;
  55. display: flex;
  56. margin-bottom: 20rpx;
  57. box-shadow: 0rpx 0rpx 24rpx 2rpx rgba(0,0,0,0.06);
  58. .icon{
  59. width: 164rpx;
  60. height: 164rpx;
  61. }
  62. .info{
  63. margin-left: 20rpx;
  64. display: flex;
  65. flex-direction: column;
  66. justify-content: space-between;
  67. flex: 1;
  68. .title{
  69. font-size: 28rpx;
  70. font-weight: bold;
  71. color: #0F0F0F;
  72. }
  73. .types{
  74. font-size: 24rpx;
  75. font-weight: 400;
  76. color: #999999;
  77. }
  78. .author-info{
  79. display: flex;
  80. align-items: center;
  81. .head{
  82. width: 48rpx;
  83. height: 48rpx;
  84. border-radius: 50%;
  85. background: #999;
  86. }
  87. .name{
  88. font-size: 24rpx;
  89. font-weight: 400;
  90. color: #999999;
  91. margin-left: 10rpx;
  92. }
  93. }
  94. }
  95. .play{
  96. width: 40rpx;
  97. height: 40rpx;
  98. align-self: center;
  99. }
  100. }
  101. }
  102. }
  103. </style>