<template>
	<view class="main">
		<!--搜索-->
		<view class="search">
			<u-search placeholder="企业名称" bgColor="white" :showAction="false"></u-search>
		</view>
		<!--找工作-->
		<view class="tab">
			<u-tabs :list="tab" :current="current"></u-tabs>
		</view>
		<view class="jobs">
			<view class="part_time" v-for="(item, index) in jobs" :key="index" @click="detail()">
				<view class="title omit">兼职{{ item.job }}</view>
				<view class="price">{{ item.price }}元/天</view>
				<text class="date">4.16-4.17</text>
				<view class="address">
					<text @click.stop="company()">{{ item.name }}</text>
					<text class="add">申请</text>
				</view>
			</view>
		</view>
	</view>
</template>
<script>
export default {
	data() {
		return {
			ip: this.http.ip,
			current: 0,
			tab: [{ name: '全部兼职' }, { name: '简单易做' }, { name: '体力达人' }, { name: '特色职位' }],
			jobs: [
				{
					name: '广西龙坚贸易有限公司',
					job: '装卸搬运工',
					price: '100',
					url: 'https://chenglantimes.com/prod-api/profile/upload/2024/04/29/1714401904451.jpg'
				},
				{
					name: '韵达速递',
					job: '快递装卸工',
					price: '100',
					url: 'https://chenglantimes.com/prod-api/profile/upload/2024/04/29/1714401871968.jpg'
				},
				{
					name: '北京滴滴有限公司',
					job: '滴滴快车专车司机',
					price: '100',
					url: 'https://chenglantimes.com/prod-api/profile/upload/2024/04/29/1714401886712.jpg'
				},
				{
					name: '北京美团外卖有限公司',
					job: '美团骑手送餐员',
					price: '50',
					url: 'https://chenglantimes.com/prod-api/profile/upload/2024/04/29/1714401895824.jpg'
				},
				{
					name: '字节跳动有限公司',
					job: '兼职女主播',
					price: '500',
					url: 'https://chenglantimes.com/prod-api/profile/upload/2024/04/29/1714402008141.jpg'
				},
				{
					name: '广西龙坚贸易有限公司',
					job: '装卸搬运工',
					price: '400',
					url: 'https://chenglantimes.com/prod-api/profile/upload/2024/04/29/1714402008141.jpg'
				}
			]
		};
	},
	onShow() {},
	onLoad() {},
	methods: {
		detail() {
			uni.navigateTo({
				url: '/pages/clsd/job/detail'
			})
		},
		go(url) {
			if (this.hasLogin()) {
			} else {
				uni.navigateTo({ url: '/pages/user/login' });
			}
		}
	}
};
</script>

<style lang="scss">
.jobs {
	margin-top: 0px;
}
</style>
