feat: 改造

This commit is contained in:
秋水浮尘
2023-12-02 23:43:29 +08:00
parent 0cb65254f4
commit 0d4f9226c3
5 changed files with 4 additions and 87 deletions

View File

@@ -53,35 +53,7 @@ export default class CollectionBag extends Component {
/**
* 获取一级分类数据
*/
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))
}
getCollectionList() {}
/**
* 分页

View File

@@ -3,10 +3,7 @@ import './index.less'
export default function EmptyBox() {
return (
<div className='empty-box'>
<img
src='https://img11.360buyimg.com/imagetools/jfs/t1/161028/16/25609/6746/61a08d83E06659dfa/e6418acdab948134.png'
className='empty-inco'
/>
<img className='empty-inco' />
<span className='empty-text'>这里什么也没有哦</span>
</div>
)

View File

@@ -52,34 +52,7 @@ export default class GoodBag extends Component {
/**
* 获取一级分类数据
*/
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))
}
getGoodList() {}
/**
* 分页

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

View File

@@ -1,9 +1,7 @@
import { IdcardOutlined, LikeTwoTone, MailOutlined, StarTwoTone } from '@ant-design/icons'
import { Menu } from 'antd'
import React, { Component } from 'react'
// import JDreq from '@common/JDreq'
import PubSub from 'pubsub-js'
// import headLog from './headLog.png'
import React, { Component } from 'react'
import CollectionBag from './components/collection-bag'
import GoodBag from './components/good-bag'
import './index.less'
@@ -30,27 +28,6 @@ export default class PersonalCenter extends Component {
1: '点赞'
}
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', () => {
this.setState({})
})
@@ -94,11 +71,9 @@ export default class PersonalCenter extends Component {
<div className='personal-center-introduction-detail-information'>
<span className='personal-center-introduction-detail-information-content'>
<IdcardOutlined style={{ color: 'blue', marginRight: '3px' }} />
{/* 部门:{department} */}
</span>
<span className='personal-center-introduction-detail-information-content'>
<MailOutlined style={{ color: 'blue', marginRight: '3px' }} />
{/* 邮箱:{intervieweEamil} */}
</span>
</div>
</div>