职位分享

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

@ -7,7 +7,7 @@
<g-loading />
</div>
<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">
<view class="g_fw_600 g_mr_4 g_flex_column_center">项目方</view>
<view class="g_flex_row_end flex_center g_flex_1">
@ -31,7 +31,7 @@
</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">
<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>
@ -556,7 +556,8 @@ export default {
let that = this;
let path;
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 {
promise: new Promise((resolve, reject) => {
uni.showLoading({
@ -586,8 +587,10 @@ export default {
globalData: getApp().globalData,
videoContextTemp: {},
isSharePage: false, //
isFans: false,
shareUserId: null, // id
shareJobAgencyId: null, // id
shareUserAgencyId: null, // id
corpUserFlag: false,
agreeRadio: ["agree"],
isPerson: false,
@ -675,25 +678,30 @@ export default {
},
onLoad(options) {
console.log("详情", options);
if (options.id) {
this.uid = options.id;
} else if (options.scene) {
var sceneStr = decodeURIComponent(options.scene);
var sceneJson = this.G.sceneToJson(sceneStr);
console.log("sceneJson===", sceneJson);
// 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.checkIsFans(this.shareUserId);
}
this.from = options.from || "home";
if (!uni.getStorageSync("apply-token")) {
console.log("apply-token");
uni.navigateTo({
uni.reLaunch({
url: "/root/person/loginIndex?type=detail&path=/root/detail/job&scene=" + options.scene,
});
return;
}
this.shareJobAgencyId && this.checkIsFans(this.shareJobAgencyId);
this.loginInfo = uni.getStorageSync("apply-userinfo");
// if (uni.getStorageSync("apply-AGENCY_MAMBER_LIST")) {
// this.applyList = uni.getStorageSync("apply-AGENCY_MAMBER_LIST");
@ -749,7 +757,9 @@ export default {
num1++;
}
});
this.toKnowInfo(res.agencyId);
that.speed = 1;
that.attention = true;
// this.toKnowInfo(res.agencyId);
});
}
uni.getSystemInfo({
@ -968,8 +978,9 @@ export default {
if (!this.attention) {
return false;
}
// isfans 1 0
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) {
// this.formInfo = {
@ -1463,7 +1474,8 @@ export default {
checkIsFans(upAgencyId) {
let that = this;
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({
url: `${that.path}?scene=${that.currentId}`,
})
uni.navigateBack({
delta: 1,
})
// uni.navigateBack({
// delta: 1,
// })
return
} else {
//

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

Loading…
Cancel
Save