cyl/master-im
wangxia 6 months ago
parent cd4b0c7a9c
commit e17f430814

@ -83,22 +83,22 @@
<view class="g_w_36 g_h_18 g_fs_12 g_redius_4" style="background-color: #fff5f5; color: #ff4d4f" v-if="item.teamType == 1"></view> <view class="g_w_36 g_h_18 g_fs_12 g_redius_4" style="background-color: #fff5f5; color: #ff4d4f" v-if="item.teamType == 1"></view>
</view> </view>
</view> </view>
<view class="g_ell_1 g_fs_14 g_c_9 g_mt_4"> <view class="g_fs_14 g_c_9 g_mt_4">
<view class="g_flex_row_start"> <view class="g_flex_row_start">
<view class="g_flex_row_start"> <view class="g_flex_row_start">
<view> 职位 </view> <view class=""> 职位 </view>
<view class="g_mr_8 g_ml_5 g_c_3"> <view class="g_mr_8 g_ml_5 g_c_3">
{{ item.jobNum ? item.jobNum : "0" }} {{ item.jobNum ? item.jobNum : "0" }}
</view> </view>
</view> </view>
<view class="g_flex_row_start"> <view class="g_flex_row_start">
<view> 今日更新 </view> <view class=""> 今日更新 </view>
<view class="g_mr_8 g_ml_5 g_c_3"> <view class="g_mr_8 g_ml_5 g_c_3">
{{ item.jobUpdateNum ? item.jobUpdateNum : "0" }} {{ item.jobUpdateNum ? item.jobUpdateNum : "0" }}
</view> </view>
</view> </view>
<view class="g_flex_row_start"> <view class="g_flex_row_start">
<view> 粉丝 </view> <view class=""> 粉丝 </view>
<view class="g_mr_8 g_ml_5 g_c_3"> <view class="g_mr_8 g_ml_5 g_c_3">
{{ item.downNum ? item.downNum : "0" }} {{ item.downNum ? item.downNum : "0" }}
</view> </view>

@ -59,6 +59,7 @@ export default {
data() { data() {
return { return {
localBaseImg: this.G.store().localBaseImg, localBaseImg: this.G.store().localBaseImg,
agencyInfo: uni.getStorageSync("agencyInfo"),
active: 0, active: 0,
placeholder: "", placeholder: "",
wxCode: "", wxCode: "",
@ -106,7 +107,7 @@ export default {
shareForm: "friend", shareForm: "friend",
}; };
console.log("代理id", that.recommendList); console.log("代理id", that.recommendList);
return this.G.shareFun("/root/detail/user?" + that.G.objToStr(params), this.shareImg, that.agencyName + "邀请您关注他的发单号,快来关注吧!"); return this.G.shareFun("/root/detail/user?" + that.G.objToStr(params), this.shareImg, that.agencyInfo.fullName + "邀请您关注他的发单号,快来关注吧!");
}, },
onLoad(options) { onLoad(options) {
console.log(options); console.log(options);
@ -176,7 +177,6 @@ export default {
} }
}, },
}); });
}, },
}, },
}; };

