<template>
	<view>
		<u-sticky bgColor="#fff"><u-tabs :lineWidth="tabLineWidth" :list="tabs" @click="click"></u-tabs></u-sticky>
		<handling v-if="currentTab == 0"></handling>
		<handled v-if="currentTab == 1"></handled>
		<tabbar></tabbar>
	</view>
</template>

<script>
import tabbar from "@/components/tabbar";
import Handled from "./components/handled.vue";
import Handling from "./components/handling.vue";
export default {
	components: {
		tabbar,
		Handled,
		Handling,
	},
	data() {
		return {
			currentTab: 0,
			tabLineWidth: 60,
			tabs: [{ name: "处理中", index: 0 }, { name: "已完结", index: 1 }],
		};
	},
	onLoad(option) {},
	methods: {
		click(e) {
			this.currentTab = e.index;
		},
	},
};
</script>

<style lang="scss"></style>
