feat(manager): 移动端装修编辑器改为全屏独立页

- /floorList/main 移出 Main 布局注册为顶层路由,不再显示左侧菜单/header/标签栏
- 编辑器容器铺满全屏,右侧面板高度同步调整
- 顶栏左侧新增返回按钮(goBack 复用已有方法)
- 路径/name/query 不变,列表页 4 处跳转零改动
This commit is contained in:
pikachu1995@126.com
2026-10-12 15:13:48 +08:00
parent b5047a7a7a
commit 18eb79054f
4 changed files with 18 additions and 13 deletions

View File

@@ -11,6 +11,16 @@ export const loginRouter = {
component: () => import("@/views/login.vue")
};
// 移动端楼层装修编辑器:全屏独立页,不在 Main(左侧菜单)布局内
export const floorDecorationRouter = {
path: "/floorList/main",
name: "main",
meta: {
title: "编辑模板"
},
component: () => import("@/views/page-decoration/wap/main.vue")
};
// 作为Main组件的子页面展示但是不在左侧菜单显示的路由写在otherRouter里
export const otherRouter = {
path: "/",
@@ -355,12 +365,6 @@ export const otherRouter = {
name: "renovation",
component: () => import("@/views/page-decoration/renovation.vue")
},
{
path: "/floorList/main",
title: "编辑模板",
name: "main",
component: () => import("@/views/page-decoration/wap/main.vue")
},
{
path: "add-sms-sign",
title: "短信签名",
@@ -545,4 +549,4 @@ export const externalLink = {
};
// 所有上面定义的路由都要写在下面的routers里
export const routers = [loginRouter, otherRouter, page500, page403, externalLink];
export const routers = [loginRouter, floorDecorationRouter, otherRouter, page500, page403, externalLink];

View File

@@ -73,7 +73,7 @@
.decorate {
padding: 0 20px;
height: calc(100vh - 120px);
height: calc(100vh - 70px);
overflow-y: auto;
padding-bottom: 120px;
}

View File

@@ -40,12 +40,11 @@ export default {
</script>
<style scoped lang="scss">
.box {
height: calc(100vh - 120px);
width: 98%;
margin: 0 auto;
height: 100vh;
width: 100%;
margin: 0;
padding: 0 20px;
background: #fff;
border-radius: 0.4em;
overflow: hidden;
}
</style>

View File

@@ -1,7 +1,9 @@
<template>
<!-- 预览保存 -->
<div class="model-title">
<div></div>
<div>
<el-button size="default" @click="goBack">返回</el-button>
</div>
<div class="model-title-view-btn">
<!-- TODO 后期会补全 目前版本暂无 -->
<!-- <Poptip placement="bottom" width="100">