question_bank.vue 3.1 KB

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