|
|
|
@ -3,9 +3,8 @@ |
|
|
|
|
<header class="nav-header"> |
|
|
|
|
<!-- 左侧 nav --> |
|
|
|
|
<div class="leftNav"> |
|
|
|
|
<a class="logoBox" href="/"> |
|
|
|
|
<img src="../../assets/logo.png" alt /> |
|
|
|
|
<h2 class="mainTitle">{{ $t('nav.menu_name') }}</h2> |
|
|
|
|
<a class="logoBox" href="javascript:history.go(-1);"> |
|
|
|
|
<el-button type="info" @click="submitExam">< 返回</el-button> |
|
|
|
|
</a> |
|
|
|
|
<ul class="nav-menu"> |
|
|
|
|
<!-- menu --> |
|
|
|
@ -20,23 +19,16 @@ |
|
|
|
|
</template> |
|
|
|
|
</ul> |
|
|
|
|
</div> |
|
|
|
|
<div class="centerNav"> |
|
|
|
|
<el-button |
|
|
|
|
type="success" |
|
|
|
|
v-if="reqType != 2 && !isSubmit" |
|
|
|
|
@click="submitExam" |
|
|
|
|
>提交</el-button |
|
|
|
|
> |
|
|
|
|
<el-button type="danger" v-if="reqType == 1" @click="reStartTest" |
|
|
|
|
>重新开始</el-button |
|
|
|
|
> |
|
|
|
|
</div> |
|
|
|
|
<!-- 右侧 nav --> |
|
|
|
|
<div class="rightNav" :style="{width: rightNavWidth}"> |
|
|
|
|
<ul class="nav-menu"> |
|
|
|
|
<!-- menu --> |
|
|
|
|
<template v-for="m in menuRight"> |
|
|
|
|
<li :key="m.$index" class="menu-item" v-if="userData != '' && userData != undefined"> |
|
|
|
|
<li |
|
|
|
|
:key="m.$index" |
|
|
|
|
class="menu-item" |
|
|
|
|
v-if="userData != '' && userData != undefined" |
|
|
|
|
> |
|
|
|
|
<a |
|
|
|
|
:class="perUrl === m.link.split('/')[1] ? 'navColor' : ''" |
|
|
|
|
v-t="m.t" |
|
|
|
@ -63,12 +55,19 @@ |
|
|
|
|
slot="dropdown" |
|
|
|
|
class="exRateDropdown" |
|
|
|
|
> |
|
|
|
|
<el-dropdown-item v-for="items in exRate.list" :key="items.id" :command="items.id"> |
|
|
|
|
<el-dropdown-item |
|
|
|
|
v-for="items in exRate.list" |
|
|
|
|
:key="items.id" |
|
|
|
|
:command="items.id" |
|
|
|
|
> |
|
|
|
|
<div |
|
|
|
|
class="dropdown-menu-item-inner" |
|
|
|
|
:class="[{'is-active': exRate.current === items}]" |
|
|
|
|
> |
|
|
|
|
<i class="menu-item-icon el-icon-check" v-if="exRate.current === items"></i> |
|
|
|
|
<i |
|
|
|
|
class="menu-item-icon el-icon-check" |
|
|
|
|
v-if="exRate.current === items" |
|
|
|
|
></i> |
|
|
|
|
<span class="menu-item-text">{{ $t(items.name) }}</span> |
|
|
|
|
</div> |
|
|
|
|
</el-dropdown-item> |
|
|
|
@ -94,12 +93,19 @@ |
|
|
|
|
slot="dropdown" |
|
|
|
|
class="langDropdown" |
|
|
|
|
> |
|
|
|
|
<el-dropdown-item v-for="item in lang.list" :key="item.lang" :command="item.lang"> |
|
|
|
|
<el-dropdown-item |
|
|
|
|
v-for="item in lang.list" |
|
|
|
|
:key="item.lang" |
|
|
|
|
:command="item.lang" |
|
|
|
|
> |
|
|
|
|
<div |
|
|
|
|
class="dropdown-menu-item-inner" |
|
|
|
|
:class="[{'is-active': lang.current === item}]" |
|
|
|
|
> |
|
|
|
|
<i class="menu-item-icon el-icon-check" v-if="lang.current === item"></i> |
|
|
|
|
<i |
|
|
|
|
class="menu-item-icon el-icon-check" |
|
|
|
|
v-if="lang.current === item" |
|
|
|
|
></i> |
|
|
|
|
<span class="menu-item-text">{{ item.name }}</span> |
|
|
|
|
</div> |
|
|
|
|
</el-dropdown-item> |
|
|
|
@ -125,20 +131,27 @@ |
|
|
|
|
|
|
|
|
|
<!-- 注册按钮 --> |
|
|
|
|
<li class="menu-item" v-if="userData == '' || userData == undefined"> |
|
|
|
|
<a :href="'/login?perUrl=' + perUrl + '#/signUp'" class="registered"> |
|
|
|
|
<a |
|
|
|
|
:href="'/login?perUrl=' + perUrl + '#/signUp'" |
|
|
|
|
class="registered" |
|
|
|
|
> |
|
|
|
|
<span>{{ $t('login.signUp.btn') }}</span> |
|
|
|
|
</a> |
|
|
|
|
</li> |
|
|
|
|
<!-- 用户手机号码 --> |
|
|
|
|
<li class="menu-item" v-if="userData != '' && userData != undefined"> |
|
|
|
|
<el-dropdown @command="switchPage" trigger="click" class="menu-item-inner nav-dropdown"> |
|
|
|
|
<el-dropdown |
|
|
|
|
@command="switchPage" |
|
|
|
|
trigger="click" |
|
|
|
|
class="menu-item-inner nav-dropdown" |
|
|
|
|
> |
|
|
|
|
<span class="dropdown-link"> |
|
|
|
|
<span> |
|
|
|
|
{{ |
|
|
|
|
userData.mobilePhone.replace( |
|
|
|
|
/^(\d{3})\d*(\d{4})$/, |
|
|
|
|
'$1****$2' |
|
|
|
|
) |
|
|
|
|
userData.mobilePhone.replace( |
|
|
|
|
/^(\d{3})\d*(\d{4})$/, |
|
|
|
|
'$1****$2' |
|
|
|
|
) |
|
|
|
|
}} |
|
|
|
|
</span> |
|
|
|
|
<i class="el-icon-arrow-down el-icon--right"></i> |
|
|
|
@ -187,8 +200,9 @@ |
|
|
|
|
<br /> |
|
|
|
|
<p v-if="showCounting"> |
|
|
|
|
<span>{{ hour }}</span |
|
|
|
|
> : <span>{{ mins }}</span |
|
|
|
|
> : <span>{{ sec }}</span> |
|
|
|
|
> : <span>{{ mins }}</span |
|
|
|
|
> : |
|
|
|
|
<span>{{ sec }}</span> |
|
|
|
|
</p> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|