|
|
|
@ -22,7 +22,7 @@
|
|
|
|
<view class>{{ info.agencyName || info.fullName || "-" }}</view>
|
|
|
|
<view class>{{ info.agencyName || info.fullName || "-" }}</view>
|
|
|
|
<i class="iconfont icon-gengduo11" style="line-height: 22px; font-size: 10px"></i>
|
|
|
|
<i class="iconfont icon-gengduo11" style="line-height: 22px; font-size: 10px"></i>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<div v-if="info.supplierAccount == 1" style>
|
|
|
|
<div style>
|
|
|
|
<div class="g_pt_12" style=" height: 100%">
|
|
|
|
<div class="g_pt_12" style=" height: 100%">
|
|
|
|
<div class="g_flex_row_between">
|
|
|
|
<div class="g_flex_row_between">
|
|
|
|
<div v-for="(item, index) in numSlot" :key="index" class="g_flex_row_center g_position_rela">
|
|
|
|
<div v-for="(item, index) in numSlot" :key="index" class="g_flex_row_center g_position_rela">
|
|
|
|
@ -48,29 +48,29 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- -->
|
|
|
|
<!-- -->
|
|
|
|
<div v-else>
|
|
|
|
<div v-else>
|
|
|
|
<div class="g_flex_row_center" v-if="beFllowAgencyInfo.recordStatus == 1">
|
|
|
|
<div class="g_flex_row_center" v-if="info.recordStatus == 1">
|
|
|
|
<!-- 已关注 1 -->
|
|
|
|
<!-- 已关注 1 -->
|
|
|
|
<!-- class="g_mr_10" -->
|
|
|
|
<!-- class="g_mr_10" -->
|
|
|
|
<div style="width:calc(100vw - 40px);" >
|
|
|
|
<div style="width:calc(100vw - 40px);">
|
|
|
|
<g-button btnText="已关注发单号" size="auto" type="disabled" class></g-button>
|
|
|
|
<g-button btnText="已关注发单号" size="auto" type="disabled" class></g-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- <div style="width:calc((100vw - 50px) / 2);">
|
|
|
|
<!-- <div style="width:calc((100vw - 50px) / 2);">
|
|
|
|
<g-button btnText="联系客服" size="auto" type="disabled" class></g-button>
|
|
|
|
<g-button btnText="联系客服" size="auto" type="disabled" class></g-button>
|
|
|
|
</div> -->
|
|
|
|
</div>-->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div style="width: calc(100vw - 40px)" v-else-if="beFllowAgencyInfo.recordStatus == 2">
|
|
|
|
<div style="width: calc(100vw - 40px)" v-else-if="info.recordStatus == 2">
|
|
|
|
<g-button btnText="互相关注" size="auto" type="disabled" class></g-button>
|
|
|
|
<g-button btnText="互相关注" size="auto" type="disabled" class></g-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div style="width: calc(100vw - 40px)" v-else-if="(beFllowAgencyInfo.recordStatus == 3 || beFllowAgencyInfo.recordStatus == 4) && !isSelf">
|
|
|
|
<div style="width: calc(100vw - 40px)" v-else-if="(info.recordStatus == 3 || info.recordStatus == 4) && !isSelf">
|
|
|
|
<g-button btnText="申请关注" size="auto" type="primary" class @clickBtn="handleSubmit"></g-button>
|
|
|
|
<g-button btnText="申请关注" size="auto" type="primary" class @clickBtn="handleSubmit"></g-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- -->
|
|
|
|
<!-- -->
|
|
|
|
<div style="width: calc(100vw - 40px)" v-else-if="beFllowAgencyInfo.recordStatus == 5">
|
|
|
|
<div style="width: calc(100vw - 40px)" v-else-if="info.recordStatus == 5">
|
|
|
|
<g-button btnText="申请中" icon="icon-time-circle g_mr_4" size="auto" type="disabled" class></g-button>
|
|
|
|
<g-button btnText="申请中" icon="icon-time-circle g_mr_4" size="auto" type="disabled" class></g-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div style="width: calc(100vw - 40px)" v-else-if="beFllowAgencyInfo.recordStatus == 6 && !isSelf">
|
|
|
|
<div style="width: calc(100vw - 40px)" v-else-if="info.recordStatus == 6 && !isSelf">
|
|
|
|
<g-button btnText="申请关注" size="auto" type="primary" class @clickBtn="handleSubmit"></g-button>
|
|
|
|
<g-button btnText="申请关注" size="auto" type="primary" class @clickBtn="handleSubmit"></g-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@ -81,34 +81,19 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 基本信息 -->
|
|
|
|
<!-- 基本信息 -->
|
|
|
|
<div class="g_h_all" v-if="info.supplierAccount == 1">
|
|
|
|
<div class="g_h_all">
|
|
|
|
<div v-if="jobDetailShow || jobDetailShow == 'true'">
|
|
|
|
<div v-if="jobDetailShow || jobDetailShow == 'true'">
|
|
|
|
<!-- 正常职位 -->
|
|
|
|
<!-- 正常职位 -->
|
|
|
|
<div class="m-detail" v-if="(info.recordStatus == 1 || info.recordStatus == 2) && info.himSeeBtn == 1">
|
|
|
|
<div class="m-detail">
|
|
|
|
<div class="g_h_10"></div>
|
|
|
|
<div class="g_h_10"></div>
|
|
|
|
<g-list-job @uploadList="getList" :recordStatus="info.recordStatus" :showShare="false" :list="query.list" :loading="loading" :speed="speed" :query="query" @clickTop="goDetailJob" @clickBottom="goDetailUser" emptyText="暂无职位" emptySubText=" " />
|
|
|
|
<g-list-job :recordStatus="info.recordStatus" :showShare="false" :list="query.list" :loading="loading" :speed="speed" :query="query" emptyText="暂无职位" emptySubText=" " />
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- 未关注 -->
|
|
|
|
|
|
|
|
<div class="m-detail" v-if="(info.recordStatus == 4 || info.recordStatus == 3 || info.recordStatus == 5 || info.recordStatus == 6 || info.recordStatus == 7) && info.himSeeBtn == 1">
|
|
|
|
|
|
|
|
<div class="g_h_10"></div>
|
|
|
|
|
|
|
|
<g-list-job @uploadList="getList" from="user" :isSelf="isSelf" :recordStatus="info.recordStatus" :showShare="false" :list="query.list" :loading="loading" :speed="speed" :query="query" @clickTop="goDetailJob" @clickBottom="goDetailUser" :emptyText="isSelf ? speed + '个职位' : '未关注用户仅展示预览职位'" emptySubText=" " />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div v-if="info.himSeeBtn == 0" style="padding-top: 260rpx">
|
|
|
|
<div v-if="info.himSeeBtn == 0" style="padding-top: 260rpx">
|
|
|
|
<g-empty text="您关注的发单号暂未发布职位" />
|
|
|
|
<g-empty text="您关注的发单号暂未发布职位" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div v-if="info.supplierAccount == 0" style="width: calc(100% - 20px); margin: 0 auto">
|
|
|
|
|
|
|
|
<div class="g_bg_f g_pl_16 g_pr_16 g_radius_8">
|
|
|
|
|
|
|
|
<div class="g_flex_row_between g_h_56">
|
|
|
|
|
|
|
|
<div class="g_flex_column_center g_fs_16 g_c_3">不让他看我的职位</div>
|
|
|
|
|
|
|
|
<div class="g_flex_column_center">
|
|
|
|
|
|
|
|
<u-switch v-model="mLook" activeColor="#00B666" @change="handleSee"></u-switch>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="g_w_260 g_h_42 g_radius_25 g_bg_f g_fs_18 g_flex_c g_mt_90" style="color: #fa5151; margin: 90px auto 0" hover-class="thover" @click="goReturn">删除粉丝</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 发布职位确认框 -->
|
|
|
|
<!-- 发布职位确认框 -->
|
|
|
|
<u-modal v-model="submitConfirm" width="90%" negativeTop="52" confirmText="发布职位" :showTitle="false" :confirmStyle="{ color: '#576b95', 'font-weight': 600 }" :cancelStyle="{ color: '#000', 'font-weight': 600 }" :showConfirmButton="false">
|
|
|
|
<u-modal v-model="submitConfirm" width="90%" negativeTop="52" confirmText="发布职位" :showTitle="false" :confirmStyle="{ color: '#576b95', 'font-weight': 600 }" :cancelStyle="{ color: '#000', 'font-weight': 600 }" :showConfirmButton="false">
|
|
|
|
@ -148,8 +133,6 @@ export default {
|
|
|
|
isLogin: null,
|
|
|
|
isLogin: null,
|
|
|
|
submitConfirm: false,
|
|
|
|
submitConfirm: false,
|
|
|
|
pageSpeed: 0,
|
|
|
|
pageSpeed: 0,
|
|
|
|
isShowMore: true,
|
|
|
|
|
|
|
|
isShowJob: true,
|
|
|
|
|
|
|
|
agencyId: 0,
|
|
|
|
agencyId: 0,
|
|
|
|
loading: true,
|
|
|
|
loading: true,
|
|
|
|
keyword: '', // 搜索内容
|
|
|
|
keyword: '', // 搜索内容
|
|
|
|
@ -188,7 +171,6 @@ export default {
|
|
|
|
num: 250,
|
|
|
|
num: 250,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
mLook: false,
|
|
|
|
|
|
|
|
from: '',
|
|
|
|
from: '',
|
|
|
|
jobDetailShow: true,
|
|
|
|
jobDetailShow: true,
|
|
|
|
loginInfo: {},
|
|
|
|
loginInfo: {},
|
|
|
|
@ -219,7 +201,6 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
disabled: false,
|
|
|
|
disabled: false,
|
|
|
|
inviteUserId: 0,
|
|
|
|
inviteUserId: 0,
|
|
|
|
beFllowAgencyInfo: {},
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onPageScroll(e) {
|
|
|
|
onPageScroll(e) {
|
|
|
|
@ -245,14 +226,12 @@ export default {
|
|
|
|
this.uid = options.id
|
|
|
|
this.uid = options.id
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.type = options.type ? options.type : ''
|
|
|
|
this.type = options.type ? options.type : ''
|
|
|
|
this.isShowMore = options.isShowMore
|
|
|
|
|
|
|
|
this.isShowJob = options.isShowJob
|
|
|
|
|
|
|
|
this.jobDetailShow = options.jobDetailShow || true
|
|
|
|
this.jobDetailShow = options.jobDetailShow || true
|
|
|
|
this.from = options.shareForm
|
|
|
|
this.from = options.shareForm
|
|
|
|
if (options.bindid) {
|
|
|
|
if (options.bindid) {
|
|
|
|
this.bindid = options.bindid
|
|
|
|
this.bindid = options.bindid
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.getDetail()
|
|
|
|
// this.getDetail()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onShow() {
|
|
|
|
onShow() {
|
|
|
|
let that = this
|
|
|
|
let that = this
|
|
|
|
@ -274,16 +253,16 @@ export default {
|
|
|
|
// } else {
|
|
|
|
// } else {
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onReachBottom() {
|
|
|
|
// onReachBottom() {
|
|
|
|
let that = this
|
|
|
|
// let that = this
|
|
|
|
this.G.isLogin()
|
|
|
|
// this.G.isLogin()
|
|
|
|
if (this.G.isLogin()) {
|
|
|
|
// if (this.G.isLogin()) {
|
|
|
|
if (that.query.isFinish == -1 || that.query.isFinish == that.query.size) {
|
|
|
|
// if (that.query.isFinish == -1 || that.query.isFinish == that.query.size) {
|
|
|
|
that.query.page++
|
|
|
|
// that.query.page++
|
|
|
|
that.getList('concat')
|
|
|
|
// that.getList('concat')
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
},
|
|
|
|
// },
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
goHome() {
|
|
|
|
goHome() {
|
|
|
|
uni.switchTab({
|
|
|
|
uni.switchTab({
|
|
|
|
@ -307,6 +286,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getDetail() {
|
|
|
|
getDetail() {
|
|
|
|
let that = this
|
|
|
|
let that = this
|
|
|
|
|
|
|
|
// 123123
|
|
|
|
// this.G.isLogin();
|
|
|
|
// this.G.isLogin();
|
|
|
|
// if (this.G.isLogin()) {
|
|
|
|
// if (this.G.isLogin()) {
|
|
|
|
that.pageSpeed = 0
|
|
|
|
that.pageSpeed = 0
|
|
|
|
@ -329,7 +309,6 @@ export default {
|
|
|
|
that.isShowMore = false
|
|
|
|
that.isShowMore = false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
that.agencyId = res.agencyId
|
|
|
|
that.agencyId = res.agencyId
|
|
|
|
that.mLook = that.info.himSee == 1 ? false : true
|
|
|
|
|
|
|
|
that.numSlot = [
|
|
|
|
that.numSlot = [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
name: '总职位',
|
|
|
|
name: '总职位',
|
|
|
|
@ -355,6 +334,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
goDetailUser() {
|
|
|
|
goDetailUser() {
|
|
|
|
let that = this
|
|
|
|
let that = this
|
|
|
|
|
|
|
|
return false
|
|
|
|
this.G.isLogin()
|
|
|
|
this.G.isLogin()
|
|
|
|
if (this.G.isLogin()) {
|
|
|
|
if (this.G.isLogin()) {
|
|
|
|
if (this.info.recordStatus == 1 || this.info.recordStatus == 2) {
|
|
|
|
if (this.info.recordStatus == 1 || this.info.recordStatus == 2) {
|
|
|
|
@ -379,36 +359,17 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getDefault($type) {
|
|
|
|
setJobList(recordList, $type) {
|
|
|
|
let that = this
|
|
|
|
let that = this
|
|
|
|
console.log('$type', $type)
|
|
|
|
that.query.isFinish = recordList.length
|
|
|
|
this.G.isLogin()
|
|
|
|
recordList = that.G.toGetAddressv3(recordList)
|
|
|
|
if (this.G.isLogin()) {
|
|
|
|
recordList = that.G.toGetAge(recordList)
|
|
|
|
that.G.Post(
|
|
|
|
recordList = that.G.yijobCopy(recordList)
|
|
|
|
that.api.job_list,
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
pageNum: that.query.page,
|
|
|
|
|
|
|
|
pageSize: that.query.size,
|
|
|
|
|
|
|
|
agencyId: that.agencyId,
|
|
|
|
|
|
|
|
keys: that.keyword,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
(res) => {
|
|
|
|
|
|
|
|
console.log('resresresresresres', res)
|
|
|
|
|
|
|
|
if (res.recordCount == 0) {
|
|
|
|
|
|
|
|
that.loading = false
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
that.loading = true
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
that.speed = res.recordCount
|
|
|
|
|
|
|
|
that.query.isFinish = res.recordList.length
|
|
|
|
|
|
|
|
res.recordList = that.G.toGetAddressv3(res.recordList)
|
|
|
|
|
|
|
|
res.recordList = that.G.toGetAge(res.recordList)
|
|
|
|
|
|
|
|
res.recordList = that.G.yijobCopy(res.recordList)
|
|
|
|
|
|
|
|
if ($type == 'init') {
|
|
|
|
if ($type == 'init') {
|
|
|
|
that.query.list = []
|
|
|
|
that.query.list = []
|
|
|
|
that.query.list =
|
|
|
|
that.query.list =
|
|
|
|
res.recordList.length > 0
|
|
|
|
recordList.length > 0
|
|
|
|
? res.recordList.map((item, index) => {
|
|
|
|
? recordList.map((item, index) => {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
...item,
|
|
|
|
...item,
|
|
|
|
title: item.jobName,
|
|
|
|
title: item.jobName,
|
|
|
|
@ -431,8 +392,8 @@ export default {
|
|
|
|
: []
|
|
|
|
: []
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
that.query.list = that.query.list.concat(
|
|
|
|
that.query.list = that.query.list.concat(
|
|
|
|
res.recordList.length > 0
|
|
|
|
recordList.length > 0
|
|
|
|
? res.recordList.map((item, index) => {
|
|
|
|
? recordList.map((item, index) => {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
...item,
|
|
|
|
...item,
|
|
|
|
title: item.jobName,
|
|
|
|
title: item.jobName,
|
|
|
|
@ -454,86 +415,29 @@ export default {
|
|
|
|
: []
|
|
|
|
: []
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
console.log('query.list', that.query.list)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getHot($type) {
|
|
|
|
getDefault($type) {
|
|
|
|
let that = this
|
|
|
|
let that = this
|
|
|
|
|
|
|
|
console.log('$type', $type)
|
|
|
|
this.G.isLogin()
|
|
|
|
this.G.isLogin()
|
|
|
|
if (this.G.isLogin()) {
|
|
|
|
if (this.G.isLogin()) {
|
|
|
|
that.G.Post(
|
|
|
|
that.G.Post(
|
|
|
|
that.api.job_hotList + '/' + that.agencyId,
|
|
|
|
that.api.job_list,
|
|
|
|
{
|
|
|
|
{
|
|
|
|
pageNum: that.query.page,
|
|
|
|
pageNum: that.query.page,
|
|
|
|
pageSize: that.query.size,
|
|
|
|
pageSize: that.query.size,
|
|
|
|
agencyId: that.agencyId,
|
|
|
|
agencyId: that.agencyId,
|
|
|
|
keys: '',
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
(res) => {
|
|
|
|
(res) => {
|
|
|
|
console.log('推荐列表:', res)
|
|
|
|
console.log('resresresresresres', res)
|
|
|
|
if (res.length == 0) {
|
|
|
|
if (res.recordCount == 0) {
|
|
|
|
that.loading = false
|
|
|
|
that.loading = false
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
that.loading = true
|
|
|
|
that.loading = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
that.speed = res.length
|
|
|
|
that.speed = res.recordCount
|
|
|
|
that.query.isFinish = res.length
|
|
|
|
that.setJobList(res.recordList, $type)
|
|
|
|
res = that.G.toGetAddressv3(res)
|
|
|
|
console.log('query.list', that.query.list)
|
|
|
|
res = that.G.toGetAge(res)
|
|
|
|
|
|
|
|
res = that.G.yijobCopy(res)
|
|
|
|
|
|
|
|
if ($type == 'init') {
|
|
|
|
|
|
|
|
that.query.list = []
|
|
|
|
|
|
|
|
that.query.list =
|
|
|
|
|
|
|
|
res.length > 0
|
|
|
|
|
|
|
|
? res.map((item, index) => {
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
|
|
|
...item,
|
|
|
|
|
|
|
|
title: item.jobName,
|
|
|
|
|
|
|
|
address: item.district + item.age,
|
|
|
|
|
|
|
|
price: item.salaryClassify != 7 ? that.G.getSalaryClassifyValue(item.salaryClassify, item.salaryClassifyValue) : that.G.getSalaryClassifyValue(item.salaryClassify, item.minMonthlyPay, item.maxMonthlyPay),
|
|
|
|
|
|
|
|
fuWuFei: that.G.setReturnFee(item.returnFee, item.returnFeeType),
|
|
|
|
|
|
|
|
gender: that.G.getGenderByMinAge(item),
|
|
|
|
|
|
|
|
logo: item.agencyLogo,
|
|
|
|
|
|
|
|
time: that.G.setDeadLine(item.updateTime, 'jiaofu'),
|
|
|
|
|
|
|
|
leafCateId: item.id,
|
|
|
|
|
|
|
|
// serverPrice: that.G.setReturnFee(item.returnFee, item.returnFeeType),
|
|
|
|
|
|
|
|
serverPrice: that.G.setReturnFee(item.agencyReturnFee, item.agencyReturnFeeType),
|
|
|
|
|
|
|
|
agencyId: item.agencyId,
|
|
|
|
|
|
|
|
recruitmentSwitch: item.recruitment == 1 ? true : false,
|
|
|
|
|
|
|
|
recruitmentImage: item.recruitment,
|
|
|
|
|
|
|
|
teamType: item.teamType,
|
|
|
|
|
|
|
|
creatorName: item.creatorName,
|
|
|
|
|
|
|
|
isToday: item.isToday,
|
|
|
|
|
|
|
|
active: 0,
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
: []
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
that.query.list = that.query.list.concat(
|
|
|
|
|
|
|
|
res.length > 0
|
|
|
|
|
|
|
|
? res.map((item, index) => {
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
|
|
|
...item,
|
|
|
|
|
|
|
|
title: item.jobName,
|
|
|
|
|
|
|
|
address: item.district + item.age,
|
|
|
|
|
|
|
|
price: item.salaryClassify != 7 ? that.G.getSalaryClassifyValue(item.salaryClassify, item.salaryClassifyValue) : that.G.getSalaryClassifyValue(item.salaryClassify, item.minMonthlyPay, item.maxMonthlyPay),
|
|
|
|
|
|
|
|
fuWuFei: that.G.setReturnFee(item.returnFee, item.returnFeeType),
|
|
|
|
|
|
|
|
gender: that.G.getGenderByMinAge(item),
|
|
|
|
|
|
|
|
logo: item.agencyLogo,
|
|
|
|
|
|
|
|
time: that.G.setDeadLine(item.updateTime, 'jiaofu'),
|
|
|
|
|
|
|
|
leafCateId: item.id,
|
|
|
|
|
|
|
|
// serverPrice: that.G.setReturnFee(item.returnFee, item.returnFeeType),
|
|
|
|
|
|
|
|
serverPrice: that.G.setReturnFee(item.agencyReturnFee, item.agencyReturnFeeType),
|
|
|
|
|
|
|
|
recruitmentSwitch: item.recruitment == 1 ? true : false,
|
|
|
|
|
|
|
|
recruitmentImage: item.recruitment,
|
|
|
|
|
|
|
|
active: 0,
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
: []
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -546,43 +450,18 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getList($type = 'init') {
|
|
|
|
getList($type = 'init') {
|
|
|
|
let that = this
|
|
|
|
let that = this
|
|
|
|
|
|
|
|
return
|
|
|
|
this.G.isLogin()
|
|
|
|
this.G.isLogin()
|
|
|
|
if (this.G.isLogin()) {
|
|
|
|
if (this.G.isLogin()) {
|
|
|
|
if (this.info.recordStatus == 1 || this.info.recordStatus == 2) {
|
|
|
|
if (this.info.recordStatus == 1 || this.info.recordStatus == 2) {
|
|
|
|
that.getDefault($type)
|
|
|
|
that.getDefault($type)
|
|
|
|
} else {
|
|
|
|
|
|
|
|
that.getHot($type)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
that.getHot($type)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
goMore() {
|
|
|
|
|
|
|
|
let that = this,
|
|
|
|
|
|
|
|
str = ''
|
|
|
|
|
|
|
|
this.G.isLogin()
|
|
|
|
|
|
|
|
if (this.G.isLogin()) {
|
|
|
|
|
|
|
|
if (that.info.supplierAccount == 1) {
|
|
|
|
|
|
|
|
if (that.isShowMore == 'true') {
|
|
|
|
|
|
|
|
if (that.info.recordStatus == 2) {
|
|
|
|
|
|
|
|
str = 3
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
str = that.info.up
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
console.log('that.type', that.type)
|
|
|
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
|
|
|
url: '/root/bind/more?delta=2&id=' + that.agencyId + '&himSee=' + that.info.himSee + '&lookHim=' + that.info.lookHim + '&type=' + str + '&from=' + that.type + '&lid=' + that.info.lookHimOperateId + '&hid=' + that.info.himSeeOperateId,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
goDetailJob($item) {
|
|
|
|
goDetailJob($item) {
|
|
|
|
let that = this
|
|
|
|
let that = this
|
|
|
|
console.log('that.isSelf1', that.isSelf)
|
|
|
|
return false
|
|
|
|
|
|
|
|
|
|
|
|
this.G.isLogin()
|
|
|
|
this.G.isLogin()
|
|
|
|
console.log('that.isSelf2', that.isSelf)
|
|
|
|
|
|
|
|
if (this.G.isLogin()) {
|
|
|
|
if (this.G.isLogin()) {
|
|
|
|
if (that.isSelf) {
|
|
|
|
if (that.isSelf) {
|
|
|
|
uni.navigateTo({
|
|
|
|
uni.navigateTo({
|
|
|
|
@ -673,34 +552,6 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
this.submitConfirm = true
|
|
|
|
this.submitConfirm = true
|
|
|
|
return
|
|
|
|
return
|
|
|
|
uni.showModal({
|
|
|
|
|
|
|
|
title: '关注发单号',
|
|
|
|
|
|
|
|
content: '关注发单号后,您可以查看该账号职位的更新,确定要关注吗?',
|
|
|
|
|
|
|
|
confirmColor: '#576B95',
|
|
|
|
|
|
|
|
success(modalRes) {
|
|
|
|
|
|
|
|
if (modalRes.confirm) {
|
|
|
|
|
|
|
|
that.G.Get(
|
|
|
|
|
|
|
|
that.api.bind_subscribeSubmit + '/' + that.info.agencyId,
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
agencyId: that.agencyId,
|
|
|
|
|
|
|
|
source: _code,
|
|
|
|
|
|
|
|
remark: '',
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
(res) => {
|
|
|
|
|
|
|
|
uni.showToast({
|
|
|
|
|
|
|
|
title: '提交成功',
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
|
|
|
that.getDetail()
|
|
|
|
|
|
|
|
}, 800)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
} else if (modalRes.cancel) {
|
|
|
|
|
|
|
|
console.log('用户点击取消')
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
fail() {},
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
@ -723,73 +574,41 @@ export default {
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
goReturn() {
|
|
|
|
|
|
|
|
let that = this
|
|
|
|
|
|
|
|
this.G.isLogin()
|
|
|
|
|
|
|
|
if (this.G.isLogin()) {
|
|
|
|
|
|
|
|
that.G.handleConfirm({
|
|
|
|
|
|
|
|
content: '确认删除粉丝吗?',
|
|
|
|
|
|
|
|
success: (res) => {
|
|
|
|
|
|
|
|
if (res.confirm) {
|
|
|
|
|
|
|
|
that.G.Get(
|
|
|
|
|
|
|
|
that.api.bind_delApply + '/' + that.agencyId,
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
agencyId: that.agencyId,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
() => {
|
|
|
|
|
|
|
|
uni.showToast({
|
|
|
|
|
|
|
|
icon: 'success',
|
|
|
|
|
|
|
|
title: '删除粉丝成功',
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
|
|
|
uni.navigateBack()
|
|
|
|
|
|
|
|
}, 1500)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
handleCancel() {
|
|
|
|
|
|
|
|
let that = this
|
|
|
|
|
|
|
|
this.G.isLogin()
|
|
|
|
|
|
|
|
if (this.G.isLogin()) {
|
|
|
|
|
|
|
|
that.G.handleConfirm({
|
|
|
|
|
|
|
|
content: '是否取消关注该发单号?',
|
|
|
|
|
|
|
|
success: (res) => {
|
|
|
|
|
|
|
|
if (res.confirm) {
|
|
|
|
|
|
|
|
that.G.Get(
|
|
|
|
|
|
|
|
that.api.bind_cancelApply + '/' + that.agencyId,
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
agencyId: that.agencyId,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
() => {
|
|
|
|
|
|
|
|
uni.showToast({
|
|
|
|
|
|
|
|
icon: 'success',
|
|
|
|
|
|
|
|
title: '取消关注成功',
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
|
|
|
that.getDetail()
|
|
|
|
|
|
|
|
that.getList()
|
|
|
|
|
|
|
|
}, 1500)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
getAgencyById() {
|
|
|
|
getAgencyById() {
|
|
|
|
let that = this
|
|
|
|
let that = this
|
|
|
|
return new Promise((reso, reject) => {
|
|
|
|
return new Promise((reso, reject) => {
|
|
|
|
this.G.Get(this.api.order_getAgencyByIdForApply, { agencyId: that.uid, inviteUserId: this.inviteUserId }, (res) => {
|
|
|
|
this.G.Get(this.api.order_getAgencyByIdForApply, { agencyId: that.uid, inviteUserId: this.inviteUserId }, (res) => {
|
|
|
|
console.log('resresresresresres++++++++++++++', res)
|
|
|
|
console.log('resresresresresres++++++++++++++', res)
|
|
|
|
that.beFllowAgencyInfo = res
|
|
|
|
that.pageSpeed = 1
|
|
|
|
|
|
|
|
that.info = res
|
|
|
|
|
|
|
|
that.agencyId = res.id
|
|
|
|
|
|
|
|
that.speed = res.jobList.length
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
that.setJobList(res.jobList)
|
|
|
|
if (res.id == that.agencyInfo.id) {
|
|
|
|
if (res.id == that.agencyInfo.id) {
|
|
|
|
that.isSelf = true
|
|
|
|
that.isSelf = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
that.numSlot = [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
name: '总职位',
|
|
|
|
|
|
|
|
num: that.info.jobNum,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
name: '在招',
|
|
|
|
|
|
|
|
num: that.info.recruitmentJobNum,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
name: '关注',
|
|
|
|
|
|
|
|
num: that.info.himSee,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
name: '粉丝',
|
|
|
|
|
|
|
|
num: that.info.downNum,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
// that.getList()
|
|
|
|
|
|
|
|
|
|
|
|
reso()
|
|
|
|
reso()
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
@ -799,10 +618,10 @@ export default {
|
|
|
|
console.log('successLogin', e)
|
|
|
|
console.log('successLogin', e)
|
|
|
|
this.getAgencyInfo().then(() => {
|
|
|
|
this.getAgencyInfo().then(() => {
|
|
|
|
that.getAgencyById().then(() => {
|
|
|
|
that.getAgencyById().then(() => {
|
|
|
|
if (that.beFllowAgencyInfo.recordStatus == 3 || that.beFllowAgencyInfo.recordStatus == 4 || that.beFllowAgencyInfo.recordStatus == 6) {
|
|
|
|
if (that.info.recordStatus == 3 || that.info.recordStatus == 4 || that.info.recordStatus == 6) {
|
|
|
|
that.handleSubmit()
|
|
|
|
that.handleSubmit()
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
if (that.beFllowAgencyInfo.recordStatus == 5) {
|
|
|
|
if (that.info.recordStatus == 5) {
|
|
|
|
uni.showToast({
|
|
|
|
uni.showToast({
|
|
|
|
title: '已发起关注申请, 正在等待通过',
|
|
|
|
title: '已发起关注申请, 正在等待通过',
|
|
|
|
icon: 'none',
|
|
|
|
icon: 'none',
|
|
|
|
|