41 lines
942 B
Vue
41 lines
942 B
Vue
<script setup lang="ts">
|
|
import { ref, reactive } from "vue";
|
|
import { onLoad, onShow } from "@dcloudio/uni-app";
|
|
|
|
import { hooks } from "@@/index"
|
|
import { merchantApi } from "@@/api"
|
|
|
|
const state = reactive<any>({
|
|
|
|
})
|
|
|
|
onLoad(() => {
|
|
|
|
});
|
|
onShow(() => {
|
|
|
|
})
|
|
|
|
const pageRef = ref<any>(null)
|
|
const pageHook = hooks.usePage(pageRef, merchantApi.merchantList, null, 'data')
|
|
const query = (page: number, pagesize: number) => {
|
|
pageHook.startPage(page, pagesize, false, state.pa);
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
<crud-layout>
|
|
|
|
|
|
<z-paging ref="pageRef" height="100%" :fixed="false" v-model="pageHook.list" :default-page-size="5"
|
|
safe-area-inset-bottom :loading-more-enabled="true" :show-scrollbar="false" @query="query"
|
|
:auto-clean-list-when-reload="false" :auto-scroll-to-top-when-reload="false" @scroll="pageHook.scroll">
|
|
</z-paging>
|
|
|
|
</crud-layout>
|
|
</template>
|
|
|
|
<style lang="scss" scoped></style> |