同步新关注页

app
wangxia 9 months ago
parent 804fd5dd38
commit 645ab708ff

@ -15,6 +15,7 @@ let bindInfo = {
bind_setPeolple:"/assistant/circle/agency/lookHim",// 看不看他
bind_cancelApply:"/assistant/circle/agency/unsubscribe",// 取消关注
bind_delApply:"/assistant/circle/agency/removeFans",// 删除粉丝
bind_getAgencyCorpUsersNum:"/yishoudan/agency/getAgencyCorpUsersNum",// 获取团队成员数
}
export default bindInfo;

@ -142,7 +142,6 @@
"navigationBarTitleText": " "
}
},
{
"path": "pwdForget",
"style": {
@ -340,6 +339,15 @@
"backgroundColorBottom": "#ededed"
}
},
{
"path": "userShare",
"style": {
"navigationBarTitleText": "详情", //
"backgroundColor": "#ededed",
"backgroundColorBottom": "#ededed",
"navigationStyle": "custom"
}
},
{
"path": "job",
"style": {

@ -20,22 +20,12 @@
</view>
<view class="g_flex_column_center g_flex_1">
<view class="g_ell_1 g_fs_18 g_c_3">{{ tabInfo.active == 0 ? "新的关注" : "新的粉丝" }}</view>
<view
class="g_ell_1 g_fs_14 g_c_9 g_mt_4"
v-if="tabInfo.active == 0"
:style="{
<view class="g_ell_1 g_fs_14 g_c_9 g_mt_4" v-if="tabInfo.active == 0" :style="{
color: Number(waitNum_downs) == 0 ? '#fff' : '#999',
}"
>您有{{ waitNum_downs }}条信息等待对方通过</view
>
<view
class="g_ell_1 g_fs_14 g_c_9 g_mt_4"
v-else
:style="{
}">您有{{ waitNum_downs }}条信息等待对方通过</view>
<view class="g_ell_1 g_fs_14 g_c_9 g_mt_4" v-else :style="{
color: Number(waitNum_downs) == 0 ? '#fff' : '#999',
}"
>您有{{ waitNum_downs }}条新的粉丝申请</view
>
}">您有{{ waitNum_downs }}条新的粉丝申请</view>
</view>
</view>
<view class="g_flex_none g_h_all g_flex_column_center g_pl_20 g_h_48" v-if="Number(waitNum_ups) > 0">
@ -55,10 +45,9 @@
<view class="g_mt_4 g_text_c">{{ inviteNum }}个发单号向你发出邀请</view>
</view>
</view>
<view class="g_dot_18 g_bg_f40 g_c_f g_text_c" v-if="showDot">
{{ inviteNum }}
</view>
<view class="g_dot_18 g_bg_f40 g_c_f g_text_c" v-if="showDot">{{ inviteNum }}</view>
</view>
<div class="g_h_10"></div>
<div class="r_box g_ml_10 g_mr_10" style="overflow: hidden">
<view class="item g_flex_row_between g_pl_16 g_pr_16 g_pb_6 g_pt_6 g_bg_f" hover-class="g_bg_e" v-for="(item, index) in query.list" :key="index" @click="goMain(item)" :class="index == 0 ? 'g_pt_12' : ''" :style="{ 'border-bottom': index == query.list.length - 1 ? '1rpx solid #fff' : '1rpx solid #eee' }">
<view class="g_flex_none g_flex_row_start">
@ -87,21 +76,15 @@
<view class="g_flex_row_start">
<view class="g_flex_row_start">
<view>总职位</view>
<view class="g_mr_8">
{{ item.jobNum ? item.jobNum : "0" }}
</view>
<view class="g_mr_8">{{ item.jobNum ? item.jobNum : "0" }}</view>
</view>
<view class="g_flex_row_start">
<view>在招</view>
<view class="g_mr_8">
{{ item.recruitmentJobNum ? item.recruitmentJobNum : "0" }}
</view>
<view class="g_mr_8">{{ item.recruitmentJobNum ? item.recruitmentJobNum : "0" }}</view>
</view>
<view class="g_flex_row_start">
<view>粉丝</view>
<view class="g_mr_8">
{{ item.downNum ? item.downNum : "0" }}
</view>
<view class="g_mr_8">{{ item.downNum ? item.downNum : "0" }}</view>
</view>
</view>
</view>
@ -154,10 +137,10 @@
<script>
export default {
onReady() {
this.G.setNavStyle();
this.G.setNavStyle()
},
onShareAppMessage() {
return this.G.shareFun();
return this.G.shareFun()
},
data() {
return {
@ -173,7 +156,7 @@ export default {
list: [],
isFinish: -1,
},
keyword: "",
keyword: '',
scrollTop: 0,
domHeight: 0,
waitNum_downs: 0,
@ -181,26 +164,26 @@ export default {
cardTab: [
{
icon: "t-icon-xunzhaoshangyou",
title: "搜索发单号",
remark: "关注更多单子的更新",
icon: 't-icon-xunzhaoshangyou',
title: '搜索发单号',
remark: '关注更多单子的更新',
},
{
icon: "t-icon-fazhanxiayou",
title: "发展代理",
remark: "让更多代理关注我",
icon: 't-icon-fazhanxiayou',
title: '发展代理',
remark: '让更多代理关注我',
},
],
tabInfo: {
list: [
{
name: "关注(0)",
name: '关注(0)',
num: 0,
tip: 0,
cate_count: 0,
},
{
name: "粉丝(0)",
name: '粉丝(0)',
num: 0,
tip: 1,
cate_count: 0,
@ -211,20 +194,20 @@ export default {
tabFansInfo: {
list: [
{
name: "新的代理",
name: '新的代理',
},
{
name: "全部粉丝",
name: '全部粉丝',
},
],
active: 0,
},
inviteNum: 0, //
};
}
},
onLoad(options) {
let that = this;
that.tabInfo.active = options.active;
let that = this
that.tabInfo.active = options.active
// if (that.tabInfo.active == 0) {
// uni.setNavigationBarTitle({
// title: "",
@ -236,159 +219,159 @@ export default {
// });
// }
// }
const query = uni.createSelectorQuery().in(this);
const query = uni.createSelectorQuery().in(this)
query
.select(".m-top")
.select('.m-top')
.boundingClientRect((data) => {
that.domHeight = data.height + 34;
that.domHeight = data.height + 34
})
.exec();
.exec()
},
onShow() {
let that = this;
that.isLogin = uni.getStorageSync("apply-token");
if (uni.getStorageSync("watch_invite")) {
if (uni.getStorageSync("watch_invite") == 1) {
that.showDot = false; //
let that = this
that.isLogin = uni.getStorageSync('apply-token')
if (uni.getStorageSync('watch_invite')) {
if (uni.getStorageSync('watch_invite') == 1) {
that.showDot = false //
}
}
if (!that.isLogin) {
that.waitNum_downs = 0;
that.waitNum_ups = 0;
that.tabInfo.list[0].name = "关注(0)";
that.tabInfo.list[1].name = "粉丝(0)";
that.isShow = true;
that.speed = 0;
that.loading = false;
that.query.list = [];
that.waitNum_downs = 0
that.waitNum_ups = 0
that.tabInfo.list[0].name = '关注(0)'
that.tabInfo.list[1].name = '粉丝(0)'
that.isShow = true
that.speed = 0
that.loading = false
that.query.list = []
} else {
that.query.page = 1;
that.getWaitNum();
that.getNum();
that.getList();
that.getInviteNum();
that.query.page = 1
that.getWaitNum()
that.getNum()
that.getList()
that.getInviteNum()
that.getPoint();
that.getPoint()
}
},
onReachBottom() {
let that = this;
let that = this
if (that.query.isFinish == -1 || that.query.isFinish == that.query.size) {
that.query.page++;
that.getList("concat");
that.query.page++
that.getList('concat')
}
},
onPageScroll(e) {
this.scrollTop = e.scrollTop;
this.scrollTop = e.scrollTop
},
methods: {
handleUpdateFensTab(e) {},
getPoint() {
let that = this;
let that = this
that.G.Get(
that.api.bind_getWaitNum + "/2",
that.api.bind_getWaitNum + '/2',
{
type: 2,
},
(res) => {
that.tabInfo.list[1].cate_count = res.unread;
that.tabInfo.list[1].cate_count = res.unread
}
);
)
},
getWaitNum() {
let that = this;
let that = this
that.G.Get(
that.api.bind_getWaitNum + "/" + (that.tabInfo.active * 1 + 1),
that.api.bind_getWaitNum + '/' + (that.tabInfo.active * 1 + 1),
{
type: that.tabInfo.active * 1 + 1,
},
(res) => {
that.waitNum_downs = res.total;
that.waitNum_ups = res.unread;
console.log("获取指定数量:", res);
that.$forceUpdate();
that.waitNum_downs = res.total
that.waitNum_ups = res.unread
console.log('获取指定数量:', res)
that.$forceUpdate()
}
);
)
},
getNum() {
let that = this;
let that = this
that.G.Post(
that.api.bind_getListNum,
{
keys: that.keyword,
},
(res) => {
that.tabInfo.list[0].name = "关注(" + res.ups + ")";
that.tabInfo.list[1].name = "粉丝(" + res.downs + ")";
that.tabInfo.list[0].name = '关注(' + res.ups + ')'
that.tabInfo.list[1].name = '粉丝(' + res.downs + ')'
}
);
)
},
getInviteNum() {
let that = this;
let that = this
that.G.Get(that.api.user_getInviteNum, {}, (res) => {
console.log(res);
that.inviteNum = res;
});
console.log(res)
that.inviteNum = res
})
},
getList($type = "init") {
let that = this;
that.isShow = false;
getList($type = 'init') {
let that = this
that.isShow = false
that.G.Post(
that.api.bind_list,
{
pageNum: that.query.page,
pageSize: that.query.size,
keys: that.keyword,
platform: "pc",
platform: 'pc',
type: that.tabInfo.active * 1 + 1,
formdata: true,
},
(res) => {
that.isShow = true;
that.speed = res.recordCount;
that.isShow = true
that.speed = res.recordCount
if (that.speed == 0) {
that.loading = false;
that.loading = false
} else {
that.loading = true;
that.loading = true
}
that.query.isFinish = res.recordList.length;
if ($type == "init") {
that.query.list = [];
that.query.list = res.recordList;
that.query.isFinish = res.recordList.length
if ($type == 'init') {
that.query.list = []
that.query.list = res.recordList
} else {
that.query.list = that.query.list.concat(res.recordList);
that.query.list = that.query.list.concat(res.recordList)
}
}
);
)
},
getSearch(e) {
if (e == "string") {
this.keyword = e;
if (e == 'string') {
this.keyword = e
}
this.G.isLogin();
this.G.isLogin()
if (this.G.isLogin()) {
this.speed = -1;
this.query.page = 1;
this.getList();
this.speed = -1
this.query.page = 1
this.getList()
}
},
handleUpdateTab(e) {
this.G.isLogin();
this.G.isLogin()
if (this.G.isLogin()) {
this.tabInfo.active = e;
this.speed = -1;
this.query.page = 1;
this.getList();
this.getWaitNum();
this.getNum();
this.getPoint();
this.tabInfo.active = e
this.speed = -1
this.query.page = 1
this.getList()
this.getWaitNum()
this.getNum()
this.getPoint()
}
},
goMain($item) {
let that = this;
this.G.isLogin();
let that = this
this.G.isLogin()
if (this.G.isLogin()) {
if ($item.supplierAccount == 1) {
let params = {
@ -397,71 +380,71 @@ export default {
bindid: $item.id,
isShowMore: false,
isShowJob: false,
};
}
if (that.tabInfo.active == 0) {
//
params.isShowMore = true;
params.isShowJob = true;
params.isShowMore = true
params.isShowJob = true
} else {
//
if ($item.recordStatus == 1) {
//
params.isShowMore = true;
params.isShowJob = false;
params.isShowMore = true
params.isShowJob = false
} else {
//
params.isShowMore = true;
params.isShowJob = true;
params.isShowMore = true
params.isShowJob = true
}
}
uni.navigateTo({
url: "/root/detail/user?" + that.G.objToStr(params),
});
url: '/root/detail/user?' + that.G.objToStr(params),
})
} else {
//
uni.navigateTo({
url: "/root/bind/more?delta=1&id=" + $item.agencyId + "&himSee=" + $item.himSee + "&lookHim=" + $item.lookHim + "&type=" + 2 + "&hid=" + $item.id,
});
url: '/root/bind/more?delta=1&id=' + $item.agencyId + '&himSee=' + $item.himSee + '&lookHim=' + $item.lookHim + '&type=' + 2 + '&hid=' + $item.id,
})
}
}
},
goApply() {
let that = this,
str = "";
this.G.isLogin();
str = ''
this.G.isLogin()
if (this.G.isLogin()) {
uni.navigateTo({
url: "/root/bind/applyList?active=2",
});
url: '/root/bind/applyList?active=2',
})
}
},
goSearch($item, $index) {
let that = this;
that.G.isLogin();
let that = this
that.G.isLogin()
if (that.G.isLogin()) {
uni.navigateTo({
url: "/root/bind/search?active=" + $index,
});
url: '/root/bind/search?active=' + $index,
})
}
},
goApplyForm($item, $index) {
let that = this;
let that = this
if ($item.recordStatus == 5 || $item.recordStatus == 6) {
} else {
uni.navigateTo({
url: "/root/bind/applyForm?code=" + $item.agencyId + "&form=1",
});
url: '/root/bind/applyForm?code=' + $item.agencyId + '&form=1',
})
}
},
goInviteList() {
uni.navigateTo({
url: "/root/bind/inviteList?active=0",
});
url: '/root/bind/inviteList?active=0',
})
},
},
};
}
</script>
<style lang="scss">

@ -0,0 +1,814 @@
<template>
<div class="p-root-detail-user g_w_all g_bg_page g_kuaishou">
<view class="g_h_136" style="background-color: #48aaf9 !important"></view>
<div class style="background-color: #48aaf9 !important">
<view class="m-info g_p_20 g_pt_12 g_pb_0 g_bg_f g_position_rela" hover-class="none" style="margin-top: 0;border-radius:8px 8px 0 0 ">
<view class="g_flex_row_start">
<view class="g_w_71">
<view class="g_position_abso g_p_4 g_radius_50 g_bg_f" style="top: -20px">
<g-panel-image :radius="50" :size="128" :url="info.logo" />
</view>
</view>
<view class="g_flex_1 g_ml_11">
<view class="g_flex_row_between flex_center">
<view class="g_flex_row_start flex_center" style="line-height: 22px">
<view class="g_flex_none g_ell_1 g_fs_18 g_fw_bold g_c_3" style="max-width: 240rpx">{{ info.fullName || info.agencyName || "-" }}</view>
</view>
</view>
</view>
</view>
<view class="g_flex_row_start flex_center g_mt_18 g_fs_14 g_c_8" hover-class="thover" @click="goPage('/root/person/info?active=1')">
<view class>{{ info.agencyName || info.fullName || "-" }}</view>
<i class="iconfont icon-gengduo11" style="line-height: 22px; font-size: 10px"></i>
</view>
<div v-if="info.supplierAccount == 1" style>
<div class="g_pt_12" style=" height: 100%">
<div class="g_flex_row_between">
<div v-for="(item, index) in numSlot" :key="index" class="g_flex_row_center g_position_rela">
<div class="g_flex_row_center flex_end">
<div class="g_c_3 g_fw_600 g_mr_2 g_fs_20" style="line-height:1">{{ item.num }}</div>
<div class="g_fs_12 g_c_6 g_flex_column_end">{{ item.name }}</div>
</div>
</div>
</div>
</div>
<div class="g_pt_12 g_fs_14" style=" height: 100%">{{info.agencyDesp}}</div>
</div>
<div class="g_h_10"></div>
<div class>
<quickLogin @successLogin="successLogin" v-if="!agencyInfo.id">
<g-button btnText="申请关注" type="primary" class></g-button>
</quickLogin>
<g-button v-else-if="isSelf" btnText="不能关注自己" type="disabled"></g-button>
<div v-else>
<div class="g_flex_row_center" v-if="beFllowAgencyInfo.recordStatus == 1">
<!-- 已关注 1 -->
<div style="width:calc((100vw - 50px) / 2);" class="g_mr_10">
<g-button btnText="已关注发单号" type="disabled" class></g-button>
</div>
<div style="width:calc((100vw - 50px) / 2);">
<g-button btnText="联系客服" type="disabled" class></g-button>
</div>
</div>
<div style="width: calc(100vw - 40px)" v-else-if="beFllowAgencyInfo.recordStatus == 2">
<g-button btnText="互相关注" type="disabled" class></g-button>
</div>
<div style="width: calc(100vw - 40px)" v-else-if="(beFllowAgencyInfo.recordStatus == 3 || beFllowAgencyInfo.recordStatus == 4) && !isSelf">
<g-button btnText="申请关注" type="primary" class @clickBtn="handleSubmit"></g-button>
</div>
<div style="width: calc(100vw - 40px)" v-else-if="beFllowAgencyInfo.recordStatus == 5">
<g-button btnText="等待通过" type="disabled" class></g-button>
</div>
<div style="width: calc(100vw - 40px)" v-else-if="beFllowAgencyInfo.recordStatus == 6 && !isSelf">
<g-button btnText="申请关注" type="primary" class @clickBtn="handleSubmit"></g-button>
</div>
</div>
</div>
</view>
<div class="g_bg_f g_pt_8">
<u-tabs bg-color="transparent" from="index" gutter="20" :list="tabInfo.list" :is-scroll="true" :current="tabInfo.active" active-color="#000" bar-width="64" bar-height="6" @change="handleUpdateTab" font-size="32" duration="0.05" height="56"></u-tabs>
</div>
<!-- 基本信息 -->
<div class="g_h_all" v-if="info.supplierAccount == 1">
<div v-if="jobDetailShow || jobDetailShow == 'true'">
<!-- 正常职位 -->
<div class="m-detail" v-if="(info.recordStatus == 1 || info.recordStatus == 2) && info.himSeeBtn == 1">
<div class="g_h_10"></div>
<g-list-job @uploadList="getList" :recordStatus="info.recordStatus" :showShare="false" :list="query.list" :loading="loading" :speed="speed" :query="query" @clickTop="goDetailJob" @clickBottom="goDetailUser" emptyText="暂无职位" emptySubText=" " />
</div>
<!-- 未关注 -->
<div class="m-detail" v-if="(info.recordStatus == 4 || info.recordStatus == 3 || info.recordStatus == 5 || info.recordStatus == 6 || info.recordStatus == 7) && info.himSeeBtn == 1">
<div class="g_h_10"></div>
<g-list-job @uploadList="getList" from="user" :isSelf="isSelf" :recordStatus="info.recordStatus" :showShare="false" :list="query.list" :loading="loading" :speed="speed" :query="query" @clickTop="goDetailJob" @clickBottom="goDetailUser" :emptyText="isSelf ? speed + '个职位' : '未关注用户仅展示预览职位'" emptySubText=" " />
</div>
<div v-if="info.himSeeBtn == 0" style="padding-top: 260rpx">
<g-empty text="您关注的发单号暂未发布职位" />
</div>
</div>
</div>
<div v-if="info.supplierAccount == 0" style="width: calc(100% - 20px); margin: 0 auto">
<div class="g_bg_f g_pl_16 g_pr_16 g_radius_8">
<div class="g_flex_row_between g_h_56">
<div class="g_flex_column_center g_fs_16 g_c_3">不让他看我的职位</div>
<div class="g_flex_column_center">
<u-switch v-model="mLook" activeColor="#00B666" @change="handleSee"></u-switch>
</div>
</div>
</div>
<div class="g_w_260 g_h_42 g_radius_25 g_bg_f g_fs_18 g_flex_c g_mt_90" style="color: #fa5151; margin: 90px auto 0" hover-class="thover" @click="goReturn"></div>
</div>
</div>
<!-- 发布职位确认框 -->
<u-modal v-model="submitConfirm" width="90%" negativeTop="52" confirmText="发布职位" :showTitle="false" :confirmStyle="{ color: '#576b95', 'font-weight': 600 }" :cancelStyle="{ color: '#000', 'font-weight': 600 }" :showConfirmButton="false">
<div class="g_fs_17 g_text_c">
<div class style="padding:42px 24px 36px ">
<div class="g_text_c g_fw_600 g_c_0">创建团队/企业</div>
<div class="g_text_c g_c_6 g_mb_16 g_mt_16">发单号以团队为单位进行发单和关注创建团队后可关注发单号</div>
<div class="g_fs_14 g_pl_12 g_bg_f2 g_border_d g_radius_4 g_flex_row_start flex_center">
<u-input v-model="agencyInfo.fullName" :customStyle="{ color: disabled ? '#999' : '#333',fontSize:'17px' }" :disabled="disabled" height="96" placeholder="请填写团队/企业简称"></u-input>
</div>
</div>
<div class="g_flex_row_center flex_center g_fw_600 g_border_e_t">
<div class="g_flex_1 g_h_50 g_text_c g_c_0 g_border_e_r" hover-class="thover" @click="submitConfirm = false" style="line-height: 50px">取消</div>
<div class="g_flex_1 g_h_50 g_text_c g_c_sub" hover-class="thover" @click="finallySubmit" style="line-height: 50px">确定</div>
</div>
</div>
</u-modal>
</div>
</template>
<script>
import quickLogin from '../../components/quickLogin.vue'
export default {
components: {
quickLogin,
},
onReady() {
this.G.setNavStyle()
},
// onShareAppMessage(){
// return this.G.shareFun();
// },
data() {
return {
numSlot: [],
isLogin: null,
submitConfirm: false,
pageSpeed: 0,
isShowMore: true,
isShowJob: true,
agencyId: 0,
loading: true,
keyword: '', //
speed: -1,
query: {
page: 1,
size: 50,
list: [],
isFinish: -1,
},
agencyInfo: {},
info: {
avatar: '',
agencyName: '',
jobUpdateNum: 0,
},
uid: 0,
type: 0,
bindid: 0,
dataArray: [
{
name: '职位',
num: 120,
},
{
name: '在招',
num: 120,
},
{
name: '关注',
num: 108,
},
{
name: '粉丝',
num: 250,
},
],
mLook: false,
from: '',
jobDetailShow: true,
loginInfo: {},
isSelf: false, //
scene: '',
tabInfo: {
list: [
{
name: '最新',
num: 0,
tip: 0,
classify: 2,
},
{
name: '最热',
num: 0,
tip: 1,
classify: 3,
},
{
name: '专属',
num: 0,
tip: 2,
classify: 1,
},
],
active: 0,
},
disabled: false,
inviteUserId: 0,
beFllowAgencyInfo: {},
}
},
onLoad(options) {
console.log('用户详情页:', options, ' version:', 1)
this.loginId = uni.getStorageSync('apply-agencyId')
if (this.loginId == options.id && options.id) {
this.isSelf = true
}
if (options.scene) {
var sceneStr = decodeURIComponent(options.scene)
var sceneJson = this.G.sceneToJson(sceneStr)
this.scene = options.scene
console.log('sceneJson===', sceneJson)
this.inviteUserId = sceneJson.id.split('_')[1] //id
this.uid = sceneJson.id.split('_')[0] // id
} 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
if (options.bindid) {
this.bindid = options.bindid
}
this.getDetail()
},
onShow() {
let that = this
that.isLogin = '' // uni.getStorageSync("apply-token");
this.loginInfo = uni.getStorageSync('apply-userinfo')
that.G.Get('/checkUserLogin', {}, (res) => {
console.log('checkUserLogin', res)
if (res) {
that.getAgencyInfo().then(() => {
that.getAgencyById()
})
} else {
that.getAgencyById()
}
})
// if (!that.isLogin) {
// that.loading = false;
// that.speed = 0;
// } else {
// }
},
onReachBottom() {
let that = this
this.G.isLogin()
if (this.G.isLogin()) {
if (that.query.isFinish == -1 || that.query.isFinish == that.query.size) {
that.query.page++
that.getList('concat')
}
}
},
methods: {
getAgencyInfo() {
let that = this
return new Promise((reso, reject) => {
that.G.Get(that.api.login_agencyInfo, {}, (aRes) => {
console.log('获取团队信息:', aRes)
that.disabled = aRes.agency.fullName ? true : false
that.agencyInfo = { ...aRes.agency, fullName: aRes.agency.fullName ? aRes.agency.fullName : that.agencyInfo.fullName }
uni.setStorageSync('agencyInfo', aRes.agency)
setTimeout(() => {
reso()
}, 200)
})
})
},
getDetail() {
let that = this
// 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.info.supplierAccount == 0) {
that.isShowMore = false
}
that.agencyId = res.agencyId
that.mLook = that.info.himSee == 1 ? false : true
that.numSlot = [
{
name: '总职位',
num: that.info.jobNum,
},
{
name: '在招',
num: that.info.recruitmentJobNum,
},
{
name: '关注',
num: that.info.himSee,
},
{
name: '粉丝',
num: that.info.downNum,
},
]
that.getList()
}
)
// }
},
goDetailUser() {
let that = this
this.G.isLogin()
if (this.G.isLogin()) {
if (this.info.recordStatus == 1 || this.info.recordStatus == 2) {
let params = {
id: that.info.agencyId,
type: that.type,
bindid: that.info.id,
isShowMore: true,
isShowJob: true,
}
uni.navigateTo({
url: '/root/detail/user?' + that.G.objToStr(params),
})
} else {
if (that.isSelf) {
} else {
uni.showToast({
title: '关注发单号后才可查看详情',
icon: 'none',
})
}
}
}
},
getDefault($type) {
let that = this
console.log('$type', $type)
this.G.isLogin()
if (this.G.isLogin()) {
that.G.Post(
that.api.job_list,
{
pageNum: that.query.page,
pageSize: that.query.size,
agencyId: that.agencyId,
keys: that.keyword,
},
(res) => {
console.log('resresresresresres', res)
if (res.recordCount == 0) {
that.loading = false
} else {
that.loading = true
}
that.speed = res.recordCount
that.query.isFinish = res.recordList.length
res.recordList = that.G.toGetAddressv3(res.recordList)
res.recordList = that.G.toGetAge(res.recordList)
res.recordList = that.G.yijobCopy(res.recordList)
if ($type == 'init') {
that.query.list = []
that.query.list =
res.recordList.length > 0
? res.recordList.map((item, index) => {
return {
...item,
title: item.jobName,
address: item.district + item.age,
price: item.salaryClassify != 7 ? that.G.getSalaryClassifyValue(item.salaryClassify, item.salaryClassifyValue) : that.G.getSalaryClassifyValue(item.salaryClassify, item.minMonthlyPay, item.maxMonthlyPay),
fuWuFei: that.G.setReturnFee(item.returnFee, item.returnFeeType),
cus_price: item.salaryClassify != 7 ? that.G.getSalaryClassifyValueHtml(item.salaryClassify, item.salaryClassifyValue) : '月薪',
gender: that.G.getGenderByMinAge(item),
logo: item.agencyLogo,
time: that.G.setDeadLine(item.updateTime, 'jiaofu'),
leafCateId: item.id,
// serverPrice: that.G.setReturnFee(item.returnFee, item.returnFeeType),
serverPrice: that.G.setReturnFee(item.agencyReturnFee, item.agencyReturnFeeType),
recruitmentSwitch: item.recruitment == 1 ? true : false,
recruitmentImage: item.recruitment,
isToday: item.today == 0 ? false : true,
active: 0,
}
})
: []
} else {
that.query.list = that.query.list.concat(
res.recordList.length > 0
? res.recordList.map((item, index) => {
return {
...item,
title: item.jobName,
address: item.district + item.age,
price: item.salaryClassify != 7 ? that.G.getSalaryClassifyValue(item.salaryClassify, item.salaryClassifyValue) : that.G.getSalaryClassifyValue(item.salaryClassify, item.minMonthlyPay, item.maxMonthlyPay),
fuWuFei: that.G.setReturnFee(item.returnFee, item.returnFeeType),
gender: that.G.getGenderByMinAge(item),
logo: item.agencyLogo,
time: that.G.setDeadLine(item.updateTime, 'jiaofu'),
leafCateId: item.id,
// serverPrice: that.G.setReturnFee(item.returnFee, item.returnFeeType),
serverPrice: that.G.setReturnFee(item.agencyReturnFee, item.agencyReturnFeeType),
recruitmentSwitch: item.recruitment == 1 ? true : false,
recruitmentImage: item.recruitment,
isToday: item.today == 0 ? false : true,
active: 0,
}
})
: []
)
}
console.log('query.list', that.query.list)
}
)
}
},
getHot($type) {
let that = this
this.G.isLogin()
if (this.G.isLogin()) {
that.G.Post(
that.api.job_hotList + '/' + that.agencyId,
{
pageNum: that.query.page,
pageSize: that.query.size,
agencyId: that.agencyId,
keys: '',
},
(res) => {
console.log('推荐列表:', res)
if (res.length == 0) {
that.loading = false
} else {
that.loading = true
}
that.speed = res.length
that.query.isFinish = res.length
res = that.G.toGetAddressv3(res)
res = that.G.toGetAge(res)
res = that.G.yijobCopy(res)
if ($type == 'init') {
that.query.list = []
that.query.list =
res.length > 0
? res.map((item, index) => {
return {
...item,
title: item.jobName,
address: item.district + item.age,
price: item.salaryClassify != 7 ? that.G.getSalaryClassifyValue(item.salaryClassify, item.salaryClassifyValue) : that.G.getSalaryClassifyValue(item.salaryClassify, item.minMonthlyPay, item.maxMonthlyPay),
fuWuFei: that.G.setReturnFee(item.returnFee, item.returnFeeType),
gender: that.G.getGenderByMinAge(item),
logo: item.agencyLogo,
time: that.G.setDeadLine(item.updateTime, 'jiaofu'),
leafCateId: item.id,
// serverPrice: that.G.setReturnFee(item.returnFee, item.returnFeeType),
serverPrice: that.G.setReturnFee(item.agencyReturnFee, item.agencyReturnFeeType),
agencyId: item.agencyId,
recruitmentSwitch: item.recruitment == 1 ? true : false,
recruitmentImage: item.recruitment,
teamType: item.teamType,
creatorName: item.creatorName,
isToday: item.isToday,
active: 0,
}
})
: []
} else {
that.query.list = that.query.list.concat(
res.length > 0
? res.map((item, index) => {
return {
...item,
title: item.jobName,
address: item.district + item.age,
price: item.salaryClassify != 7 ? that.G.getSalaryClassifyValue(item.salaryClassify, item.salaryClassifyValue) : that.G.getSalaryClassifyValue(item.salaryClassify, item.minMonthlyPay, item.maxMonthlyPay),
fuWuFei: that.G.setReturnFee(item.returnFee, item.returnFeeType),
gender: that.G.getGenderByMinAge(item),
logo: item.agencyLogo,
time: that.G.setDeadLine(item.updateTime, 'jiaofu'),
leafCateId: item.id,
// serverPrice: that.G.setReturnFee(item.returnFee, item.returnFeeType),
serverPrice: that.G.setReturnFee(item.agencyReturnFee, item.agencyReturnFeeType),
recruitmentSwitch: item.recruitment == 1 ? true : false,
recruitmentImage: item.recruitment,
active: 0,
}
})
: []
)
}
}
)
}
},
checkLength(e) {
if (e.length == 0) {
this.keyword = ''
this.getList()
}
},
getList($type = 'init') {
let that = this
this.G.isLogin()
if (this.G.isLogin()) {
if (this.info.recordStatus == 1 || this.info.recordStatus == 2) {
that.getDefault($type)
} else {
that.getHot($type)
}
} else {
that.getHot($type)
}
},
goMore() {
let that = this,
str = ''
this.G.isLogin()
if (this.G.isLogin()) {
if (that.info.supplierAccount == 1) {
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,
})
}
}
}
},
goDetailJob($item) {
let that = this
console.log('that.isSelf1', that.isSelf)
this.G.isLogin()
console.log('that.isSelf2', that.isSelf)
if (this.G.isLogin()) {
if (that.isSelf) {
uni.navigateTo({
url: '/root/detail/job?id=' + $item.leafCateId,
})
} else if (this.info.recordStatus == 1 || this.info.recordStatus == 2) {
uni.navigateTo({
url: '/root/detail/job?id=' + $item.leafCateId,
})
} else {
uni.showToast({
title: '关注发单号后才可查看详情',
icon: 'none',
})
}
}
},
inviteSubmit() {
let that = this
console.log('info', that.info)
// return;
uni.showModal({
title: '关注发单号',
content: '关注发单号后,您可以查看该账号职位的更新,确定要关注吗?',
confirmColor: '#576B95',
success(modalRes) {
if (modalRes.confirm) {
that.G.Post(
that.api.user_updateInviteId,
{
agencyIds: that.info.agencyId,
},
(res) => {
uni.showToast({
title: '关注成功',
})
setTimeout(() => {
that.getDetail()
}, 800)
}
)
} else if (modalRes.cancel) {
console.log('用户点击取消')
}
},
fail() {},
})
},
finallySubmit() {
let that = this
if (!this.agencyInfo.fullName) {
uni.showToast({
title: '请输入企业简称',
icon: 'none',
})
return
}
let _code = 1 //
if (this.from == 'friend') {
_code = 2 //
} else {
if (this.scene) {
_code = 3 //
} else {
_code = 1 //
}
}
this.G.Get(this.api.bind_subscribeSubmit + '/' + that.uid, { agencyId: that.agencyInfo.id, agencyName: that.agencyInfo.fullName, source: _code, remark: ' ' }, (res) => {
uni.showToast({
title: '申请成功',
icon: 'none',
})
that.submitConfirm = false
uni.navigateTo({
url: '/root/person/inviteFollowSuccess',
})
reso()
// that.checkHasApply();
console.log(res)
})
},
handleSubmit() {
let that = this
this.G.isLogin()
if (this.G.isLogin()) {
//
this.submitConfirm = true
return
uni.showModal({
title: '关注发单号',
content: '关注发单号后,您可以查看该账号职位的更新,确定要关注吗?',
confirmColor: '#576B95',
success(modalRes) {
if (modalRes.confirm) {
that.G.Get(
that.api.bind_subscribeSubmit + '/' + that.info.agencyId,
{
agencyId: that.agencyId,
source: _code,
remark: '',
},
(res) => {
uni.showToast({
title: '提交成功',
})
setTimeout(() => {
that.getDetail()
}, 800)
}
)
} else if (modalRes.cancel) {
console.log('用户点击取消')
}
},
fail() {},
})
}
},
handleSee(e) {
let that = this
this.G.isLogin()
if (this.G.isLogin()) {
that.G.Get(
that.api.bind_isSee + '/' + that.info.himSeeOperateId,
{
id: that.info.himSeeOperateId,
himSee: e ? 0 : 1,
},
() => {
uni.showToast({
icon: 'success',
title: '更新成功',
})
}
)
}
},
goReturn() {
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_delApply + '/' + that.agencyId,
{
agencyId: that.agencyId,
},
() => {
uni.showToast({
icon: 'success',
title: '删除粉丝成功',
})
setTimeout(() => {
uni.navigateBack()
}, 1500)
}
)
}
},
})
}
},
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.getDetail()
that.getList()
}, 1500)
}
)
}
},
})
}
},
getAgencyById() {
let that = this
return new Promise((reso, reject) => {
this.G.Get(this.api.order_getAgencyByIdForApply, { agencyId: that.uid, inviteUserId: this.inviteUserId }, (res) => {
console.log('resresresresresres++++++++++++++', res)
that.beFllowAgencyInfo = res
if (res.id == that.agencyInfo.id) {
that.isSelf = true
}
reso()
})
})
},
successLogin(e) {
let that = this
console.log('successLogin', e)
this.getAgencyInfo().then(() => {
that.getAgencyById().then(() => {
if (that.beFllowAgencyInfo.recordStatus == 3 || that.beFllowAgencyInfo.recordStatus == 4 || that.beFllowAgencyInfo.recordStatus == 6) {
that.handleSubmit()
} else {
if (that.beFllowAgencyInfo.recordStatus == 5) {
uni.showToast({
title: '已发起关注申请, 正在等待通过',
icon: 'none',
})
}
}
})
})
},
handleUpdateTab() {},
},
}
</script>
<style lang="scss">
.p-root-detail-user {
}
.m-detail {
background: #ededed;
}
.m-info {
width: calc(100%);
margin: 0 auto;
.data-box {
.item {
width: 33.3333%;
}
}
}
</style>

@ -1,30 +1,35 @@
<template>
<div class="g_bg_page g_pl_10 g_pr_10">
<div class="g_h_10"></div>
<div class="r_box g_pt_24 g_text_c g_pt_32 g_pb_24">
<div class="r_box g_text_c" style="padding:48px 0 40px;">
<div>
<i class="icon-time-circle-fill iconfont g_c_10a" style="font-size: 84px"></i>
</div>
<div class="g_mt_20">已提交申请</div>
<div class="g_mt_20 g_fs_18">已提交申请</div>
</div>
<div class="r_box g_pl_10 g_pr_10 g_mt_10 g_pb_24">
<div class="g_text_c g_fs_20 g_fw_600 g_pt_12 g_pb_12" style="border-bottom: 1rpx dotted #eee">添加团队成员</div>
<div class="g_pt_12 g_c_9 g_fs_14">
<p class="g_mb_10">为什么要添加成员到团队?</p>
<div class="g_pl_20">
<div class="r_box g_text_c g_h_56 g_mt_10 g_flex_row_between flex_center g_fs_16 g_pl_10 g_pr_10">
<div class="g_fw_600">我的团队</div>
<div class="g_c_9">{{ agencyInfo.fullName || agencyInfo.userName }}{{agencyNum > 0 ? `${agencyNum}人)`:''}}</div>
</div>
<div class="r_box g_pl_10 g_pr_10 g_mt_10 g_pb_40">
<div class="g_text_c g_fs_18 g_fw_600 g_pt_12 g_pb_12" style="border-bottom: 1rpx dotted #eee">添加团队成员</div>
<div class="g_pt_12 g_c_3 g_fs_14">
<p class="g_mb_10 g_fw_600">为什么要添加成员到团队?</p>
<div class="g_pl_20 g_c_6">
<p>1.发单号是以团队为单位进行发单和关注的</p>
<p>2.创建人关注发单号后内部成员均可报名</p>
<p>3.团队成员无需再次关注共享报名权限</p>
<p>4.系统自动完成团队内部数据汇总与统计</p>
</div>
</div>
<div class="g_mt_84 g_flex_row_center">
<div class="g_w_120 g_mr_24">
<g-button btnText="手动添加" size="auto" @clickBtn="goPage('/root/person/addOrUpdataMember')"></g-button>
<div class="g_mt_40 g_flex_row_center">
<div class="g_w_160 g_mr_24">
<g-button btnText="去添加" size="auto" type="primary" @clickBtn="goPage('/root/person/teamManage')"></g-button>
<!-- <g-button btnText="手动添加" size="auto" @clickBtn="goPage('/root/person/addOrUpdataMember')"></g-button> -->
</div>
<div class="g_w_120">
<!-- <div class="g_w_120">
<g-button btnText="微信邀请" size="auto" type="primary" class="" @clickBtn="goPage('/root/person/memberApplyQRCode')"></g-button>
</div>
</div>-->
</div>
</div>
</div>
@ -35,21 +40,31 @@ export default {
data() {
return {
ing: false,
};
agencyNum: 0,
agencyInfo: uni.getStorageSync('agencyInfo'),
}
},
onLoad(options) {
console.log(options);
console.log(options)
this.getNum()
},
created() {},
methods: {
getNum() {
let that = this
this.G.Get(this.api.bind_getAgencyCorpUsersNum, '', (res) => {
console.log('res', res)
that.agencyNum = res
})
},
goPage(url) {
uni.navigateTo({
url,
});
})
},
},
};
}
</script>
<style></style>

