Commit 2b53adef authored by wuhao's avatar wuhao 🎯

asder

parent edbc8fbb
...@@ -68,7 +68,7 @@ export default defineConfig({ ...@@ -68,7 +68,7 @@ export default defineConfig({
}, },
proxy: { proxy: {
'/website/': { '/website/': {
target: 'http://192.168.40.117:12345', target: 'http://192.168.40.23:9001',
changeOrigin: true, changeOrigin: true,
pathRewrite: { '^': '' }, pathRewrite: { '^': '' },
}, },
......
...@@ -313,7 +313,6 @@ body, ...@@ -313,7 +313,6 @@ body,
.ant-card-bordered { .ant-card-bordered {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center;
align-items: center; align-items: center;
overflow: hidden; overflow: hidden;
} }
...@@ -1074,3 +1073,9 @@ body, ...@@ -1074,3 +1073,9 @@ body,
.loader span:nth-child(4) { .loader span:nth-child(4) {
filter: blur(50px); filter: blur(50px);
} }
.ant-tag {
max-width: 88px;
overflow: hidden;
text-overflow: ellipsis;
}
import React, { useState, useEffect } from 'react'; import React, { useState, useEffect } from 'react';
import styles from './index.less'; import styles from './index.less';
import { Row, Col, Image, Pagination, Card, Tag } from 'antd'; import { Row, Col, Divider, Tooltip, Card, Tag } from 'antd';
import { useRequest } from 'ahooks'; import { useRequest } from 'ahooks';
import { doFetch } from '@/utils/doFetch'; import { doFetch } from '@/utils/doFetch';
import { EyeFilled } from '@ant-design/icons'; import { EyeFilled } from '@ant-design/icons';
...@@ -72,23 +72,34 @@ function Insert({ location: { query } }) { ...@@ -72,23 +72,34 @@ function Insert({ location: { query } }) {
style={{ fontSize: '0.7rem' }} style={{ fontSize: '0.7rem' }}
className="html" className="html"
></div> ></div>
<p style={{ margin: 0, fontSize: '0.7rem', color: '#999999' }}> <Divider></Divider>
<p
style={{
margin: 0,
fontSize: '0.7rem',
color: '#999999',
display: 'flex',
marginTop: 22,
}}
>
相关产品: 相关产品:
{data?.ngCaseProductList?.map((it, i) => { {data?.ngCaseProductList?.map((it, i) => {
return ( return (
<Tag <Tooltip title={it?.productName}>
style={{ <Tag
margin: '2px', style={{
padding: '4px 8px', margin: '2px',
fontSize: '0.7rem', padding: '4px 8px',
}} fontSize: '0.7rem',
onClick={(e) => { }}
e.stopPropagation(); onClick={(e) => {
it?.linkUrl && window.open(it?.linkUrl); e.stopPropagation();
}} it?.linkUrl && window.open(it?.linkUrl);
> }}
{it?.productName} >
</Tag> {it?.productName}
</Tag>
</Tooltip>
); );
})} })}
</p> </p>
......
import React, { useState, useEffect } from 'react'; import React, { useState, useEffect } from 'react';
import styles from './index.less'; import styles from './index.less';
import { Row, Col, Tag, Pagination, Card } from 'antd'; import { Row, Col, Tag, Pagination, Card, Tooltip, Divider } from 'antd';
import { useRequest } from 'ahooks'; import { useRequest } from 'ahooks';
import { doFetch } from '@/utils/doFetch'; import { doFetch } from '@/utils/doFetch';
import { EyeFilled } from '@ant-design/icons'; import { EyeFilled } from '@ant-design/icons';
...@@ -101,29 +101,33 @@ function Case() { ...@@ -101,29 +101,33 @@ function Case() {
<p style={{ fontSize: '0.6rem', marginTop: '1rem' }}> <p style={{ fontSize: '0.6rem', marginTop: '1rem' }}>
{it?.caseDescribe} {it?.caseDescribe}
</p> </p>
<Divider></Divider>
<p <p
style={{ style={{
margin: 0, margin: 0,
fontSize: '0.7rem', fontSize: '0.7rem',
color: '#999999', color: '#999999',
display: 'flex',
}} }}
> >
相关产品: 相关产品:
{it?.ngCaseProductList?.map((it, i) => { {it?.ngCaseProductList?.map((it, i) => {
return ( return (
<Tag <Tooltip title={it?.productName}>
style={{ <Tag
margin: '2px', style={{
padding: '4px 8px', margin: '2px',
fontSize: '0.7rem', padding: '4px 8px',
}} fontSize: '0.7rem',
onClick={(e) => { }}
e.stopPropagation(); onClick={(e) => {
it?.linkUrl && window.open(it?.linkUrl); e.stopPropagation();
}} it?.linkUrl && window.open(it?.linkUrl);
> }}
{it?.productName} >
</Tag> {it?.productName}
</Tag>
</Tooltip>
); );
})} })}
</p> </p>
......
...@@ -716,28 +716,35 @@ function IndexPage({ route }) { ...@@ -716,28 +716,35 @@ function IndexPage({ route }) {
</span> </span>
</div> </div>
<p style={{ fontSize: '0.6rem', marginTop: 12 }}> <p style={{ fontSize: '0.65rem', marginTop: 12 }}>
{it?.caseDescribe} {it?.caseDescribe}
</p> </p>
<p <p
style={{ margin: 0, fontSize: '0.7rem', color: '#999999' }} style={{
margin: 0,
fontSize: '0.7rem',
color: '#999999',
display: 'flex',
}}
> >
相关产品: 相关产品:
{it?.ngCaseProductList?.map((it, i) => { {it?.ngCaseProductList?.map((it, i) => {
return ( return (
<Tag <Tooltip title={it?.productName}>
style={{ <Tag
margin: '2px', style={{
padding: '4px 8px', margin: '2px',
fontSize: '0.7rem', padding: '4px 8px',
}} fontSize: '0.7rem',
onClick={(e) => { }}
e.stopPropagation(); onClick={(e) => {
it?.linkUrl && window.open(it?.linkUrl); e.stopPropagation();
}} it?.linkUrl && window.open(it?.linkUrl);
> }}
{it?.productName} >
</Tag> {it?.productName}
</Tag>
</Tooltip>
); );
})} })}
</p> </p>
......
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