Update main.js
This commit is contained in:
parent
25da5c728b
commit
d5f9efeceb
|
@ -154,10 +154,14 @@ import _ from "lodash";
|
||||||
render() {
|
render() {
|
||||||
const { data} = this.props;
|
const { data} = this.props;
|
||||||
let page_num =Math.ceil( data.count / this.state.count);
|
let page_num =Math.ceil( data.count / this.state.count);
|
||||||
|
|
||||||
|
console.log(page_num)
|
||||||
|
|
||||||
|
|
||||||
let btnPages = []
|
let btnPages = []
|
||||||
for(let i = 1;i<page_num + 1;i++ )
|
for(let i = 1;i<page_num + 1;i++ )
|
||||||
{
|
{
|
||||||
|
console.log(1)
|
||||||
// let o = {}
|
// let o = {}
|
||||||
// o.page = i;
|
// o.page = i;
|
||||||
// o.text = i ;
|
// o.text = i ;
|
||||||
|
@ -165,7 +169,8 @@ import _ from "lodash";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
let btns = this.getPageArr(btnPages,this.state.page,3)
|
|
||||||
|
let btns = this.getPageArr(btnPages,this.state.page,8)
|
||||||
return (
|
return (
|
||||||
<div className="pagination">
|
<div className="pagination">
|
||||||
<div className="pagination-context">
|
<div className="pagination-context">
|
||||||
|
|
Loading…
Reference in New Issue