index.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. <template>
  2. <view>
  3. <view class="tan">
  4. <view class="tan-mask" @tap="tap_handler(0)"></view>
  5. <view class="tan-modal">
  6. <view class="tan-content">
  7. <view class="exam-tan-content">
  8. <view>您上次答到第</view>
  9. <view class="exam-tan-content-title">{{timu_order-1}}</view>
  10. <view>道题</view>
  11. </view>
  12. <view class="exam-tan-button">
  13. <view class="exam-tan-button-r" @tap="tap_handler(4)">重新答题</view>
  14. <view class="exam-tan-button-l" @tap="tap_handler(3)">继续上次</view>
  15. </view>
  16. </view>
  17. </view>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. export default {
  23. data() {
  24. return {
  25. timu_order: this.timuorder
  26. }
  27. },
  28. props: {
  29. timuorder: 0
  30. },
  31. /* timuinfo: {
  32. type: Object,
  33. default: {
  34. library_name: '',
  35. total_num: 0,
  36. zhengquelv: 0,
  37. right_num: 0,
  38. error_num: 0,
  39. yida_num:0
  40. }
  41. },*/
  42. computed: {},
  43. methods: {
  44. tap_handler(type) {
  45. this.$emit('tap_handler', type)
  46. }
  47. }
  48. }
  49. </script>
  50. <style>
  51. /*弹窗*/
  52. .tan-mask {
  53. position: fixed;
  54. z-index: 999;
  55. top: 0;
  56. right: 0;
  57. left: 0;
  58. bottom: 0;
  59. background: rgba(0, 0, 0, 0.6);
  60. }
  61. .tan-modal {
  62. position: fixed;
  63. z-index: 999;
  64. width: 80%;
  65. max-width: 300px;
  66. top: 50%;
  67. left: 50%;
  68. -webkit-transform: translate(-50%, -50%);
  69. transform: translate(-50%, -50%);
  70. background-color: #fff;
  71. text-align: center;
  72. border-radius: 3px;
  73. overflow: hidden;
  74. }
  75. .tan-title {
  76. padding: 18px 0;
  77. border-bottom: solid 1px #f4f4f4;
  78. }
  79. .tan-title view {
  80. font-weight: 400;
  81. font-size: 17px;
  82. word-wrap: break-word;
  83. word-break: break-all;
  84. overflow: hidden;
  85. text-overflow: ellipsis;
  86. display: -webkit-box;
  87. -webkit-line-clamp: 2;
  88. -webkit-box-orient: vertical;
  89. }
  90. .tan-content {
  91. width: 90%;
  92. margin: 0 auto;
  93. font-size: 14px;
  94. }
  95. .exam-tan-content {
  96. margin-top: 24px;
  97. font-size: 16px;
  98. display: flex;
  99. align-items: center;
  100. justify-content: center;
  101. line-height: 25px;
  102. }
  103. .exam-tan-content-title {
  104. color: #ff7412;
  105. font-weight: bold
  106. }
  107. .exam-tan-content-flex {
  108. display: flex;
  109. width: 91%;
  110. margin: 0 auto;
  111. padding: 13px 0;
  112. border-bottom: solid 1px #f4f4f4;
  113. }
  114. .exam-tan-content-flex span {
  115. color: #767676;
  116. width: 42%;
  117. text-align: left;
  118. }
  119. .exam-tan-button {
  120. color: #fff;
  121. padding: 12px 0;
  122. margin: 10px 0;
  123. border-radius: 4px;
  124. font-size: 16px;
  125. display: flex;
  126. justify-content: space-between;
  127. width: 100%;
  128. }
  129. .exam-tan-button-l {
  130. background: #ffd947;
  131. color: #000;
  132. width: 48%;
  133. padding: 8px 0;
  134. border-radius: 2px;
  135. }
  136. .exam-tan-button-r {
  137. background: #000;
  138. width: 48%;
  139. padding: 8px 0;
  140. border-radius: 2px;
  141. }
  142. </style>