+
@@ -86,7 +86,7 @@
@@ -129,8 +129,11 @@ export default {
data() {
return {
numSlot: [],
+ fromShare: false,
navColor: "rgb(255,255,255,0)",
isLogin: null,
+ isShowMore: true,
+ isShowJob: true,
submitConfirm: false,
pageSpeed: 0,
agencyId: 0,
@@ -219,11 +222,16 @@ export default {
var sceneStr = decodeURIComponent(options.scene);
var sceneJson = this.G.sceneToJson(sceneStr);
this.scene = options.scene;
+ this.fromShare = true;
+
console.log("sceneJson===", sceneJson);
this.inviteUserId = sceneJson.id.split("_")[1]; //被关注团队的邀请人id
this.uid = sceneJson.id.split("_")[0]; // 被关注团队的id
} else {
this.uid = options.id;
+ this.isShowMore = options.isShowMore ? true : false;
+ this.isShowJob = options.isShowJob;
+ this.fromShare = false;
}
this.type = options.type ? options.type : "";
this.jobDetailShow = options.jobDetailShow || true;
@@ -275,9 +283,15 @@ export default {
},
methods: {
goHome() {
- uni.switchTab({
- url: "/pages/home/index",
- });
+ if (this.fromShare) {
+ uni.switchTab({
+ url: "/pages/home/index",
+ });
+ } else {
+ uni.navigateBack({
+ delta: 1,
+ });
+ }
},
getAgencyInfo() {
let that = this;
@@ -294,6 +308,59 @@ export default {
});
});
},
+ goMore() {
+ let that = this,
+ str = "";
+ if (this.fromShare || this.isSelf) {
+ return false;
+ }
+ this.G.isLogin();
+ if (this.G.isLogin()) {
+ console.log(that.isShowMore);
+ console.log(that.info);
+ if (that.isShowMore == true) {
+ if (that.info.recordStatus == 2) {
+ str = 3;
+ } else {
+ str = that.info.up;
+ }
+ console.log("that.type", that.type);
+ uni.navigateTo({
+ url: "/root/bind/more?delta=2&id=" + that.agencyId + "&himSee=" + that.info.himSee + "&lookHim=" + that.info.lookHim + "&type=" + str + "&from=" + that.type + "&lid=" + that.info.lookHimOperateId + "&hid=" + that.info.himSeeOperateId,
+ });
+ }
+ }
+ },
+ handleCancel() {
+ let that = this;
+ this.G.isLogin();
+ if (this.G.isLogin()) {
+ that.G.handleConfirm({
+ content: "是否取消关注该发单号?",
+ success: (res) => {
+ if (res.confirm) {
+ that.G.Get(
+ that.api.bind_cancelApply + "/" + that.agencyId,
+ {
+ agencyId: that.agencyId,
+ },
+ () => {
+ uni.showToast({
+ icon: "success",
+ title: "取消关注成功",
+ });
+ setTimeout(() => {
+ that.getAgencyById();
+ that.getDefault("init");
+ // that.getList();
+ }, 1500);
+ }
+ );
+ }
+ },
+ });
+ }
+ },
getDetail() {
let that = this;
// 123123
@@ -315,9 +382,9 @@ export default {
that.isSelf = true;
}
}
- if (that.info.supplierAccount == 0) {
- that.isShowMore = false;
- }
+ // if (that.info.supplierAccount == 0) {
+ // that.isShowMore = false;
+ // }
that.agencyId = res.agencyId;
that.numSlot = [
{
@@ -509,7 +576,7 @@ export default {
title: "关注成功",
});
setTimeout(() => {
- that.getDetail();
+ that.getAgencyById();
}, 800);
}
);
@@ -570,6 +637,8 @@ export default {
return new Promise((reso, reject) => {
this.G.Get(this.api.order_getAgencyByIdForApply, { agencyId: that.uid, inviteUserId: this.inviteUserId }, (res) => {
console.log("resresresresresres++++++++++++++", res);
+ console.log("resresresresresres++++++++++++++", that.agencyInfo);
+ console.log("resresresresresres++++++++++++++", that.isSelf);
that.pageSpeed = 1;
that.info = res;
that.agencyId = res.id;
@@ -604,9 +673,12 @@ export default {
},
successLogin(e) {
let that = this;
+ this.isLogin = true;
console.log("successLogin", e);
this.getAgencyInfo().then(() => {
that.getAgencyById().then(() => {
+ that.getDefault("init");
+
if (that.info.recordStatus == 3 || that.info.recordStatus == 4 || that.info.recordStatus == 6) {
that.handleSubmit();
} else {
@@ -625,8 +697,8 @@ export default {
this.isLogin = true;
that.getAgencyInfo().then(() => {
that.getAgencyById().then(() => {
- that.query.page++;
- that.getDefault("concat");
+ // that.query.page++;
+ that.getDefault("init");
});
});
},