Commit aa8f5119 authored by 张烨's avatar 张烨

fix: update

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