@ -6,7 +6,7 @@
<div class="g_pb_16"> <div class="g_pb_16">
<img class="g_h_80 g_w_80 g_radius_50" :src="beFllowAgencyInfo.logo || 'https://matripe-cms.oss-cn-beijing.aliyuncs.com/dailibaoming/APP/default.svg'" alt="" /> <img class="g_h_80 g_w_80 g_radius_50" :src="beFllowAgencyInfo.logo || 'https://matripe-cms.oss-cn-beijing.aliyuncs.com/dailibaoming/APP/default.svg'" alt="" />
<div class="g_fs_20 g_mt_12 g_mb_12 g_fw_600"> <div class="g_fs_20 g_mt_12 g_mb_12 g_fw_600">
{{ beFllowAgencyInfo.agencyName || "-" }} {{ beFllowAgencyInfo.fullName || "-" }}
</div> </div>
<div class="g_c_9 g_fs_14"> <div class="g_c_9 g_fs_14">
{{ beFllowAgencyInfo.desp || "-" }} {{ beFllowAgencyInfo.desp || "-" }}
@ -22,7 +22,7 @@
<div class="g_mt_30"> <div class="g_mt_30">
<div class="g_fs_18 g_mb_8 g_pl_12">填写企业简称:</div> <div class="g_fs_18 g_mb_8 g_pl_12">填写企业简称:</div>
<div class="r_box g_pl_10"> <div class="r_box g_pl_10">
<u-input v-model="agencyInfo.fullName" :disabled="disabled" height="88" placeholder="区域+名称,如:上海发财劳务"></u-input> <u-input v-model="agencyInfo.fullName" :customStyle="{ color: disabled ? '#999' : '#333' }" :disabled="disabled" height="88" placeholder="区域+名称,如:上海发财劳务"></u-input>
</div> </div>
<div class="g_fs_12 g_c_9 g_mt_6 g_pl_12">设置后系统将自动创建团队并关注该发单号您作为创建人可在我的页面管理团队</div> <div class="g_fs_12 g_c_9 g_mt_6 g_pl_12">设置后系统将自动创建团队并关注该发单号您作为创建人可在我的页面管理团队</div>
</div> </div>
@ -92,6 +92,7 @@ export default {
} }
}, },
onShow() { onShow() {
let that = this;
that.G.Get("/checkUserLogin", {}, (res) => { that.G.Get("/checkUserLogin", {}, (res) => {
console.log("checkUserLogin", res); console.log("checkUserLogin", res);
if (res) { if (res) {
@ -147,25 +148,38 @@ export default {
}, },
getAgencyById() { getAgencyById() {
let that = this; let that = this;
this.G.Get(this.api.order_getAgencyByIdForApply, { agencyId: that.uid, inviteUserId: this.inviteUserId }, (res) => { return new Promise((reso, reject) => {
console.log("resresresresresres++++++++++++++", res); this.G.Get(this.api.order_getAgencyByIdForApply, { agencyId: that.uid, inviteUserId: this.inviteUserId }, (res) => {
that.beFllowAgencyInfo = res; console.log("resresresresresres++++++++++++++", res);
if (res.id == that.agencyInfo.id) { that.beFllowAgencyInfo = res;
that.isSelf = true; if (res.id == that.agencyInfo.id) {
} that.isSelf = true;
that.numList = [ }
{ label: "总职位", num: res.jobNum }, that.numList = [
{ label: "最近更新", num: res.recruitmentJobNum }, { label: "总职位", num: res.jobNum },
{ label: "粉丝", num: res.downNum }, { label: "最近更新", num: res.recruitmentJobNum },
]; { label: "粉丝", num: res.downNum },
];
reso();
});
}); });
}, },
successLogin(e) { successLogin(e) {
let that = this; let that = this;
console.log("successLogin", e); console.log("successLogin", e);
this.getAgencyInfo().then(() => { this.getAgencyInfo().then(() => {
that.getAgencyById(); that.getAgencyById().then(() => {
that.applyAdd(); if (that.beFllowAgencyInfo.recordStatus == 3 || that.beFllowAgencyInfo.recordStatus == 4 || that.beFllowAgencyInfo.recordStatus == 6) {
that.applyAdd();
} else {
if (that.beFllowAgencyInfo.recordStatus == 5) {
uni.showToast({
title: "已发起关注申请, 正在等待通过",
icon: "none",
});
}
}
});
}); });
}, },
getAgencyInfo() { getAgencyInfo() {

@ -5,7 +5,7 @@
<div class="r_box g_pt_24 g_pb_16 g_text_c"> <div class="r_box g_pt_24 g_pb_16 g_text_c">
<img class="g_h_80 g_w_80 g_radius_50" :src="agencyInfo.logo || 'https://matripe-cms.oss-cn-beijing.aliyuncs.com/dailibaoming/APP/default.svg'" alt="" /> <img class="g_h_80 g_w_80 g_radius_50" :src="agencyInfo.logo || 'https://matripe-cms.oss-cn-beijing.aliyuncs.com/dailibaoming/APP/default.svg'" alt="" />
<div class="g_fs_20 g_mt_12 g_mb_12 g_fw_600"> <div class="g_fs_20 g_mt_12 g_mb_12 g_fw_600">
{{ agencyInfo.agencyName || "-" }} {{ agencyInfo.fullName || "-" }}
</div> </div>
<div class="g_c_9 g_fs_14"> <div class="g_c_9 g_fs_14">
{{ agencyInfo.desp || "-" }} {{ agencyInfo.desp || "-" }}

@ -111,11 +111,14 @@ export default {
this.G.setNavStyle(); this.G.setNavStyle();
}, },
onShareAppMessage() { onShareAppMessage() {
return this.G.shareFun(); let that = this;
return this.G.shareFun("/root/person/memberApplyAdd?scene=" + `id=${this.userInfo.agencyId}_${this.userInfo.id}`, this.shareImg, that.agencyInfo.fullName + "邀请您加入他的团队");
}, },
data() { data() {
return { return {
localBaseImg: this.G.store().localBaseImg, localBaseImg: this.G.store().localBaseImg,
userInfo: uni.getStorageSync("apply-userinfo"),
agencyInfo: uni.getStorageSync("agencyInfo"),
cdnBaseImg: this.G.store().cdnBaseImg, cdnBaseImg: this.G.store().cdnBaseImg,
wxCode: "", wxCode: "",
showBg: false, showBg: false,

@ -6,7 +6,7 @@
<div class="g_pb_16"> <div class="g_pb_16">
<img class="g_h_80 g_w_80 g_radius_50" :src="beFllowAgencyInfo.logo || 'https://matripe-cms.oss-cn-beijing.aliyuncs.com/dailibaoming/APP/default.svg'" alt="" /> <img class="g_h_80 g_w_80 g_radius_50" :src="beFllowAgencyInfo.logo || 'https://matripe-cms.oss-cn-beijing.aliyuncs.com/dailibaoming/APP/default.svg'" alt="" />
<div class="g_fs_20 g_mt_12 g_mb_12 g_fw_600"> <div class="g_fs_20 g_mt_12 g_mb_12 g_fw_600">
{{ beFllowAgencyInfo.agencyName || "-" }} {{ beFllowAgencyInfo.fullName || "-" }}
</div> </div>
<div class="g_c_9 g_fs_14"> <div class="g_c_9 g_fs_14">
{{ beFllowAgencyInfo.desp || "-" }} {{ beFllowAgencyInfo.desp || "-" }}

Loading…
Cancel
Save