123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668 |
- <template>
- <view>
-
- <u-navbar :back-text="showTitle" :share="share" back-icon-size="28" back-icon-color="#ffffff"
- :background="{backgroundColor: '#2795FD',}" :back-text-style="{color: '#ffffff'}"></u-navbar>
- <view class="content">
- <view class="title">
- <span class="titleSpan" v-if="!info.isOnline">
- 已下架
- </span>
- {{info.positionName}}
- </view>
- <view class="saraly">
- {{info.salary}}<text>{{getUnit(info)}}</text>
- </view>
-
- <view class="date-views">
- <view class="date">
- 更新时间:{{info.updateTime?info.updateTime:info.createTime}}
- </view>
- <view class="views">
- 浏览量:{{info.browseNumber}}
- </view>
- </view>
- </view>
- <!-- 岗位详情 -->
- <view class="content">
- <view class="headline">
- 招工要求
- </view>
- <view class="group">
- <view class="item">
- <view class="item-title">
- 招聘人数:
- </view>
- <view class="item-value">
- {{info.recruitingNumbers}}人
- </view>
- </view>
- <view class="item">
- <view class="item-title">
- 结算方式:
- </view>
- <view class="item-value">
- {{info.settlementMethodN}}
- </view>
- </view>
- <view class="item" v-if="info.ageRequirement" >
- <view class="item-title">
- 年龄要求:
- </view>
- <view class="item-value">
- {{info.ageRequirement?info.ageRequirement:'未填写'}}
- </view>
- </view>
- </view>
- <view class="headline">
- 工作详情
- </view>
- <view class="group">
- <view class="item">
- <view class="item-title">
- 工作内容:
- </view>
- <view class="item-value">
- {{info.desc}}
- </view>
- </view>
- </view>
- <view class="headline">
- 联系方式
- </view>
- <view class="group">
- <view class="item">
- <view class="item-title">
- 联系人:
- </view>
- <view class="item-value">
- {{info.contacts}}
- </view>
- </view>
- <view class="item">
- <view class="item-title">
- 手机号:
- </view>
- <view class="item-value" v-if="ck()" >
- {{info.contactsPhone}}
- </view>
- <view class="item-value" style="font-size: 24rpx; color: #777777;" v-else >
- (实名认证后可查看)
- </view>
- </view>
- </view>
- </view>
-
- <!-- 幻灯片 -->
- <view class="swiper2" v-if="false" >
- <img src="https://equipment.xiaoxinda.com/jk-temporary-workers-portal/favicon.ico"><view class="view">想随时随地看急招好岗位?</view><span class="span">点击加入群聊</span>
- </view>
-
- <!-- 幻灯片 -->
- <view class="swiper" v-if="bannerlist.length">
- <u-swiper img-mode="scaleToFill" mode="none" height="100" :list="bannerlist" @click="clickBanner" ></u-swiper>
-
- </view>
- <view class="content">
- <view class="headline">
- 公司信息
- </view>
- <view class="group">
- <view class="item">
- <view class="item-title">
- 公司名称:
- </view>
- <view class="item-value">
- {{enterpriseInfo.name}}
- </view>
- </view>
- <view class="item">
- <view class="item-title">
- 工作地区:
- </view>
- <view class="item-value" >
- {{info.workArea}}
- </view>
-
- </view>
- <view class="item">
- <view class="item-title">
- 详细地址:
- </view>
- <view class="item-value" >
- {{info.address}}
- </view>
-
- </view>
- </view>
- </view>
-
-
- <!-- 底部按钮 -->
- <view class="bottom">
- <!-- 分享 -->
- <view>
- <button class="share" open-type="share">
- <view class="icon">
- <img src="@/assets/img/riFill-share-circle-fill@1x.png" alt="">
- </view>
- <view class="text">
- 分享
- </view>
- </button>
- </view>
- <view class="btn">
- <button class="dialing" @click="showPhoneBtn">拨打电话</button>
- <button class="invite" :class="{
- isJoin:isJoin
- }" @click="isJoinBtn">{{isJoin?'已报名':'我要报名'}}</button>
- </view>
- <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"
- :content-style="{fontSize: '24px',color: '#101010'}"></u-modal>
- </view>
- </view>
- </template>
- <script>
- import * as API from '@/apis/pagejs/packages.js'
- import * as API_weixin from '@/apis/weixin.js'
- export default {
- data() {
- return {
- id: "",
- showPhone: false,
- confirmText: '拨打电话',
- content: "",
- tabList: ['', '日', '周', '月'],
- isJoin: false,
- share: 0,
- isRead:0,
- readId:"",
- enterpriseInfo:{},
- bannerlist: [
- ],
- info: {
- "isOnline":true,
- "id": "",
- "enterpriseId": "",
- "positionName": "",
- "salary": "",
- "settlementMethod": "",
- "industry": "",
- "recruitingNumbers": "",
- "desc": "",
- "contacts": "",
- "contactsPhone": "",
- "workArea": "",
- "address": "",
- "browseNumber": "",
- "status": "0",
- "createBy": "",
- "createTime": "",
- "updateBy": "",
- "updateTime": "",
- "delFlag": false,
- "salaryForm": "",
- "salaryFormN": "",
- "enterpriseName": "",
- "industryN": "",
- "settlementMethodN": "",
- ageRequirement:"",
- },
- }
- },
- onShareTimeline(){
- return {
- title: "荆州经开区共享用工平台",
- }
- },
- onShareAppMessage(res) {
- if (res.from === 'button') { // 来自页面内分享按钮
- //.log(res.target)
- }
- return {
- title: this.showTitle,
- path: '/pages/packages/jobInformation/jobDetails?shareMP=1&id=' + this.id
- }
- },
- computed: {
- showTitle() {
- if (this.info.id) {
- return (this.info.isOnline?'':'已下架-')+this.info.positionName + '-' + this.info.salary + this.getUnit(this.info)
- }
- return ''
- }
- },
- onLoad(op) {
- //uni.showShareMenu()
- this.id = op.id
- if (op.shareMP) {
- this.share = op.shareMP
- }
- if(op.isread){
- this.isRead=op.isread
- this.readId=op.readid
- }
- this.getInfo()
- this.getNewsInfo()
- },
-
- methods: {
- getNewsInfo(){
-
- API_weixin.bannerList({
- classify:2,
-
- }).then((res) => {
- uni.hideLoading();
-
- //this.newsList = res.data.data;
- this.bannerlist =res.data.data.map(item=>{
- item.image=item.picUrl
- return item
- })
-
- }).catch(error => {
- uni.showToast({icon: 'none',
- title: error,
- icon: "none"
- })
- })
- },
- customBack(){
- uni.redirectTo({
- url:"/pages/main/index/index"
- })
- },
- showPhoneBtn(){
- if(this.ck()){
- this.showPhone=true
- }else{
- uni.showToast({
- title:"实名认证后可以拨打电话",
- icon:"none"
- })
- }
- },
- ck(){
- var user = this.carhelp.getPersonInfo();
- if(user&&user.status ==1){
- return true
- }else{
- return false
- }
- },
- confirmPhone() {
- this.showPhone = false;
- uni.makePhoneCall({
- phoneNumber: this.info.contactsPhone
- });
- },
- isJoinBtn() {
- if (this.isJoin) {
- return
- }
- var user = this.carhelp.getPersonInfo();
- if (!user) {
- uni.showModal({
- title: '提示',
- content: '登录并实名认证创建简历后可以报名',
- confirmText: "前往登录",
- showCancel: true,
- success: function(res) {
- if (res.confirm) {
- uni.navigateTo({
- url: '/pages/tab/mine/mine'
- })
- } else if (res.cancel) {
- //.log('用户点击取消');
- }
- }
- });
- return
- }
- if (user.status != 1) {
- uni.showModal({
- title: '提示',
- content: '实名认证并创建简历后可以报名',
- confirmText: "实名认证",
- showCancel: true,
- success: function(res) {
- if (res.confirm) {
- uni.navigateTo({
- url: '/pages/packages/mine/otherServices/authentication'
- })
- } else if (res.cancel) {
- //.log('用户点击取消');
- }
- }
- });
- return
- }
- var jobInformationInfo = this.carhelp.getPersonInfoPlus().jobInformationInfo;
- if (!jobInformationInfo) {
- uni.showModal({
- title: '提示',
- content: '创建简历后可以报名',
- confirmText: "创建简历",
- showCancel: true,
- success: function(res) {
- if (res.confirm) {
- uni.navigateTo({
- url: '/pages/packages/mine/myJobInformation/myJobInformation'
- })
- } else if (res.cancel) {
- //.log('用户点击取消');
- }
- }
- });
- return
- }
- if (jobInformationInfo&&jobInformationInfo.status!=1) {
- uni.showToast({
- title:"简历审核中,请耐心等待",
- icon:"none"
- })
- return
- }
-
- if(user.intention=="2"){
- var _this= this
- uni.showModal({
- title: '提示',
- content: '您当前求职意向为[已入职/勿扰],是否帮您修改为[求职中],并为您报名此岗位?',
- confirmText: "报名",
- showCancel: true,
- success: function(res) {
- if (res.confirm) {
-
- _this.updateintentionBtn()
- } else if (res.cancel) {
- //.log('用户点击取消');
- }
- }
- });
- return
- }
-
-
-
- this.joinRecruitApi()
- },
- joinRecruitApi(){
- 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) {
- //.log('用户点击取消');
- }
- }
- });
- uni.hideLoading();
-
- }).catch(error => {
- uni.showToast({icon: 'none',
- title: error,
- icon: "none"
- })
- })
- },
- updateintentionBtn(){
-
- var intention=1
- uni.showLoading({
- title: "加载中",
- mask: true,
- })
- API.updateIntention({
- intention: intention
- }).then((res) => {
- uni.hideLoading();
-
- this.joinRecruitApi();
-
- }).catch(error => {
- this.showPhone = false;
- uni.hideLoading();
- })
- },
- getInfo() {
- uni.showLoading({
- title: "加载中",
- mask: true,
- })
-
- var obj={
- recruitId: this.id,
- }
- if(this.isRead==1){
- obj.isRead=1
- obj.jerId=this.readId
- }
-
- API.recruitDetail(obj).then((res) => {
- this.isJoin = res.data.isJoin;
- this.info = res.data.recruitInformationInfo;
- this.enterpriseInfo=res.data.enterpriseInfo
- uni.hideLoading();
- }).catch(error => {
- uni.showToast({icon: 'none',
- title: error,
- icon: "none"
- })
- })
- }
- }
- }
- </script>
- <style>
- page {
- background: #F0F0F2;
- padding-bottom: 100px;
- }
- </style>
- <style lang="scss" scoped>
- .swiper{
- margin: 20rpx;
- }
- // 岗位详情
- .content {
- padding: 32rpx;
- background-color: #fff;
- margin-bottom: 24rpx;
- .title {
- color: rgba(16, 16, 16, 1);
- font-size: 52rpx;
- font-family: 'PingFangSC-medium';
- .titleSpan{
- padding:0 12rpx;
- font-size: 42rpx;
- text-align: center;
- border-radius: 4px;
- color: rgba(255, 255, 255, 1);
- background-color: rgba(178, 184, 190, 1);
- }
- }
- .saraly {
- color: rgba(255, 61, 0, 1);
- font-size: 24px;
- margin-top: 16rpx;
- font-weight: bold;
- text {
- font-size: 28rpx
- }
- }
- .address {
- color: rgba(16, 16, 16, 1);
- margin-top: 40rpx;
- }
- .date-views {
- margin-top: 24rpx;
- display: flex;
- justify-content: space-between;
- .date {
- color: rgba(119, 119, 119, 1);
- font-size: 24rpx;
- }
- .views {
- color: rgba(119, 119, 119, 1);
- font-size: 24rpx;
- }
- }
- .headline {
- color: rgba(16, 16, 16, 1);
- font-size: 36rpx;
- }
- .group {
- margin-top: 24rpx;
- margin-bottom: 64rpx;
- .item {
- line-height: 40rpx;
- display: flex;
- margin-bottom: 8rpx;
- .item-title {
- color: rgba(119, 119, 119, 1);
- line-height: 40rpx;
- width: 150rpx;
- }
- .item-value {
- flex: 1;
- margin-left: 8rpx;
- color: #101010;
- }
- }
- }
- }
- // 底部按钮
- .bottom {
- background-color: #fff;
- padding: 24rpx 44rpx;
- display: flex;
- align-items: center;
- position: fixed;
- bottom: 0;
- left: 0;
- right: 0;
- .share {
- background-color: #fff;
- }
- // 分享
- .icon {
- width: 48rpx;
- height: 48rpx;
- img {
- width: 100%;
- height: 100%;
- }
- }
- .text {
- color: rgba(39, 149, 253, 1);
- font-size: 24rpx;
- line-height: 48rpx;
- }
- .btn {
- display: flex;
- margin-left: auto;
- .dialing {
- width: 240rpx;
- height: 88rpx;
- line-height: 88rpx;
- border-radius: 50px;
- background-color: #fff;
- color: rgba(39, 149, 253, 1);
- font-size: 36rpx;
- text-align: center;
- border: 1px solid rgba(39, 149, 253, 1);
- margin-right: 24rpx;
- }
- .invite {
- width: 280rpx;
- height: 88rpx;
- line-height: 88rpx;
- border-radius: 50px;
- background-color: rgba(34, 149, 255, 1);
- color: rgba(255, 255, 255, 1);
- font-size: 36rpx;
- text-align: center;
- }
- .isJoin {
- background-color: #19be6d;
- }
- }
- }
- .swiper2{
- display: flex;
- background-color: #2295ff;
- align-items: center;
- margin: 10px 10px;
- border-radius: 10px;
- .view{
- margin-left: 5px;
- color: #fff;
- font-size: 18px;
- }
- .span{
- margin-left: 5px;
- font-size: 12px;
- background: #fff;
- color: #2295ff;
- padding: 3px;
- border-radius: 4px;
- font-weight: 400;
- }
- }
- </style>
|