class.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <template>
  2. <view style="padding: 30rpx;">
  3. <navigator url="/pages2/class/detail" v-for="(item, index) in list" :key="index" style="margin-bottom: 30rpx;">
  4. <view class="class_item">
  5. <image src="/static/login_bg.jpg" style="height: 316rpx;width: 100%;border-radius: 24rpx;"></image>
  6. <view style="color: #333333;font-weight: bold;font-size: 32rpx;">
  7. 2020年二建建筑工程管理与实务(实务专题
  8. 班)
  9. </view>
  10. <view class=".content_box">
  11. <image src="/static/icon/wk_icon1.png" class="wk_icon"></image>
  12. 共<text class="content"> 3 </text>科<text class="content"> 120</text> 节
  13. <text class="content"> 60 </text>学时
  14. </view>
  15. <view class=".content_box">
  16. <image src="/static/icon/wk_icon2.png" class="wk_icon"></image>
  17. 学习有效期:<text class="content"> 2020.11.20 - 2021.12.19 </text>
  18. </view>
  19. </view>
  20. <view class="bottomBox">
  21. <view class=".content_box">
  22. <image src="/static/icon/wk_icon3.png" class="wk_icon"></image>
  23. 学习进度:26/120
  24. </view>
  25. <view class="box_progress">
  26. <view style="width: 60%;">
  27. <u-line-progress active-color="#ff9900" :percent="70"></u-line-progress>
  28. </view>
  29. <view>
  30. <u-button type="warning" size="mini" @click.stop="studyIn">进入学习</u-button>
  31. </view>
  32. </view>
  33. <view class="box_progress">
  34. <view style="width: 60%;">
  35. <text style="color: #2979ff;white-space: nowrap;text-overflow: ellipsis;">【机电全科】2021年一建黄金A</text>
  36. </view>
  37. <view>
  38. <u-button type="primary" size="mini">进入刷题</u-button>
  39. </view>
  40. </view>
  41. </view>
  42. </navigator>
  43. </view>
  44. </template>
  45. <script>
  46. export default {
  47. data() {
  48. return {
  49. list:[
  50. 1,2,3
  51. ]
  52. }
  53. },
  54. onLoad(option) {
  55. // this.getDict()
  56. },
  57. onShow(){
  58. },
  59. methods: {
  60. studyIn(){
  61. this.$navTo.togo('/pages2/verify/input');
  62. }
  63. },
  64. }
  65. </script>
  66. <style >
  67. page {
  68. background: #EAEEF1;
  69. }
  70. </style>
  71. <style scope>
  72. .box_progress{
  73. display: flex;
  74. justify-content:space-between;
  75. align-items: center;
  76. margin-top: 20rpx;
  77. }
  78. .bottomBox{
  79. background: #FFFFFF;
  80. width: 94%;
  81. border-bottom-left-radius: 24rpx;
  82. border-bottom-right-radius: 24rpx;
  83. margin: 0 auto;
  84. padding: 20rpx;
  85. }
  86. .content_box{
  87. display: flex;
  88. align-items: center;
  89. color: #999999;
  90. margin-top: 8rpx;
  91. }
  92. .content{
  93. color: #000000;
  94. margin: 0 8rpx;
  95. }
  96. .wk_icon{
  97. width: 24rpx;
  98. height: 24rpx;
  99. margin-right: 8rpx;
  100. }
  101. .class_item{
  102. width: 100%;
  103. height: 553rpx;
  104. background: #FFFFFF;
  105. box-shadow: 0rpx 10rpx 9rpx 1rpx rgba(165, 196, 239, 0.1);
  106. border-radius: 24rpx;
  107. padding: 20rpx;
  108. z-index: 999;
  109. position: relative;
  110. }
  111. </style>