| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 |
- <template>
- <view >
- <view class="footer_tab">
- <u-line color="#D6D6DB" />
- <u-row gutter="16">
- <u-col span="4">
- <view class="box">
- <view style="text-align: center;margin-left: 30rpx;position: absolute;left: 20rpx;">
- <image src="/static/sc.png" class="sc"></image>
- <view class="sc_t">收藏</view>
- </view>
- </view>
- </u-col>
- <u-col span="4">
- <view class="box">
- <view style="text-align: center;" @click="menu">
- <image src="/static/up.png" style="width: 58rpx;height: 22rpx;"></image>
- <view class="sc_t">答题卡</view>
- </view>
- </view>
- </u-col>
- <u-col span="4">
- <view class="box">
- <view style="text-align: center;margin-right: 30rpx;position: absolute;right: 20rpx;">
- <image src="/static/jj.png" class="sc"></image>
- <view class="sc_t">交卷</view>
- </view>
- </view>
- </u-col>
- </u-row>
- </view>
- <u-popup v-model="show" mode="bottom" :safe-area-inset-bottom="true">
- <view class="popup_box" >
- <scroll-view scroll-y="true" class="popup_list" >
- <view v-for="(item,index) in list" :key="index" class="btn_num" :class="index%2==0?'btn_bac2':'btn_bac1'">
- <text class="">{{index}}</text>
- </view>
- </scroll-view>
- </view>
- </u-popup>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- type:1,
- show:false,
- list:[1,2,3,4,5,6,7,2,3,4,5,6,7,2,3,4,5,6,7,2,3,4,5,
- 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]
- }
- },
- onLoad(option) {
- this.type = option.type
- console.log(this.type)
- },
- onShow(){
- },
- methods: {
- menu(){
- this.show = true
- },
-
- },
-
- }
- </script>
- <style>
- ::-webkit-scrollbar{
- width: 0;
- height: 0;
- color: transparent;
- }
- .u-drawer-content-visible{
- border-radius: 32rpx 32rpx 0rpx 0rpx;
- overflow: hidden;
- }
- </style>
- <style scope>
- .btn_bac2{
- background: #32467B;
- color: #FFf;
- }
- .btn_bac1{
- background: #F7F8FF;
- color: #666666;
- }
- .btn_num::before{
- content: "";
- padding-top: 100%;
- display: block;}
- .btn_num text{
-
- font-size: 24rpx;
- width: 100%;
- display: inline-block;
- text-align: center;
- top: 50%;
- position: absolute;
- height: 30rpx;
- line-height: 30rpx;
- margin-top: -15rpx;
- }
- .btn_num{
-
- border-radius: 32rpx;
- width: 16%;
- margin: 2%;
- display: inline-block;
- position: relative;
- }
- .popup_list{
- border-radius: 32rpx 32rpx 0rpx 0rpx;
- height: 899rpx;
- background: #F2F3F6;
- padding-bottom: 30rpx;
- }
- .popup_box{
- height: 899rpx;
- box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(145, 156, 178, 0.1);
- border-radius: 32rpx 32rpx 0rpx 0rpx;
- background: #F2F3F6;
- padding: 30rpx;
- }
- .sc_t{
- font-size: 22rpx;
- color: #000000;
- }
- .box{
- height: 95rpx;
- display: flex;
- flex-direction: column;
- justify-content: center;
- position: relative;
- }
- .sc{
- width: 29rpx ;
- height: 29rpx;
- }
- .footer_tab{
- position:fixed;
- bottom:0;
- height: 96rpx;
- width: 100%;
- background-color: #FFFFFF;
- }
- page {
- background: #FFFFFF;
- }
- </style>
|