|
|
|
|
@ -150,18 +150,37 @@ export default {
|
|
|
|
|
if (this.loginId == options.id && options.id) {
|
|
|
|
|
this.isSelf = true;
|
|
|
|
|
}
|
|
|
|
|
this.scene = options.scene;
|
|
|
|
|
if (this.scene) {
|
|
|
|
|
let _str = decodeURIComponent(this.scene);
|
|
|
|
|
this.uid = _str.split("=")[1];
|
|
|
|
|
} else {
|
|
|
|
|
this.uid = options.id;
|
|
|
|
|
}
|
|
|
|
|
this.type = options.type ? options.type : "";
|
|
|
|
|
this.isShowMore = options.isShowMore;
|
|
|
|
|
this.isShowJob = options.isShowJob;
|
|
|
|
|
this.jobDetailShow = options.jobDetailShow || true;
|
|
|
|
|
this.from = options.shareForm;
|
|
|
|
|
this.G.checkToken().then((info) => {
|
|
|
|
|
console.log("info11", info);
|
|
|
|
|
if (!info.msg) {
|
|
|
|
|
if (uni.getStorageSync("user_scene") || options.scene) {
|
|
|
|
|
this.scene = uni.getStorageSync("user_scene") ? decodeURIComponent(uni.getStorageSync("user_scene")) : decodeURIComponent(options.scene);
|
|
|
|
|
this.uid = this.scene.split("=")[1];
|
|
|
|
|
|
|
|
|
|
console.log("this.uid", this.uid);
|
|
|
|
|
uni.removeStorageSync("user_scene");
|
|
|
|
|
} else {
|
|
|
|
|
if (uni.getStorageSync("user_options")) {
|
|
|
|
|
options = uni.getStorageSync("user_options");
|
|
|
|
|
}
|
|
|
|
|
this.type = options.type ? options.type : "";
|
|
|
|
|
this.isShowMore = options.isShowMore ? options.isShowMore : "";
|
|
|
|
|
this.isShowJob = options.isShowJob ? options.isShowJob : "";
|
|
|
|
|
this.jobDetailShow = options.jobDetailShow || true;
|
|
|
|
|
this.from = options.shareForm;
|
|
|
|
|
this.uid = options.id;
|
|
|
|
|
uni.removeStorageSync("user_options", options);
|
|
|
|
|
}
|
|
|
|
|
this.getDetail();
|
|
|
|
|
} else {
|
|
|
|
|
if (options.scene) {
|
|
|
|
|
uni.setStorageSync("user_scene", options.scene);
|
|
|
|
|
} else {
|
|
|
|
|
uni.setStorageSync("user_options", options);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
if (options.bindid) {
|
|
|
|
|
this.bindid = options.bindid;
|
|
|
|
|
}
|
|
|
|
|
@ -193,43 +212,46 @@ export default {
|
|
|
|
|
// this.G.isLogin();
|
|
|
|
|
// if (this.G.isLogin()) {
|
|
|
|
|
that.pageSpeed = 0;
|
|
|
|
|
that.G.Get(
|
|
|
|
|
that.api.bind_enterpriseDetail + "/" + that.uid,
|
|
|
|
|
{
|
|
|
|
|
agencyId: that.uid,
|
|
|
|
|
type: that.type,
|
|
|
|
|
},
|
|
|
|
|
(res) => {
|
|
|
|
|
console.log("获取详情:", res, " -- ", that.uid);
|
|
|
|
|
that.pageSpeed = 1;
|
|
|
|
|
that.info = res;
|
|
|
|
|
if (!that.uid) {
|
|
|
|
|
if (that.loginInfo.agencyId == that.info.agencyId) {
|
|
|
|
|
that.isSelf = true;
|
|
|
|
|
if (that.uid) {
|
|
|
|
|
that.G.Get(
|
|
|
|
|
that.api.bind_enterpriseDetail + "/" + that.uid,
|
|
|
|
|
{
|
|
|
|
|
agencyId: that.uid,
|
|
|
|
|
type: that.type,
|
|
|
|
|
},
|
|
|
|
|
(res) => {
|
|
|
|
|
console.log("获取详情:", res, " -- ", that.uid);
|
|
|
|
|
that.pageSpeed = 1;
|
|
|
|
|
that.info = res;
|
|
|
|
|
if (!that.uid) {
|
|
|
|
|
if (that.loginInfo.agencyId == that.info.agencyId) {
|
|
|
|
|
that.isSelf = true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (that.info.supplierAccount == 0) {
|
|
|
|
|
that.isShowMore = false;
|
|
|
|
|
}
|
|
|
|
|
that.agencyId = res.agencyId;
|
|
|
|
|
that.mLook = that.info.himSee == 1 ? false : true;
|
|
|
|
|
that.numSlot = [
|
|
|
|
|
{
|
|
|
|
|
name: "职位数",
|
|
|
|
|
num: that.info.himSee == 0 ? 0 : that.info.jobNum,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "今日更新",
|
|
|
|
|
num: that.info.jobUpdateNum,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "粉丝数",
|
|
|
|
|
num: that.info.downNum,
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
that.getList();
|
|
|
|
|
}
|
|
|
|
|
if (that.info.supplierAccount == 0) {
|
|
|
|
|
that.isShowMore = false;
|
|
|
|
|
}
|
|
|
|
|
that.agencyId = res.agencyId;
|
|
|
|
|
that.mLook = that.info.himSee == 1 ? false : true;
|
|
|
|
|
that.numSlot = [
|
|
|
|
|
{
|
|
|
|
|
name: "职位数",
|
|
|
|
|
num: that.info.himSee == 0 ? 0 : that.info.jobNum,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "今日更新",
|
|
|
|
|
num: that.info.jobUpdateNum,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "粉丝数",
|
|
|
|
|
num: that.info.downNum,
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
that.getList();
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
},
|
|
|
|
|
goDetailUser() {
|
|
|
|
|
|