question.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <template>
  2. <view >
  3. <view class="footer_tab">
  4. <u-line color="#D6D6DB" />
  5. <u-row gutter="16">
  6. <u-col span="4">
  7. <view class="box">
  8. <view style="text-align: center;margin-left: 30rpx;position: absolute;left: 20rpx;">
  9. <image src="/static/sc.png" class="sc"></image>
  10. <view class="sc_t">收藏</view>
  11. </view>
  12. </view>
  13. </u-col>
  14. <u-col span="4">
  15. <view class="box">
  16. <view style="text-align: center;" @click="menu">
  17. <image src="/static/up.png" style="width: 58rpx;height: 22rpx;"></image>
  18. <view class="sc_t">答题卡</view>
  19. </view>
  20. </view>
  21. </u-col>
  22. <u-col span="4">
  23. <view class="box">
  24. <view style="text-align: center;margin-right: 30rpx;position: absolute;right: 20rpx;">
  25. <image src="/static/jj.png" class="sc"></image>
  26. <view class="sc_t">交卷</view>
  27. </view>
  28. </view>
  29. </u-col>
  30. </u-row>
  31. </view>
  32. <u-popup v-model="show" mode="bottom" :safe-area-inset-bottom="true">
  33. <view class="popup_box" >
  34. <scroll-view scroll-y="true" class="popup_list" >
  35. <view v-for="(item,index) in list" :key="index" class="btn_num" :class="index%2==0?'btn_bac2':'btn_bac1'">
  36. <text class="">{{index}}</text>
  37. </view>
  38. </scroll-view>
  39. </view>
  40. </u-popup>
  41. </view>
  42. </template>
  43. <script>
  44. export default {
  45. data() {
  46. return {
  47. type:1,
  48. show:false,
  49. list:[1,2,3,4,5,6,7,2,3,4,5,6,7,2,3,4,5,6,7,2,3,4,5,
  50. 6,1,2,3,4,5,6,7,2,3,4,5,6,7,2,3,4,5,6,7,2,3,4,5,6,7]
  51. }
  52. },
  53. onLoad(option) {
  54. this.type = option.type
  55. console.log(this.type)
  56. },
  57. onShow(){
  58. },
  59. methods: {
  60. menu(){
  61. this.show = true
  62. },
  63. },
  64. }
  65. </script>
  66. <style>
  67. ::-webkit-scrollbar{
  68. width: 0;
  69. height: 0;
  70. color: transparent;
  71. }
  72. .u-drawer-content-visible{
  73. border-radius: 32rpx 32rpx 0rpx 0rpx;
  74. overflow: hidden;
  75. }
  76. </style>
  77. <style scope>
  78. .btn_bac2{
  79. background: #32467B;
  80. color: #FFf;
  81. }
  82. .btn_bac1{
  83. background: #F7F8FF;
  84. color: #666666;
  85. }
  86. .btn_num::before{
  87. content: "";
  88. padding-top: 100%;
  89. display: block;}
  90. .btn_num text{
  91. font-size: 24rpx;
  92. width: 100%;
  93. display: inline-block;
  94. text-align: center;
  95. top: 50%;
  96. position: absolute;
  97. height: 30rpx;
  98. line-height: 30rpx;
  99. margin-top: -15rpx;
  100. }
  101. .btn_num{
  102. border-radius: 32rpx;
  103. width: 16%;
  104. margin: 2%;
  105. display: inline-block;
  106. position: relative;
  107. }
  108. .popup_list{
  109. border-radius: 32rpx 32rpx 0rpx 0rpx;
  110. height: 899rpx;
  111. background: #F2F3F6;
  112. padding-bottom: 30rpx;
  113. }
  114. .popup_box{
  115. height: 899rpx;
  116. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(145, 156, 178, 0.1);
  117. border-radius: 32rpx 32rpx 0rpx 0rpx;
  118. background: #F2F3F6;
  119. padding: 30rpx;
  120. }
  121. .sc_t{
  122. font-size: 22rpx;
  123. color: #000000;
  124. }
  125. .box{
  126. height: 95rpx;
  127. display: flex;
  128. flex-direction: column;
  129. justify-content: center;
  130. position: relative;
  131. }
  132. .sc{
  133. width: 29rpx ;
  134. height: 29rpx;
  135. }
  136. .footer_tab{
  137. position:fixed;
  138. bottom:0;
  139. height: 96rpx;
  140. width: 100%;
  141. background-color: #FFFFFF;
  142. }
  143. page {
  144. background: #FFFFFF;
  145. }
  146. </style>