<template>
	<view >
		<view class="se-m-20 se-br-20 se-bs-b se-bgc-white se-py-20 se-px-30" v-for="(items,indexs) in rolelist" :key="indexs">
			<view class="se-flex se-flex-h-sb"  @click.capture="onMasterDetail(items)">
				<view class="se-flex">
					<view class="se-a-80">
						<image class="se-a-80 se-br-p-50 se-bgc-f5" :src="items.employResume.headImage" mode=""></image>
					</view>
					<view class="se-ml-20 se-flex se-flex-v-c se-flex-ai-fs">
						<text class="se-fw-6 se-c-black se-fs-30">{{items.employResume.name?items.employResume.name:items.hanHaiMember.nickName}}</text>
						<text class="se-fs-24 se-c-text-third">{{items.employResume.sex==1?"男":"女"}}-{{items.employResume.nation?items.employResume.nation:"未知"}}族-{{items.employResume.age}}岁</text>
					
					</view>
					<view class="se-flex se-flex-h-c">
						<view class="se-py-10 se-px-20 se-br-12 se-fs-22 se-c-orange se-bgc-ffd se-ml-20 se-fw-6 se-toe-1" style="max-width: 100rpx;">
							{{items.categoryOne_dictText}}
						</view>
					</view>
				</view>
				<view class="se-c-orange se-fs-32 se-fw-6">
					{{items.salaryMin}}-{{items.salaryMax}}元
				</view>
			</view>
			<view>
				<text class="se-c-text-third se-fs-22 se-mt-10">{{items.createTime}}</text>
			</view>
			<view class="se-flex se-flex-h-sb">
				<text class="se-c-text-sub se-fs-24 se-toe-5" style="max-width: 100rpx;width: 100rpx;">
					{{items.categoryTwo_dictText}}
				</text>
				<text class="se-c-text-sub se-fs-24 se-toe-5" style="max-width: 350rpx;width: 350rpx;">
					{{items.address}}
				</text>
				<view @click.capture="onCustomerService(items.employAuthenticationPerson.phone)" class="se-flex se-flex-h-c se-py-10 se-px-20 se-br-12 se-fs-22 se-c-orange se-bgc-ffd se-fw-6">
					<u-icon  color="#FF7A31" name="phone-fill"></u-icon>
					<text class="se-ml-5">联系他</text>
				</view>
			</view>
		</view>
		<u-empty v-if="rolelist && rolelist.length==0" mode="list"></u-empty>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				rolelist:[
					{
					    "id": "1895048259143999489",
					    "createBy": null,
					    "createTime": "2025-02-27 17:48:08",
					    "updateBy": null,
					    "updateTime": null,
					    "address": "湖南省长沙市开福区星光路",
					    "dayMoney": "300",
					    "categoryOne": "1894724595991216130",
					    "categoryTwo": "1894727062602678273",
					    "latitude": "28.236662",
					    "longitude": "113.05469",
					    "salaryMax": "9000",
					    "salaryMin": "5000",
					    "payType": "1",
					    "workDetail": "吃吃喝喝玩玩",
					    "userId": "1894327881803268098",
					    "resumeId": "1895048118693535746",
					    "selectGo": null,
					    "hanHaiMember": {
					        "id": "1894327881803268098",
					        "createBy": null,
					        "createTime": 1740412800000,
					        "updateBy": null,
					        "updateTime": 1740412800000,
					        "sysOrgCode": null,
					        "nickName": "A 江华  瑶都万能墙",
					        "headImage": "https://tennis-oss.xzaiyp.top/2025-02-25/dddd4d1c-86b1-4ad2-8533-9a6cf0eb3bd0.jpeg",
					        "name": null,
					        "phone": "19198239116",
					        "account": null,
					        "password": null,
					        "passwordSalt": null,
					        "shopName": null,
					        "role": null,
					        "cardId": null,
					        "frozenFlag": null,
					        "deleteFlag": "0",
					        "token": null,
					        "officialOpenid": null,
					        "appletOpenid": "opwCj7cnNjn3dbz5hijvvUjj5RRw",
					        "appOpenid": null,
					        "wxUnionid": null,
					        "officialAppid": null,
					        "idCard": null,
					        "idCardPassword": null,
					        "idCardSalt": null,
					        "idCardOpen": null,
					        "intentionNum": null,
					        "successNum": null,
					        "addNum": null,
					        "shareId": null,
					        "vid": null,
					        "vtime": null,
					        "isPay": null,
					        "follow": null,
					        "payRole": null,
					        "price": 0,
					        "integerPrice": null,
					        "appletAppid": null,
					        "sex": null,
					        "isDai": null
					    },
					    "employResume": {
					        "id": "1895048118693535746",
					        "createBy": null,
					        "createTime": 1740649654000,
					        "updateBy": "admin",
					        "updateTime": 1741768928000,
					        "name": "盘师傅",
					        "sex": "2",
					        "age": 20,
					        "categoryOne": "1894724595991216130",
					        "categoryTwo": "",
					        "headImage": "https://tennis-oss.xzaiyp.top/2025-02-27/014dad3f-c938-4043-9a68-e7dd453f2b24.jpg",
					        "salaryMin": 5000,
					        "salaryMax": 9000,
					        "phone": "19974688875",
					        "payType": "0",
					        "commuteType": null,
					        "address": "湖南长沙",
					        "title": null,
					        "nation": "苗",
					        "brief": "一个实力与美貌并存的完美女人",
					        "userId": "1894327881803268098",
					        "categoryOneName": null,
					        "categoryTwoName": null
					    },
					    "categoryOne_dictText": "餐饮",
					    "categoryTwo_dictText": "哈哈吃吃吃",
					    "payType_dictText": "支付宝支付",
					    "userId_dictText": "A 江华  瑶都万能墙",
					    "resumeId_dictText": "盘师傅"
					}
				]
			}
		},
		methods:{
			onMasterDetail(event){
				console.info("event",event)
				uni.navigateTo({
					url:"/pages_subpack/master-detail/index?id="+event.id
				})
			}
		}
	}
</script>

<style>
</style>