|
|
@@ -1,50 +1,105 @@
|
|
|
<template>
|
|
|
- <div class="flex flex-col page-config-content">
|
|
|
- <el-card shadow="never">
|
|
|
- <div style="display: flex; justify-content: space-between">
|
|
|
- <el-input v-model="searchCom" class="search-btn w-50" placeholder="搜索公司主页">
|
|
|
- <template #suffix>
|
|
|
- <el-icon @click="searchPageConfig" @keyup.enter="searchPageConfig"><Search /></el-icon>
|
|
|
- </template>
|
|
|
- </el-input>
|
|
|
- <el-button
|
|
|
- style="width: 102px; background-color: rgb(24, 144, 255); border: none"
|
|
|
- type="primary"
|
|
|
- @click="broadcast"
|
|
|
- >
|
|
|
- 主页发布
|
|
|
- </el-button>
|
|
|
+ <div class="page-config-content">
|
|
|
+ <main class="main__config">
|
|
|
+ <div class="card--default" @click="toSceneLayout('pc')">
|
|
|
+ <section class="card__left">
|
|
|
+ <img :src="PCIcon">
|
|
|
+ </section>
|
|
|
+ <section class="card__right">
|
|
|
+ <span class="span__card--title">
|
|
|
+ PC端{{ titleDefault }}
|
|
|
+ </span>
|
|
|
+ <span class="span__card--describe">
|
|
|
+ {{ describeDefault }} PC端生效
|
|
|
+ </span>
|
|
|
+ </section>
|
|
|
</div>
|
|
|
- </el-card>
|
|
|
- <el-card shadow="never" class="flex-1" style="margin-top: 8px; overflow: auto">
|
|
|
- <PageMain ref="pageMain" />
|
|
|
- </el-card>
|
|
|
+ <div class="card--default" @click="toSceneLayout('phone')">
|
|
|
+ <section class="card__left">
|
|
|
+ <img :src="PhoneIcon">
|
|
|
+ </section>
|
|
|
+ <section class="card__right">
|
|
|
+ <span class="span__card--title">
|
|
|
+ 手机端{{ titleDefault }}
|
|
|
+ </span>
|
|
|
+ <span class="span__card--describe">
|
|
|
+ {{ describeDefault }} 手机端生效
|
|
|
+ </span>
|
|
|
+ </section>
|
|
|
+ </div>
|
|
|
+ </main>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script lang="ts" setup>
|
|
|
- import { ref } from 'vue';
|
|
|
- import { ElMessage } from 'element-plus';
|
|
|
- import { Search } from '@element-plus/icons-vue';
|
|
|
- import PageMain from './component/PageMain.vue';
|
|
|
-
|
|
|
- const searchCom = ref('');
|
|
|
- const pageMain = ref();
|
|
|
-
|
|
|
- const searchPageConfig = () => {
|
|
|
- pageMain.value.getList(searchCom.value);
|
|
|
- };
|
|
|
-
|
|
|
- const broadcast = () => {
|
|
|
- ElMessage({
|
|
|
- message: '发布已勾选的主页',
|
|
|
- type: 'success',
|
|
|
- });
|
|
|
- };
|
|
|
+import PCIcon from '@/assets/images/page-config/config-pc.png'
|
|
|
+import PhoneIcon from '@/assets/images/page-config/config-phone.png'
|
|
|
+import router from '@/router';
|
|
|
+const titleDefault = "主页布局"
|
|
|
+const describeDefault = "编辑的主页布局、 \n位置标签等在\n"
|
|
|
+const toSceneLayout = (type: 'phone' | 'pc') => {
|
|
|
+ router.push(`/layout/layout?type=${type}`)
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" sctep>
|
|
|
- .page-config-content {
|
|
|
- width: 100%;
|
|
|
- height: calc(100vh - 64px - 12px);
|
|
|
+.page-config-content {
|
|
|
+ width: 100%;
|
|
|
+ height: calc(100vh - 64px - 12px);
|
|
|
+ padding: 47px 84px 0 84px;
|
|
|
+ background: #ffffff;
|
|
|
+ box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.12);
|
|
|
+ border-radius: 6px;
|
|
|
+}
|
|
|
+
|
|
|
+.main__config {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ width: 100%;
|
|
|
+ height: auto;
|
|
|
+
|
|
|
+ .card--default {
|
|
|
+ display: flex;
|
|
|
+ width: 490px;
|
|
|
+ height: 300px;
|
|
|
+ background-repeat: no-repeat;
|
|
|
+ background-size: cover;
|
|
|
+ background-image: url('@/assets/images/page-config/card-bg-default.png');
|
|
|
+ transition: background-image 0.3s ease-in-out;
|
|
|
+ cursor: pointer;
|
|
|
+
|
|
|
+ &:hover {
|
|
|
+ background-image: url('@/assets/images/page-config/card-bg-hover.png');
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .card__left {
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ flex: 1;
|
|
|
+ height: inherit;
|
|
|
+ }
|
|
|
+
|
|
|
+ .card__right {
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ flex-direction: column;
|
|
|
+ gap: 20px;
|
|
|
+ flex: 1;
|
|
|
+
|
|
|
+ .span__card--title {
|
|
|
+ font-weight: 600;
|
|
|
+ font-size: 28px;
|
|
|
+ color: #1777FF;
|
|
|
+ }
|
|
|
+
|
|
|
+ .span__card--describe {
|
|
|
+ font-weight: 400;
|
|
|
+ font-size: 24px;
|
|
|
+ line-height: 33px;
|
|
|
+ color: #909399;
|
|
|
+ white-space: pre-line;
|
|
|
+ }
|
|
|
}
|
|
|
+}
|
|
|
</style>
|