Commit 6cc8a31c by 胡悦

修改分页

1 parent 35587655
......@@ -66,6 +66,8 @@
</view>
</template>
<script>
const PAGE_SIZE = 10
const PAGE_NUM = 1
import { CONTRNT_TYPE } from './constant'
import dayjs from 'dayjs'
export default {
......@@ -83,8 +85,8 @@ export default {
messageList: [],
nothing: false,
total: 0,
pageNum: 1,
pageSize: 10,
pageNum: PAGE_NUM,
pageSize: PAGE_SIZE,
tagList: [],
tagIndex: '',
scrollTop: 0
......@@ -136,8 +138,8 @@ export default {
console.log(index)
this.firstIndex = index
this.total = 0
this.pageNum = 1
this.pageSize = 5
this.pageNum = PAGE_NUM
this.pageSize = PAGE_SIZE
if (tagIndex) this.tagIndex = tagIndex
else this.tagIndex = ''
if (index == 0) {
......@@ -165,8 +167,8 @@ export default {
this.tagIndex = item.classCode
this.scrollTop = 1
this.total = 0
this.pageNum = 1
this.pageSize = 5
this.pageNum = PAGE_NUM
this.pageSize = PAGE_SIZE
this.nothing = false
setTimeout(() => {
this.scrollTop = 0
......@@ -324,7 +326,7 @@ export default {
.data-container {
background: #ffffff;
border-radius: toRpx(48);
height: calc(100vh - #{toRpx(240)});
height: calc(100vh - #{toRpx(244)});
.type-box {
position: relative;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!