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.

80 lines
1.6 KiB

4 months ago
  1. <template>
  2. <view class="content">
  3. <view class="ul padding">
  4. <view class="li" v-for="(item,index) in 7" :key="index" @click="goPage(index)">
  5. <view class="num" :style="{background: colorArr[index]}">{{index+1}}</view>
  6. <view class="rightTxt">
  7. <view class="h1">安全行车常识</view>
  8. <view class="flex">
  9. <view class="proccess">
  10. <up-line-progress :percentage="80" height="8" activeColor="#3776FF" :showText="false"></up-line-progress>
  11. </view>
  12. <view class="rate">60/260</view>
  13. <view class="rate">正确率 100%</view>
  14. </view>
  15. </view>
  16. </view>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. export default {
  22. data() {
  23. return {
  24. colorArr: ['#3776FF', '#64C76C', '#8484FF', '#F05C1C', '#FDD650', '#6FD568', '#52C1D0']
  25. }
  26. },
  27. methods: {
  28. goPage(index) {
  29. console.log(index)
  30. this.$goPage('/pages/exercises/brushQuestions/brushQuestions')
  31. }
  32. }
  33. }
  34. </script>
  35. <style lang="scss" scoped>
  36. .content {
  37. width: 100%;
  38. .ul {
  39. width: 100%;
  40. .li {
  41. width: 100%;
  42. display: flex;
  43. padding: 30rpx 0;
  44. border-bottom: 1px solid #F4F4F4;
  45. .num {
  46. height: 34rpx;
  47. width: 34rpx;
  48. // padding: 10rpx 10rpx;
  49. text-align: center;
  50. background: #3776FF;
  51. border-radius: 50%;
  52. font-size: 24rpx;
  53. color: #fff;
  54. line-height: 34rpx;
  55. margin-top: 8rpx;
  56. }
  57. .h1 {
  58. font-size: 32rpx;
  59. color: #333;
  60. margin-bottom: 20rpx;
  61. }
  62. .rightTxt {
  63. padding-left: 20rpx;
  64. }
  65. .flex {
  66. .proccess {
  67. margin-right: 20rpx;
  68. width: 120rpx;
  69. }
  70. .rate {
  71. font-size: 24rpx;
  72. color: #CCCCCC;
  73. margin-right: 30rpx;
  74. }
  75. }
  76. }
  77. }
  78. }
  79. </style>