<template>
	<view class="content">
		详情
		<up-overlay :show="show">
			<login @showChange='showChange'></login>
		</up-overlay>
	</view>
</template>

<script setup lang="ts">
	import { inject, computed, ref } from 'vue';
	//该依赖已内置不需要单独安装
	import { onShow, onPullDownRefresh } from "@dcloudio/uni-app";
	// 请求接口
	const $api = inject('$api');
	const $config = inject('$config');
	// 基本信息
	const config = ref({ logo: [], file: [] });
	const list = ref([]);
	const total = ref(0);
	// user
	const user = computed(() => {
		return uni.getStorageSync('user');
	})
	// 遮罩层
	const show = ref(false);
	onShow(async () => {
		await searchConfig();
		await searchOther();
		await search();
		if (!user.value) show.value = true
	})
	// config信息
	const searchConfig = async () => {
		config.value = uni.getStorageSync('config');
	};
	// 其他查询信息
	const searchOther = async () => { };
	// 查询
	const search = async () => { };
	const showChange = () => {
		show.value = false
	}
</script>
<style lang="scss" scoped>
	.content {
		display: flex;
		flex-direction: column;
		min-height: 100vh;
		background-color: var(--f1Color);
	}
</style>