导航栏改成白色

This commit is contained in:
shijingjing
2023-02-17 17:34:06 +08:00
parent 6237891af9
commit 0016b8da5d
2 changed files with 9 additions and 6 deletions

View File

@@ -5,8 +5,10 @@
<u-tabs :list="tabs" font-size="32" bg-color="#f3f5f7" inactive-color="#999999" <u-tabs :list="tabs" font-size="32" bg-color="#f3f5f7" inactive-color="#999999"
:active-item-style="{color: '#222222'}" :is-scroll="true" :current="currIndex" @change="(i) => (currIndex = i)"> </u-tabs> :active-item-style="{color: '#222222'}" :is-scroll="true" :current="currIndex" @change="(i) => (currIndex = i)"> </u-tabs>
</div> </div>
<OnlineClass ref="OnlineClass" :height="height" @toDetail="toDetail" v-show="currIndex == 0"></OnlineClass> <div>
<GeneralLawExam ref="GeneralLawExam" :height="height" @toTest="toTest" v-show="currIndex == 1"></GeneralLawExam> <OnlineClass ref="OnlineClass" :height="height" @toDetail="toDetail" v-show="currIndex == 0"></OnlineClass>
<GeneralLawExam ref="GeneralLawExam" :height="height" @toTest="toTest" v-show="currIndex == 1"></GeneralLawExam>
</div>
</div> </div>
</template> </template>

View File

@@ -1,7 +1,7 @@
<template> <template>
<div class="testForm"> <div class="testForm">
<u-navbar title="法治学习" :background="backgroundNavbar"></u-navbar> <u-navbar title="法治学习" :background="backgroundNavbar" z-index="9999"></u-navbar>
<div class="testForm_info" > <div class="testForm_info">
<div v-for="(item,index) in list" :key="index"> <div v-for="(item,index) in list" :key="index">
<div v-if="activeIndex === index"> <div v-if="activeIndex === index">
<div class="type"> <div class="type">
@@ -53,8 +53,9 @@ export default {
data() { data() {
return { return {
backgroundNavbar: { backgroundNavbar: {
background: "url('https://cdn.cunwuyun.cn/qujing/navbar.png') no-repeat", background: '#FFF',
backgroundSize: '100% 100%', // background: "url('https://cdn.cunwuyun.cn/qujing/navbar.png') no-repeat",
// backgroundSize: '100% 100%',
}, },
list: [], list: [],
activeIndex: 0, // 当前第几题 activeIndex: 0, // 当前第几题