Commit 6cc8a31c by 胡悦

修改分页

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