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
a27c0034
Commit
a27c0034
authored
Jan 08, 2026
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化首页
parent
aaf5f809
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
22 deletions
+48
-22
newHor-btm.vue
src/components/navs/newHor-btm.vue
+48
-22
No files found.
src/components/navs/newHor-btm.vue
View file @
a27c0034
...
...
@@ -369,7 +369,12 @@
window
.
addEventListener
(
'resize'
,
this
.
handleResize
);
},
mounted
()
{
this
.
inData
()
//获取当前年
var
myDate
=
new
Date
();
this
.
year
=
myDate
.
getFullYear
();
this
.
getHomeData
()
this
.
getGroupinfo
()
},
computed
:
{
handleResize
()
{
...
...
@@ -401,33 +406,54 @@
}
},
methods
:
{
inData
(){
setTimeout
(()
=>
{
//获取当前年
var
myDate
=
new
Date
();
this
.
year
=
myDate
.
getFullYear
();
getHomeData
(){
setTimeout
(()
=>
{
var
jObj
=
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'HomeData'
));
this
.
HomeData
=
jObj
.
filter
(
x
=>
{
return
x
.
Id
==
'index_nav'
})
if
(
this
.
HomeData
.
length
>
0
)
this
.
plugData
=
this
.
HomeData
[
0
].
plugData
var
baseInfo
=
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'baseifo'
));
if
(
baseInfo
&&
baseInfo
.
Config
&&
baseInfo
.
Config
.
platObj
)
{
if
(
baseInfo
.
Config
.
platObj
.
yyzlImg
)
{
this
.
yyzlImg
=
baseInfo
.
Config
.
platObj
.
yyzlImg
;
}
if
(
baseInfo
.
Config
.
platObj
.
xhsImgList
&&
baseInfo
.
Config
.
platObj
.
xhsImgList
.
length
>
0
)
{
this
.
xhsImgList
=
baseInfo
.
Config
.
platObj
.
xhsImgList
;
}
if
(
baseInfo
.
Config
.
platObj
.
qwImgList
&&
baseInfo
.
Config
.
platObj
.
qwImgList
.
length
>
0
)
{
this
.
qwImgList
=
baseInfo
.
Config
.
platObj
.
qwImgList
;
}
if
(
baseInfo
.
Config
.
platObj
.
wbImg
)
{
this
.
wbImg
=
baseInfo
.
Config
.
platObj
.
wbImg
;
}
},
1000
)
},
getGroupinfo
(){
var
baseInfo
=
baseInfo
=
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'baseifo'
));
if
(
!
baseInfo
){
setTimeout
(()
=>
{
this
.
getGroupinfo
()
},
500
)
}
if
(
baseInfo
&&
baseInfo
.
Config
&&
baseInfo
.
Config
.
platObj
){
if
(
baseInfo
.
Config
.
platObj
.
yyzlImg
)
{
this
.
yyzlImg
=
baseInfo
.
Config
.
platObj
.
yyzlImg
;
}
if
(
baseInfo
.
Config
.
platObj
.
xhsImgList
&&
baseInfo
.
Config
.
platObj
.
xhsImgList
.
length
>
0
)
{
this
.
xhsImgList
=
baseInfo
.
Config
.
platObj
.
xhsImgList
;
}
},
500
)
if
(
baseInfo
.
Config
.
platObj
.
qwImgList
&&
baseInfo
.
Config
.
platObj
.
qwImgList
.
length
>
0
)
{
this
.
qwImgList
=
baseInfo
.
Config
.
platObj
.
qwImgList
;
}
if
(
baseInfo
.
Config
.
platObj
.
wbImg
)
{
this
.
wbImg
=
baseInfo
.
Config
.
platObj
.
wbImg
;
}
}
// if (baseInfo && baseInfo.Config && baseInfo.Config.platObj) {
// if (baseInfo.Config.platObj.yyzlImg) {
// this.yyzlImg = baseInfo.Config.platObj.yyzlImg;
// }
// if (baseInfo.Config.platObj.xhsImgList && baseInfo.Config.platObj.xhsImgList.length > 0) {
// this.xhsImgList = baseInfo.Config.platObj.xhsImgList;
// }
// if (baseInfo.Config.platObj.qwImgList && baseInfo.Config.platObj.qwImgList.length > 0) {
// this.qwImgList = baseInfo.Config.platObj.qwImgList;
// }
// if (baseInfo.Config.platObj.wbImg) {
// this.wbImg = baseInfo.Config.platObj.wbImg;
// }
// }else{
// this.getGroupinfo()
// }
},
navigateTo
(
urlInfo
)
{
if
(
urlInfo
.
IsNewOpen
===
1
)
{
...
...
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