| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413 |
- <template>
- <!--样式1-->
- <div class="floatMenuBox" v-if="componentStyle==1">
- <div class="title">导航列表</div>
- <div v-for="(item, index) in bottomMenu" :key="index" :class="item.id == pageId ? 'active' : ''">
- <NuxtLink v-if="item.type == 0" :to="`/about/${item.name_pinyin}/index.html`" :title="item.name" >
- {{ item.name }}
- </NuxtLink>
- <NuxtLink v-else-if="item.type == 1" :to="`/about/${item.name_pinyin}/list-1.html`" :title="item.name">
- {{ item.name}}
- </NuxtLink>
- </div>
- </div>
- <!--样式2-->
- <div class="floatMenuStyle2" v-if="componentStyle==2">
- <div class="title">导航列表</div>
- <div v-for="(item, index) in bottomMenu" :key="index" :class="item.id == pageId ? 'active' : ''">
- <NuxtLink v-if="item.type == 0" :to="`/about/${item.name_pinyin}/index.html`" :title="item.name" >
- {{ item.name }}
- </NuxtLink>
- <NuxtLink v-else-if="item.type == 1" :to="`/about/${item.name_pinyin}/list-1.html`" :title="item.name">
- {{ item.name}}
- </NuxtLink>
- </div>
- </div>
- <!--样式3-->
- <div class="floatMenuStyle3" v-if="componentStyle == 3">
- <div class="title">导航列表</div>
- <div v-for="(item, index) in bottomMenu" :key="index" :class="item.id == pageId ? 'active' : ''">
- <NuxtLink v-if="item.type == 0" :to="`/about/${item.name_pinyin}/index.html`" :title="item.name">
- {{ item.name }}
- </NuxtLink>
- <NuxtLink v-else-if="item.type == 1" :to="`/about/${item.name_pinyin}/list-1.html`" :title="item.name">
- {{ item.name }}
- </NuxtLink>
- </div>
- </div>
- <!--样式4-->
- <div class="floatMenuStyle4" v-if="componentStyle == 4">
- <div class="title">导航列表</div>
- <div v-for="(item, index) in bottomMenu" :key="index" :class="item.id == pageId ? 'active' : ''">
- <NuxtLink v-if="item.type == 0" :to="`/about/${item.name_pinyin}/index.html`" :title="item.name">
- {{ item.name }}
- </NuxtLink>
- <NuxtLink v-else-if="item.type == 1" :to="`/about/${item.name_pinyin}/list-1.html`" :title="item.name">
- {{ item.name }}
- </NuxtLink>
- </div>
- </div>
- <!--样式5-->
- <div class="floatMenuStyle5" v-if="componentStyle == 5">
- <div class="title">导航列表</div>
- <div v-for="(item, index) in bottomMenu" :key="index" :class="item.id == pageId ? 'active' : ''">
- <NuxtLink v-if="item.type == 0" :to="`/about/${item.name_pinyin}/index.html`" :title="item.name">
- {{ item.name }}
- </NuxtLink>
- <NuxtLink v-else-if="item.type == 1" :to="`/about/${item.name_pinyin}/list-1.html`" :title="item.name">
- {{ item.name }}
- </NuxtLink>
- </div>
- </div>
- <!--样式6-->
- <div class="floatMenuStyle6" v-if="componentStyle == 6">
- <div class="title">导航列表</div>
- <div v-for="(item, index) in bottomMenu" :key="index" :class="item.id == pageId ? 'active' : ''">
- <NuxtLink v-if="item.type == 0" :to="`/about/${item.name_pinyin}/index.html`" :title="item.name">
- {{ item.name }}
- </NuxtLink>
- <NuxtLink v-else-if="item.type == 1" :to="`/about/${item.name_pinyin}/list-1.html`" :title="item.name">
- {{ item.name }}
- </NuxtLink>
- </div>
- </div>
- <!--样式7-->
- <div class="floatMenuStyle7" v-if="componentStyle == 7">
- <div class="title">导航列表</div>
- <div v-for="(item, index) in bottomMenu" :key="index" :class="item.id == pageId ? 'active' : ''">
- <NuxtLink v-if="item.type == 0" :to="`/about/${item.name_pinyin}/index.html`" :title="item.name">
- {{ item.name }}
- </NuxtLink>
- <NuxtLink v-else-if="item.type == 1" :to="`/about/${item.name_pinyin}/list-1.html`" :title="item.name">
- {{ item.name }}
- </NuxtLink>
- </div>
- </div>
- <!--样式8-->
- <div class="floatMenuStyle8" v-if="componentStyle == 8">
- <div class="title">导航列表</div>
- <div v-for="(item, index) in bottomMenu" :key="index" :class="item.id == pageId ? 'active' : ''">
- <NuxtLink v-if="item.type == 0" :to="`/about/${item.name_pinyin}/index.html`" :title="item.name">
- {{ item.name }}
- </NuxtLink>
- <NuxtLink v-else-if="item.type == 1" :to="`/about/${item.name_pinyin}/list-1.html`" :title="item.name">
- {{ item.name }}
- </NuxtLink>
- </div>
- </div>
- <!--样式9-->
- <div class="floatMenuStyle9" v-if="componentStyle == 9">
- <div class="title">导航列表</div>
- <div v-for="(item, index) in bottomMenu" :key="index" :class="item.id == pageId ? 'active' : ''">
- <NuxtLink v-if="item.type == 0" :to="`/about/${item.name_pinyin}/index.html`" :title="item.name">
- {{ item.name }}
- </NuxtLink>
- <NuxtLink v-else-if="item.type == 1" :to="`/about/${item.name_pinyin}/list-1.html`" :title="item.name">
- {{ item.name }}
- </NuxtLink>
- </div>
- </div>
- <!--样式10-->
- <div class="floatMenuStyle10" v-if="componentStyle == 10">
- <div class="title">导航列表</div>
- <div v-for="(item, index) in bottomMenu" :key="index" :class="item.id == pageId ? 'active' : ''">
- <NuxtLink v-if="item.type == 0" :to="`/about/${item.name_pinyin}/index.html`" :title="item.name">
- {{ item.name }}
- </NuxtLink>
- <NuxtLink v-else-if="item.type == 1" :to="`/about/${item.name_pinyin}/list-1.html`" :title="item.name">
- {{ item.name }}
- </NuxtLink>
- </div>
- </div>
- </template>
- <script setup>
- const props = defineProps({
- componentStyle: Number,//样式编号
- bottomMenu: Array,//底部菜单
- pageId: Number,//页面id
- });
- </script>
- <style lang="less" scoped>
- //基本样式 start ---------------------------------------->
- .floatMenuBox {
- div {
- height: 60px;
- line-height: 60px;
- text-align: center;
- background-color: #f9fafb;
- border-bottom: 1px solid #fff;
- a {
- color:#333;
- }
- }
- .title {
- color:#A91B33;
- }
- .active {
- background: #A91B33;
- a {
- color:#fff;
- }
- }
- }
- //基本样式 end ---------------------------------------->
- //样式2 start ---------------------------------------->
- .floatMenuStyle2 {
- div {
- height: 60px;
- line-height: 60px;
- text-align: center;
- background-color: #f9fafb;
- border-bottom: 1px solid #fff;
- a {
- color:#333;
- }
- }
- .title {
- background: #A91B33;
- color:#fff;
- }
- .active {
- background: #A91B33;
- a {
- color:#fff;
- }
- }
- }
- //样式2 end ---------------------------------------->
- //样式3
- .floatMenuStyle3 {
- div {
- height: 60px;
- line-height: 60px;
- text-align: center;
- color: #333333;
- background-color: #f9fafb;
- border-bottom: 1px solid #fff;
- a {
- color: #333333;
- }
- }
- .title {
- background: #A91B33;
- color: #fff;
- }
- .active {
- background: #f9fafb;
- color: #A91B33;
- a {
- color: #A91B33;
- }
- }
- }
- //样式4
- .floatMenuStyle4 {
- div {
- height: 60px;
- line-height: 60px;
- text-align: center;
- color: #333333;
- background-color: #f9fafb;
- border-bottom: 1px solid #fff;
- a {
- color: #333333;
- }
- }
- .title {
- background: #A91B33;
- color: #fff;
- }
- .active {
- background: #f0f0f0;
- color: #A91B33;
- border-left: 2px solid #A91B33;
- a {
- color: #A91B33;
- }
- }
- }
- //样式5
- .floatMenuStyle5 {
- border: 1px solid #eeeeee;
- div {
- height: 60px;
- line-height: 60px;
- text-align: center;
- color: #333333;
- border-bottom: 1px solid #eeeeee;
- a {
- color: #333333;
- }
- &:last-child {
- border-bottom: none;
- }
- }
- .title {
- color: #A91B33;
- }
- .active {
- background: #A91B33;
- color: #fff;
- a {
- color: #fff;
- }
- }
- }
- //样式6
- .floatMenuStyle6 {
- border: 1px solid #eeeeee;
- div {
- height: 60px;
- line-height: 60px;
- text-align: center;
- color: #333333;
- border-bottom: 1px solid #eeeeee;
- a {
- color: #333333;
- }
- &:last-child {
- border-bottom: none;
- }
- }
- .title {
- background: #A91B33;
- color: #fff;
- }
- .active {
- background: #A91B33;
- color: #fff;
- a {
- color: #fff;
- }
- }
- }
- //样式7
- .floatMenuStyle7 {
- border: 1px solid #eeeeee;
- div {
- height: 60px;
- line-height: 60px;
- text-align: center;
- color: #333333;
- border-bottom: 1px solid #eeeeee;
- a {
- color: #333333;
- }
- &:last-child {
- border-bottom: none;
- }
- }
- .title {
- background: #A91B33;
- color: #fff;
- }
- .active {
- color: #A91B33;
- a {
- color: #A91B33;
- }
- }
- }
- //样式8
- .floatMenuStyle8 {
- border: 1px solid #eeeeee;
- div {
- height: 60px;
- line-height: 60px;
- text-align: center;
- color: #333333;
- border-bottom: 1px solid #eeeeee;
- a {
- color: #333333;
- }
- &:last-child {
- border-bottom: none;
- }
- }
- .title {
- background: #A91B33;
- color: #fff;
- }
- .active {
- background: #f0f0f0;
- color: #A91B33;
- border-left: 2px solid #A91B33;
- a {
- color: #A91B33;
- }
- }
- }
- //样式9
- .floatMenuStyle9 {
- div {
- height: 60px;
- line-height: 60px;
- text-align: center;
- color: #333333;
- border-bottom: 1px dashed #cccccc;
- a {
- color: #333333;
- }
- }
- .active {
- border-bottom: none;
- }
- }
- //样式10
- .floatMenuStyle10 {
- div {
- height: 60px;
- line-height: 60px;
- text-align: center;
- color: #333333;
- border-bottom: 1px dashed #cccccc;
- a {
- color: #333333;
- }
- }
- }
- </style>
|