新关注页

cyl/master-0804
wangxia 4 months ago
parent 805a9165a4
commit ec566a9174

@ -122,11 +122,12 @@
</view> </view>
</view> </view>
</block> </block>
<!-- <view class="g_mt_32 g_pb_32 g_c_9 g_pl_12" v-if="isShowLoginBtn && jobArray.length > 0" hover-class="none"> <view class="g_mt_32 g_pb_32 g_c_9 g_pl_12 g_text_c" v-if="isShowLoginBtn && jobArray.length > 0" hover-class="none">
<view class="g_text_c g_c_sub g_mt_24 g_fs_14"> <view class="g_mt_24">登录后查看全部职位</view>
<view class="g_c_sub g_mt_24 g_fs_14">
<quickLogin @successLogin="successLogin"></quickLogin> <quickLogin @successLogin="successLogin"></quickLogin>
</view> </view>
</view> --> </view>
<view class="g_bg_f_5" style="padding: 16px 0 32px 0" v-if="jobArray && jobArray.length > 0 && !isShowLoginBtn && from != 'collect'"> <view class="g_bg_f_5" style="padding: 16px 0 32px 0" v-if="jobArray && jobArray.length > 0 && !isShowLoginBtn && from != 'collect'">
<u-loadmore :status="status" :loadText="{ loadmore: '加载中', loading: '加载中', nomore: speed + '个职位' }" /> <u-loadmore :status="status" :loadText="{ loadmore: '加载中', loading: '加载中', nomore: speed + '个职位' }" />
@ -153,10 +154,12 @@
</template> </template>
<script> <script>
import quickLogin from "../../components/quickLogin.vue";
import unloginInfo from "@/components/unloginInfo.vue"; import unloginInfo from "@/components/unloginInfo.vue";
export default { export default {
components: { components: {
unloginInfo, unloginInfo,
quickLogin,
}, },
data() { data() {
return { return {
@ -246,11 +249,6 @@ export default {
return uni.getStorageSync("apply-token") ? "关注发单号,查看发单号职位" : ""; return uni.getStorageSync("apply-token") ? "关注发单号,查看发单号职位" : "";
}, },
}, },
isShowLoginBtn: {
default: () => {
return false;
},
},
pt: { pt: {
default: 0, default: 0,
}, },

@ -1,9 +1,9 @@
<template> <template>
<div class="p-root-detail-user g_w_all g_bg_page g_kuaishou"> <div class="p-root-detail-user g_w_all g_bg_page g_kuaishou">
<u-navbar backIconColor="#333" :borderBottom="false" :immersive="true" :customBack="goHome" :background="{background:navColor}" backIconName="home"></u-navbar> <u-navbar backIconColor="#333" :borderBottom="false" :immersive="true" :customBack="goHome" :background="{ background: navColor }" backIconName="home"></u-navbar>
<view class="g_h_136 u-navbar-fixed" style="background-color: #48aaf9 !important"></view> <view class="g_h_136 u-navbar-fixed" style="background-color: #caf1e0 !important"></view>
<div class style="background-color: #48aaf9 !important"> <div class style="background-color: #caf1e0 !important">
<view class="m-info g_p_20 g_pt_12 g_pb_0 g_bg_f g_position_rela" hover-class="none" style="margin-top: 0;border-radius:8px 8px 0 0 "> <view class="m-info g_p_20 g_pt_12 g_pb_0 g_bg_f g_position_rela" hover-class="none" style="margin-top: 0; border-radius: 8px 8px 0 0">
<view class="g_flex_row_start"> <view class="g_flex_row_start">
<view class="g_w_71"> <view class="g_w_71">
<view class="g_position_abso g_p_4 g_radius_50 g_bg_f" style="top: -20px"> <view class="g_position_abso g_p_4 g_radius_50 g_bg_f" style="top: -20px">
@ -23,17 +23,17 @@
<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 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">
<div class="g_flex_row_center flex_end"> <div class="g_flex_row_center flex_end">
<div class="g_c_3 g_fw_600 g_mr_2 g_fs_20" style="line-height:1">{{ item.num }}</div> <div class="g_c_3 g_fw_600 g_mr_2 g_fs_20" style="line-height: 1">{{ item.num }}</div>
<div class="g_fs_12 g_c_6 g_flex_column_end">{{ item.name }}</div> <div class="g_fs_12 g_c_6 g_flex_column_end">{{ item.name }}</div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div class="g_pt_12 g_fs_14" style=" height: 100%">{{info.agencyDesp}}</div> <div class="g_pt_12 g_fs_14" style="height: 100%">{{ info.agencyDesp }}</div>
</div> </div>
<div class="g_h_10"></div> <div class="g_h_10"></div>
<div class> <div class>
@ -51,7 +51,7 @@
<div class="g_flex_row_center" v-if="info.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);">
@ -86,7 +86,7 @@
<!-- 正常职位 --> <!-- 正常职位 -->
<div class="m-detail"> <div class="m-detail">
<div class="g_h_10"></div> <div class="g_h_10"></div>
<g-list-job :recordStatus="info.recordStatus" :showShare="false" :list="query.list" :loading="loading" :speed="speed" :query="query" emptyText="暂无职位" emptySubText=" " /> <g-list-job :recordStatus="info.recordStatus" @successLogin="jobLogin" :showShare="false" :list="query.list" :loading="loading" :speed="speed" :isShowLoginBtn="isLogin ? false : true" :query="query" emptyText="暂无职位" emptySubText=" " />
</div> </div>
<div v-if="info.himSeeBtn == 0" style="padding-top: 260rpx"> <div v-if="info.himSeeBtn == 0" style="padding-top: 260rpx">
@ -98,11 +98,11 @@
<!-- 发布职位确认框 --> <!-- 发布职位确认框 -->
<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">
<div class="g_fs_17 g_text_c"> <div class="g_fs_17 g_text_c">
<div class style="padding:42px 24px 36px "> <div class style="padding: 42px 24px 36px">
<div class="g_text_c g_fw_600 g_c_0">创建团队/企业</div> <div class="g_text_c g_fw_600 g_c_0">创建团队/企业</div>
<div class="g_text_c g_c_6 g_mb_16 g_mt_16">创建团队后可关注发单号浏览职位及工单报名</div> <div class="g_text_c g_c_6 g_mb_16 g_mt_16">创建团队后可关注发单号浏览职位及工单报名</div>
<div class="g_fs_14 g_pl_12 g_bg_f2 g_border_d g_radius_4 g_flex_row_start flex_center"> <div class="g_fs_14 g_pl_12 g_bg_f2 g_border_d g_radius_4 g_flex_row_start flex_center">
<u-input v-model="agencyInfo.fullName" :customStyle="{ color: disabled ? '#999' : '#333',fontSize:'17px' }" :disabled="disabled" height="96" placeholder="请填写团队/企业简称"></u-input> <u-input v-model="agencyInfo.fullName" :customStyle="{ color: disabled ? '#999' : '#333', fontSize: '17px' }" :disabled="disabled" height="96" placeholder="请填写团队/企业简称"></u-input>
</div> </div>
</div> </div>
<div class="g_flex_row_center flex_center g_fw_600 g_border_e_t"> <div class="g_flex_row_center flex_center g_fw_600 g_border_e_t">
@ -115,13 +115,13 @@
</template> </template>
<script> <script>
import quickLogin from '../../components/quickLogin.vue' import quickLogin from "../../components/quickLogin.vue";
export default { export default {
components: { components: {
quickLogin, quickLogin,
}, },
onReady() { onReady() {
this.G.setNavStyle() this.G.setNavStyle();
}, },
// onShareAppMessage(){ // onShareAppMessage(){
// return this.G.shareFun(); // return this.G.shareFun();
@ -129,24 +129,24 @@ export default {
data() { data() {
return { return {
numSlot: [], numSlot: [],
navColor: 'rgb(255,255,255,0)', navColor: "rgb(255,255,255,0)",
isLogin: null, isLogin: null,
submitConfirm: false, submitConfirm: false,
pageSpeed: 0, pageSpeed: 0,
agencyId: 0, agencyId: 0,
loading: true, loading: true,
keyword: '', // keyword: "", //
speed: -1, speed: -1,
query: { query: {
page: 1, page: 1,
size: 50, size: 20,
list: [], list: [],
isFinish: -1, isFinish: -1,
}, },
agencyInfo: {}, agencyInfo: {},
info: { info: {
avatar: '', avatar: "",
agencyName: '', agencyName: "",
jobUpdateNum: 0, jobUpdateNum: 0,
}, },
@ -155,43 +155,43 @@ export default {
bindid: 0, bindid: 0,
dataArray: [ dataArray: [
{ {
name: '职位', name: "职位",
num: 120, num: 120,
}, },
{ {
name: '在招', name: "在招",
num: 120, num: 120,
}, },
{ {
name: '关注', name: "关注",
num: 108, num: 108,
}, },
{ {
name: '粉丝', name: "粉丝",
num: 250, num: 250,
}, },
], ],
from: '', from: "",
jobDetailShow: true, jobDetailShow: true,
loginInfo: {}, loginInfo: {},
isSelf: false, // isSelf: false, //
scene: '', scene: "",
tabInfo: { tabInfo: {
list: [ list: [
{ {
name: '最新', name: "最新",
num: 0, num: 0,
tip: 0, tip: 0,
classify: 2, classify: 2,
}, },
{ {
name: '最热', name: "最热",
num: 0, num: 0,
tip: 1, tip: 1,
classify: 3, classify: 3,
}, },
{ {
name: '专属', name: "专属",
num: 0, num: 0,
tip: 2, tip: 2,
classify: 1, classify: 1,
@ -201,141 +201,151 @@ export default {
}, },
disabled: false, disabled: false,
inviteUserId: 0, inviteUserId: 0,
} };
}, },
onPageScroll(e) { onPageScroll(e) {
if (e.scrollTop <= 100) { if (e.scrollTop <= 100) {
this.navColor = `rgb(255,255,255,${e.scrollTop / 50})` this.navColor = `rgb(255,255,255,${e.scrollTop / 50})`;
} }
}, },
onLoad(options) { onLoad(options) {
console.log('用户详情页:', options, ' version:', 1) console.log("用户详情页:", options, " version:", 1);
this.loginId = uni.getStorageSync('apply-agencyId') this.loginId = uni.getStorageSync("apply-agencyId");
if (this.loginId == options.id && options.id) { if (this.loginId == options.id && options.id) {
this.isSelf = true this.isSelf = true;
} }
if (options.scene) { if (options.scene) {
var sceneStr = decodeURIComponent(options.scene) var sceneStr = decodeURIComponent(options.scene);
var sceneJson = this.G.sceneToJson(sceneStr) var sceneJson = this.G.sceneToJson(sceneStr);
this.scene = options.scene this.scene = options.scene;
console.log('sceneJson===', sceneJson) console.log("sceneJson===", sceneJson);
this.inviteUserId = sceneJson.id.split('_')[1] //id this.inviteUserId = sceneJson.id.split("_")[1]; //id
this.uid = sceneJson.id.split('_')[0] // id this.uid = sceneJson.id.split("_")[0]; // id
} else { } else {
this.uid = options.id this.uid = options.id;
} }
this.type = options.type ? options.type : '' this.type = options.type ? options.type : "";
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;
that.isLogin = '' // uni.getStorageSync("apply-token"); that.isLogin = uni.getStorageSync("apply-token") ? true : false; // uni.getStorageSync("apply-token");
this.loginInfo = uni.getStorageSync('apply-userinfo') this.loginInfo = uni.getStorageSync("apply-userinfo");
that.G.Get('/checkUserLogin', {}, (res) => { that.G.Get("/checkUserLogin", {}, (res) => {
console.log('checkUserLogin', res) console.log("checkUserLogin", res);
if (res) { if (res) {
//
that.getAgencyInfo().then(() => { that.getAgencyInfo().then(() => {
that.getAgencyById() that.getAgencyById().then(() => {
}) if (that.isLogin) {
that.getDefault("init");
} else { } else {
that.getAgencyById() that.setJobList(that.info.jobList);
} }
}) });
});
} else {
//
that.getAgencyById().then(() => {
that.setJobList(that.info.jobList);
});
}
});
// if (!that.isLogin) { // if (!that.isLogin) {
// that.loading = false; // that.loading = false;
// that.speed = 0; // that.speed = 0;
// } else { // } else {
// } // }
}, },
// onReachBottom() { onReachBottom() {
// let that = this let that = this;
// this.G.isLogin() if (!that.isLogin) {
// if (this.G.isLogin()) { return false;
// if (that.query.isFinish == -1 || that.query.isFinish == that.query.size) { }
// that.query.page++ if (that.query.isFinish == -1 || that.query.isFinish == that.query.size) {
// that.getList('concat') that.query.page++;
// } that.getDefault("concat");
// } }
// }, },
methods: { methods: {
goHome() { goHome() {
uni.switchTab({ uni.switchTab({
url: '/pages/home/index', url: "/pages/home/index",
}) });
}, },
getAgencyInfo() { getAgencyInfo() {
let that = this let that = this;
return new Promise((reso, reject) => { return new Promise((reso, reject) => {
that.G.Get(that.api.login_agencyInfo, {}, (aRes) => { that.G.Get(that.api.login_agencyInfo, {}, (aRes) => {
console.log('获取团队信息:', aRes) console.log("获取团队信息:", aRes);
that.disabled = aRes.agency.fullName ? true : false that.disabled = aRes.agency.fullName ? true : false;
that.agencyInfo = { ...aRes.agency, fullName: aRes.agency.fullName ? aRes.agency.fullName : that.agencyInfo.fullName } that.agencyInfo = { ...aRes.agency, fullName: aRes.agency.fullName ? aRes.agency.fullName : that.agencyInfo.fullName };
uni.setStorageSync('agencyInfo', aRes.agency) uni.setStorageSync("agencyInfo", aRes.agency);
setTimeout(() => { setTimeout(() => {
reso() reso();
}, 200) }, 200);
}) });
}) });
}, },
getDetail() { getDetail() {
let that = this let that = this;
// 123123 // 123123
// this.G.isLogin(); // this.G.isLogin();
// if (this.G.isLogin()) { // if (this.G.isLogin()) {
that.pageSpeed = 0 that.pageSpeed = 0;
that.G.Get( that.G.Get(
that.api.bind_enterpriseDetail + '/' + that.uid, that.api.bind_enterpriseDetail + "/" + that.uid,
{ {
agencyId: that.uid, agencyId: that.uid,
type: that.type, type: that.type,
}, },
(res) => { (res) => {
console.log('获取详情:', res, ' -- ', that.uid) console.log("获取详情:", res, " -- ", that.uid);
that.pageSpeed = 1 that.pageSpeed = 1;
that.info = res that.info = res;
if (!that.uid) { if (!that.uid) {
if (that.loginInfo.agencyId == that.info.agencyId) { if (that.loginInfo.agencyId == that.info.agencyId) {
that.isSelf = true that.isSelf = true;
} }
} }
if (that.info.supplierAccount == 0) { if (that.info.supplierAccount == 0) {
that.isShowMore = false that.isShowMore = false;
} }
that.agencyId = res.agencyId that.agencyId = res.agencyId;
that.numSlot = [ that.numSlot = [
{ {
name: '总职位', name: "总职位",
num: that.info.jobNum, num: that.info.jobNum,
}, },
{ {
name: '在招', name: "在招",
num: that.info.recruitmentJobNum, num: that.info.recruitmentJobNum,
}, },
{ {
name: '关注', name: "关注",
num: that.info.himSee, num: that.info.himSee,
}, },
{ {
name: '粉丝', name: "粉丝",
num: that.info.downNum, num: that.info.downNum,
}, },
] ];
that.getList() that.getList();
} }
) );
// } // }
}, },
goDetailUser() { goDetailUser() {
let that = this let that = this;
return false 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) {
let params = { let params = {
@ -344,29 +354,29 @@ export default {
bindid: that.info.id, bindid: that.info.id,
isShowMore: true, isShowMore: true,
isShowJob: true, isShowJob: true,
} };
uni.navigateTo({ uni.navigateTo({
url: '/root/detail/user?' + that.G.objToStr(params), url: "/root/detail/user?" + that.G.objToStr(params),
}) });
} else { } else {
if (that.isSelf) { if (that.isSelf) {
} else { } else {
uni.showToast({ uni.showToast({
title: '关注发单号后才可查看详情', title: "关注发单号后才可查看详情",
icon: 'none', icon: "none",
}) });
} }
} }
} }
}, },
setJobList(recordList, $type) { setJobList(recordList, $type) {
let that = this let that = this;
that.query.isFinish = recordList.length that.query.isFinish = recordList.length;
recordList = that.G.toGetAddressv3(recordList) recordList = that.G.toGetAddressv3(recordList);
recordList = that.G.toGetAge(recordList) recordList = that.G.toGetAge(recordList);
recordList = that.G.yijobCopy(recordList) recordList = that.G.yijobCopy(recordList);
if ($type == 'init') { if ($type == "init") {
that.query.list = [] that.query.list = [];
that.query.list = that.query.list =
recordList.length > 0 recordList.length > 0
? recordList.map((item, index) => { ? recordList.map((item, index) => {
@ -376,10 +386,10 @@ export default {
address: item.district + item.age, 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), 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), fuWuFei: that.G.setReturnFee(item.returnFee, item.returnFeeType),
cus_price: item.salaryClassify != 7 ? that.G.getSalaryClassifyValueHtml(item.salaryClassify, item.salaryClassifyValue) : '月薪', cus_price: item.salaryClassify != 7 ? that.G.getSalaryClassifyValueHtml(item.salaryClassify, item.salaryClassifyValue) : "月薪",
gender: that.G.getGenderByMinAge(item), gender: that.G.getGenderByMinAge(item),
logo: item.agencyLogo, logo: item.agencyLogo,
time: that.G.setDeadLine(item.updateTime, 'jiaofu'), time: that.G.setDeadLine(item.updateTime, "jiaofu"),
leafCateId: item.id, leafCateId: item.id,
// serverPrice: that.G.setReturnFee(item.returnFee, item.returnFeeType), // serverPrice: that.G.setReturnFee(item.returnFee, item.returnFeeType),
serverPrice: that.G.setReturnFee(item.agencyReturnFee, item.agencyReturnFeeType), serverPrice: that.G.setReturnFee(item.agencyReturnFee, item.agencyReturnFeeType),
@ -387,9 +397,9 @@ export default {
recruitmentImage: item.recruitment, recruitmentImage: item.recruitment,
isToday: item.today == 0 ? false : true, isToday: item.today == 0 ? false : true,
active: 0, active: 0,
} };
}) })
: [] : [];
} else { } else {
that.query.list = that.query.list.concat( that.query.list = that.query.list.concat(
recordList.length > 0 recordList.length > 0
@ -402,7 +412,7 @@ export default {
fuWuFei: that.G.setReturnFee(item.returnFee, item.returnFeeType), fuWuFei: that.G.setReturnFee(item.returnFee, item.returnFeeType),
gender: that.G.getGenderByMinAge(item), gender: that.G.getGenderByMinAge(item),
logo: item.agencyLogo, logo: item.agencyLogo,
time: that.G.setDeadLine(item.updateTime, 'jiaofu'), time: that.G.setDeadLine(item.updateTime, "jiaofu"),
leafCateId: item.id, leafCateId: item.id,
// serverPrice: that.G.setReturnFee(item.returnFee, item.returnFeeType), // serverPrice: that.G.setReturnFee(item.returnFee, item.returnFeeType),
serverPrice: that.G.setReturnFee(item.agencyReturnFee, item.agencyReturnFeeType), serverPrice: that.G.setReturnFee(item.agencyReturnFee, item.agencyReturnFeeType),
@ -410,16 +420,16 @@ export default {
recruitmentImage: item.recruitment, recruitmentImage: item.recruitment,
isToday: item.today == 0 ? false : true, isToday: item.today == 0 ? false : true,
active: 0, active: 0,
} };
}) })
: [] : []
) );
} }
}, },
getDefault($type) { getDefault($type) {
let that = this let that = this;
console.log('$type', $type) 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_list, that.api.job_list,
@ -429,64 +439,64 @@ export default {
agencyId: that.agencyId, agencyId: that.agencyId,
}, },
(res) => { (res) => {
console.log('resresresresresres', res) console.log("resresresresresres", res);
if (res.recordCount == 0) { if (res.recordCount == 0) {
that.loading = false that.loading = false;
} else { } else {
that.loading = true that.loading = true;
} }
that.speed = res.recordCount that.speed = res.recordCount;
that.setJobList(res.recordList, $type) that.setJobList(res.recordList, $type);
console.log('query.list', that.query.list) console.log("query.list", that.query.list);
} }
) );
} }
}, },
checkLength(e) { checkLength(e) {
if (e.length == 0) { if (e.length == 0) {
this.keyword = '' this.keyword = "";
this.getList() this.getList();
} }
}, },
getList($type = 'init') { getList($type = "init") {
let that = this let that = this;
return 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);
} }
} }
}, },
goDetailJob($item) { goDetailJob($item) {
let that = this let that = this;
return false return false;
this.G.isLogin() this.G.isLogin();
if (this.G.isLogin()) { if (this.G.isLogin()) {
if (that.isSelf) { if (that.isSelf) {
uni.navigateTo({ uni.navigateTo({
url: '/root/detail/job?id=' + $item.leafCateId, url: "/root/detail/job?id=" + $item.leafCateId,
}) });
} else if (this.info.recordStatus == 1 || this.info.recordStatus == 2) { } else if (this.info.recordStatus == 1 || this.info.recordStatus == 2) {
uni.navigateTo({ uni.navigateTo({
url: '/root/detail/job?id=' + $item.leafCateId, url: "/root/detail/job?id=" + $item.leafCateId,
}) });
} else { } else {
uni.showToast({ uni.showToast({
title: '关注发单号后才可查看详情', title: "关注发单号后才可查看详情",
icon: 'none', icon: "none",
}) });
} }
} }
}, },
inviteSubmit() { inviteSubmit() {
let that = this let that = this;
console.log('info', that.info) console.log("info", that.info);
// return; // return;
uni.showModal({ uni.showModal({
title: '关注发单号', title: "关注发单号",
content: '关注发单号后,您可以查看该账号职位的更新,确定要关注吗?', content: "关注发单号后,您可以查看该账号职位的更新,确定要关注吗?",
confirmColor: '#576B95', confirmColor: "#576B95",
success(modalRes) { success(modalRes) {
if (modalRes.confirm) { if (modalRes.confirm) {
that.G.Post( that.G.Post(
@ -496,144 +506,133 @@ export default {
}, },
(res) => { (res) => {
uni.showToast({ uni.showToast({
title: '关注成功', title: "关注成功",
}) });
setTimeout(() => { setTimeout(() => {
that.getDetail() that.getDetail();
}, 800) }, 800);
} }
) );
} else if (modalRes.cancel) { } else if (modalRes.cancel) {
console.log('用户点击取消') console.log("用户点击取消");
} }
}, },
fail() {}, fail() {},
}) });
}, },
finallySubmit() { finallySubmit() {
let that = this let that = this;
if (!this.agencyInfo.fullName) { if (!this.agencyInfo.fullName) {
uni.showToast({ uni.showToast({
title: '请输入企业简称', title: "请输入企业简称",
icon: 'none', icon: "none",
}) });
return return;
} }
let _code = 1 // let _code = 1; //
if (this.from == 'friend') { if (this.from == "friend") {
_code = 2 // _code = 2; //
} else { } else {
if (this.scene) { if (this.scene) {
_code = 3 // _code = 3; //
} else { } else {
_code = 1 // _code = 1; //
} }
} }
this.G.Get(this.api.bind_subscribeSubmit + '/' + that.uid, { agencyId: that.agencyInfo.id, agencyName: that.agencyInfo.fullName, source: _code, remark: ' ' }, (res) => { this.G.Get(this.api.bind_subscribeSubmit + "/" + that.uid, { agencyId: that.agencyInfo.id, agencyName: that.agencyInfo.fullName, source: _code, remark: " " }, (res) => {
uni.showToast({ uni.showToast({
title: '申请成功', title: "申请成功",
icon: 'none', icon: "none",
}) });
that.submitConfirm = false that.submitConfirm = false;
uni.navigateTo({ uni.navigateTo({
url: '/root/person/inviteFollowSuccess', url: "/root/person/inviteFollowSuccess",
}) });
reso() reso();
// that.checkHasApply(); // that.checkHasApply();
console.log(res) console.log(res);
}) });
}, },
handleSubmit() { handleSubmit() {
let that = this let that = this;
this.G.isLogin() this.G.isLogin();
if (this.G.isLogin()) { if (this.G.isLogin()) {
// //
this.submitConfirm = true this.submitConfirm = true;
return return;
}
},
handleSee(e) {
let that = this
this.G.isLogin()
if (this.G.isLogin()) {
that.G.Get(
that.api.bind_isSee + '/' + that.info.himSeeOperateId,
{
id: that.info.himSeeOperateId,
himSee: e ? 0 : 1,
},
() => {
uni.showToast({
icon: 'success',
title: '更新成功',
})
}
)
} }
}, },
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.pageSpeed = 1 that.pageSpeed = 1;
that.info = res that.info = res;
that.agencyId = res.id that.agencyId = res.id;
that.speed = res.jobList.length 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 = [ that.numSlot = [
{ {
name: '总职位', name: "总职位",
num: that.info.jobNum, num: that.info.jobNum,
}, },
{ {
name: '在招', name: "在招",
num: that.info.recruitmentJobNum, num: that.info.recruitmentJobNum,
}, },
{ {
name: '关注', name: "关注",
num: that.info.himSee, num: that.info.himSee,
}, },
{ {
name: '粉丝', name: "粉丝",
num: that.info.downNum, num: that.info.downNum,
}, },
] ];
// that.getList() // that.getList()
reso() reso();
}) });
}) });
}, },
successLogin(e) { successLogin(e) {
let that = this let that = this;
console.log('successLogin', e) console.log("successLogin", e);
this.getAgencyInfo().then(() => { this.getAgencyInfo().then(() => {
that.getAgencyById().then(() => { that.getAgencyById().then(() => {
if (that.info.recordStatus == 3 || that.info.recordStatus == 4 || that.info.recordStatus == 6) { if (that.info.recordStatus == 3 || that.info.recordStatus == 4 || that.info.recordStatus == 6) {
that.handleSubmit() that.handleSubmit();
} else { } else {
if (that.info.recordStatus == 5) { if (that.info.recordStatus == 5) {
uni.showToast({ uni.showToast({
title: '已发起关注申请, 正在等待通过', title: "已发起关注申请, 正在等待通过",
icon: 'none', icon: "none",
}) });
} }
} }
}) });
}) });
},
jobLogin() {
let that = this;
this.isLogin = true;
that.getAgencyInfo().then(() => {
that.getAgencyById().then(() => {
that.query.page++;
that.getDefault("concat");
});
});
}, },
handleUpdateTab() {}, handleUpdateTab() {},
}, },
} };
</script> </script>
<style lang="scss"> <style lang="scss">

Loading…
Cancel
Save