Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sensorConsult
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
zhanglw
sensorConsult
Commits
74b1647d
Commit
74b1647d
authored
Aug 09, 2023
by
zhanglw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
底部文件跳转无限刷新
parent
456fd130
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
33 deletions
+13
-33
common.js
src/api/common.js
+7
-0
routers.js
src/router/routers.js
+1
-1
homeFooter.vue
src/views/homepage/components/homeFooter.vue
+1
-30
index.vue
src/views/homepage/footer/index.vue
+4
-2
No files found.
src/api/common.js
View file @
74b1647d
...
@@ -472,6 +472,13 @@ export const HttpReq = {
...
@@ -472,6 +472,13 @@ export const HttpReq = {
method
:
'
get
'
method
:
'
get
'
})
})
},
},
// 底部文件-查询单个首页内容列表页
queryHomePageById
:
function
(
params
)
{
return
request
({
url
:
'
/api/bsw/bigScreen/index/queryHomePageById?
'
+
qs
.
stringify
(
params
,
{
indices
:
false
}),
method
:
'
get
'
})
},
id
:
null
id
:
null
}
}
}
}
...
...
src/router/routers.js
View file @
74b1647d
...
@@ -160,7 +160,7 @@ export const constantRouterMap = [
...
@@ -160,7 +160,7 @@ export const constantRouterMap = [
},
},
{
{
path
:
'
/footer/about/:id
'
,
path
:
'
/footer/about/:id
'
,
meta
:
{
title
:
''
,
noCache
:
true
},
meta
:
{
title
:
'
帮助
'
,
noCache
:
true
},
component
:
(
resolve
)
=>
{
component
:
(
resolve
)
=>
{
return
require
([
'
@/views/homepage/footer/index
'
],
resolve
)
return
require
([
'
@/views/homepage/footer/index
'
],
resolve
)
},
},
...
...
src/views/homepage/components/homeFooter.vue
View file @
74b1647d
...
@@ -25,36 +25,7 @@ import { HttpReq } from '@/api/common'
...
@@ -25,36 +25,7 @@ import { HttpReq } from '@/api/common'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
dataList
:
[
dataList
:
[]
{
name
:
'
用户指南
'
,
list
:
[
{
name
:
'
注册登录流程
'
,
url
:
''
},
{
name
:
'
采购商指南
'
,
url
:
''
}
]
},
{
name
:
'
关于我们
'
,
list
:
[
{
name
:
'
平台介绍
'
,
url
:
''
}
]
},
{
name
:
'
联系我们
'
,
list
:
[
{
name
:
'
提供建议
'
,
leaveWordUrl
:
'
/footer/opinion
'
},
{
name
:
'
我要合作
'
,
leaveWordUrl
:
'
/footer/cooperate
'
},
{
name
:
'
联系方式
'
}
]
},
{
name
:
'
常见问题
'
,
list
:
[
{
name
:
'
采购商常见问题
'
,
url
:
''
},
{
name
:
'
供应商常见问题
'
,
url
:
''
}
]
}
]
}
}
},
},
mounted
()
{
mounted
()
{
...
...
src/views/homepage/footer/index.vue
View file @
74b1647d
...
@@ -54,12 +54,14 @@ export default {
...
@@ -54,12 +54,14 @@ export default {
},
},
watch
:
{
watch
:
{
$route
()
{
$route
()
{
location
.
reload
()
if
(
this
.
$route
.
path
.
startsWith
(
'
/footer/about/
'
))
{
location
.
reload
()
}
}
}
},
},
mounted
()
{
mounted
()
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
HttpReq
.
backstage
Api
.
queryHomePageById
({
homePageId
:
this
.
$route
.
params
.
id
}).
then
((
res
)
=>
{
HttpReq
.
webClient
Api
.
queryHomePageById
({
homePageId
:
this
.
$route
.
params
.
id
}).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
formData
=
Object
.
assign
(
this
.
formData
,
res
.
data
)
this
.
formData
=
Object
.
assign
(
this
.
formData
,
res
.
data
)
}
else
{
}
else
{
...
...
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