Commit 44041618 authored by mengcuiguang's avatar mengcuiguang

记录添加分页

parent fd3fa185
<template> <template>
<view class="body"> <view class="body">
<status-title :showBack="true">我的订单</status-title> <status-title :showBack="true">我的订单</status-title>
<z-paging class="flex-1" ref="paging" v-model="dataList" @query="queryList"> <z-paging class="flex-1" ref="paging" v-model="dataList" @query="queryList" :defaultPageNo="1"
:defaultPageSize="500">
<view v-for="(item, i) in dataList" :key="i"> <view v-for="(item, i) in dataList" :key="i">
<view class="flex m-20 pd-20" <view class="flex m-20 pd-20"
style="justify-content:space-between;background-color:white;border-radius:10rpx;"> style="justify-content:space-between;background-color:white;border-radius:10rpx;">
...@@ -39,6 +40,10 @@ ...@@ -39,6 +40,10 @@
queryList(page, size) { queryList(page, size) {
this.post({ this.post({
url: '/vip/getOrderList', url: '/vip/getOrderList',
data: {
page,
size
},
showLoading: false, showLoading: false,
success: ({ success: ({
data data
......
<template> <template>
<view class="body"> <view class="body">
<status-title :showBack="true">观看记录</status-title> <status-title :showBack="true">观看记录</status-title>
<z-paging class="flex-1" ref="paging" v-model="dataList" @query="queryList"> <z-paging class="flex-1" ref="paging" v-model="dataList" @query="queryList" :defaultPageNo="1"
:defaultPageSize="500">
<view style="font-size: 30rpx;font-weight: 777;margin-left: 12rpx;margin-top: 10rpx;">最近观看</view> <view style="font-size: 30rpx;font-weight: 777;margin-left: 12rpx;margin-top: 10rpx;">最近观看</view>
<view v-for="(item, i) in dataList" :key="i"> <view v-for="(item, i) in dataList" :key="i">
...@@ -69,6 +70,10 @@ ...@@ -69,6 +70,10 @@
queryList(page, size) { queryList(page, size) {
this.post({ this.post({
url: '/vedio/history', url: '/vedio/history',
data: {
page,
size
},
showLoading: false, showLoading: false,
success: ({ success: ({
data data
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment