|
@@ -310,10 +310,25 @@
|
|
<div class="bottom">
|
|
<div class="bottom">
|
|
<div class="bottom-container">
|
|
<div class="bottom-container">
|
|
<img @click="backTopics" src="@/assets/img/beforeTopics.png" />
|
|
<img @click="backTopics" src="@/assets/img/beforeTopics.png" />
|
|
- <span>
|
|
|
|
- <span style="color: #ffac4d">{{ listIndex + 1 }}</span
|
|
|
|
- >/{{ list.length }}
|
|
|
|
- </span>
|
|
|
|
|
|
+ <van-popover placement="top" v-model:show="showPopover">
|
|
|
|
+ <van-stepper
|
|
|
|
+ class="custom-stepper"
|
|
|
|
+ :min="1"
|
|
|
|
+ :step="5"
|
|
|
|
+ @change="changelistIndexStep"
|
|
|
|
+ :max="list.length"
|
|
|
|
+ input-width="40px"
|
|
|
|
+ button-size="32px"
|
|
|
|
+ v-model="listIndexStep"
|
|
|
|
+ />
|
|
|
|
+ <template #reference>
|
|
|
|
+ <span>
|
|
|
|
+ <span style="color: #ffac4d">{{ listIndex + 1 }}</span
|
|
|
|
+ >/{{ list.length }}
|
|
|
|
+ </span></template
|
|
|
|
+ ></van-popover
|
|
|
|
+ >
|
|
|
|
+
|
|
<img @click="nextTopics" src="@/assets/img/nextTopics.png" />
|
|
<img @click="nextTopics" src="@/assets/img/nextTopics.png" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -322,7 +337,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
-import { reactive, ref, onUnmounted } from 'vue';
|
|
|
|
|
|
+import { reactive, ref, onUnmounted, computed } from 'vue';
|
|
import { Toast } from 'vant';
|
|
import { Toast } from 'vant';
|
|
import api from '@/api/api';
|
|
import api from '@/api/api';
|
|
import blueTabItemImg0 from '@/assets/img/blueCar.png';
|
|
import blueTabItemImg0 from '@/assets/img/blueCar.png';
|
|
@@ -335,6 +350,7 @@ import whiteTabItemImg2 from '@/assets/img/whiteTruck.png';
|
|
import whiteTabItemImg3 from '@/assets/img/whiteMoto.png';
|
|
import whiteTabItemImg3 from '@/assets/img/whiteMoto.png';
|
|
import { useRoute } from 'vue-router';
|
|
import { useRoute } from 'vue-router';
|
|
const tabItemListIndex = ref(0);
|
|
const tabItemListIndex = ref(0);
|
|
|
|
+let showPopover = ref(false);
|
|
const answerIndexMap = ['!', 'A', 'B', 'C', 'D', 'E', 'F', 'G'];
|
|
const answerIndexMap = ['!', 'A', 'B', 'C', 'D', 'E', 'F', 'G'];
|
|
const tabItemList = [
|
|
const tabItemList = [
|
|
{
|
|
{
|
|
@@ -388,6 +404,19 @@ onUnmounted(() => {
|
|
window.clearInterval(timer);
|
|
window.clearInterval(timer);
|
|
});
|
|
});
|
|
let listIndex = ref(0);
|
|
let listIndex = ref(0);
|
|
|
|
+let listIndexStep = computed(() => {
|
|
|
|
+ return listIndex.value + 1;
|
|
|
|
+});
|
|
|
|
+let changelistIndexStep = (val:string) => {
|
|
|
|
+ if( Number(val)==0){
|
|
|
|
+ Toast("数值太小")
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ else if(Number(val)>list.value.length){
|
|
|
|
+ Toast("数值太大")
|
|
|
|
+ }
|
|
|
|
+ listIndex.value = Number(val) - 1;
|
|
|
|
+};
|
|
let list0 = ref<questionTwoList.row[]>([]);
|
|
let list0 = ref<questionTwoList.row[]>([]);
|
|
let list1 = ref<questionTwoList.row[]>([]);
|
|
let list1 = ref<questionTwoList.row[]>([]);
|
|
let list2 = ref<questionTwoList.row[]>([]);
|
|
let list2 = ref<questionTwoList.row[]>([]);
|
|
@@ -512,7 +541,7 @@ let slideTopics = (() => {
|
|
getPage(0);
|
|
getPage(0);
|
|
//获取url参数来跳转题目
|
|
//获取url参数来跳转题目
|
|
const route = useRoute();
|
|
const route = useRoute();
|
|
-document.title = "四月份新题"
|
|
|
|
|
|
+document.title = '四月份新题';
|
|
//truck
|
|
//truck
|
|
</script>
|
|
</script>
|
|
|
|
|
|
@@ -715,6 +744,11 @@ document.title = "四月份新题"
|
|
padding: 8px 30px;
|
|
padding: 8px 30px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+.custom-stepper {
|
|
|
|
+ :deep(.van-stepper__input) {
|
|
|
|
+ font-size: 30px;
|
|
|
|
+ }
|
|
|
|
+}
|
|
.bottom {
|
|
.bottom {
|
|
position: fixed;
|
|
position: fixed;
|
|
bottom: 0;
|
|
bottom: 0;
|
|
@@ -726,6 +760,7 @@ document.title = "四月份新题"
|
|
align-items: center;
|
|
align-items: center;
|
|
padding: 0 60px;
|
|
padding: 0 60px;
|
|
z-index: 100;
|
|
z-index: 100;
|
|
|
|
+
|
|
.bottom-container {
|
|
.bottom-container {
|
|
width: 100%;
|
|
width: 100%;
|
|
display: flex;
|
|
display: flex;
|
|
@@ -733,6 +768,7 @@ document.title = "四月份新题"
|
|
height: 60px;
|
|
height: 60px;
|
|
line-height: 60px;
|
|
line-height: 60px;
|
|
font-weight: 700;
|
|
font-weight: 700;
|
|
|
|
+
|
|
img {
|
|
img {
|
|
width: 60px;
|
|
width: 60px;
|
|
height: 60px;
|
|
height: 60px;
|