<template>
	<view class="mine-container">
		<!-- 面包屑 -->
		<custom-breadcrumb separator=">">
			<custom-breadcrumb-item v-for="(route,index) in routes" :key="index" :to="route.to" :switch="true">
				{{route.name}}
			</custom-breadcrumb-item>
		</custom-breadcrumb>
		<!-- 面包屑 -->


		<view class="content">

		</view>
	</view>
</template>

<script>
	import storage from '@/utils/storage'
	export default {
		data() {
			return {
				showPop: false,
				name: this.$store.state.user.name,
				routes: [{
					to: "/pages/phone/index",
					name: "课件管理",
				}, {
					to: "/pages/phone/detail/index",
					name: "",
				}, {
					to: "/pages/phone/detail/file",
					name: "",
				}, ],
				messageList: ["", ""],
				fileUrl: '', // 文件路径
				fileName: ''
			}
		},
		onLoad(options) {
			if(options.url){
				this.fileUrl = options.url
			}
			if(options.caseName){
				this.fileName = options.caseName
				this.routes[1].name = options.caseName
			}
			if(options.name){
				this.fileName = options.name
				this.routes[2].name = options.name
			}
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	page {
		background-color: #F7F8FA;
	}

	.mine-container {
		width: 100%;
		height: 100%;

		.content {
			width: 100%;
			height: calc(100% - 88rpx);
			box-sizing: border-box;
			padding: 40rpx 0;
			overflow: hidden;
		}
	}
</style>
