<template>
	<view>
		<view class="g_border_e_t g_flex_row_between">
			<view class="g_flex_row_start g_flex_1 g_pl_16 g_pt_9 g_pb_9" @click="handleBotom(item)" hover-class="thover" hover-stop-propagation>
				<view class="g_mr_4 g_flex_none g_flex_column_center">
					<!-- #ifdef H5 || MP-WEIXIN || MP-TOUTIAO || APP-PLUS -->
					<u-avatar :src="item.logo" mode="circle"
						size="48" style="width: 24px; height: 24px" 
						v-if="item.logo"
					></u-avatar>
					<!-- #endif -->
					<!-- #ifdef MP-KUAISHOU -->
					<image :src="item.logo" style="width: 24px; height: 24px;border-radius: 50%;" 
						v-if="item.logo"></image>
					<!-- #endif -->
					<g-panel-image v-if="!item.logo" />
				</view>
				<view class="g_flex_column_center g_c_b1 g_fs_14 g_flex_1">
          <!-- {{item.active}}
          {{item.teamType}} -->
					<!-- <view class="g_ell_1" v-if="item.teamType == 1">{{ item.boss }}</view> -->
					<view class="g_ell_1" >
						<view class="g_flex_row_start">
							<view class="g_fs_14 g_c_3 aa">
								{{ (item.boss && item.boss != 'undefined') || '' }}
							</view>
						</view>
					</view>
					<!-- <view class="g_ell_1" v-if="item.teamType == 2 && item.active == 2">
						<view class="g_flex_row_start">
							<view class="g_fs_14 g_c_3">
								{{ item.creatorName }}
							</view>
							<view class="g_flex_column_center g_ml_4">
								<text class="g_fs_12 g_c_main g_flex_column_center">@{{ item.boss }}</text>
							</view>
						</view>
					</view> -->
				</view>
			</view>
			<view class="g_flex_column_center g_c_b1 g_fs_14 g_flex_none g_pl_20 g_pr_16 g_pt_9 g_pb_9" @click.stop="handleOpenStatus(item)" hover-class="thover" hover-stop-propagation>
				<view class="g_flex_row_end">
					<view class="g_flex_column_center">
						{{ item.time }}
					</view>
					<view class="g_flex_column_center g_pl_10" v-if="(recordStatus == 1 || recordStatus == 2) && from != 'record'">
						<i class="iconfont icon-gengduo2 icon g_c_b1" style="font-size: 24rpx"></i>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
/* 职位列表 - 信息面板
 * @params item 对象
 * @function handleBotom 点击事件
 */
export default {
	data() {
		return {
		};
	},
	props: {
		item: {
			type: Object,
			dafault: () => {
				return {};
			},
		},
		recordStatus: {
			default: () => {
				return 1;
			},
		},
		from: {
			type: String,
			default: () => {
				return "";
			},
		},
	},
	methods: {
		handleBotom($item) {
			this.$emit("clickBottom", $item);
		},
		handleOpenStatus($item) {
			if ((this.recordStatus == 1 || this.recordStatus == 2) && this.from != "record") {
				this.$emit("clickMore", $item);
			}
		},
	},
};
</script>

<style></style>
