Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
million
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
million
Commits
93b4ac01
Commit
93b4ac01
authored
Jun 29, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
广告修改
parent
7e2eddf6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
5 deletions
+49
-5
hor-btm.vue
src/components/navs/hor-btm.vue
+49
-5
No files found.
src/components/navs/hor-btm.vue
View file @
93b4ac01
...
...
@@ -385,8 +385,7 @@
</div>
<div
class=
"footer-bottom"
>
<div
class=
"sponsor"
>
<a
@
click=
"OpenNewUrl(item.url)"
target=
"_blank"
v-for=
"(item,index) in dataList.BottomList"
:key=
"index"
>
<a
@
click=
"OpenNewUrl(item.url)"
target=
"_blank"
v-for=
"(item,index) in dataList.BottomList"
:key=
"index"
>
<img
:src=
"item.icon"
/>
</a>
</div>
...
...
@@ -396,7 +395,7 @@
</div>
<div
class=
"footer-watermark footer_Left"
>
<template
v-if=
"dataList&&dataList.AdLeftList"
>
<div
v-for=
"(item,index) in
dataList.
AdLeftList"
:key=
"index"
>
<div
v-for=
"(item,index) in
get
AdLeftList"
:key=
"index"
>
<a
@
click=
"OpenNewUrl(item.AdLink)"
>
<img
style=
"width:100%"
:src=
"item.AdImg"
/>
</a>
...
...
@@ -405,7 +404,7 @@
</div>
<div
class=
"footer-watermark footer_Right"
>
<
template
v-if=
"dataList&&dataList.AdRightList"
>
<div
v-for=
"(item,index) in
dataList.
AdRightList"
:key=
"index"
>
<div
v-for=
"(item,index) in
get
AdRightList"
:key=
"index"
>
<a
@
click=
"OpenNewUrl(item.AdLink)"
>
<img
style=
"width:100%"
:src=
"item.AdImg"
/>
</a>
...
...
@@ -429,8 +428,53 @@
var
myDate
=
new
Date
();
this
.
year
=
myDate
.
getFullYear
();
},
computed
:
{
getAdLeftList
()
{
var
tempArray
=
[];
var
showId
=
this
.
getShowId
();
if
(
this
.
dataList
&&
this
.
dataList
.
AdLeftList
)
{
this
.
dataList
.
AdLeftList
.
forEach
(
item
=>
{
if
(
item
.
ShowPage
.
indexOf
(
showId
)
>
-
1
)
{
tempArray
.
push
(
item
);
}
});
}
return
tempArray
;
},
getAdRightList
()
{
var
tempArray
=
[];
var
showId
=
this
.
getShowId
();
if
(
this
.
dataList
&&
this
.
dataList
.
AdRightList
)
{
this
.
dataList
.
AdRightList
.
forEach
(
item
=>
{
if
(
item
.
ShowPage
.
indexOf
(
showId
)
>
-
1
)
{
tempArray
.
push
(
item
);
}
});
}
return
tempArray
;
}
},
methods
:
{
getShowId
()
{
let
locationName
=
window
.
location
.
hostname
;
var
routeStr
=
this
.
$route
.
path
.
toLowerCase
();
var
showId
=
0
;
switch
(
routeStr
)
{
case
"/index"
:
showId
=
1
;
break
;
case
'/search'
:
showId
=
2
;
break
;
case
'/trip'
:
showId
=
3
;
break
;
case
'/self'
:
showId
=
4
;
break
;
}
return
showId
;
}
},
};
...
...
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