question_bank.vue 2.5 KB

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