|
@@ -22,7 +22,7 @@
|
|
|
lazy-load="true" />
|
|
|
<view class="content">
|
|
|
<view class="title">{{ item.question }}</view>
|
|
|
- <view class="option" v-for="option in item.options" :key="option.sequence"
|
|
|
+ <view class="option" v-for="option in item.options" :key="option.option"
|
|
|
@click="selectOption(item.rowindex, option.option)"
|
|
|
:class="item.answer.includes(option.option) ? 'active' : ''">
|
|
|
<image class="image" v-if="option.url.length" :src="option.url[0].url" mode="aspectFill"
|
|
@@ -50,7 +50,7 @@
|
|
|
|
|
|
<view :style="{ height: tovw(80) }" />
|
|
|
</My_listbox>
|
|
|
- <view class="bottom">
|
|
|
+ <view class="bottom" v-if="!(detail.status == '已完成' && detail.testquestions.length <= 1)">
|
|
|
<view v-if="currentItemId != 1" class="but up" hover-class="navigator-hover" @click="changeQuestions('-')">
|
|
|
上一题
|
|
|
</view>
|
|
@@ -59,7 +59,7 @@
|
|
|
下一题
|
|
|
</view>
|
|
|
<view v-if="detail.testquestions.length == currentItemId && detail.status != '已完成'" class="but submit"
|
|
|
- @click="loading ? '' : submit" hover-class="navigator-hover">
|
|
|
+ @click="loading ? '' : submit()" hover-class="navigator-hover">
|
|
|
<u-loading-icon v-if="loading" />
|
|
|
<text v-else>
|
|
|
提交
|
|
@@ -141,7 +141,7 @@
|
|
|
lazy-load="true" />
|
|
|
<view class="content">
|
|
|
<view class="title">{{ item.question }}</view>
|
|
|
- <view class="option" v-for=" option in item.options " :key="option.sequence"
|
|
|
+ <view class="option" v-for=" option in item.options " :key="option.option"
|
|
|
@click="selectOption(item.rowindex, option.option)"
|
|
|
:class="item.answer.includes(option.option) ? 'active' : ''">
|
|
|
<image class="image" v-if="option.url.length" :src="option.url[0].url" mode="aspectFill"
|
|
@@ -246,7 +246,7 @@ export default {
|
|
|
setTimeout(() => {
|
|
|
query.select(element).boundingClientRect();
|
|
|
query.exec(res => {
|
|
|
- if (res && res[0]) that.swiperHeight = res[0].height - 10;
|
|
|
+ if (res && res[0]) that.swiperHeight = res[0].height - 0 + 50;
|
|
|
});
|
|
|
}, 100)
|
|
|
},
|