跳至主要內容
分页工具类

使用方法

  • api.productOrderController.queryByUser 是一个后端API方法,用于根据用户查询产品订单。
  • 第二个参数传入了api.productOrderController,API方法需要在控制器实例上下文中执行, 即this指向当前组件实例。
  • 初始化查询参数为空对象 {}。
const { pageData } = usePageHelper(
  api.productOrderController.queryByUser,
  api.productOrderController,
  {},
);

起凡大约 5 分钟起凡商城小程序分页工具