feat: 改造
This commit is contained in:
@@ -53,35 +53,7 @@ export default class CollectionBag extends Component {
|
|||||||
/**
|
/**
|
||||||
* 获取一级分类数据
|
* 获取一级分类数据
|
||||||
*/
|
*/
|
||||||
getCollectionList() {
|
getCollectionList() {}
|
||||||
// JDreq({
|
|
||||||
// method: 'post',
|
|
||||||
// data: {
|
|
||||||
// pageInfo: {
|
|
||||||
// pageIndex: this.pageIndex,
|
|
||||||
// pageSize: this.pageSize,
|
|
||||||
// },
|
|
||||||
// },
|
|
||||||
// url: apiName.getCollectionList,
|
|
||||||
// })
|
|
||||||
// .then((res) => {
|
|
||||||
// if (res.data && res.data.pageList?.length > 0) {
|
|
||||||
// this.total = res.data.pageInfo.total
|
|
||||||
// this.setState({
|
|
||||||
// collectionList: res.data.pageList,
|
|
||||||
// isShowSpin: false,
|
|
||||||
// isShowSkeleton: false,
|
|
||||||
// })
|
|
||||||
// } else {
|
|
||||||
// this.total = 0
|
|
||||||
// this.setState({
|
|
||||||
// collectionList: [],
|
|
||||||
// isShowSpin: false,
|
|
||||||
// })
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
// .catch((err) => console.log(err))
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分页
|
* 分页
|
||||||
|
@@ -3,10 +3,7 @@ import './index.less'
|
|||||||
export default function EmptyBox() {
|
export default function EmptyBox() {
|
||||||
return (
|
return (
|
||||||
<div className='empty-box'>
|
<div className='empty-box'>
|
||||||
<img
|
<img className='empty-inco' />
|
||||||
src='https://img11.360buyimg.com/imagetools/jfs/t1/161028/16/25609/6746/61a08d83E06659dfa/e6418acdab948134.png'
|
|
||||||
className='empty-inco'
|
|
||||||
/>
|
|
||||||
<span className='empty-text'>这里什么也没有哦~</span>
|
<span className='empty-text'>这里什么也没有哦~</span>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
@@ -52,34 +52,7 @@ export default class GoodBag extends Component {
|
|||||||
/**
|
/**
|
||||||
* 获取一级分类数据
|
* 获取一级分类数据
|
||||||
*/
|
*/
|
||||||
getGoodList() {
|
getGoodList() {}
|
||||||
// JDreq({
|
|
||||||
// method: 'post',
|
|
||||||
// data: {
|
|
||||||
// pageInfo: {
|
|
||||||
// pageIndex: this.pageIndex,
|
|
||||||
// pageSize: this.pageSize,
|
|
||||||
// },
|
|
||||||
// },
|
|
||||||
// url: apiName.getGoodList,
|
|
||||||
// })
|
|
||||||
// .then((res) => {
|
|
||||||
// if (res.data && res.data.pageList?.length > 0) {
|
|
||||||
// this.total = res.data.pageInfo.total
|
|
||||||
// this.setState({
|
|
||||||
// goodList: res.data.pageList,
|
|
||||||
// isShowSpin: false,
|
|
||||||
// })
|
|
||||||
// } else {
|
|
||||||
// this.total = 0
|
|
||||||
// this.setState({
|
|
||||||
// goodList: [],
|
|
||||||
// isShowSpin: false,
|
|
||||||
// })
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
// .catch((err) => console.log(err))
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分页
|
* 分页
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 20 KiB |
@@ -1,9 +1,7 @@
|
|||||||
import { IdcardOutlined, LikeTwoTone, MailOutlined, StarTwoTone } from '@ant-design/icons'
|
import { IdcardOutlined, LikeTwoTone, MailOutlined, StarTwoTone } from '@ant-design/icons'
|
||||||
import { Menu } from 'antd'
|
import { Menu } from 'antd'
|
||||||
import React, { Component } from 'react'
|
|
||||||
// import JDreq from '@common/JDreq'
|
|
||||||
import PubSub from 'pubsub-js'
|
import PubSub from 'pubsub-js'
|
||||||
// import headLog from './headLog.png'
|
import React, { Component } from 'react'
|
||||||
import CollectionBag from './components/collection-bag'
|
import CollectionBag from './components/collection-bag'
|
||||||
import GoodBag from './components/good-bag'
|
import GoodBag from './components/good-bag'
|
||||||
import './index.less'
|
import './index.less'
|
||||||
@@ -30,27 +28,6 @@ export default class PersonalCenter extends Component {
|
|||||||
1: '点赞'
|
1: '点赞'
|
||||||
}
|
}
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
// JDreq({
|
|
||||||
// method: 'post',
|
|
||||||
// url: 'admin/person/home/getPersonInfo'
|
|
||||||
// }).then(res => {
|
|
||||||
// this.setState(
|
|
||||||
// {
|
|
||||||
// userName: res.data?.name ?? '',
|
|
||||||
// intervieweEamil: res.data?.email ?? '',
|
|
||||||
// headImg: res.data?.headImg ?? '',
|
|
||||||
// department: res.data?.departmentName ?? '',
|
|
||||||
// goodAmount: res.data?.thumpCount ?? 0,
|
|
||||||
// collectionAmount: res.data?.collectCount ?? 0,
|
|
||||||
// practiceAmount: res.data?.practiceCount ?? 0,
|
|
||||||
// inputAmount: res.data?.subjectCount ?? 0
|
|
||||||
// },
|
|
||||||
// () => {
|
|
||||||
// window.localStorage.setItem('interviewName', res.data?.name ?? 'XXX')
|
|
||||||
// window.localStorage.setItem('interviewEamil', res.data?.email ?? 'XXX')
|
|
||||||
// }
|
|
||||||
// )
|
|
||||||
// })
|
|
||||||
PubSub.subscribe('handleToRender', () => {
|
PubSub.subscribe('handleToRender', () => {
|
||||||
this.setState({})
|
this.setState({})
|
||||||
})
|
})
|
||||||
@@ -94,11 +71,9 @@ export default class PersonalCenter extends Component {
|
|||||||
<div className='personal-center-introduction-detail-information'>
|
<div className='personal-center-introduction-detail-information'>
|
||||||
<span className='personal-center-introduction-detail-information-content'>
|
<span className='personal-center-introduction-detail-information-content'>
|
||||||
<IdcardOutlined style={{ color: 'blue', marginRight: '3px' }} />
|
<IdcardOutlined style={{ color: 'blue', marginRight: '3px' }} />
|
||||||
{/* 部门:{department} */}
|
|
||||||
</span>
|
</span>
|
||||||
<span className='personal-center-introduction-detail-information-content'>
|
<span className='personal-center-introduction-detail-information-content'>
|
||||||
<MailOutlined style={{ color: 'blue', marginRight: '3px' }} />
|
<MailOutlined style={{ color: 'blue', marginRight: '3px' }} />
|
||||||
{/* 邮箱:{intervieweEamil} */}
|
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user