question_bank.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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">我的题库<u-icon name="arrow-right"></u-icon></view>
  7. </view>
  8. <image src="/static/questionBank.png" class="my_bg"></image>
  9. </view>
  10. </navigator>
  11. <view class="bottom">
  12. <navigator url="/pages2/subject/collect">
  13. <view class="item collect">
  14. <view class="text">收藏集<u-icon name="arrow-right"></u-icon></view>
  15. <image class="img" src="/static/questionBank_collect.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/questionBank_record.png" ></image>
  22. <view class="text">
  23. 做题记录 <u-icon name="arrow-right"></u-icon>
  24. </view>
  25. </view>
  26. </navigator>
  27. <navigator url="/pages2/subject/wrong">
  28. <view class="list-in">
  29. <image class="img" src="/static/questionBank_wrong.png"></image>
  30. <view class="text">
  31. 错题集 <u-icon name="arrow-right"></u-icon>
  32. </view>
  33. </view>
  34. </navigator>
  35. </view>
  36. </view>
  37. </view>
  38. </template>
  39. <script>
  40. export default {
  41. data() {
  42. return {
  43. list:[
  44. 1,2,3
  45. ]
  46. }
  47. },
  48. onLoad(option) {
  49. // this.getDict()
  50. },
  51. onShow(){
  52. },
  53. methods: {
  54. },
  55. }
  56. </script>
  57. <style >
  58. page {
  59. background: #fff;
  60. }
  61. </style>
  62. <style lang="scss" scope>
  63. .my_question {
  64. position:relative;
  65. display: flex;
  66. width: 686rpx;
  67. height: 240rpx;
  68. border-radius: 24rpx;
  69. padding:0 40rpx;
  70. .my_bg {
  71. position:absolute;
  72. left:0;
  73. top:0;
  74. width:100%;
  75. height:100%;
  76. }
  77. .flex {
  78. position: relative;
  79. z-index: 10;
  80. .text {
  81. padding-top:32rpx;
  82. font-size: 32rpx;
  83. font-family: PingFang SC;
  84. font-weight: bold;
  85. color: #FFFFFF;
  86. }
  87. }
  88. }
  89. .bottom {
  90. margin-top:16rpx;
  91. display: flex;
  92. justify-content: space-between;
  93. .item {
  94. width: 335rpx;
  95. &.collect {
  96. position: relative;
  97. font-size: 32rpx;
  98. color: #FFFFFF;
  99. height: 240rpx;
  100. border-radius: 24rpx;
  101. padding:32rpx;
  102. .text {
  103. position:relative;
  104. z-index: 10;
  105. font-size: 32rpx;
  106. font-weight: bold;
  107. color: #FFFFFF;
  108. }
  109. .img {
  110. position:absolute;
  111. left:0;
  112. top:0;
  113. width:100%;
  114. height:100%;
  115. }
  116. }
  117. &.list {
  118. .list-in {
  119. position:relative;
  120. width: 335rpx;
  121. height: 112rpx;
  122. background: #007AFF;
  123. border-radius: 24rpx;
  124. display: flex;
  125. align-items: center;
  126. font-size: 32rpx;
  127. color: #fff;
  128. &:first-of-type {
  129. margin-bottom:16rpx;
  130. }
  131. .text {
  132. padding-left:91rpx;
  133. position:relative;
  134. z-index: 10;
  135. font-size: 32rpx;
  136. font-weight: bold;
  137. color: #FFFFFF;
  138. }
  139. .img {
  140. position:absolute;
  141. left:0;
  142. top:0;
  143. width:100%;
  144. height:100%;
  145. }
  146. }
  147. }
  148. }
  149. }
  150. </style>