Skip to content

Commit

Permalink
# justify classify page
Browse files Browse the repository at this point in the history
  • Loading branch information
yanjiaxuan committed Jun 3, 2021
1 parent d40eb45 commit 1928c62
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
14 changes: 7 additions & 7 deletions src/renderer/utils/request/modules/queryResources.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import store from '@/utils/store';
import Req from '../index';

/** ac=videolist 默认,查询结果带播放列表
* t 分类
* pg 页码
* ids 资源id
* wd 关键字
*/

// ac:模式(videolist或detail详细模式),为空=列表标准模式
// ids: 影片id,多个使用,隔开
// t: 类型
// h:最近多少小时内
// pg: 页数
// wd:搜索like
// at:输出格式,可选xml
export function queryResources(
curPage: number,
type?: number,
Expand Down
11 changes: 8 additions & 3 deletions src/renderer/views/classify/classify.scss
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
.full-wrapper {
width: 100%;
height: calc(100vh - 50px);
transform: translateZ(0);
display: flex;
flex-direction: column;
}

.scroll-wrapper {
height: calc(100% - 80px);
width: 100%;
overflow-y: auto;
overflow-x: hidden;
transform: translateZ(0);
}

.type-wrapper {
height: 80px;
width: 100%;
padding: 5px 20px 0 20px;
background-color: #444444;
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/views/classify/classify.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export default class Classify extends React.Component<any, any> {

render(): React.ReactNode {
return (
<div style={{ height: '100%' }}>
<div className={cssM.fullWrapper}>
<div className={cssM.typeWrapper}>{this.renderClassify()}</div>
<div className={cssM.scrollWrapper}>
<InfiniteScroll
Expand Down

0 comments on commit 1928c62

Please sign in to comment.