|
|
|
|
@ -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];
|
|
|
|
|
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 {
|
|
|
|
|
this.uid = options.id;
|
|
|
|
|
if (uni.getStorageSync("user_options")) {
|
|
|
|
|
options = uni.getStorageSync("user_options");
|
|
|
|
|
}
|
|
|
|
|
this.type = options.type ? options.type : "";
|
|
|
|
|
this.isShowMore = options.isShowMore;
|
|
|
|
|
this.isShowJob = options.isShowJob;
|
|
|
|
|
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,6 +212,7 @@ export default {
|
|
|
|
|
// this.G.isLogin();
|
|
|
|
|
// if (this.G.isLogin()) {
|
|
|
|
|
that.pageSpeed = 0;
|
|
|
|
|
if (that.uid) {
|
|
|
|
|
that.G.Get(
|
|
|
|
|
that.api.bind_enterpriseDetail + "/" + that.uid,
|
|
|
|
|
{
|
|
|
|
|
@ -230,6 +250,8 @@ export default {
|
|
|
|
|
that.getList();
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
},
|
|
|
|
|
goDetailUser() {
|
|
|
|
|
|