<template>
	<!-- 我发布的招工 -->
	<view class="page">
		
		<navbar title="我的找活" 
		bgColor="#3796F8" 
		leftClick 
		color="#fff"
		@leftClick="$utils.navigateBack"/>
		
		<statisticsNumber/>
		
		<workListSwipe 
		:options="options" 
		@clickSwipeAction="clickSwipeAction"
		:list="10"/>
	</view>
</template>

<script>
	import workListSwipe from '@/components/list/workList/workListSwipe.vue'
	import statisticsNumber from '../components/statistics/statisticsNumber.vue'
	import mixinList from '@/mixins/list.js'
	export default {
		mixins : [mixinList],
		components : {
			workListSwipe,
			statisticsNumber
		},
		data() {
			return {
				options: [
					{
						text: '修改',
						style: {
							backgroundColor: '#ffa12c'
						}
					}, 
					{
						text: '删除',
						style: {
							backgroundColor: '#FA5A0A'
						}
					}, 
				],
			}
		},
		methods: {
			clickSwipeAction({e, item}){
				console.log(e, item);
			},
		}
	}
</script>

<style scoped lang="scss">
.page{
	/deep/ .uv-swipe-action{
		width: 100%;
	}
}
</style>
