|
|
@ -36,12 +36,12 @@ |
|
|
|
<view class="centerComl"> |
|
|
|
<view class="ctItem" @click="goAndSetCar"> |
|
|
|
<view class="txt">顺序练习</view> |
|
|
|
<view class="txt">0/1700</view> |
|
|
|
<view class="txt">{{adCount.orderAlready }}/{{ adCount.orderAlready }}</view> |
|
|
|
</view> |
|
|
|
<!-- $goPage('/pages/vip/vipEntry/vipEntry') --> |
|
|
|
<view class="ctItem" @click="$noDoFn"> |
|
|
|
<view class="txt">精选试题</view> |
|
|
|
<view class="txt">0/1700</view> |
|
|
|
<view class="txt">{{adCount.siftAlready }}/{{ adCount.siftTotal }}</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="iconComl"> |
|
|
@ -88,6 +88,7 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script setup> |
|
|
|
console.log(Number.MAX_VALUE, '最大值') |
|
|
|
import { ref } from 'vue' |
|
|
|
import { questbanktypeApi, indexNoticeApi, indexAdApi, indexAdCount, examProcessInfo} from '@/config/api.js' |
|
|
|
import carStore from '@/store/modules/car.js' |
|
|
@ -116,15 +117,16 @@ |
|
|
|
const leftItem = ref([ |
|
|
|
{name: '分类学习', icon: new URL('@/static/images/theory/theoryIcon1.png', import.meta.url).href, url: '/pages/exercises/categoryExercises/categoryExercises'}, |
|
|
|
{name: '章节练习', icon: new URL('@/static/images/theory/theoryIcon7.png', import.meta.url).href, url: '/pages/exercises/chapter/chapter'}, |
|
|
|
{name: '题型练习', icon: new URL('@/static/images/theory/theoryIcon6.png', import.meta.url).href, url: '/pages/exercises/queTypeExercises/queTypeExercises'}, |
|
|
|
{name: '精选试题', icon: new URL('@/static/images/theory/theoryIcon9.png', import.meta.url).href, url: '/pages/exercises/brushQuestions/brushQuestions'}, |
|
|
|
{name: '考前密卷', icon: new URL('@/static/images/theory/theoryIcon11.png', import.meta.url).href, url: '/pages/exercises/brushQuestions/brushQuestions'}, |
|
|
|
|
|
|
|
]) |
|
|
|
|
|
|
|
const rightItem = ref([ |
|
|
|
{name: '题型练习', icon: new URL('@/static/images/theory/theoryIcon6.png', import.meta.url).href, url: '/pages/exercises/queTypeExercises/queTypeExercises'}, |
|
|
|
{name: '错题收藏', icon: new URL('@/static/images/theory/theoryIcon8.png', import.meta.url).href, url: '/pages/exercises/wrongQuestion/wrongQuestion'}, |
|
|
|
{name: '仿真考试', icon: new URL('@/static/images/theory/theoryIcon10.png', import.meta.url).href, url: '/pages/exercises/beforeExam/beforeExam'}, |
|
|
|
{name: '我的学习', icon: new URL('@/static/images/theory/theoryIcon12.png', import.meta.url).href, url: '/pages/exercises/myStudy/myStudy'}, |
|
|
|
{name: '考前密卷', icon: new URL('@/static/images/theory/theoryIcon11.png', import.meta.url).href, url: '/pages/exercises/brushQuestions/brushQuestions'}, |
|
|
|
]) |
|
|
|
|
|
|
|
const bottomItem = ref([ |
|
|
@ -137,6 +139,7 @@ |
|
|
|
function changeTab(num) { |
|
|
|
currentTab.value = num |
|
|
|
usecarStore.setCar('stepType', num) |
|
|
|
upDataFn() |
|
|
|
} |
|
|
|
// 顺序练题 |
|
|
|
function goAndSetCar() { |
|
|
@ -161,6 +164,16 @@ |
|
|
|
} |
|
|
|
questbanktypeFn() |
|
|
|
|
|
|
|
async function upDataFn() { |
|
|
|
uni.showLoading({ |
|
|
|
title: '正在加载...' |
|
|
|
}) |
|
|
|
await indexNotice() |
|
|
|
await indexAd() |
|
|
|
await indexAdCountFn() |
|
|
|
uni.hideLoading() |
|
|
|
} |
|
|
|
|
|
|
|
// 消息请求 |
|
|
|
const nodes = ref('') |
|
|
|
async function indexNotice() { |
|
|
@ -181,12 +194,13 @@ |
|
|
|
indexAd() |
|
|
|
|
|
|
|
// 统计多少题目 |
|
|
|
let adCount = ref() |
|
|
|
async function indexAdCountFn() { |
|
|
|
const {data:res} = await indexAdCount({subject: usecarStore.carInfo.stepType, carType: usecarStore.carInfo.carType}) |
|
|
|
console.log(res) |
|
|
|
adCount.value = res |
|
|
|
} |
|
|
|
|
|
|
|
// indexAdCountFn() |
|
|
|
indexAdCountFn() |
|
|
|
</script> |
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|