|
@@ -3,38 +3,33 @@
|
|
<view class="phone-shiti-question">
|
|
<view class="phone-shiti-question">
|
|
<view class="question-num">{{question.onlyNum}}、</view>
|
|
<view class="question-num">{{question.onlyNum}}、</view>
|
|
<!-- 题干区域 -->
|
|
<!-- 题干区域 -->
|
|
- <!-- <rich-text :nodes="question.name"></rich-text> -->
|
|
|
|
|
|
+ <rich-text :nodes="question.name"></rich-text>
|
|
</view>
|
|
</view>
|
|
<!-- 选项区域 -->
|
|
<!-- 选项区域 -->
|
|
- <view class="yuedu-option-box">
|
|
|
|
- <swiper class="swiper-box" @change="onSwitchChange" :current="swiperDotIndex">
|
|
|
|
- <swiper-item v-for="(item,index) in data.content" :key="index" class="swiper-item-content">
|
|
|
|
- <view class="swiper-item" :class="'swiper-item' + index" style="background-color: #ccc;">
|
|
|
|
- <template v-if="item.type == 'danxuan'">
|
|
|
|
- <!-- 单选 -->
|
|
|
|
- <danxuan :question="item" :key="item.stId"></danxuan>
|
|
|
|
- </template>
|
|
|
|
- <template v-if="item.type == 'duoxuan'">
|
|
|
|
-
|
|
|
|
- <!-- 多选 -->
|
|
|
|
- <duoxuan :question="item" :key="item.stId"></duoxuan>
|
|
|
|
- </template>
|
|
|
|
- <template v-if="item.type == 'panduan'">
|
|
|
|
- <!-- 判断 -->
|
|
|
|
- <panduan :question="item" :key="item.stId"></panduan>
|
|
|
|
- </template>
|
|
|
|
- <template v-if="item.type == 'tiankong'">
|
|
|
|
- <!-- 填空 -->
|
|
|
|
- <tiankong :question="item" :key="item.stId"></tiankong>
|
|
|
|
- </template>
|
|
|
|
- <template v-if="item.type == 'jianda'">
|
|
|
|
- <!-- 简答 -->
|
|
|
|
- <jianda :question="item" :key="item.stId"></jianda>
|
|
|
|
- </template>
|
|
|
|
- </view>
|
|
|
|
- </swiper-item>
|
|
|
|
- </swiper>
|
|
|
|
- </view>
|
|
|
|
|
|
+ <swiper class="yuedu-swiper-box" @change="onSwitchChange" :current="swiperDotIndex">
|
|
|
|
+ <swiper-item v-for="(item,index) in data.content" :key="index" class="yuedu-swiper-content">
|
|
|
|
+ <template v-if="item.type == 'danxuan'">
|
|
|
|
+ <!-- 单选 -->
|
|
|
|
+ <danxuan :question="item" :key="item.stId"></danxuan>
|
|
|
|
+ </template>
|
|
|
|
+ <template v-if="item.type == 'duoxuan'">
|
|
|
|
+ <!-- 多选 -->
|
|
|
|
+ <duoxuan :question="item" :key="item.stId"></duoxuan>
|
|
|
|
+ </template>
|
|
|
|
+ <template v-if="item.type == 'panduan'">
|
|
|
|
+ <!-- 判断 -->
|
|
|
|
+ <panduan :question="item" :key="item.stId"></panduan>
|
|
|
|
+ </template>
|
|
|
|
+ <template v-if="item.type == 'tiankong'">
|
|
|
|
+ <!-- 填空 -->
|
|
|
|
+ <tiankong :question="item" :key="item.stId"></tiankong>
|
|
|
|
+ </template>
|
|
|
|
+ <template v-if="item.type == 'jianda'">
|
|
|
|
+ <!-- 简答 -->
|
|
|
|
+ <jianda :question="item" :key="item.stId"></jianda>
|
|
|
|
+ </template>
|
|
|
|
+ </swiper-item>
|
|
|
|
+ </swiper>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -90,11 +85,3 @@
|
|
Emits('yudu-change', data.content[e.detail.current])
|
|
Emits('yudu-change', data.content[e.detail.current])
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
-
|
|
|
|
-<style lang="scss">
|
|
|
|
- .yuedu-option-box{
|
|
|
|
- height: calc(100vh - 500rpx);display: flex;flex-direction: column;
|
|
|
|
- .swiper-box{flex: 1;}
|
|
|
|
- .swiper-item-content{overflow-y: auto;}
|
|
|
|
- }
|
|
|
|
-</style>
|
|
|