Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ycc-website
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Website
ycc-website
Commits
f49072a7
Commit
f49072a7
authored
Feb 21, 2022
by
chenqikuai
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: menu bar display
parent
e4a9ab0f
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
163 additions
and
54 deletions
+163
-54
Header.vue
src/layout/MainPage/Header.vue
+156
-38
blockChainBrowser.vue
src/views/mobile/blockChainBrowser.vue
+1
-1
index.vue
src/views/pc/address/index.vue
+1
-1
block.vue
src/views/pc/block.vue
+1
-1
blockChainBrowser.vue
src/views/pc/blockChainBrowser.vue
+1
-10
index.vue
src/views/pc/blockDetail/index.vue
+1
-1
newsList.vue
src/views/pc/newsList.vue
+1
-1
tradeDetail.vue
src/views/pc/tradeDetail.vue
+1
-1
No files found.
src/layout/MainPage/Header.vue
View file @
f49072a7
<
template
>
<div
class=
"fixed top-0 w-full flex justify-center ease-in duration-200"
style=
"z-index: 3000"
:class=
"
{'bg-white': $route.path !== '/home' || !isTop, 'min-w-1200': !isMobile}">
<div
v-if=
"!isMobile"
class=
"min-w-1200 h-16 text-footer-color md:w-bodySet flex justify-between items-center ease-in duration-500"
>
<div
class=
"fixed top-0 w-full flex justify-center ease-in duration-200"
style=
"z-index: 3000;"
:class=
"
{
'bg-white': $route.path === '/newsList' || !isTop,
'min-w-1200': !isMobile,
}"
>
<div
v-if=
"!isMobile"
class=
"min-w-1200 h-16 text-footer-color md:w-bodySet flex justify-between items-center ease-in duration-500"
>
<div
class=
"flex items-center"
>
<img
src=
"@/assets/images/header/logo.png"
alt=
"logo"
width=
"164"
>
<img
src=
"@/assets/images/header/logo.png"
alt=
"logo"
width=
"164"
/
>
<ul
class=
"header_menu flex leading-normal text-sm ml-16"
>
<router-link
:to=
"
{path: '/home', query: {lang: $route.query.lang}}" tag="li" class="pl-5 pr-5 cursor-pointer relative">
<router-link
:to=
"
{ path: '/home', query: { lang: $route.query.lang } }"
tag="li"
class="pl-5 pr-5 cursor-pointer relative"
>
{{
$t
(
'lang.home'
)
}}
<span
v-show=
"$route.path === '/home'"
class=
"absolute block w-7 h-1 bg-active rounded-2xl left-1/2 -bottom-2 transform -translate-x-1/2"
></span>
<span
v-show=
"$route.path === '/home'"
class=
"absolute block w-7 h-1 bg-active rounded-2xl left-1/2 -bottom-2 transform -translate-x-1/2"
></span>
</router-link>
<li
class=
"pl-5 pr-5 cursor-pointer"
>
<a
:href=
"iconType === 'zh-CN' ?
'https://yuanorg.oss-ap-southeast-1.aliyuncs.com/ycc/white-paper/zh.pdf' :
'https://yuanorg.oss-ap-southeast-1.aliyuncs.com/ycc/white-paper/en.pdf'"
target=
"_blank"
>
{{
$t
(
'lang.book'
)
}}
</a>
:href=
"
iconType === 'zh-CN'
? 'https://yuanorg.oss-ap-southeast-1.aliyuncs.com/ycc/white-paper/zh.pdf'
: 'https://yuanorg.oss-ap-southeast-1.aliyuncs.com/ycc/white-paper/en.pdf'
"
target=
"_blank"
>
{{
$t
(
'lang.book'
)
}}
</a>
</li>
<router-link
:to=
"
{path: '/newsList', query: {lang: $route.query.lang}}" tag="li" class="pl-5 pr-5 cursor-pointer relative">
<router-link
:to=
"
{ path: '/newsList', query: { lang: $route.query.lang } }"
tag="li"
class="pl-5 pr-5 cursor-pointer relative"
>
{{
$t
(
'lang.news'
)
}}
<span
v-show=
"$route.path === '/newsList' || $route.path === '/newsDetails'"
class=
"absolute block w-7 h-1 bg-active rounded-2xl left-1/2 -bottom-2 transform -translate-x-1/2"
></span>
<span
v-show=
"
$route.path === '/newsList' || $route.path === '/newsDetails'
"
class=
"absolute block w-7 h-1 bg-active rounded-2xl left-1/2 -bottom-2 transform -translate-x-1/2"
></span>
</router-link>
<router-link
:to=
"
{path: '/blockChainBrowser', query: {lang: $route.query.lang}}" tag="li" class="pl-5 pr-5 cursor-pointer relative">
<router-link
:to=
"
{
path: '/blockChainBrowser',
query: { lang: $route.query.lang },
}"
tag="li"
class="pl-5 pr-5 cursor-pointer relative"
>
{{
$t
(
'lang.blockChainBrowser'
)
}}
<span
v-show=
"$route.path === '/blockChainBrowser' || $route.path === '/block' || $route.path === '/blockDetail' || $route.path=== '/tradeHash'"
class=
"absolute block w-7 h-1 bg-active rounded-2xl left-1/2 -bottom-2 transform -translate-x-1/2"
></span>
<span
v-show=
"
$route.path === '/blockChainBrowser' ||
$route.path === '/block' ||
$route.path === '/blockDetail' ||
$route.path === '/tradeHash'
"
class=
"absolute block w-7 h-1 bg-active rounded-2xl left-1/2 -bottom-2 transform -translate-x-1/2"
></span>
</router-link>
</ul>
</div>
<div
class=
"flex text-sm mr-1 items-center"
>
<p
class=
"mr-20"
:class=
"
{'text-white': isTop}" :style="{'color': $route.path === '/home' ? '' : '#2545CB'}">
{{
$t
(
'lang.email'
)
}}
: business@yuan.org
</p>
<p
class=
"mr-20"
:class=
"
{ 'text-white': isTop }"
:style="{ color: $route.path === '/home' ? '' : '#2545CB' }"
>
{{
$t
(
'lang.email'
)
}}
: business@yuan.org
</p>
<div
class=
"relative"
>
<div
v-show=
"iconType === 'zh-CN'"
class=
"flex items-center justify-center cursor-pointer"
@
click=
"showIcon = !showIcon"
>
<img
class=
"mr-2"
src=
"@/assets/images/header/ZH.png"
alt=
"中文"
>
<div
v-show=
"iconType === 'zh-CN'"
class=
"flex items-center justify-center cursor-pointer"
@
click=
"showIcon = !showIcon"
>
<img
class=
"mr-2"
src=
"@/assets/images/header/ZH.png"
alt=
"中文"
/>
<p
class=
"text-sm"
>
{{
$t
(
'lang.zh'
)
}}
</p>
<img
class=
"ml-1"
width=
"10"
src=
"@/assets/images/header/arrow_r.png"
alt=
""
>
<img
class=
"ml-1"
width=
"10"
src=
"@/assets/images/header/arrow_r.png"
alt=
""
/>
</div>
<div
v-show=
"iconType === 'en'"
class=
"flex items-center justify-center cursor-pointer"
@
click=
"showIcon = !showIcon"
>
<img
class=
"mr-2"
src=
"@/assets/images/header/EN.png"
alt=
"英文"
>
<div
v-show=
"iconType === 'en'"
class=
"flex items-center justify-center cursor-pointer"
@
click=
"showIcon = !showIcon"
>
<img
class=
"mr-2"
src=
"@/assets/images/header/EN.png"
alt=
"英文"
/>
<p
class=
"text-sm"
>
{{
$t
(
'lang.en'
)
}}
</p>
<img
class=
"ml-1"
width=
"10"
src=
"@/assets/images/header/arrow_r.png"
alt=
""
>
<img
class=
"ml-1"
width=
"10"
src=
"@/assets/images/header/arrow_r.png"
alt=
""
/>
</div>
<icon-select
:show=
"showIcon"
@
hidden=
"showIcon = false"
@
selectIcon=
"(v) =>
{iconType = v}">
</icon-select>
<icon-select
:show=
"showIcon"
@
hidden=
"showIcon = false"
@
selectIcon=
"
(v) =>
{
iconType = v
}
"
>
</icon-select>
</div>
</div>
</div>
<div
v-else
class=
"w-full flex justify-between items-center bg-white"
style=
"height: 44px"
:style=
"
{'border-bottom': $route.path !== '/home' ? '1px solid #F2F2F2' : 'none' }">
<div
v-else
class=
"w-full flex justify-between items-center bg-white"
style=
"height: 44px;"
:style=
"
{
'border-bottom': $route.path !== '/home' ? '1px solid #F2F2F2' : 'none',
}"
>
<div
class=
"logo mx-3.5"
>
<img
src=
"@/assets/images/header/logo-m.png"
alt=
"logo"
width=
"164"
>
<img
src=
"@/assets/images/header/logo-m.png"
alt=
"logo"
width=
"164"
/
>
</div>
<div
class=
"flex justify-between items-center"
>
<div
class=
"relative"
>
<div
v-show=
"iconType === 'zh-CN'"
class=
"flex items-center justify-center cursor-pointer"
@
click=
"showIcon = !showIcon"
>
<img
class=
"mr-1"
src=
"@/assets/images/header/ZH.png"
alt=
"中文"
>
<div
v-show=
"iconType === 'zh-CN'"
class=
"flex items-center justify-center cursor-pointer"
@
click=
"showIcon = !showIcon"
>
<img
class=
"mr-1"
src=
"@/assets/images/header/ZH.png"
alt=
"中文"
/>
<p
class=
"text-xs text-footer-color"
>
{{
$t
(
'lang.zh'
)
}}
</p>
<img
class=
"mr-1"
width=
"10"
src=
"@/assets/images/header/arrow_r.png"
alt=
""
>
<img
class=
"mr-1"
width=
"10"
src=
"@/assets/images/header/arrow_r.png"
alt=
""
/>
</div>
<div
v-show=
"iconType === 'en'"
class=
"flex items-center justify-center cursor-pointer"
@
click=
"showIcon = !showIcon"
>
<img
class=
"mr-1"
src=
"@/assets/images/header/EN.png"
alt=
"英文"
>
<div
v-show=
"iconType === 'en'"
class=
"flex items-center justify-center cursor-pointer"
@
click=
"showIcon = !showIcon"
>
<img
class=
"mr-1"
src=
"@/assets/images/header/EN.png"
alt=
"英文"
/>
<p
class=
"text-xs text-footer-color"
>
{{
$t
(
'lang.en'
)
}}
</p>
<img
class=
"mr-1"
width=
"10"
src=
"@/assets/images/header/arrow_r.png"
alt=
""
>
<img
class=
"mr-1"
width=
"10"
src=
"@/assets/images/header/arrow_r.png"
alt=
""
/>
</div>
<icon-select
:show=
"showIcon"
@
hidden=
"showIcon = false"
@
selectIcon=
"(v) =>
{iconType = v}">
</icon-select>
<icon-select
:show=
"showIcon"
@
hidden=
"showIcon = false"
@
selectIcon=
"
(v) =>
{
iconType = v
}
"
>
</icon-select>
</div>
<div
class=
"mr-5 w-6 h-6"
@
click=
"showMenu = !showMenu, showIcon = false"
>
<img
class=
"w-full h-full"
src=
"@/assets/images/header/menu.png"
alt=
""
>
<div
class=
"mr-5 w-6 h-6"
@
click=
";(showMenu = !showMenu), (showIcon = false)"
>
<img
class=
"w-full h-full"
src=
"@/assets/images/header/menu.png"
alt=
""
/>
</div>
</div>
</div>
...
...
@@ -77,25 +195,25 @@ import { checkIsMobile } from '@/utils/utils'
export
default
Vue
.
extend
({
components
:
{
IconSelect
,
Menu
Menu
,
},
data
()
{
return
{
isTop
:
true
,
showIcon
:
false
,
iconType
:
'zh-CN'
,
showMenu
:
false
showMenu
:
false
,
}
},
methods
:
{
closeMenu
(
v
:
boolean
)
{
this
.
showMenu
=
!
v
}
}
,
},
computed
:
{
isMobile
()
{
return
checkIsMobile
()
}
}
,
},
mounted
()
{
const
scrollY
=
window
.
scrollY
...
...
@@ -118,7 +236,7 @@ export default Vue.extend({
const
scrollY
=
window
.
scrollY
this
.
isTop
=
scrollY
<
70
?
true
:
false
})
}
}
}
,
}
,
})
</
script
>
src/views/mobile/blockChainBrowser.vue
View file @
f49072a7
...
...
@@ -56,7 +56,7 @@ export default VueTypedMixins(blockChainBrowserMixin).extend({
, MLatestBlocks
<
style
scoped
>
.blockChain
{
margin-top
:
70
px
;
padding-top
:
64
px
;
}
.chainCard
{
position
:
relative
;
...
...
src/views/pc/address/index.vue
View file @
f49072a7
<
template
>
<div
style=
"
margin-top: 70
px; padding-bottom: 60px;"
style=
"
padding-top: 64
px; padding-bottom: 60px;"
class=
"min-w-1200 md:w-bodySet mx-auto flow-root"
>
<chain-search
...
...
src/views/pc/block.vue
View file @
f49072a7
...
...
@@ -157,7 +157,7 @@ export default VueTypedMixins(blockMixin).extend({
}
.the-block
{
margin-top
:
70
px
;
padding-top
:
64
px
;
}
.light2
{
...
...
src/views/pc/blockChainBrowser.vue
View file @
f49072a7
...
...
@@ -42,19 +42,10 @@ export default VueTypedMixins(blockChainBrowserMixin).extend({
<
style
scoped
>
.blockChain
{
margin-top
:
70
px
;
padding-top
:
64
px
;
}
.chainCard
{
position
:
relative
;
z-index
:
1
;
}
.rect-block
{
/* position: absolute;
z-index: 60;
top: -64px;
left: 197px;
width: 600px;
height: 840px;
background: #2545cb; */
}
</
style
>
src/views/pc/blockDetail/index.vue
View file @
f49072a7
...
...
@@ -88,6 +88,6 @@ export default VueTypedMixins(blockDetailMixin).extend({
<
style
scoped
>
.block-detail
{
margin-top
:
70
px
;
padding-top
:
6
px
;
}
</
style
>
src/views/pc/newsList.vue
View file @
f49072a7
...
...
@@ -142,7 +142,7 @@ export default Vue.extend({
<
style
scoped
>
.newslist
{
padding-top
:
70
px
;
padding-top
:
64
px
;
min-width
:
1200px
;
min-height
:
calc
(
100vh
-
315px
);
}
...
...
src/views/pc/tradeDetail.vue
View file @
f49072a7
<
template
>
<div
style=
"
margin-top: 70
px; padding-bottom: 60px;"
style=
"
padding-top: 64
px; padding-bottom: 60px;"
class=
"min-w-1200 md:w-bodySet mx-auto flow-root"
>
<chain-search
...
...
chenqikuai
@chenqikuai
mentioned in commit
748f7ae1
·
Mar 03, 2022
mentioned in commit
748f7ae1
mentioned in commit 748f7ae18ac2f8eb14ee7c2865eaea786342a520
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment