5 changed files with 123 additions and 37 deletions
@ -0,0 +1,44 @@ |
|||
// axios
|
|||
import request from '@/utils/request' |
|||
|
|||
//服务找人详情
|
|||
export function icServiceRecordV2(data) { |
|||
return request({ |
|||
url: `/governance/icServiceRecordV2/detail`, |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
//温暖找人详情
|
|||
export function icServiceWarmRecord(data) { |
|||
return request({ |
|||
url: `/governance/icServiceWarmRecord/detail`, |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
//技能找人详情
|
|||
export function icServiceSkillRecord(data) { |
|||
return request({ |
|||
url: `/governance/icServiceSkillRecord/detail`, |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
//岗位招人详情
|
|||
export function icServicePostRecord(data) { |
|||
return request({ |
|||
url: `/governance/icServicePostRecord/detail`, |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
//扫描二维码获取房屋信息
|
|||
export function policyDetail(id) { |
|||
return request({ |
|||
url: `/governance/policy/policyDetail/${id}`, |
|||
method: 'get', |
|||
}) |
|||
} |
|||
|
|||
|
@ -1,64 +1,114 @@ |
|||
<template> |
|||
<div> |
|||
<div class="container" :style="this.phone=='Phone'?'':'height: 85vh; overflow: auto;'"> |
|||
<div class="container" :style="this.phone == 'Phone' ? '' : 'height: 85vh; overflow: auto;'"> |
|||
<div class="card"> |
|||
<div class="font-size21 font-bold">{{ info.title }}</div> |
|||
<div class="flex flex-x flex-center2 m-top10 m-bottom10"> |
|||
<van-tag :color="info.expiredFlag?'#EBF1FE':'#F5F5F5'" :text-color="info.expiredFlag?'#3974F6':'#AAAAAA'" size="large">{{ |
|||
info.expiredFlag ? "进行中" : "已结束" }}</van-tag> |
|||
<van-tag :color="info.expiredFlag ? '#EBF1FE' : '#F5F5F5'" |
|||
:text-color="info.expiredFlag ? '#3974F6' : '#AAAAAA'" size="large">{{ |
|||
info.expiredFlag ? "进行中" : "已结束" }}</van-tag> |
|||
<div class="font-size13 C1 m-left12">{{ info.data }}</div> |
|||
|
|||
</div> |
|||
<div class="y66666 font-size15 m-bottom5">享受服务条件:{{ info.resiSearchTagName }}</div> |
|||
<div class="y66666 font-size15 m-bottom5">服务提供方:{{ info.assignText|| '--' }}</div> |
|||
<div class="y66666 font-size15 m-bottom5">服务提供方:{{ info.assignText || '--' }}</div> |
|||
<div class="flex flex-x "> |
|||
<div class="y66666 font-size15 nowrap">服务时间:{{ info.assignInfo.serviceTimeStart }} 至</br>{{ info.assignInfo.serviceTimeEnd }} </div> |
|||
<div class="y66666 font-size15">{{ info.serviceData }} </div> |
|||
<div class="y66666 font-size15 nowrap">服务时间:{{ info.assignInfo.serviceTimeStart }} 至</br>{{ |
|||
info.assignInfo.serviceTimeEnd }} </div> |
|||
<div class="y66666 font-size15">{{ info.serviceData }} </div> |
|||
</div> |
|||
<van-divider /> |
|||
<div v-html="info.content"></div> |
|||
<div v-html="info.content"></div> |
|||
</div> |
|||
</div> |
|||
<Android @send-number="handleNumber"/> |
|||
<Android @send-number="handleNumber" /> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import { icServiceWarmRecord } from '@/api/user' |
|||
import { icServicePostRecord, icServiceSkillRecord, icServiceWarmRecord, icServiceRecordV2 } from '@/api/service' |
|||
|
|||
export default { |
|||
data() { |
|||
return { |
|||
info: { |
|||
title: '鞠源社区为退役待就业的军人提供 就业岗位', |
|||
content: '<p>县级以上地方人民政府退役士兵安置工作主管部门组织自主就业的退役士兵参加职业教育</p><p>县级以上地方人民政府退役士兵安置工作主管部门组织自主就业的退役士兵参加职业教育</p>', data: '2024-05-08 09:30' |
|||
, status: 1, condition: '退役军人 40-60岁', provider: 'XXX就业指导中心', serviceData: "2024-05-08 13:00至2024-6-22 13:00" |
|||
title: '', |
|||
content: '', |
|||
data: '', |
|||
condition: '', |
|||
provider: '', |
|||
expiredFlag: false, |
|||
serviceData: "" |
|||
}, |
|||
phone:"" |
|||
phone: "" |
|||
} |
|||
}, |
|||
components:{Android}, |
|||
components: {}, |
|||
created() { |
|||
}, |
|||
mounted(){ |
|||
if(this.$route.query){ |
|||
this.icServiceWarmRecord(this.$route.query.id) |
|||
mounted() { |
|||
if (this.$route.query) { |
|||
let type = this.$route.query.type; |
|||
let id = this.$route.query.id; |
|||
if (type === 'fw') { |
|||
this.icServiceRecordV2({ serviceRecordId: id }) |
|||
} else if (type === 'wn') { |
|||
this.icServiceWarmRecord({ serviceRecordId: id }) |
|||
} else if (type === 'jn') { |
|||
this.icServiceSkillRecord({ serviceRecordId: id }) |
|||
} else if (type === 'gw') { |
|||
this.icServicePostRecord({ serviceRecordId: id }) |
|||
}else if (type === 'zc') { |
|||
this.policyDetail(id) |
|||
} |
|||
} |
|||
}, |
|||
methods: { |
|||
handleNumber(value){ |
|||
console.log(value,"wl kgnsl, "); |
|||
this.phone=value |
|||
async policyDetail(id) { |
|||
let res = await policyDetail(id) |
|||
if (res.code === 0) { |
|||
this.info = res.data; |
|||
if (res.data.assignFlag === 1) { |
|||
this.info.assignText = res.data.assignInfo.serviceScopeList.map(item => item.objectName).join(',') |
|||
} |
|||
} |
|||
}, |
|||
async icServiceWarmRecord(id){ |
|||
async icServiceRecordV2(id) { |
|||
let res = await icServiceRecordV2(id) |
|||
if (res.code === 0) { |
|||
this.info = res.data; |
|||
if (res.data.assignFlag === 1) { |
|||
this.info.assignText = res.data.assignInfo.serviceScopeList.map(item => item.objectName).join(',') |
|||
} |
|||
} |
|||
}, |
|||
async icServiceWarmRecord(id) { |
|||
let res = await icServiceWarmRecord(id) |
|||
if(res.code === 0){ |
|||
if (res.code === 0) { |
|||
this.info = res.data; |
|||
if(res.data.assignFlag === 1){ |
|||
this.info.assignText = res.data.assignInfo.serviceScopeList.map(item=>item.objectName).join(',') |
|||
if (res.data.assignFlag === 1) { |
|||
this.info.assignText = res.data.assignInfo.serviceScopeList.map(item => item.objectName).join(',') |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
async icServiceSkillRecord(id) { |
|||
let res = await icServiceSkillRecord(id) |
|||
if (res.code === 0) { |
|||
this.info = res.data; |
|||
if (res.data.assignFlag === 1) { |
|||
this.info.assignText = res.data.assignInfo.serviceScopeList.map(item => item.objectName).join(',') |
|||
} |
|||
} |
|||
}, |
|||
async icServicePostRecord(id) { |
|||
let res = await icServicePostRecord(id) |
|||
if (res.code === 0) { |
|||
this.info = res.data; |
|||
if (res.data.assignFlag === 1) { |
|||
this.info.assignText = res.data.assignInfo.serviceScopeList.map(item => item.objectName).join(',') |
|||
} |
|||
} |
|||
}, |
|||
}, |
|||
} |
|||
</script> |
|||
|
Loading…
Reference in new issue