Commit c77a69b9 authored by 周宏民's avatar 周宏民

pref: 引导页可修改标题

parent a78b480b
Pipeline #91056 waiting for manual action with stages
...@@ -105,5 +105,6 @@ ...@@ -105,5 +105,6 @@
"name": "行业大数据平台", "name": "行业大数据平台",
"url": "" "url": ""
} }
] ],
"标题": "智慧水务综合监控平台"
} }
\ No newline at end of file
...@@ -71,10 +71,8 @@ const Integration = props => { ...@@ -71,10 +71,8 @@ const Integration = props => {
}) })
.then(res => { .then(res => {
if (res.code === 0 && res.data) { if (res.code === 0 && res.data) {
const data = JSON.parse(res.data); const data = JSON.parse(res.data) || defaultConfig;
console.log('🚀 ~ data:', data); setConfigData(data);
setConfigData(data || defaultConfig);
// setListData(data?.list || []);
} }
}); });
}; };
...@@ -216,7 +214,9 @@ const Integration = props => { ...@@ -216,7 +214,9 @@ const Integration = props => {
> >
<div className={styles.integration_title}> <div className={styles.integration_title}>
<div className={styles.integration_title_left} /> <div className={styles.integration_title_left} />
<div className={styles.integration_title_text} /> <div className={styles.integration_title_text}>
<span>{configData?.['标题'] || '智慧水务综合监控平台'}</span>
</div>
<div className={styles.integration_title_right} /> <div className={styles.integration_title_right} />
</div> </div>
<div className={styles.integration_row} type="业务中心"> <div className={styles.integration_row} type="业务中心">
......
@imgSrc: '@/assets/images/integration/'; @imgSrc: '@/assets/images/integration/';
.integration { .integration {
width: 100%; width: 100%;
position: relative; position: relative;
...@@ -636,10 +638,20 @@ ...@@ -636,10 +638,20 @@
} }
&_text { &_text {
width: 632px; flex: none;
height: 97px; height: 97px;
background: url('@{imgSrc}/标题.png') center/100% 100% no-repeat; color: #fff;
span {
line-height: 97px;
color: #fff;
font-size: 60px;
letter-spacing: 4px;
font-family: 'PangMenZhengDaoBiaoTiTi';
background: linear-gradient(0deg, #56A1EF 0%, #FFFFFF 59%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
} }
&_right { &_right {
......
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