<template>
	<!-- <custom-scroll-list :hasSearcBar="false" :refreshFn="getNoticeList" :hasTab="false">
		<template #default="{list}">
			<scroll-list-card-mes  v-for="(item,index) in list" :key="item.noticeId"
				:data="item"></scroll-list-card-mes>
		</template>
	</custom-scroll-list> -->
</template>

<script setup>
	import {getNoticeList} from '@/api/my.js'
	import {onLoad,onReady,} from "@dcloudio/uni-app"
	import {reactive,ref} from "vue";
	let pageFrom = ref('');
	onLoad((options) => {
		pageFrom.value = options.from;
		console.log('pageFrom.value', pageFrom.value);
		
	
	});
	function onBackPress() { 
		switch (pageFrom.value) {
			case 'my':
			    uni.redirectTo({
			       url: '/pages/my/index' 
			     });
			    break;
			case 'index':
			    uni.redirectTo({
			       url: '/pages/index/index' 
			     });
			    break;	
			case 'indexPeixun':
			    uni.redirectTo({
			       url: '/pages/index/index' 
			     });
			    break;
		}
	   
	  }
</script>