<template>
	<view class="p-root-record-detail g_bg_f_5" style="min-height: 100vh;">
		<view v-if="speed == -1">
			<g-loading />
		</view>
		<view v-if="speed == 0" style="padding-top: 260rpx;">
			<g-empty />
		</view>
		<view class="" v-if="speed > 0">
			<view class="g_h_12"></view>
			<!-- 报名人信息 -->
			<view class="m-info g_bg_f g_p_12">
				<!-- <view class="g_flex_row_between g_mb_12">
					<view class="g_flex_none g_fs_16 g_c_6">报名人</view>
					<view class="g_flex_1 g_ell_1 g_ml_6 g_fs_16 g_c_6 g_text_r">{{detail.userName}}</view>
				</view> -->
				<view class="g_flex_row_between g_mb_12">
					<view class="g_flex_none g_fs_16 g_c_6">报名时间</view>
					<view class="g_flex_1 g_ell_1 g_ml_6 g_fs_16 g_c_6 g_text_r">{{detail.create_time ? detail.create_time : '-'}}</view>
				</view>
				<view class="g_flex_row_between">
					<view class="g_flex_none g_fs_16 g_c_6">面试时间</view>
					<view class="g_flex_1 g_ell_1 g_ml_6 g_fs_16 g_c_6 g_text_r">{{detail.interview_time ? detail.interview_time : '-'}}</view>
				</view>
			</view>
			<view class="g_h_12"></view>
			<!-- 老乡信息 -->
			<view class="m-people g_bg_f g_pl_12 g_pr_12 g_pt_16 g_pb_16">
				<view class="m-userinfo g_fs_16 g_c_3 g_fw_600 g_mb_8">{{detail.userName}}{{detail.userinfo}}</view>
				<view class="m-address g_fs_16 g_c_6 g_mb_8 g_ell_1">{{detail.address ? detail.address : '-'}}</view>
				<view class="m-idcard g_fs_16 g_c_6 g_flex_row_start">
					<view class="g_flex_row_start g_mr_14">
						<view class="g_flex_c" style="width: 28px;height: 28px;background-color: #eafff8;border-radius: 50%;">
							<i class="iconfont icon-shenfenzheng1 icon" style="font-size: 18px;color: #3578f6;"></i>
						</view>
						<view class="g_flex_column_center g_fs_16 g_ml_4" style="color: #576B95;">{{detail.idCard ? detail.idCard : '-'}}</view>
					</view>
					<view class="g_flex_row_start">
						<view class="g_flex_c" style="width: 28px;height: 28px;background-color: #eafff8;border-radius: 50%;">
							<i class="iconfont icon-dianhua1 icon" style="font-size: 17px;color: #3578f6;"></i>
						</view>
						<view class="g_flex_column_center g_fs_16 g_ml_4" style="color: #576B95;">{{detail.tel ? detail.tel : '-'}}</view>
					</view>
				</view>
				<view class="m-image g_mt_8" v-if="detail.idCardImageUrl">
					<image :src="detail.idCardImageUrl" mode="widthFix" style="width: 76px;"></image>
				</view>
			</view>
			<view class="g_h_12"></view>
			<!-- 职位相关 -->
			<view class="m-job g_bg_f g_p_12">
				<view class="g_flex_row_between g_mb_12">
					<view class="g_flex_none g_fs_16 g_c_6">报名岗位</view>
					<view class="g_flex_1 g_ell_1 g_ml_6 g_fs_16 g_c_3 g_text_r g_fw_600">{{detail.storeJobName ? detail.storeJobName : '-'}}</view>
				</view>
				<view class="g_flex_row_between g_mb_12">
					<view class="g_flex_none g_fs_16 g_c_6">报名企业</view>
					<view class="g_flex_1 g_ell_1 g_ml_6 g_fs_16 g_c_3 g_text_r">{{detail.storeName ? detail.storeName : '-'}}</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return {
				speed:-1,
				detail:{},
				clueId:0,
			}
		},
		onLoad(e) {
			let that = this;
			this.clueId = e.id;
		},
		onShow() {
			this.getDetail();
		},
		onShareAppMessage() {
			return this.G.shareFun();
		},
		methods:{
			getDetail(){
				let that = this;
				that.G.Get(that.api.yi_my_apply_detail,{
					orderId:that.clueId,
				},(res)=>{
					console.log('res',res)
					res.applyOrder.create_time = that.G.getPointTime(res.applyOrder.createTime,'default')
					res.applyOrder.interview_time = that.G.getPointTime(res.applyOrder.interviewTime,'default')
					res.applyOrder.userinfo = that.G.titleToStr(res.applyOrder);
					that.detail = res.applyOrder;
					that.speed = 1;
				}),()=>{
					that.speed = 0;
				};
			},
		}
	}
</script>

<style>
</style>