schedule.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <template>
  2. <view class="schedule">
  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. <progress :percent="item.progress" activeColor="#9DC1FF" border-radius="3px" show-info />
  14. </view>
  15. <image class="play" src="../static/play.png" mode=""></image>
  16. </view>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. export default {
  22. data() {
  23. return {
  24. list:[
  25. {
  26. img:'https://gd-hbimg.huaban.com/5519accd3d95a5f992bd2f485fa5ca04c9af67be56754-gus75N_fw658webp',
  27. progress:30
  28. },
  29. {
  30. img:'https://gd-hbimg.huaban.com/e1dff5990532ceefe53fbab078101782d089733d178e7-PrqgOk_fw658webp',
  31. progress:45
  32. },
  33. {
  34. img:'https://gd-hbimg.huaban.com/f6c02f600c1de991ba0e457c263f70d076c61cb535e9c-Yi5djy',
  35. progress:87
  36. },
  37. {
  38. img:'https://gd-hbimg.huaban.com/e893b5ded9bcba900a5dde2dabe09d1cf8b4fa43a31c4-usH1ui_fw658webp',
  39. progress:32
  40. }
  41. ]
  42. }
  43. },
  44. }
  45. </script>
  46. <style lang="scss" scoped>
  47. .schedule{
  48. .list{
  49. padding: 0 30rpx;
  50. .item{
  51. background: #fff;
  52. padding: 20rpx;
  53. border-radius: 16rpx;
  54. display: flex;
  55. margin-bottom: 20rpx;
  56. box-shadow: 0rpx 0rpx 24rpx 2rpx rgba(0,0,0,0.06);
  57. .icon{
  58. width: 164rpx;
  59. height: 164rpx;
  60. }
  61. .info{
  62. margin-left: 20rpx;
  63. display: flex;
  64. flex-direction: column;
  65. justify-content: space-between;
  66. flex: 1;
  67. .title{
  68. font-size: 28rpx;
  69. font-weight: bold;
  70. color: #0F0F0F;
  71. }
  72. .types{
  73. font-size: 24rpx;
  74. font-weight: 400;
  75. color: #999999;
  76. }
  77. progress{
  78. color: #999999;
  79. }
  80. }
  81. .play{
  82. width: 40rpx;
  83. height: 40rpx;
  84. align-self: center;
  85. }
  86. }
  87. }
  88. }
  89. </style>