职位分享

cyl/master-0804
wangxia 4 months ago
parent 500610d43f
commit 265eb8cb1a

@ -7,7 +7,7 @@
<g-loading /> <g-loading />
</div> </div>
<div v-if="speed == 1"> <div v-if="speed == 1">
<view class="r_box" v-if="true"> <view class="r_box g_mb_10" v-if="(isSharePage && isFans == 2) || !isSharePage">
<div class="g_flex_row_between flex_center g_pl_16 g_pr_16 g_fs_16 g_border_e_b" @click="goUserMain" style="height: 60px"> <div class="g_flex_row_between flex_center g_pl_16 g_pr_16 g_fs_16 g_border_e_b" @click="goUserMain" style="height: 60px">
<view class="g_fw_600 g_mr_4 g_flex_column_center">项目方</view> <view class="g_fw_600 g_mr_4 g_flex_column_center">项目方</view>
<view class="g_flex_row_end flex_center g_flex_1"> <view class="g_flex_row_end flex_center g_flex_1">
@ -31,7 +31,7 @@
</view> </view>
<!-- 基本信息 --> <!-- 基本信息 -->
<view class="g_bg_f g_pt_10 g_pl_16 g_pr_16 g_mt_10 g_kuaishou g_radius_8 g_pb_16"> <view class="g_bg_f g_pt_10 g_pl_16 g_pr_16 g_kuaishou g_radius_8 g_pb_16">
<div class="m-info g_mb_12"> <div class="m-info g_mb_12">
<view class="g_mb_10 g_flex_row_between flex_center"> <view class="g_mb_10 g_flex_row_between flex_center">
<view class="g_flex_1 g_c_3 g_fs_20 g_fw_bold">{{ jobDetail.jobName }}</view> <view class="g_flex_1 g_c_3 g_fs_20 g_fw_bold">{{ jobDetail.jobName }}</view>
@ -556,7 +556,8 @@ export default {
let that = this; let that = this;
let path; let path;
console.log("that.loginInfo", that.loginInfo); console.log("that.loginInfo", that.loginInfo);
path = `/root/detail/job?scene=id=${that.jobDetail.id}_${that.loginInfo.user.id}_${1}`; // id___
path = `/root/detail/job?scene=id=${that.jobDetail.id}_${that.jobDetail.agencyId}_${that.shareUserId || that.loginInfo.user.id}_${that.sharreUserAgencyId || that.loginInfo.agencyId}`;
return { return {
promise: new Promise((resolve, reject) => { promise: new Promise((resolve, reject) => {
uni.showLoading({ uni.showLoading({
@ -586,8 +587,10 @@ export default {
globalData: getApp().globalData, globalData: getApp().globalData,
videoContextTemp: {}, videoContextTemp: {},
isSharePage: false, // isSharePage: false, //
isFans: false,
shareUserId: null, // id shareUserId: null, // id
shareJobAgencyId: null, // id
shareUserAgencyId: null, // id
corpUserFlag: false, corpUserFlag: false,
agreeRadio: ["agree"], agreeRadio: ["agree"],
isPerson: false, isPerson: false,
@ -675,25 +678,30 @@ export default {
}, },
onLoad(options) { onLoad(options) {
console.log("详情", options); console.log("详情", options);
if (options.id) { if (options.id) {
this.uid = options.id; this.uid = options.id;
} else if (options.scene) { } else 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);
console.log("sceneJson===", sceneJson); console.log("sceneJson===", sceneJson);
// id___
this.uid = sceneJson.id.split("_")[0]; //id this.uid = sceneJson.id.split("_")[0]; //id
this.shareUserId = sceneJson.id.split("_")[1]; //id this.shareJobAgencyId = sceneJson.id.split("_")[1]; //id
this.shareUserId = sceneJson.id.split("_")[2]; //id
this.shareUserAgencyId = sceneJson.id.split("_")[3]; //id
this.isSharePage = true; this.isSharePage = true;
this.checkIsFans(this.shareUserId);
} }
this.from = options.from || "home"; this.from = options.from || "home";
if (!uni.getStorageSync("apply-token")) { if (!uni.getStorageSync("apply-token")) {
console.log("apply-token"); console.log("apply-token");
uni.navigateTo({ uni.reLaunch({
url: "/root/person/loginIndex?type=detail&path=/root/detail/job&scene=" + options.scene, url: "/root/person/loginIndex?type=detail&path=/root/detail/job&scene=" + options.scene,
}); });
return; return;
} }
this.shareJobAgencyId && this.checkIsFans(this.shareJobAgencyId);
this.loginInfo = uni.getStorageSync("apply-userinfo"); this.loginInfo = uni.getStorageSync("apply-userinfo");
// if (uni.getStorageSync("apply-AGENCY_MAMBER_LIST")) { // if (uni.getStorageSync("apply-AGENCY_MAMBER_LIST")) {
// this.applyList = uni.getStorageSync("apply-AGENCY_MAMBER_LIST"); // this.applyList = uni.getStorageSync("apply-AGENCY_MAMBER_LIST");
@ -749,7 +757,9 @@ export default {
num1++; num1++;
} }
}); });
this.toKnowInfo(res.agencyId); that.speed = 1;
that.attention = true;
// this.toKnowInfo(res.agencyId);
}); });
} }
uni.getSystemInfo({ uni.getSystemInfo({
@ -968,8 +978,9 @@ export default {
if (!this.attention) { if (!this.attention) {
return false; return false;
} }
// isfans 1 0
uni.navigateTo({ uni.navigateTo({
url: "/root/home/quickApplication?jobId=" + this.jobDetail.id + "&jobName=" + this.jobDetail.jobName + "&title=报名&type=" + that.jobDetail.jobType + "&agencyId=" + that.jobDetail.agencyId, url: `/root/home/quickApplication?jobId=${this.jobDetail.id}&jobName=${this.jobDetail.jobName}&title=报名&type=${that.jobDetail.jobType}&agencyId=${that.jobDetail.agencyId}${that.isFans === false ? '' : `&isFans=${that.isFans }`}`,
}); });
// if (this.jobDetail.recruitment == 1) { // if (this.jobDetail.recruitment == 1) {
// this.formInfo = { // this.formInfo = {
@ -1463,7 +1474,8 @@ export default {
checkIsFans(upAgencyId) { checkIsFans(upAgencyId) {
let that = this; let that = this;
that.G.Post("/assistant/circle/agency/checkUserTypeForAssistant", { upAgencyId }, (res) => { that.G.Post("/assistant/circle/agency/checkUserTypeForAssistant", { upAgencyId }, (res) => {
console.log(res); console.log("isFans", res);
that.isFans = res;
}); });
}, },
}, },

File diff suppressed because it is too large Load Diff

@ -306,9 +306,9 @@ export default {
uni.reLaunch({ uni.reLaunch({
url: `${that.path}?scene=${that.currentId}`, url: `${that.path}?scene=${that.currentId}`,
}) })
uni.navigateBack({ // uni.navigateBack({
delta: 1, // delta: 1,
}) // })
return return
} else { } else {
// //

@ -1,5 +1,5 @@
// let ajaxUrl = "http://192.168.3.83:8001"; let ajaxUrl = "http://192.168.3.83:8001";
let ajaxUrl = "https://daotian.matripe.com.cn"; // let ajaxUrl = "https://daotian.matripe.com.cn";
let data = { let data = {
ajaxUrl: ajaxUrl, ajaxUrl: ajaxUrl,
Get ($url = '', $parmas = {}, callback = () => { }, failback = () => { }) { Get ($url = '', $parmas = {}, callback = () => { }, failback = () => { }) {

Loading…
Cancel
Save