@ -23,9 +23,17 @@
</div>
</div>
</div>
<div class="g_h_24"></div>
<div class="g_pb_40" v-if="memberList.length > 0">
<g-button icon="icon-tianjia g_fsi_16 g_mr_8" btnText="添加成员" class="" @clickBtn="addMember"></g-button>
<div class="g_h_40"></div>
<!-- <div class="g_h_24"></div> -->
<div class="sticky g_bg_f g_flex_row_center g_pt_8" style="padding-bottom: calc(constant(safe-area-inset-bottom) + 16px); padding-bottom: calc(env(safe-area-inset-bottom) + 16px);box-shadow:0px -4px 10px rgba(0, 0, 0, 0.06);">
<div class="g_w_128 g_mr_20">
<g-button btnText="手动添加" size="auto" @clickBtn="goPage('/root/person/addOrUpdataMember')"></g-button>
</div>
<div class="g_w_128">
<g-button btnText="微信邀请" size="auto" type="primary" class @clickBtn="goPage('/root/person/memberApplyQRCode')"></g-button>
</div>
<!-- <g-button icon="icon-tianjia g_fsi_16 g_mr_8" btnText="添加成员" class="" @clickBtn="addMember"></g-button> -->
</div>
</div>
</scroll-view>
@ -53,71 +61,71 @@ export default {
return {
memberList: [],
addMemberShow: false,
agencyInfo: uni.getStorageSync("agencyInfo"),
agencyInfo: uni.getStorageSync('agencyInfo'),
applyNum: 0,
};
}
},
onShow() {
this.getMemberList();
this.getNewApplyNum();
this.getMemberList()
this.getNewApplyNum()
},
onLoad() {},
created() {
console.log(123123);
console.log(123123)
},
methods: {
compare(a, b) {
let sortList = ["创建人", "管理员"];
let sortList = ['创建人', '管理员']
if (sortList.includes(a) && sortList.includes(b)) {
return sortList.indexOf(a) - sortList.indexOf(b);
return sortList.indexOf(a) - sortList.indexOf(b)
} else if (sortList.includes(a)) {
return -1;
return -1
} else if (sortList.includes(b)) {
return 1;
return 1
} else {
return a.localeCompare(b);
return a.localeCompare(b)
}
},
getMemberList() {
let that = this;
let that = this
uni.showLoading({
title: "加载中...",
});
title: '加载中...',
})
this.G.Get(this.api.order_peopleList, { pageSize: 500 }, (res) => {
console.log("报名人列表:", res);
that.memberList = res.recordList;
console.log('报名人列表:', res)
that.memberList = res.recordList
that.memberList.forEach((item) => {
item.agencyRoleNameList = item.agencyRoleName.split(";");
item.agencyRoleNameList = item.agencyRoleNameList.sort(this.compare);
});
item.agencyRoleNameList = item.agencyRoleName.split('')
item.agencyRoleNameList = item.agencyRoleNameList.sort(this.compare)
})
uni.hideLoading();
});
uni.hideLoading()
})
},
addMember() {
this.addMemberShow = true;
this.addMemberShow = true
},
editMember(_item) {
uni.navigateTo({
url: "/root/person/addOrUpdataMember?info=" + JSON.stringify(_item),
});
url: '/root/person/addOrUpdataMember?info=' + JSON.stringify(_item),
})
},
goPage(url) {
uni.navigateTo({
url,
});
this.addMemberShow = false;
})
this.addMemberShow = false
},
getNewApplyNum() {
let that = this;
let that = this
this.G.Get(this.api.order_getNewApplyNum, {}, (res) => {
console.log("order_getNewApplyNum", res);
that.applyNum = res;
});
console.log('order_getNewApplyNum', res)
that.applyNum = res
})
},
},
};
}
</script>
<style lang="scss">

@ -389,6 +389,9 @@ scroll-view::-webkit-scrollbar {
&_f0 {
background-color: #f0f0f0;
}
&_f2 {
background-color: #f2f2f2;
}
&_e {
background-color: #eee;
}
@ -560,25 +563,25 @@ $min-mp: 0;
$max-mp: 27;
@for $i from $min-mp through $max-mp {
.g_pt_#{$i} {
padding-top: #{$i}px;
padding-top: #{$i}px !important;
}
.g_pr_#{$i} {
padding-right: #{$i}px;
padding-right: #{$i}px !important;
}
.g_pb_#{$i} {
padding-bottom: #{$i}px;
padding-bottom: #{$i}px !important;
}
.g_pl_#{$i} {
padding-left: #{$i}px;
padding-left: #{$i}px !important;
}
.g_mt_#{$i} {
margin-top: #{$i}px;
margin-top: #{$i}px !important;
}
.g_mr_#{$i} {
margin-right: #{$i}px;
margin-right: #{$i}px !important;
}
.g_mb_#{$i} {
margin-bottom: #{$i}px;
margin-bottom: #{$i}px !important;
}
}
$min-mp: 0;

Loading…
Cancel
Save