Commit 4dcaf5fa authored by 姬鋆屾's avatar 姬鋆屾

提交修改门户口号

parent 8c9bada0
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
> >
<div class="main h-full w-full flex items-center justify-between"> <div class="main h-full w-full flex items-center justify-between">
<div class="slogan"> <div class="slogan">
<p class="slogan-text slogan-text-1 mb-12">{{ sloganTitle }}</p> <p class="slogan-text slogan-text-1 mb-12" v-html="sloganTitle"></p>
<!-- <p class="slogan-text slogan-text-2">似烟·似梦·似天堂</p> --> <!-- <p class="slogan-text slogan-text-2">似烟·似梦·似天堂</p> -->
</div> </div>
<div class="w-[490px] h-[660px]"> <div class="w-[490px] h-[660px]">
...@@ -352,7 +352,16 @@ export default { ...@@ -352,7 +352,16 @@ export default {
getSlogan("title").then((res) => { getSlogan("title").then((res) => {
if (res.code == 1) { if (res.code == 1) {
this.sloganTitle = res.data; this.sloganTitle = res.data;
localStorage.setItem("sloganTitle", res.data); this.sloganTitle = "似烟·\n似梦·似天堂";
this.sloganTitle = this.sloganTitle.replace(
/(\n|\r|\r\n|↵)/g,
"<br />"
);
// let i = this.sloganTitle.indexOf("\n");
// let str1 = this.sloganTitle.substring(0, i);
// let str2 = this.sloganTitle.substring(3);
// this.sloganTitle = `<p>${str1}</p><p>${str2}</p>`;
localStorage.setItem("sloganTitle", this.sloganTitle);
} }
}); });
}, },
......
<template> <template>
<div class="station w-full h-auto flex flex-col justify-between" <div
:style="{ backgroundImage: `url(${imgUrl})` }"> class="station w-full h-auto flex flex-col justify-between"
:style="{ backgroundImage: `url(${imgUrl})` }"
>
<!-- 删除常用 --> <!-- 删除常用 -->
<div class="del-box" :class="['del-box', { active: isDel }]"> <div class="del-box" :class="['del-box', { active: isDel }]">
<draggable <draggable
...@@ -27,9 +29,8 @@ ...@@ -27,9 +29,8 @@
color: #fff; color: #fff;
margin-bottom: 20px; margin-bottom: 20px;
" "
> v-html="sloganTitle"
{{ sloganTitle }} ></h1>
</h1>
<div class="slogan">建设高效便民、智慧泛在的智慧政务大厅</div> <div class="slogan">建设高效便民、智慧泛在的智慧政务大厅</div>
</div> </div>
<!-- 站点 --> <!-- 站点 -->
......
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