|
@@ -5,16 +5,16 @@
|
|
<view class="content">
|
|
<view class="content">
|
|
<!-- 职位 -->
|
|
<!-- 职位 -->
|
|
<view class="position">
|
|
<view class="position">
|
|
- 司机/保安/普工/地推
|
|
|
|
|
|
+ {{info.intendedIndustriesN}}
|
|
</view>
|
|
</view>
|
|
<!-- 薪水 -->
|
|
<!-- 薪水 -->
|
|
<view class="saraly">
|
|
<view class="saraly">
|
|
- 200<text>元/天</text>
|
|
|
|
|
|
+ {{info.hopeSalary}}<text>元/天</text>
|
|
</view>
|
|
</view>
|
|
<!-- 发布日期和浏览量 -->
|
|
<!-- 发布日期和浏览量 -->
|
|
<view class="date-views">
|
|
<view class="date-views">
|
|
<view class="date">
|
|
<view class="date">
|
|
- 更新时间:2023-06-01
|
|
|
|
|
|
+ 更新时间:{{getTime(info)}}
|
|
</view>
|
|
</view>
|
|
<view class="views">
|
|
<view class="views">
|
|
浏览量:1
|
|
浏览量:1
|
|
@@ -32,7 +32,7 @@
|
|
意向岗位:
|
|
意向岗位:
|
|
</view>
|
|
</view>
|
|
<view class="details">
|
|
<view class="details">
|
|
- 会的很多,都可以做
|
|
|
|
|
|
+ {{info.intendedPosition}}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!-- 服务描述 -->
|
|
<!-- 服务描述 -->
|
|
@@ -40,7 +40,7 @@
|
|
服务描述
|
|
服务描述
|
|
</view>
|
|
</view>
|
|
<view class="describe-details">
|
|
<view class="describe-details">
|
|
- 有相关2年工作经验,吃苦耐劳,工作认真仔细。
|
|
|
|
|
|
+ {{info.serviceDesc}}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
@@ -54,16 +54,16 @@
|
|
<view class="details">
|
|
<view class="details">
|
|
<!-- 照片 -->
|
|
<!-- 照片 -->
|
|
<view class="photo">
|
|
<view class="photo">
|
|
- <img src="@/assets/img/informationPhoto.png" alt="">
|
|
|
|
|
|
+ <img :src="personInfo.photo" alt="">
|
|
</view>
|
|
</view>
|
|
<view class="linkman-infos">
|
|
<view class="linkman-infos">
|
|
<!-- 姓名电话 -->
|
|
<!-- 姓名电话 -->
|
|
<view class="name-tel">
|
|
<view class="name-tel">
|
|
<view class="name">
|
|
<view class="name">
|
|
- 李先生
|
|
|
|
|
|
+ {{personInfo.realName}}
|
|
</view>
|
|
</view>
|
|
<view class="tel">
|
|
<view class="tel">
|
|
- 155****1111
|
|
|
|
|
|
+ {{personInfo.phone}}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!-- 标签 -->
|
|
<!-- 标签 -->
|
|
@@ -110,9 +110,32 @@
|
|
>{{isJoin?'已邀请':'立即邀请'}}</button>
|
|
>{{isJoin?'已邀请':'立即邀请'}}</button>
|
|
</view>
|
|
</view>
|
|
<u-modal v-model="showPhone" @confirm="confirmPhone" :confirm-text="confirmText" confirm-color="#606266"
|
|
<u-modal v-model="showPhone" @confirm="confirmPhone" :confirm-text="confirmText" confirm-color="#606266"
|
|
- :show-cancel-button="true" ref="uModal" :asyncClose="true" title="联系电话" :content="info.contactsPhone"
|
|
|
|
|
|
+ :show-cancel-button="true" ref="uModal" :asyncClose="true" title="联系电话" :content="personInfo.phone"
|
|
:content-style="{fontSize: '24px',color: '#101010'}"></u-modal>
|
|
:content-style="{fontSize: '24px',color: '#101010'}"></u-modal>
|
|
-
|
|
|
|
|
|
+ <!-- 筛选框 -->
|
|
|
|
+ <u-popup v-model="popupShow" @open="popupShowOpen" mode="bottom" border-radius="20" :closeable="true">
|
|
|
|
+ <view class="popup-content">
|
|
|
|
+ <view class="headline">
|
|
|
|
+ 选择岗位
|
|
|
|
+ </view>
|
|
|
|
+
|
|
|
|
+ <!-- 工作经验 -->
|
|
|
|
+ <view class="work-experience">
|
|
|
|
+
|
|
|
|
+ <!-- 选项 -->
|
|
|
|
+ <view class="options">
|
|
|
|
+ <view :class="{item,checked:workChecked==index}" v-for="(item,index) in workList" :key="index"
|
|
|
|
+ @click="workChecked=index">
|
|
|
|
+ {{item.positionName}}-{{item.salary}}元/天
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="button">
|
|
|
|
+ <button class="reset" @click="popupShow=false">关闭</button>
|
|
|
|
+ <button class="confirm" @click="isJoinMethodBtn()" >发出邀请</button>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </u-popup>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
@@ -123,12 +146,38 @@
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
id: "",
|
|
id: "",
|
|
|
|
+ workList:[],
|
|
|
|
+ popupShow:false,
|
|
showPhone: false,
|
|
showPhone: false,
|
|
confirmText: '拨打电话',
|
|
confirmText: '拨打电话',
|
|
content: "",
|
|
content: "",
|
|
isJoin: false,
|
|
isJoin: false,
|
|
share: 0,
|
|
share: 0,
|
|
- info: {}
|
|
|
|
|
|
+ personInfo:{},
|
|
|
|
+ workChecked:-1,
|
|
|
|
+ info: {
|
|
|
|
+ "id": "",
|
|
|
|
+ "personId": "",
|
|
|
|
+ "photo": "",
|
|
|
|
+ "serviceDesc": "5",
|
|
|
|
+ "intendedIndustries": "2",
|
|
|
|
+ "intendedPosition": "1",
|
|
|
|
+ "hopeSalary": 2,
|
|
|
|
+ "method": "1",
|
|
|
|
+ "workExperience": "1",
|
|
|
|
+ "education": "2",
|
|
|
|
+ "status": "0",
|
|
|
|
+ "createBy": "",
|
|
|
|
+ "createTime": "",
|
|
|
|
+ "updateBy": "",
|
|
|
|
+ "updateTime": "",
|
|
|
|
+ "delFlag": false,
|
|
|
|
+ "personName": null,
|
|
|
|
+ "intendedIndustriesN": null,
|
|
|
|
+ "methodN": null,
|
|
|
|
+ "workExperienceN": null,
|
|
|
|
+ "educationN": null
|
|
|
|
+ }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onShareAppMessage(res) {
|
|
onShareAppMessage(res) {
|
|
@@ -149,16 +198,97 @@
|
|
this.getInfo()
|
|
this.getInfo()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
-
|
|
|
|
|
|
+ getTime(item){
|
|
|
|
+ var time=item.updateTime?item.updateTime:item.createTime;
|
|
|
|
+ if(time){
|
|
|
|
+ return time.substring(0,10)
|
|
|
|
+ }
|
|
|
|
+ return ''
|
|
|
|
+ },
|
|
|
|
+ confirmPhone() {
|
|
|
|
+ this.showPhone = false;
|
|
|
|
+ uni.makePhoneCall({
|
|
|
|
+ phoneNumber: this.personInfo.phone
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ isJoinMethodBtn() {
|
|
|
|
+ if(this.workChecked==-1){
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title:"请选择邀请岗位"
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ var jobId =this.workList[this.workChecked].id
|
|
|
|
+
|
|
|
|
+ uni.showLoading({
|
|
|
|
+ title: "加载中",
|
|
|
|
+ mask: true,
|
|
|
|
+ })
|
|
|
|
+ API.inviteJob({
|
|
|
|
+ recruitId:jobId,
|
|
|
|
+ jobId: this.id,
|
|
|
|
+ }).then((res) => {
|
|
|
|
+ this.isJoin = true;
|
|
|
|
+ this.popupShow=false
|
|
|
|
+ //this.info=res.data.recruitInformationInfo;
|
|
|
|
+ uni.showModal({
|
|
|
|
+ title: '提示',
|
|
|
|
+ content: '邀请成功',
|
|
|
|
+ showCancel: false,
|
|
|
|
+ success: function(res) {
|
|
|
|
+ if (res.confirm) {
|
|
|
|
+
|
|
|
|
+ //uni.navigateBack()
|
|
|
|
+ } else if (res.cancel) {
|
|
|
|
+ console.log('用户点击取消');
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ uni.hideLoading();
|
|
|
|
+
|
|
|
|
+ }).catch(error => {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: error,
|
|
|
|
+ icon: "none"
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ popupShowOpen(){
|
|
|
|
+ if(this.workList.length==0){
|
|
|
|
+ uni.showLoading({
|
|
|
|
+ title: "加载中",
|
|
|
|
+ mask: true,
|
|
|
|
+ })
|
|
|
|
+ API.myEmployment({
|
|
|
|
+ pageIndex: 1,
|
|
|
|
+ pageSize: 200,
|
|
|
|
+ status: 1
|
|
|
|
+ }).then((res) => {
|
|
|
|
+ uni.hideLoading();
|
|
|
|
+
|
|
|
|
+ this.workList=res.data.data
|
|
|
|
+
|
|
|
|
+ }).catch(error => {
|
|
|
|
+
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: error
|
|
|
|
+ })
|
|
|
|
+ //this.getPhone()
|
|
|
|
+
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ },
|
|
isJoinBtn() {
|
|
isJoinBtn() {
|
|
if (this.isJoin) {
|
|
if (this.isJoin) {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
var user=this.carhelp.getPersonInfo();
|
|
var user=this.carhelp.getPersonInfo();
|
|
|
|
+ var enterpriseInfo=this.carhelp.getPersonInfoPlus().enterpriseInfo;
|
|
|
|
+
|
|
if (!user) {
|
|
if (!user) {
|
|
uni.showModal({
|
|
uni.showModal({
|
|
title: '提示',
|
|
title: '提示',
|
|
- content: '登录并实名认证后可以报名',
|
|
|
|
|
|
+ content: '登录并企业认证后可以邀请',
|
|
confirmText:"前往登录",
|
|
confirmText:"前往登录",
|
|
showCancel: true,
|
|
showCancel: true,
|
|
success: function(res) {
|
|
success: function(res) {
|
|
@@ -174,11 +304,11 @@
|
|
});
|
|
});
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (user.status!=1) {
|
|
|
|
|
|
+ if (!enterpriseInfo||enterpriseInfo.status!=1) {
|
|
uni.showModal({
|
|
uni.showModal({
|
|
title: '提示',
|
|
title: '提示',
|
|
- content: '实名认证后可以报名',
|
|
|
|
- confirmText:"实名认证",
|
|
|
|
|
|
+ content: '企业认证后可以邀请',
|
|
|
|
+ confirmText:"企业认证",
|
|
showCancel: true,
|
|
showCancel: true,
|
|
success: function(res) {
|
|
success: function(res) {
|
|
if (res.confirm) {
|
|
if (res.confirm) {
|
|
@@ -194,36 +324,7 @@
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
- uni.showLoading({
|
|
|
|
- title: "加载中",
|
|
|
|
- mask: true,
|
|
|
|
- })
|
|
|
|
- API.joinRecruit({
|
|
|
|
- recruitId: this.id,
|
|
|
|
- }).then((res) => {
|
|
|
|
- this.isJoin = true;
|
|
|
|
- //this.info=res.data.recruitInformationInfo;
|
|
|
|
- uni.showModal({
|
|
|
|
- title: '提示',
|
|
|
|
- content: '报名成功',
|
|
|
|
- showCancel: false,
|
|
|
|
- success: function(res) {
|
|
|
|
- if (res.confirm) {
|
|
|
|
-
|
|
|
|
- //uni.navigateBack()
|
|
|
|
- } else if (res.cancel) {
|
|
|
|
- console.log('用户点击取消');
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- uni.hideLoading();
|
|
|
|
-
|
|
|
|
- }).catch(error => {
|
|
|
|
- uni.showToast({
|
|
|
|
- title: error,
|
|
|
|
- icon: "none"
|
|
|
|
- })
|
|
|
|
- })
|
|
|
|
|
|
+ this.popupShow=true
|
|
},
|
|
},
|
|
getInfo() {
|
|
getInfo() {
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
@@ -233,9 +334,10 @@
|
|
API.jobHuntDetail({
|
|
API.jobHuntDetail({
|
|
id: this.id,
|
|
id: this.id,
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
- this.isJoin = res.data.isJoin;
|
|
|
|
- this.info = res.data.recruitInformationInfo;
|
|
|
|
-
|
|
|
|
|
|
+ this.isJoin = res.data.isInvite;
|
|
|
|
+ this.info = res.data.jobInformationInfo;
|
|
|
|
+ this.personInfo = res.data.personInfo;
|
|
|
|
+
|
|
uni.hideLoading();
|
|
uni.hideLoading();
|
|
|
|
|
|
}).catch(error => {
|
|
}).catch(error => {
|
|
@@ -438,4 +540,77 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ // 筛选框
|
|
|
|
+ .popup-content {
|
|
|
|
+ padding: 32rpx;
|
|
|
|
+
|
|
|
|
+ .headline {
|
|
|
|
+ color: #101010;
|
|
|
|
+ font-size: 40rpx;
|
|
|
|
+ text-align: center;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ // 薪资待遇
|
|
|
|
+ .salary-package,
|
|
|
|
+ .work-experience {
|
|
|
|
+ margin-top: 16rpx;
|
|
|
|
+
|
|
|
|
+ .title {
|
|
|
|
+ font-size: 32rpx;
|
|
|
|
+ color: #111111;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ // 选项
|
|
|
|
+ .options {
|
|
|
|
+ display: flex;
|
|
|
|
+ flex-wrap: wrap;
|
|
|
|
+ justify-content: flex-start;
|
|
|
|
+ margin-top: 24rpx;
|
|
|
|
+
|
|
|
|
+ .item {
|
|
|
|
+ height: 56rpx;
|
|
|
|
+ line-height: 56rpx;
|
|
|
|
+ min-width: 210rpx;
|
|
|
|
+ text-align: center;
|
|
|
|
+ margin-bottom: 16rpx;
|
|
|
|
+ margin-right: 16rpx;
|
|
|
|
+ color: #999999;
|
|
|
|
+ background-color: #F3F3F4;
|
|
|
|
+ border-radius: 4px;
|
|
|
|
+ padding: 0 6rpx;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .checked {
|
|
|
|
+ background-color: #2795FD;
|
|
|
|
+ color: #fff;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .button {
|
|
|
|
+ display: flex;
|
|
|
|
+
|
|
|
|
+ margin-top: 8rpx;
|
|
|
|
+
|
|
|
|
+ .reset {
|
|
|
|
+ color: #999999;
|
|
|
|
+ background-color: #F3F3F4;
|
|
|
|
+ width: 200rpx;
|
|
|
|
+ height: 72rpx;
|
|
|
|
+ line-height: 72rpx;
|
|
|
|
+ border-radius: 8px;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .confirm {
|
|
|
|
+ width: 440rpx;
|
|
|
|
+ background-color: #2795FD;
|
|
|
|
+ color: #fff;
|
|
|
|
+ height: 72rpx;
|
|
|
|
+ line-height: 72rpx;
|
|
|
|
+ border-radius: 8px;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
</style>
|
|
</style>
|