<template>
	<view>
		{{data.list}}
	</view>
</template>

<script setup>
	import {
		ref,
		reactive
	} from "vue";
	import {
		onLoad
	} from "@dcloudio/uni-app"
	import * as httpApi from "@/api/common.js"

	const data = reactive({
		page: 1,
		total: 0,
		size: 5,
		list: []
	})

	onLoad(() => {
		pageInit()
	})

	function updateList() {
		httpApi.getCommonGaikuangRongyuList({
			page: data.page,
			size: data.size
		}).then(res => {
			data.total = res.data.total;
			data.list = res.data.data;
		})
	}

	function pageInit() {
		data.page = 1;
		updateList()
	}
</script>

<style>

</style>