Commit 74b1647d authored by zhanglw's avatar zhanglw

底部文件跳转无限刷新

parent 456fd130
......@@ -472,6 +472,13 @@ export const HttpReq = {
method: 'get'
})
},
// 底部文件-查询单个首页内容列表页
queryHomePageById: function(params) {
return request({
url: '/api/bsw/bigScreen/index/queryHomePageById?' + qs.stringify(params, { indices: false }),
method: 'get'
})
},
id: null
}
}
......
......@@ -160,7 +160,7 @@ export const constantRouterMap = [
},
{
path: '/footer/about/:id',
meta: { title: '', noCache: true },
meta: { title: '帮助', noCache: true },
component: (resolve) => {
return require(['@/views/homepage/footer/index'], resolve)
},
......
......@@ -25,36 +25,7 @@ import { HttpReq } from '@/api/common'
export default {
data() {
return {
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: '' }
]
}
]
dataList: []
}
},
mounted() {
......
......@@ -54,12 +54,14 @@ export default {
},
watch: {
$route() {
if (this.$route.path.startsWith('/footer/about/')) {
location.reload()
}
}
},
mounted() {
this.$nextTick(() => {
HttpReq.backstageApi.queryHomePageById({ homePageId: this.$route.params.id }).then((res) => {
HttpReq.webClientApi.queryHomePageById({ homePageId: this.$route.params.id }).then((res) => {
if (res.code === 200) {
this.formData = Object.assign(this.formData, res.data)
} else {
......
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