|
@@ -8,9 +8,9 @@
|
|
|
<!-- 选项区域 -->
|
|
|
<view class="yuedu-option-box">
|
|
|
<swiper class="swiper-box" @change="onSwitchChange" :current="swiperDotIndex">
|
|
|
- <swiper-item v-for="(item,index) in data.content" :key="index">
|
|
|
+ <swiper-item v-for="(item,index) in data.content" :key="index" class="swiper-item-content">
|
|
|
{{item}}
|
|
|
- <view class="swiper-item" :class="'swiper-item' + index" style="height: 300rpx;background-color: #ccc;">
|
|
|
+ <view class="swiper-item" :class="'swiper-item' + index" style="background-color: #ccc;">
|
|
|
<template v-if="item.stTypeId == 1">
|
|
|
<!-- 单选 -->
|
|
|
<danxuan :question="item" :key="item.stId"></danxuan>
|
|
@@ -83,7 +83,9 @@
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|
|
|
- .swiper-item {
|
|
|
- height: 200px;
|
|
|
- }
|
|
|
+ .yuedu-option-box{
|
|
|
+ height: calc(100vh - 500rpx);display: flex;flex-direction: column;
|
|
|
+ .swiper-box{flex: 1;}
|
|
|
+ .swiper-item-content{overflow-y: auto;}
|
|
|
+ }
|
|
|
</style>
|