|
@ -1,7 +1,15 @@ |
|
|
<template> |
|
|
<template> |
|
|
<view> |
|
|
<view> |
|
|
<view class="swiper-container"> |
|
|
<view class="swiper-container"> |
|
|
<swiper :indicator-dots="true" :autoplay="true" :interval="3000" :duration="1000" style="height: 370rpx;"> |
|
|
|
|
|
|
|
|
<swiper |
|
|
|
|
|
:indicator-dots="true" |
|
|
|
|
|
:autoplay="true" |
|
|
|
|
|
:interval="3000" |
|
|
|
|
|
:duration="1000" |
|
|
|
|
|
indicatorActiveColor="#FFAA48" |
|
|
|
|
|
:indicatorStyle="{bottom: '150rpx'}" |
|
|
|
|
|
indicatorInactiveColor="#fff" |
|
|
|
|
|
style="height: 412rpx;"> |
|
|
<swiper-item class="w-100 h-100" v-for="item in state.banner" :key="item.id"> |
|
|
<swiper-item class="w-100 h-100" v-for="item in state.banner" :key="item.id"> |
|
|
<image class="w-100 h-100" :src="item.image" mode=""></image> |
|
|
<image class="w-100 h-100" :src="item.image" mode=""></image> |
|
|
</swiper-item> |
|
|
</swiper-item> |
|
@ -92,6 +100,7 @@ |
|
|
} from "vuex" |
|
|
} from "vuex" |
|
|
import configPopup from '@/components/configPopup.vue' |
|
|
import configPopup from '@/components/configPopup.vue' |
|
|
import { answeBaseIsFinish, answeTrainIsFinish } from '@/api/examination' |
|
|
import { answeBaseIsFinish, answeTrainIsFinish } from '@/api/examination' |
|
|
|
|
|
import { code } from "../../uni_modules/uview-plus/libs/function/test"; |
|
|
const configPopupRef = ref(null) |
|
|
const configPopupRef = ref(null) |
|
|
|
|
|
|
|
|
const store = useStore(); |
|
|
const store = useStore(); |
|
@ -222,19 +231,24 @@ |
|
|
title: '加载中...' |
|
|
title: '加载中...' |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
let code1 = await answeBaseIsFinish({userId : userInfo.value.userId}) |
|
|
|
|
|
let code2 = await answeTrainIsFinish({userId : userInfo.value.userId}) |
|
|
|
|
|
|
|
|
|
|
|
uni.hideLoading() |
|
|
|
|
|
|
|
|
|
|
|
if(code1 && code2){ |
|
|
|
|
|
uni.navigateTo({ |
|
|
|
|
|
url: `/otherPages/authentication/examination/trainCompleted/index?status=0` |
|
|
|
|
|
}) |
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
|
try{ |
|
|
|
|
|
let code1 = await answeBaseIsFinish({userId : userInfo.value.userId}) |
|
|
|
|
|
let code2 = await answeTrainIsFinish({userId : userInfo.value.userId}) |
|
|
|
|
|
if(code1 && code2){ |
|
|
|
|
|
uni.navigateTo({ |
|
|
|
|
|
url: `/otherPages/authentication/examination/trainCompleted/index?status=0` |
|
|
|
|
|
}) |
|
|
|
|
|
}else{ |
|
|
|
|
|
uni.navigateTo({ |
|
|
|
|
|
url: "/otherPages/authentication/list/index" |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
}catch(e){ |
|
|
uni.navigateTo({ |
|
|
uni.navigateTo({ |
|
|
url: "/otherPages/authentication/list/index" |
|
|
url: "/otherPages/authentication/list/index" |
|
|
}) |
|
|
}) |
|
|
|
|
|
}finally{ |
|
|
|
|
|
uni.hideLoading() |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|