Commit 29136168 authored by 黄奎's avatar 黄奎

页面修改

parent c77d7481
......@@ -10,11 +10,9 @@
<img :src="baseData.logo" style="height:45px; cursor:pointer;" class="q-mr-lg" @click="CommonJump('/index',{})" />
<q-tabs align="center" style="margin:0 auto;" shrink v-if="!$q.screen.xs">
<template v-for="(x, i) in baseData.nav.navs">
<q-btn :key="i" stretch flat :label="x.title"
type="a" :href="x.url" target="_blank" :no-wrap="true"
/>
<!-- <q-route-tab :key="i" :to="x.url" :label="x.title" :icon="x.icon" v-if="x.icon!=''" exact />
<q-route-tab :key="i" :to="x.url" :label="x.title" v-else exact /> -->
<q-btn :key="i" stretch flat :label="x.title" type="a" :href="x.url" target="_blank" :no-wrap="true" size="16px"
/>
</template>
</q-tabs>
<q-btn flat dense round icon="menu" aria-label="Menu" v-if="$q.screen.xs" style="margin-left:auto;">
......@@ -22,14 +20,12 @@
<q-tabs align="left" vertical shrink>
<template v-for="(x, i) in baseData.nav.navs">
<q-btn style="display:block;" :key="i" stretch flat :label="x.title" @click="OpenNewUrl(x.url)" />
<!-- <q-route-tab :key="i" :to="x.url" :label="x.title" :icon="x.icon" v-if="x.icon!=''" exact />
<q-route-tab :key="i" :to="x.url" :label="x.title" v-else exact /> -->
</template>
</q-tabs>
</q-menu>
</q-btn>
<template v-if="LoginUser.accountId>0">
<q-btn-dropdown style="color: #444;font-weight:bold;" class="q-ml-lg desktop-only"
<template v-if="LoginUser.accountId>0">
<q-btn-dropdown style="color: #444;font-weight:bold;" class="q-ml-lg desktop-only"
icon="iconfont iconicon-unlogin" :label="LoginUser.name" unelevated>
<div class="row no-wrap q-pa-md">
<div class="column">
......@@ -72,16 +68,12 @@
</div>
</q-btn-dropdown>
</template>
<template v-else>
<q-btn flat style="color: #444;font-weight:bold;" class="q-ml-lg desktop-only" :label="$t('login')"
icon="iconfont iconicon-unlogin" to="/login" />
<q-btn flat style="color: #444;font-weight:bold;" class="mobile-only" icon="iconfont iconicon-unlogin"
to="/login" />
</template>
</q-toolbar>
</q-header>
</template>
......
......@@ -7,11 +7,7 @@
<img :src="baseData.logo" style="height:45px; cursor:pointer;margin-right:100px;" class="q-mr-lg"
@click="CommonJump('/index',{})" />
<template v-for="(x, i) in baseData.nav.navs">
<q-btn :key="i" stretch flat :label="x.title"
type="a" :href="x.url" target="_blank" :no-wrap="true"
/>
<q-btn :key="i" stretch flat :label="x.title" type="a" :href="x.url" target="_blank" :no-wrap="true" />
<!-- <q-route-tab :key="i" :to="x.url" :label="x.title" :icon="x.icon" v-if="x.icon!=''" exact />
<q-route-tab :key="i" :to="x.url" :label="x.title" v-else exact /> -->
</template>
......@@ -27,11 +23,8 @@
</q-tabs>
</q-menu>
</q-btn>
<template v-if="LoginUser.accountId>0">
<q-btn-dropdown style="color: #444;font-weight:bold;" class="q-ml-lg desktop-only"
<q-btn-dropdown style="color: #444;font-weight:bold;" class="q-ml-lg desktop-only"
icon="iconfont iconicon-unlogin" :label="LoginUser.name" unelevated>
<div class="row no-wrap q-pa-md">
<div class="column">
......@@ -74,7 +67,6 @@
</div>
</q-btn-dropdown>
</template>
<template v-else>
<q-btn flat style="color: #444;font-weight:bold;" class="q-ml-lg desktop-only" :label="$t('login')"
icon="iconfont iconicon-unlogin" to="/login" />
......@@ -128,5 +120,3 @@
};
</script>
<style>
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment