|
@@ -11,10 +11,10 @@
|
|
|
<view class="jobdetails-head-cardhead">
|
|
|
<view class="content">
|
|
|
<view class="left">
|
|
|
- <view>保安员</view>
|
|
|
- <view>经验1-3年 / 大专</view>
|
|
|
+ <view>{{ recruitmentData.postName }}</view>
|
|
|
+ <view>经验{{ recruitmentData.workYear }}年 / {{ recruitmentData.educationBg }}</view>
|
|
|
</view>
|
|
|
- <view class="right">4.0k-8.0k</view>
|
|
|
+ <view class="right">{{ recruitmentData.salary }}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -22,11 +22,11 @@
|
|
|
<view class="jobdetails-head-cardbody">
|
|
|
<view class="container" @tap="tapHeadCardBody(recruitmentData)">
|
|
|
<view class="container-image">
|
|
|
- <image :src="recruitmentData.img" mode="aspectFill" class="image"></image>
|
|
|
+ <image :src="recruitmentData.companyLogoUrl" mode="aspectFill" class="image"></image>
|
|
|
</view>
|
|
|
<view class="content">
|
|
|
<view class="content-left">
|
|
|
- <view >顺丰速运有限公司贵州分公司</view>
|
|
|
+ <view >{{ recruitmentData.companyName }}</view>
|
|
|
<view >快递和运输 · 199-499人</view>
|
|
|
</view>
|
|
|
<view class="content-right">
|
|
@@ -40,7 +40,7 @@
|
|
|
<view class="jobdetails-head-cardfoot">
|
|
|
<view class="content">
|
|
|
<view class="content-left">
|
|
|
- <view >贵州省乌当区顺海中路88号(保利国际温泉酒店)</view>
|
|
|
+ <view >{{ recruitmentData.companyAddress }})</view>
|
|
|
</view>
|
|
|
<view class="content-right" @tap="tapHeadCardFoot(recruitmentData)">
|
|
|
<u-icon name="map-fill" color="#028DFE" size="30" class="content-right-icon"></u-icon>
|
|
@@ -59,12 +59,13 @@
|
|
|
<view class="container">
|
|
|
<view class="title">职位描述</view>
|
|
|
<view class="content">
|
|
|
- <u-input :disabled="true" v-model="detailsInfo.jobDesc" type="textarea" class="content-textarea" />
|
|
|
+ <!-- <u-input :disabled="true" v-model="detailsInfo.description" type="textarea" class="content-textarea" /> -->
|
|
|
+ <u-parse :html="recruitmentData.description"></u-parse>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view slot="body">
|
|
|
+ <!-- <view slot="body">
|
|
|
<view class="jobdetails-content-cardbody">
|
|
|
<view class="container">
|
|
|
<view class="title">职位要求</view>
|
|
@@ -73,13 +74,14 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
</u-card>
|
|
|
</view>
|
|
|
|
|
|
- <view class="jobdetails-bottom">
|
|
|
+ <view class="jobdetails-bottom" v-if="!isSubmit">
|
|
|
<u-button type="primary" @click="handleResumeClick">提交简历</u-button>
|
|
|
</view>
|
|
|
+ <u-toast ref="uToast" />
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -91,16 +93,64 @@
|
|
|
detailsInfo: {
|
|
|
jobDesc: `1、规划产品发展方向,制定产品计划和竞争策略;\n2、编写产品需求文档,对产品需求进行评估及确认项目开发周期;\n3、跟踪项目进度,协调各方资源,产品培训和产品演示;\n4、对产品的设计、开发、包装、渠道、定价、上市、维护等过程进行全程监控;\n5、协助营销市场部门,参与各类市场活动等`,
|
|
|
jobRequire: `1. 大专学历,2年以上蓝牙耳机产品经理岗位经验;\n2. 英语听说读写能力强,能熟练用英语与国外客户沟通交流;\n3、熟悉产品设计、研发流程,有完整的项目管理经验;\n4、有创造性、规划产品,有较强的市场敏锐性和超前意识。`
|
|
|
- }
|
|
|
+ },
|
|
|
+ isSubmit: false
|
|
|
};
|
|
|
},
|
|
|
onLoad(param) {
|
|
|
- console.log("jobDetails-onLoad: ",JSON.parse(param.item));
|
|
|
- this.recruitmentData = JSON.parse(param.item);
|
|
|
+ if (param.id) {
|
|
|
+ this.getPostDetails(param.id)
|
|
|
+ this.judgeIsSubmit(param.id)
|
|
|
+ }
|
|
|
+ if (param.isSubmit) {
|
|
|
+ this.isSubmit = param.isSubmit
|
|
|
+ }
|
|
|
},
|
|
|
onShow() {
|
|
|
},
|
|
|
methods: {
|
|
|
+ /**
|
|
|
+ * 通过职位id获取详情
|
|
|
+ * @param { String } id 职位id
|
|
|
+ */
|
|
|
+ getPostDetails(id) {
|
|
|
+ this.$u.api.company.getPostDetails({ id }).then(res => {
|
|
|
+ if (res.code === 200) {
|
|
|
+ this.recruitmentData = res.data
|
|
|
+ } else {
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ title: res.msg,
|
|
|
+ type: 'error'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }).catch(() => {
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ title: '系统异常!',
|
|
|
+ type: 'error'
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ judgeIsSubmit(id) {
|
|
|
+ this.$u.api.company.judgeIsSubmit({ id }).then(res => {
|
|
|
+ if (res.code === 200) {
|
|
|
+ if (res.data === 0) {
|
|
|
+ this.isSubmit = false
|
|
|
+ } else {
|
|
|
+ this.isSubmit = true
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ title: res.msg,
|
|
|
+ type: 'error'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }).catch(() => {
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ title: '系统异常!',
|
|
|
+ type: 'error'
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
/**
|
|
|
* 企业信息事件
|
|
|
*/
|
|
@@ -108,7 +158,7 @@
|
|
|
this.$u.route({
|
|
|
url: 'pages/businessDetails/businessDetails',
|
|
|
params: {
|
|
|
- flag: 'jobdetails'
|
|
|
+ id: param.companyId
|
|
|
}
|
|
|
});
|
|
|
},
|
|
@@ -122,12 +172,26 @@
|
|
|
* 提交简历按钮事件
|
|
|
*/
|
|
|
handleResumeClick(){
|
|
|
- this.$u.route({
|
|
|
- url: 'pages/resumeDeliveryResults/resumeDeliveryResults',
|
|
|
- params: {
|
|
|
- // item: JSON.stringify(param)
|
|
|
- }
|
|
|
- });
|
|
|
+ this.$u.api.company.deliveryResume({ postId: this.recruitmentData.id }).then(res => {
|
|
|
+ if (res.code === 200) {
|
|
|
+ this.$u.route({
|
|
|
+ url: 'pages/resumeDeliveryResults/resumeDeliveryResults',
|
|
|
+ params: {
|
|
|
+ // item: JSON.stringify(param)
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ title: res.msg,
|
|
|
+ type: 'error'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }).catch(() => {
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ title: '系统异常!',
|
|
|
+ type: 'error'
|
|
|
+ })
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
}
|