Commit aa8f5119 authored by 张烨's avatar 张烨

fix: update

parent 4a8560b9
...@@ -22,7 +22,8 @@ ...@@ -22,7 +22,8 @@
"build": "cross-env NODE_ENV=production webpack --config internals/webpack/webpack.prod.babel.js --color -p --progress --hide-modules --display-optimization-bailout", "build": "cross-env NODE_ENV=production webpack --config internals/webpack/webpack.prod.babel.js --color -p --progress --hide-modules --display-optimization-bailout",
"build:inspect": "cross-env NODE_ENV=production node --inspect-brk ./node_modules/webpack/bin/webpack.js --config internals/webpack/webpack.prod.babel.js --color -p --progress --hide-modules --display-optimization-bailout", "build:inspect": "cross-env NODE_ENV=production node --inspect-brk ./node_modules/webpack/bin/webpack.js --config internals/webpack/webpack.prod.babel.js --color -p --progress --hide-modules --display-optimization-bailout",
"build:clean": "rimraf ./build", "build:clean": "rimraf ./build",
"start": "cross-env NODE_ENV=development node --inspect=9229 server", "start": "cross-env NODE_ENV=development server",
"start:inspect": "cross-env NODE_ENV=development node --inspect=9229 server",
"start:tunnel": "cross-env NODE_ENV=development ENABLE_TUNNEL=true node server", "start:tunnel": "cross-env NODE_ENV=development ENABLE_TUNNEL=true node server",
"start:production": "npm run test && npm run build && npm run start:prod", "start:production": "npm run test && npm run build && npm run start:prod",
"start:prod": "cross-env NODE_ENV=production node server", "start:prod": "cross-env NODE_ENV=production node server",
......
...@@ -5,16 +5,16 @@ import ImgCrop from 'antd-img-crop'; ...@@ -5,16 +5,16 @@ import ImgCrop from 'antd-img-crop';
import classnames from 'classnames'; import classnames from 'classnames';
import { UploadFile, UploadChangeParam, RcFile } from 'antd/lib/upload/interface'; import { UploadFile, UploadChangeParam, RcFile } from 'antd/lib/upload/interface';
import { isDev, unParams, uuid } from '@/utils/tools'; import { isDev, unParams, uuid } from '@/utils/tools';
import req from '@/utils/req'; import { get } from '@/services';
import styles from './index.less'; import styles from './index.less';
const { TabPane } = Tabs; const { TabPane } = Tabs;
// 维护图片分类映射 // 维护图片分类映射
const wallCateName: any = { const wallCateName: any = {
photo: '照片', icon: '图标',
bg: '背景', bg: '背景',
chahua: '插画', uploaded: '上传',
}; };
function getBase64(file: File | Blob) { function getBase64(file: File | Blob) {
...@@ -44,9 +44,9 @@ class PicturesWall extends React.Component<PicturesWallType> { ...@@ -44,9 +44,9 @@ class PicturesWall extends React.Component<PicturesWallType> {
wallModalVisible: false, wallModalVisible: false,
previewTitle: '', previewTitle: '',
imgBed: { imgBed: {
photo: [], icon: [],
bg: [], bg: [],
chahua: [], uploaded: [],
}, },
curSelectedImg: '', curSelectedImg: '',
fileList: this.props.fileList || [], fileList: this.props.fileList || [],
...@@ -128,7 +128,7 @@ class PicturesWall extends React.Component<PicturesWallType> { ...@@ -128,7 +128,7 @@ class PicturesWall extends React.Component<PicturesWallType> {
}; };
componentDidMount() { componentDidMount() {
req.get(`/visible/bed/get?tid=${unParams(location.search)!.tid}`).then(res => { get(`/visible/bed/get?tid=${unParams(location.search)!.tid}`).then(res => {
res && res &&
this.setState({ this.setState({
imgBed: res, imgBed: res,
...@@ -172,7 +172,7 @@ class PicturesWall extends React.Component<PicturesWallType> { ...@@ -172,7 +172,7 @@ class PicturesWall extends React.Component<PicturesWallType> {
modalOk="确定" modalOk="确定"
modalCancel="取消" modalCancel="取消"
rotate={true} rotate={true}
aspect={cropRate} aspect={cropRate as number}
> >
<Upload <Upload
fileList={fileList} fileList={fileList}
...@@ -249,7 +249,7 @@ class PicturesWall extends React.Component<PicturesWallType> { ...@@ -249,7 +249,7 @@ class PicturesWall extends React.Component<PicturesWallType> {
key={i} key={i}
onClick={() => this.handleImgSelected(item)} onClick={() => this.handleImgSelected(item)}
> >
<img src={item} alt="趣谈前端-h5-dooring" /> <img src={item} alt="熊猫运维中台系统" />
<span className={styles.iconBtn}> <span className={styles.iconBtn}>
<CheckCircleFilled /> <CheckCircleFilled />
</span> </span>
...@@ -261,7 +261,7 @@ class PicturesWall extends React.Component<PicturesWallType> { ...@@ -261,7 +261,7 @@ class PicturesWall extends React.Component<PicturesWallType> {
); );
})} })}
<TabPane tab="更多" key="more"> <TabPane tab="更多" key="more">
<Result status="500" title="Dooring温馨提示" subTitle="更多素材, 正在筹备中..." /> <Result status="500" title="温馨提示" subTitle="更多素材, 正在筹备中..." />
</TabPane> </TabPane>
</Tabs> </Tabs>
</Modal> </Modal>
......
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