question_bank.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <template>
  2. <view style="padding: 32rpx;">
  3. <navigator url="/pages2/bank/my_question">
  4. <view class="my_question">
  5. <view class="flex">
  6. <view class="text">我的题库></view>
  7. <image src="/static/icon/my_icon7.png" class="my_icon"></image>
  8. </view>
  9. </view>
  10. </navigator>
  11. <view class="bottom">
  12. <view class="item collect">
  13. <view class="text">收藏集></view>
  14. <image class="img" src="/static/sc.png"></image>
  15. </view>
  16. <view class="item list">
  17. <navigator url="/pages2/bank/question_record">
  18. <view class="list-in">
  19. <image class="img" src="/static/icon/wk_icon2.png" ></image>
  20. 做题记录 >
  21. </view>
  22. </navigator>
  23. <view class="list-in">
  24. <image class="img" src="/static/icon/wk_icon2.png"></image>
  25. 错题集 >
  26. </view>
  27. </view>
  28. </view>
  29. </view>
  30. </template>
  31. <script>
  32. export default {
  33. data() {
  34. return {
  35. list:[
  36. 1,2,3
  37. ]
  38. }
  39. },
  40. onLoad(option) {
  41. // this.getDict()
  42. },
  43. onShow(){
  44. },
  45. methods: {
  46. },
  47. }
  48. </script>
  49. <style >
  50. page {
  51. background: #fff;
  52. }
  53. </style>
  54. <style lang="scss" scope>
  55. .my_question {
  56. display: flex;
  57. width: 686rpx;
  58. height: 240rpx;
  59. background: linear-gradient(45deg, #015EEA, #00C0FA);
  60. border-radius: 24rpx;
  61. padding:0 40rpx;
  62. .flex {
  63. .text {
  64. padding-top:32rpx;
  65. font-size: 32rpx;
  66. font-family: PingFang SC;
  67. font-weight: bold;
  68. color: #FFFFFF;
  69. }
  70. .my_icon {
  71. margin-top:23rpx;
  72. width: 122rpx;
  73. height: 132rpx;
  74. }
  75. }
  76. .flex_auto {
  77. flex:1;
  78. .bg {
  79. width:100%;
  80. }
  81. }
  82. }
  83. .bottom {
  84. margin-top:16rpx;
  85. display: flex;
  86. justify-content: space-between;
  87. .item {
  88. width: 335rpx;
  89. &.collect {
  90. font-size: 32rpx;
  91. color: #FFFFFF;
  92. height: 240rpx;
  93. background: linear-gradient(45deg, rgba(255, 177, 2, 0.75), rgba(255, 84, 79, 0.75));
  94. border-radius: 24rpx;
  95. padding:32rpx;
  96. .img {
  97. width: 125rpx;
  98. height: 126rpx;
  99. opacity: 0.4;
  100. }
  101. }
  102. &.list {
  103. .list-in {
  104. width: 335rpx;
  105. height: 112rpx;
  106. background: #007AFF;
  107. border-radius: 24rpx;
  108. display: flex;
  109. align-items: center;
  110. justify-content: center;
  111. font-size: 32rpx;
  112. color: #fff;
  113. &:first-of-type {
  114. margin-bottom:16rpx;
  115. }
  116. .img {
  117. width: 32rpx;
  118. height: 32rpx;
  119. opacity: 0.8;
  120. margin-right:17rpx;
  121. }
  122. }
  123. }
  124. }
  125. }
  126. </style>