diff --git a/public/react/src/modules/user/usersInfo/common/InfoTab.js b/public/react/src/modules/user/usersInfo/common/InfoTab.js
index d4b374886..bb0761440 100644
--- a/public/react/src/modules/user/usersInfo/common/InfoTab.js
+++ b/public/react/src/modules/user/usersInfo/common/InfoTab.js
@@ -5,12 +5,12 @@ import { getUrl2, isDev, ThemeContext } from 'educoder'
import axios from 'axios'
-function InfoTab (props) {
+function InfoTab(props) {
const theme = useContext(ThemeContext);
const { category, changeCategory, categories, right } = props;
const username = props.match.params.username
-
+
useEffect(() => {
}, [])
@@ -19,7 +19,16 @@ function InfoTab (props) {
{categories && categories.map(item => {
return (
-
changeCategory(item.key)}>{item.name}
+ item.id === 1 ?
+
changeCategory(item.key)}
+ style={{width: "70px"}}>{item.name}
+ :
+
changeCategory(item.key)}
+ style={{width: "80px"}}>{item.name}
)
})}
{/*
this.changeCategory()}>全部
diff --git a/public/react/src/modules/user/usersInfo/video/InfosVideo.js b/public/react/src/modules/user/usersInfo/video/InfosVideo.js
index 19829b76e..bcc5acd2e 100644
--- a/public/react/src/modules/user/usersInfo/video/InfosVideo.js
+++ b/public/react/src/modules/user/usersInfo/video/InfosVideo.js
@@ -193,10 +193,31 @@ function InfoVideo (props) {
}
// TODO use封装
function onSortChange(key, index) {
- const _item = _items[index]
- _items.splice(index, 1)
- _items.unshift(_item)
- setSortKey(key)
+
+ try {
+ const _item = _items[index];
+ _items.splice(index, 1);
+ _items.unshift(_item);
+ const keys = key.split('-');
+ const sorts = sortKey.split('-');
+ if (key === "published_at-desc") {
+ if (keys[1] === sorts[1]) {
+ setSortKey("published_at-asc")
+ } else {
+ setSortKey(key)
+ }
+ } else if (key === "published_at-asc") {
+ if (keys[1] === sorts[1]) {
+ setSortKey("published_at-desc")
+ } else {
+ setSortKey(key)
+ }
+ }
+ } catch (e) {
+
+ }
+
+
}
function getCopyText (file_url, cover_url) {
return `
`
@@ -264,7 +285,18 @@ function InfoVideo (props) {
border: 0px solid #4CACFF;
color: #4CACFF;
}
-
+ .whitepanelysllisyt {
+ width: 70px !important;
+ height: 48px !important;
+ line-height: 46px !important;
+
+ }
+ .whitepanelysllisyts {
+ width: 80px !important;
+ height: 48px !important;
+ line-height: 46px !important;
+ margin-left: 30px;
+ }
`}
@@ -272,10 +304,12 @@ function InfoVideo (props) {
{...props}
categories={[{
key: 'all',
- name: '全部视频'
+ name: '全部视频',
+ id: 1,
}, {
key: 'review',
- name: '待审核视频'
+ name: '待审核视频',
+ id: 2
}]}
{...categoryObj}