no message
parent
9f27eb2bee
commit
9b5c83e0ef
@ -0,0 +1,24 @@
|
||||
let bindInfo = {
|
||||
bind_getCode:"/assistant/circle/agency/apply/inviteCode",// 获取邀请码
|
||||
bind_getOrderCode:"/yishoudan/user/apply/order/orderDetailsQrCodeImage",// 获取邀请码
|
||||
bind_getSubscribeDetail :"/assistant/circle/agency/search/code",// 根据搜索code获取对应关注详情
|
||||
bind_subscribeSubmit:"/assistant/circle/agency/apply/subscribe",// 提交关注
|
||||
bind_recordList:"/assistant/circle/agency/apply/list",// 申请记录
|
||||
bind_recordDetail:"/assistant/circle/agency/apply/info",// 申请记录当前行记录详情
|
||||
bind_recordSubmit:"/assistant/circle/agency/apply/agree",// 通过申请提交事件
|
||||
bind_enterpriseDetail:"/assistant/circle/agency/detail",// 企业详情
|
||||
bind_getAgencyByAdminTel:"/yishoudan/agency/getAgencyByAdminTel",// 根据团队创建人手机号获取团队信息
|
||||
|
||||
bind_getWaitNum:"/assistant/circle/agency/countPending",// 获取统计处理中的数量
|
||||
bind_getApplyNum:"/assistant/circle/agency/countHasNotReadNum",// 获取通过未读的关注数
|
||||
bind_isSee:"/assistant/circle/agency/himSee",// 让不让他看
|
||||
bind_getGroupDetail:"/assistant/circle/agency/info",// 团队详情
|
||||
bind_list:"/assistant/circle/agency/list",// 上下游列表
|
||||
bind_getListNum:"/assistant/circle/agency/listCount",// 统计上粉丝数量
|
||||
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;
|
||||
@ -0,0 +1,140 @@
|
||||
<template>
|
||||
<view class="p-root-bind-applyForm g_w_all g_h_all g_bg_f_5 g_kuaishou">
|
||||
<view class="g_h_10"></view>
|
||||
<g-panel-card-info
|
||||
:info="{
|
||||
avatar: info.logo,
|
||||
title: info.agencyName,
|
||||
num: '已发布职位' + info.jobNum,
|
||||
}"
|
||||
:isShowMore="0"
|
||||
/>
|
||||
<view class="g_mt_10 g_bg_f g_p_16 g_ml_10 g_mr_10 g_radius_8">
|
||||
<view class="g_fs_16 g_c_6">发送关注申请</view>
|
||||
<view class="g_mt_10 g_bg_f_7 g_pl_16 g_pr_16 g_radius_8 g_pt_14 g_pb_14">
|
||||
<u-input v-model="remark" type="textarea" class="g_bg_f_7 g_fs_16" style="font-size: 16px" placeholder-style="font-size:16px" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="g_flex_row_center g_mt_32">
|
||||
<view class="g_w_184 g_h_40 g_flex_c g_radius_20 g_c_f g_fs_16" :class="info.recordStatus == 1 || info.recordStatus == 2 ? 'g_bg_e g_c_9' : 'g_bg_main'" :style="info.recordStatus == 1 || info.recordStatus == 2 ? 'pointer-events: none;' : ''" hover-class="thover" @click="handleSubmit">
|
||||
{{ info.recordStatus == 1 ? "申请中" : info.recordStatus == 2 ? "已关注" : "发送" }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
onReady() {
|
||||
this.G.setNavStyle();
|
||||
},
|
||||
onShareAppMessage() {
|
||||
return this.G.shareFun();
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
wxCode: "",
|
||||
info: {
|
||||
logo: "",
|
||||
agencyName: "",
|
||||
jobNum: 0,
|
||||
agencyId: 0,
|
||||
},
|
||||
remark: "",
|
||||
form: 1,
|
||||
customButton: {
|
||||
width: "184px",
|
||||
height: "40px",
|
||||
borderRadius: "20px",
|
||||
backgroundColor: "#00B666",
|
||||
color: "#fff",
|
||||
fontSize: "16px",
|
||||
},
|
||||
|
||||
btnSpeed: -1, // -1 默认 0 按下 1请求中 2请求后
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
console.log("申请关注页面:", options);
|
||||
|
||||
if (options.scene) {
|
||||
var sceneStr = decodeURIComponent(options.scene);
|
||||
var sceneJson = this.G.sceneToJson(sceneStr);
|
||||
this.wxCode = sceneJson.inviteCode;
|
||||
} else {
|
||||
this.wxCode = options.code;
|
||||
this.form = options.form;
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
this.init();
|
||||
},
|
||||
methods: {
|
||||
init() {
|
||||
let that = this;
|
||||
that.G.Get(
|
||||
that.api.bind_getSubscribeDetail,
|
||||
{
|
||||
inviteCode: that.wxCode,
|
||||
},
|
||||
(res) => {
|
||||
console.log("企业基本信息:", res);
|
||||
that.info = res;
|
||||
// that.info.recordStatus = 2;
|
||||
}
|
||||
);
|
||||
},
|
||||
handleSubmit() {
|
||||
let that = this;
|
||||
if (that.info.recordStatus == 1 || that.info.recordStatus == 2) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// 按下
|
||||
that.btnSpeed = 0;
|
||||
// 请求中
|
||||
that.btnSpeed = 1;
|
||||
uni.showLoading({
|
||||
title: "正在发送",
|
||||
});
|
||||
setTimeout(() => {
|
||||
uni.hideLoading();
|
||||
that.G.Get(
|
||||
that.api.bind_subscribeSubmit + "/" + that.info.agencyId,
|
||||
{
|
||||
agencyId: that.info.agencyId,
|
||||
source: that.form,
|
||||
remark: that.remark,
|
||||
},
|
||||
(res) => {
|
||||
// 请求后
|
||||
that.btnSpeed = 2;
|
||||
uni.showToast({
|
||||
title: "提交成功",
|
||||
});
|
||||
setTimeout(() => {
|
||||
uni.navigateBack();
|
||||
}, 1500);
|
||||
}
|
||||
);
|
||||
}, 500);
|
||||
},
|
||||
goPage($path) {
|
||||
uni.navigateTo({
|
||||
url: $path,
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.custom-button {
|
||||
width: 184px;
|
||||
height: 40px;
|
||||
border-radius: 20px;
|
||||
background-color: #00b666;
|
||||
color: #fff;
|
||||
font-size: 16px;
|
||||
}
|
||||
</style>
|
||||
@ -0,0 +1,508 @@
|
||||
<template>
|
||||
<view class="p-bind-inedx g_w_all g_h_all g_bg_f_5 g_kuaishou">
|
||||
<!-- 搜索栏 -->
|
||||
<view class="g-components-panel-hr g_flex_row_center" style="padding-bottom: 6px">
|
||||
<view class="g_flex_column_center">
|
||||
<view class="doc-left"></view>
|
||||
</view>
|
||||
<view class="g_flex_column_center g_fs_14 g_c_9 g_mr_10 g_ml_10 g_pt_10 g_pb_10">{{ "以下发单号向您发出关注邀请" }}</view>
|
||||
<view class="g_flex_column_center">
|
||||
<view class="doc-right"></view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="m-panel">
|
||||
<view class="center">
|
||||
<!-- 列表区 -->
|
||||
<view class="m-list">
|
||||
<view class="link" :class="isShow ? '' : ''">
|
||||
<view class="item g_flex_row_between g_pt_12 g_pb_12 g_pl_16 g_pr_16 g_bg_f" @click="goApply" style="border-bottom: 1rpx solid #eee" v-if="tabInfo.active == 1">
|
||||
<view class="g_flex_1 g_flex_row_start">
|
||||
<view class="g_flex_column_center g_pr_16 g_flex_none">
|
||||
<view class="g_w_48 g_h_48 g_radius_8 g_flex_c" style="background-color: #ffeceb">
|
||||
<i class="iconfont icon-xindeshenqing g_fs_22" style="color: #ff7b7b; font-size: 22px"></i>
|
||||
</view>
|
||||
</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="{
|
||||
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="{
|
||||
color: Number(waitNum_downs) == 0 ? '#fff' : '#999',
|
||||
}"
|
||||
>您有{{ 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">
|
||||
<view class="tip g_w_16 g_h_16 g_bg_f0a g_c_f g_flex_c g_fs_14 g_radius_50">{{ waitNum_ups }}</view>
|
||||
</view>
|
||||
</view>
|
||||
<rh-loading :loading="loading" v-if="loading && speed == -1" />
|
||||
<view v-if="!loading && speed == 0" class="g_pt_130">
|
||||
<rh-empty :text="isLogin ? '暂无数据' : '请登录'" />
|
||||
</view>
|
||||
<scroll-view v-if="speed > 0" :scroll-y="true" @scrolltolower="reachBottom">
|
||||
<view class="item g_flex_row_between g_pl_16 g_pr_16 g_pb_6 g_pt_6 g_bg_f" hover-class="thover" 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">
|
||||
<view class="g_flex_column_center g_pr_16 g_flex_none" style="position: relative">
|
||||
<rh-image :url="item.logo" size="96" radius="6" v-if="item.logo" />
|
||||
<rh-image size="96" radius="6" v-if="!item.logo" />
|
||||
|
||||
<view v-if="item.supplierAccount == 1" style="position: absolute; left: 0; width: 48px; height: 48px" class="g_flex_row_end">
|
||||
<view class="g_flex_c" style="position: absolute; overflow: hidden; width: 20px; height: 10px; right: -2px; top: 0px">
|
||||
<image :src="cdnBaseImg + 'fadanhao.svg'" mode="widthFix" style="width: 16px; height: 13px"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="g_flex_1 g_h_all g_flex_column_center g_h_60 _right">
|
||||
<view class="g_flex_row_between">
|
||||
<view class="g_flex_column_center g_flex_1 g_mr_12">
|
||||
<view class="g_flex_row_start flex_center">
|
||||
<view class="g_ell_1 g_fs_18 g_c_0 g_fw_600 g_flex_none" style="max-width: 460rpx">{{ item.agencyName }} </view>
|
||||
<view class="g_ml_6 g_text_c g_flex_1">
|
||||
<view class="g_w_36 g_h_18 g_fs_12 g_redius_4" style="background-color: #f2f7ff; color: #1677ff" v-if="item.teamType == 2">团队</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 class="g_ell_1 g_fs_14 g_c_9 g_mt_4">
|
||||
<view class="g_flex_row_start">
|
||||
<view class="g_flex_row_start">
|
||||
<view> 职位 </view>
|
||||
<view class="g_mr_8 g_ml_5 g_c_3">
|
||||
{{ item.jobNum ? item.jobNum : "0" }}
|
||||
</view>
|
||||
</view>
|
||||
<view class="g_flex_row_start">
|
||||
<view> 今日更新 </view>
|
||||
<view class="g_mr_8 g_ml_5 g_c_3">
|
||||
{{ item.jobUpdateNum ? item.jobUpdateNum : "0" }}
|
||||
</view>
|
||||
</view>
|
||||
<view class="g_flex_row_start">
|
||||
<view> 粉丝 </view>
|
||||
<view class="g_mr_8 g_ml_5 g_c_3">
|
||||
{{ item.downNum ? item.downNum : "0" }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="g_flex_column_center g_mb_12">
|
||||
<view>
|
||||
<view class="g_radius_14 g_h_28 g_border_main g_fs_14 g_c_main g_pr_8 g_pl_8 g_flex_row_center flex_center" @click.stop="goApplyForm(item, index)" hover-class="thover" hover-stop-propagation>
|
||||
<i class="iconfont icon-tianjia g_fsi_12 g_mr_6"></i>
|
||||
关注
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view v-if="isShow && speed > 0" class="g_bg_f_5">
|
||||
<g-panel-hr :str="query.isFinish >= 0 && query.isFinish < query.size ? speed + '个发单号' : '加载中'" />
|
||||
</view> -->
|
||||
<!-- #ifdef H5 -->
|
||||
<view style="height: 50px"></view>
|
||||
<!-- #endif -->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
onReady() {
|
||||
this.G.setNavStyle();
|
||||
},
|
||||
onShareAppMessage() {
|
||||
return this.G.shareFun();
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
cdnBaseImg: this.G.store().cdnBaseImg,
|
||||
isLogin: null,
|
||||
isShow: false,
|
||||
loading: true,
|
||||
speed: -1,
|
||||
query: {
|
||||
page: 1,
|
||||
size: 50,
|
||||
list: [],
|
||||
isFinish: -1,
|
||||
},
|
||||
keyword: "",
|
||||
scrollTop: 0,
|
||||
domHeight: 0,
|
||||
waitNum_downs: 0,
|
||||
waitNum_ups: 0,
|
||||
|
||||
cardTab: [
|
||||
{
|
||||
icon: "t-icon-xunzhaoshangyou",
|
||||
title: "搜索发单号",
|
||||
remark: "关注更多单子的更新",
|
||||
},
|
||||
{
|
||||
icon: "t-icon-fazhanxiayou",
|
||||
title: "发展代理",
|
||||
remark: "让更多代理关注我",
|
||||
},
|
||||
],
|
||||
tabInfo: {
|
||||
list: [
|
||||
{
|
||||
name: "关注(0)",
|
||||
num: 0,
|
||||
tip: 0,
|
||||
cate_count: 0,
|
||||
},
|
||||
{
|
||||
name: "粉丝(0)",
|
||||
num: 0,
|
||||
tip: 1,
|
||||
cate_count: 0,
|
||||
},
|
||||
],
|
||||
active: 0,
|
||||
},
|
||||
tabFansInfo: {
|
||||
list: [
|
||||
{
|
||||
name: "新的代理",
|
||||
},
|
||||
{
|
||||
name: "全部粉丝",
|
||||
},
|
||||
],
|
||||
active: 0,
|
||||
},
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
let that = this;
|
||||
that.tabInfo.active = options.active;
|
||||
if (that.tabInfo.active == 0) {
|
||||
uni.setNavigationBarTitle({
|
||||
title: "关注邀请",
|
||||
});
|
||||
} else {
|
||||
if (that.tabInfo.active == 1) {
|
||||
uni.setNavigationBarTitle({
|
||||
title: "我的粉丝",
|
||||
});
|
||||
}
|
||||
}
|
||||
const query = uni.createSelectorQuery().in(this);
|
||||
query
|
||||
.select(".m-top")
|
||||
.boundingClientRect((data) => {
|
||||
that.domHeight = data.height + 34;
|
||||
})
|
||||
.exec();
|
||||
},
|
||||
onShow() {
|
||||
let that = this;
|
||||
that.isLogin = uni.getStorageSync("apply-token");
|
||||
uni.setStorageSync("watch_invite", 1);
|
||||
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 = [];
|
||||
} else {
|
||||
that.query.page = 1;
|
||||
that.getWaitNum();
|
||||
that.getNum();
|
||||
that.getList();
|
||||
that.getPoint();
|
||||
}
|
||||
},
|
||||
onReachBottom() {
|
||||
let that = this;
|
||||
if (that.query.isFinish == -1 || that.query.isFinish == that.query.size) {
|
||||
that.query.page++;
|
||||
that.getList("concat");
|
||||
}
|
||||
},
|
||||
onPageScroll(e) {
|
||||
this.scrollTop = e.scrollTop;
|
||||
},
|
||||
methods: {
|
||||
handleUpdateFensTab(e) {},
|
||||
reachBottom() {
|
||||
console.log('123123123123');
|
||||
let that = this;
|
||||
if (that.query.isFinish == -1 || that.query.isFinish == that.query.size) {
|
||||
that.query.page++;
|
||||
that.getList("concat");
|
||||
}
|
||||
},
|
||||
getPoint() {
|
||||
let that = this;
|
||||
that.G.Get(
|
||||
that.api.bind_getWaitNum + "/2",
|
||||
{
|
||||
type: 2,
|
||||
},
|
||||
(res) => {
|
||||
that.tabInfo.list[1].cate_count = res.unread;
|
||||
}
|
||||
);
|
||||
},
|
||||
getWaitNum() {
|
||||
let that = this;
|
||||
that.G.Get(
|
||||
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();
|
||||
}
|
||||
);
|
||||
},
|
||||
getNum() {
|
||||
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 + ")";
|
||||
}
|
||||
);
|
||||
},
|
||||
getList($type = "init") {
|
||||
let that = this;
|
||||
that.isShow = false;
|
||||
that.G.Get(
|
||||
that.api.user_getInviteList,
|
||||
{
|
||||
pageSize: 15,
|
||||
pageNum: that.query.page,
|
||||
},
|
||||
|
||||
(res) => {
|
||||
that.isShow = true;
|
||||
that.speed = res.length;
|
||||
if (that.speed == 0) {
|
||||
that.loading = false;
|
||||
} else {
|
||||
that.loading = true;
|
||||
}
|
||||
if ($type == "init") {
|
||||
that.query.list = [];
|
||||
that.query.list = res;
|
||||
} else {
|
||||
that.query.list = that.query.list.concat(res);
|
||||
}
|
||||
}
|
||||
);
|
||||
},
|
||||
getSearch(e) {
|
||||
if (e == "string") {
|
||||
this.keyword = e;
|
||||
}
|
||||
this.G.isLogin();
|
||||
if (this.G.isLogin()) {
|
||||
this.speed = -1;
|
||||
this.query.page = 1;
|
||||
this.getList();
|
||||
}
|
||||
},
|
||||
|
||||
handleUpdateTab(e) {
|
||||
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();
|
||||
}
|
||||
},
|
||||
goMain($item) {
|
||||
let that = this;
|
||||
this.G.isLogin();
|
||||
console.log("$item", $item);
|
||||
// return
|
||||
if (this.G.isLogin()) {
|
||||
if ($item.supplierAccount == 1) {
|
||||
let params = {
|
||||
id: $item.id,
|
||||
type: 1,
|
||||
bindid: $item.id,
|
||||
isShowMore: false,
|
||||
isShowJob: false,
|
||||
};
|
||||
|
||||
if (that.tabInfo.active == 0) {
|
||||
// 关注
|
||||
params.isShowMore = true;
|
||||
params.isShowJob = true;
|
||||
} else {
|
||||
// 粉丝
|
||||
if ($item.recordStatus == 1) {
|
||||
// 已关注
|
||||
params.isShowMore = true;
|
||||
params.isShowJob = false;
|
||||
} else {
|
||||
// 相互关注
|
||||
params.isShowMore = true;
|
||||
params.isShowJob = true;
|
||||
}
|
||||
}
|
||||
|
||||
uni.navigateTo({
|
||||
url: "/root/detail/userShare?" + 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,
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
goApply() {
|
||||
let that = this,
|
||||
str = "";
|
||||
this.G.isLogin();
|
||||
if (this.G.isLogin()) {
|
||||
uni.navigateTo({
|
||||
url: "/root/bind/applyList?active=2",
|
||||
});
|
||||
}
|
||||
},
|
||||
goSearch($item, $index) {
|
||||
let that = this;
|
||||
that.G.isLogin();
|
||||
if (that.G.isLogin()) {
|
||||
uni.navigateTo({
|
||||
url: "/root/bind/search?active=" + $index,
|
||||
});
|
||||
}
|
||||
},
|
||||
goApplyForm($item, $index) {
|
||||
let that = this;
|
||||
console.log("$item", $item);
|
||||
// return
|
||||
that.G.Post(
|
||||
that.api.user_updateInviteId,
|
||||
{
|
||||
agencyIds: $item.id,
|
||||
},
|
||||
(res) => {
|
||||
console.log(res);
|
||||
uni.showToast({
|
||||
title: "关注成功",
|
||||
icon: "success",
|
||||
});
|
||||
that.getList();
|
||||
}
|
||||
);
|
||||
|
||||
// if ($item.recordStatus == 5 || $item.recordStatus == 6) {
|
||||
// } else {
|
||||
// uni.navigateTo({
|
||||
// url: "/root/bind/applyForm?code=" + $item.agencyId + "&form=1",
|
||||
// });
|
||||
// }
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.p-bind-inedx {
|
||||
.m-card {
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
|
||||
.item {
|
||||
width: calc(50% - 5px);
|
||||
}
|
||||
}
|
||||
|
||||
.showdoc {
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 0 6px rgba(0, 0, 0, 0.02);
|
||||
}
|
||||
|
||||
.suffix {
|
||||
position: absolute;
|
||||
right: 20rpx;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
z-index: 1;
|
||||
border-top-right-radius: 110rpx;
|
||||
border-bottom-right-radius: 110rpx;
|
||||
}
|
||||
|
||||
.tab-fixed {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 44px;
|
||||
background-color: #fff;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.m-search {
|
||||
// .u-icon-wrap{
|
||||
// position: absolute;
|
||||
// left: 190rpx;
|
||||
// }
|
||||
}
|
||||
|
||||
.m-search-active {
|
||||
.u-icon-wrap {
|
||||
position: inherit;
|
||||
left: 0rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.g-components-panel-hr {
|
||||
padding-bottom: 16px;
|
||||
.doc-left {
|
||||
width: 43px;
|
||||
height: 2px;
|
||||
border-top: 1px solid;
|
||||
border-image: linear-gradient(270deg, rgba(255, 255, 255, 0.2), #cccccc) 1 1;
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
.doc-right {
|
||||
width: 43px;
|
||||
height: 2px;
|
||||
border-top: 1px solid;
|
||||
border-image: linear-gradient(270deg, rgba(255, 255, 255, 0.2), #cccccc) 1 1;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@ -0,0 +1,144 @@
|
||||
<template>
|
||||
<view class="p-root-other-more g_w_all g_h_all g_bg_f_5 g_pl_10 g_pr_10 g_kuaishou" style="box-sizing:border-box">
|
||||
<view class="g_h_10 g_w_pull"></view>
|
||||
<view class="g_bg_f g_pl_16 g_pr_16 g_radius_8 g_mb_24">
|
||||
<view class="g_flex_row_between g_h_56" v-if="type == 1 || type == 3" :class="type == 3 ? 'g_border_e_b' : ''">
|
||||
<view class="g_flex_column_center g_fs_16 g_c_3">不看他的职位</view>
|
||||
<view class="g_flex_column_center">
|
||||
<u-switch v-model="pLook" activeColor="#00B666" @change="handlePeople"></u-switch>
|
||||
</view>
|
||||
</view>
|
||||
<view class="g_flex_row_between g_h_56" v-if="type == 2 || type == 3">
|
||||
<view class="g_flex_column_center g_fs_16 g_c_3">不让他看我的职位</view>
|
||||
<view class="g_flex_column_center">
|
||||
<u-switch v-model="mLook" activeColor="#00B666" @change="handleSee"></u-switch>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<rh-button primaryColor='#00b666' mode="square" class="" type="delete" size="medium" :btnText="type == 1 || (type == 3 && from == 1) ? '取消关注' : '删除粉丝'" @clickBtn="goReturn"></rh-button>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
onReady() {
|
||||
this.G.setNavStyle();
|
||||
},
|
||||
onShareAppMessage() {
|
||||
return this.G.shareFun();
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
id: 0,
|
||||
mLook: true,
|
||||
pLook: false,
|
||||
type: 0,
|
||||
delta: 2,
|
||||
lid: 0,
|
||||
hid: 0,
|
||||
from: 0,
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
console.log("options", options);
|
||||
this.delta = options.delta;
|
||||
this.id = options.id;
|
||||
this.mLook = options.himSee == 1 ? false : true;
|
||||
this.pLook = options.lookHim == 1 ? false : true;
|
||||
this.type = options.type;
|
||||
this.lid = options.lid;
|
||||
this.hid = options.hid;
|
||||
this.from = options.from;
|
||||
},
|
||||
methods: {
|
||||
handleSee(e) {
|
||||
let that = this;
|
||||
that.G.Get(
|
||||
that.api.bind_isSee + "/" + that.hid,
|
||||
{
|
||||
id: that.hid,
|
||||
himSee: e ? 0 : 1,
|
||||
},
|
||||
() => {
|
||||
uni.showToast({
|
||||
icon: "success",
|
||||
title: "更新成功",
|
||||
});
|
||||
}
|
||||
);
|
||||
},
|
||||
handlePeople(e) {
|
||||
let that = this;
|
||||
that.G.Get(
|
||||
that.api.bind_setPeolple + "/" + that.lid,
|
||||
{
|
||||
id: that.lid,
|
||||
lookHim: e ? 0 : 1,
|
||||
},
|
||||
() => {
|
||||
uni.showToast({
|
||||
icon: "success",
|
||||
title: "更新成功",
|
||||
});
|
||||
}
|
||||
);
|
||||
},
|
||||
goReturn() {
|
||||
let that = this;
|
||||
if (that.type == 1 || (that.type == 3 && that.from == 1)) {
|
||||
that.G.handleConfirm({
|
||||
content: "确认取消关注吗?",
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
that.G.Get(
|
||||
that.api.bind_cancelApply + "/" + that.id,
|
||||
{
|
||||
agencyId: that.id,
|
||||
},
|
||||
() => {
|
||||
uni.showToast({
|
||||
icon: "success",
|
||||
title: "取消关注成功",
|
||||
});
|
||||
setTimeout(() => {
|
||||
uni.navigateBack({
|
||||
delta: that.delta,
|
||||
});
|
||||
}, 1500);
|
||||
}
|
||||
);
|
||||
}
|
||||
},
|
||||
});
|
||||
} else {
|
||||
that.G.handleConfirm({
|
||||
content: "确认删除粉丝吗?",
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
that.G.Get(
|
||||
that.api.bind_delApply + "/" + that.id,
|
||||
{
|
||||
agencyId: that.id,
|
||||
},
|
||||
() => {
|
||||
uni.showToast({
|
||||
icon: "success",
|
||||
title: "删除粉丝成功",
|
||||
});
|
||||
setTimeout(() => {
|
||||
uni.navigateBack({
|
||||
delta: that.delta,
|
||||
});
|
||||
}, 1500);
|
||||
}
|
||||
);
|
||||
}
|
||||
},
|
||||
});
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style></style>
|
||||
@ -0,0 +1,500 @@
|
||||
<template>
|
||||
<view class="p-bind-inedx g_w_all g_h_all g_bg_f_5 g_kuaishou">
|
||||
<!-- 搜索栏 -->
|
||||
<view class="m-top">
|
||||
<view class="m-search g_p_10 g_pb_0 g_position_rela g_p_12 g_bg_f_5">
|
||||
<u-search height="80" v-model="keyword" :placeholder="tabInfo.active == 0 ? '搜索已关注的发单号' : '搜索我的粉丝'" @btnSearch="getSearch" bg-color="#fff" :show-action="false" @change="getSearch" @clear="getSearch" @custom="getSearch" @search="getSearch" search-icon-color="#999999" :maxlength="20"></u-search>
|
||||
</view>
|
||||
</view>
|
||||
<view class="m-panel">
|
||||
<view class="center">
|
||||
<!-- 列表区 -->
|
||||
<view class="m-list">
|
||||
<view class="link" :class="isShow ? '' : ''">
|
||||
<view class="item g_flex_row_between g_pt_12 g_pb_12 g_pl_16 g_pr_16 g_bg_f" @click="goApply" style="border-bottom: 1rpx solid #eee" v-if="tabInfo.active == 1">
|
||||
<view class="g_flex_1 g_flex_row_start">
|
||||
<view class="g_flex_column_center g_pr_16 g_flex_none">
|
||||
<view class="g_w_48 g_h_48 g_radius_8 g_flex_c" style="background-color: #ffeceb">
|
||||
<i class="iconfont icon-xindeshenqing g_fs_22" style="color: #ff7b7b; font-size: 22px"></i>
|
||||
</view>
|
||||
</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="{
|
||||
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="{
|
||||
color: Number(waitNum_downs) == 0 ? '#fff' : '#999',
|
||||
}">您有{{ 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">
|
||||
<view class="tip g_w_16 g_h_16 g_bg_f0a g_c_f g_flex_c g_fs_14 g_radius_50">{{ waitNum_ups }}</view>
|
||||
</view>
|
||||
</view>
|
||||
<rh-loading :loading="loading" v-if="loading && speed == -1" />
|
||||
<view v-if="!loading && speed == 0 && inviteNum <= 0" class="g_pt_130" style="padding-top:130px">
|
||||
<rh-empty :text="isLogin ? '暂无数据' : '请登录'" />
|
||||
</view>
|
||||
<view v-if="speed > 0 || inviteNum > 0">
|
||||
<view v-if="inviteNum > 0" class="item g_flex_row_between flex_center g_pl_16 g_pr_16 g_pb_12 g_pt_12 g_bg_f g_border_e_b" @click="goInviteList">
|
||||
<view class="g_flex_row_start flex_center">
|
||||
<rh-image size="96" radius="6" />
|
||||
<view class="g_ml_16">
|
||||
<view class="g_ell_1 g_fs_18 g_c_0 g_flex_none" style="max-width: 460rpx">关注邀请</view>
|
||||
<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>
|
||||
<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="thover" 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">
|
||||
<view class="g_flex_column_center g_pr_16 g_flex_none" style="position: relative">
|
||||
<rh-image :url="item.logo || 'https://bocai-cms.oss-cn-beijing.aliyuncs.com/web-resource/dailibaoming/qiyelogo0610.svg'" size="96" radius="50" />
|
||||
|
||||
<!-- <view v-if="item.supplierAccount == 1" style="position: absolute; left: 0; width: 48px; height: 48px" class="g_flex_row_end">
|
||||
<view class="g_flex_c" style="position: absolute; overflow: hidden; width: 20px; height: 10px; right: -2px; top: 0px">
|
||||
<image :src="cdnBaseImg + 'fadanhao.svg'" mode="widthFix" style="width: 16px; height: 13px"></image>
|
||||
</view>
|
||||
</view>-->
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="g_flex_1 g_h_all g_flex_column_center g_h_60 _right">
|
||||
<view class="g_flex_row_between">
|
||||
<view class="g_flex_column_center g_flex_1 g_mr_12">
|
||||
<view class="g_flex_row_start flex_center">
|
||||
<view class="g_ell_1 g_fs_18 g_c_0 g_flex_none" style="max-width: 100%">{{ item.fullName || item.agencyName || "-" }}</view>
|
||||
<!-- <view class="g_ml_6 g_text_c g_flex_1">
|
||||
<view class="g_w_36 g_h_18 g_fs_12 g_redius_4" style="background-color: #f2f7ff; color: #1677ff" v-if="item.teamType == 2">团队</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 class="g_fs_14 g_c_9 g_mt_4">
|
||||
<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> -->
|
||||
<view class="g_flex_row_start">
|
||||
<view>在招</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>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="g_flex_column_center g_mb_12" v-if="tabInfo.active == 1">
|
||||
<view v-if="item.recordStatus == 1 && item.supplierAccount == 1 && item.recordStatus == 5">
|
||||
<view class="g_radius_14 g_h_28 g_border_e g_fs_14 g_c_main g_pr_8 g_pl_8 g_flex_row_center flex_center" @click.stop="goApplyForm(item, index)" hover-class="thover" hover-stop-propagation>
|
||||
<i class="iconfont icon-tianjia g_fsi_12 g_mr_6"></i>
|
||||
等待通过
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="item.recordStatus == 1 && item.supplierAccount == 1 && item.recordStatus == 6">
|
||||
<view class="g_radius_14 g_h_28 g_border_e g_fs_14 g_c_main g_pr_8 g_pl_8 g_flex_row_center flex_center" @click.stop="goApplyForm(item, index)" hover-class="thover" hover-stop-propagation>
|
||||
<i class="iconfont icon-tianjia g_fsi_12 g_mr_6"></i>
|
||||
已过期
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="item.recordStatus == 1 && item.supplierAccount == 1">
|
||||
<view class="g_radius_14 g_h_28 g_border_e g_fs_14 g_c_main g_pr_8 g_pl_8 g_flex_row_center flex_center" @click.stop="goApplyForm(item, index)" hover-class="thover" hover-stop-propagation>
|
||||
<i class="iconfont icon-tianjia g_fsi_12 g_mr_6"></i>
|
||||
关注
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="item.recordStatus == 2">
|
||||
<view class="g_radius_14 g_h_28 g_border_e g_fs_14 g_c_6 g_pr_8 g_pl_8 g_flex_row_center flex_center">
|
||||
<i class="iconfont icon-a-bianzu11beifen2 g_fsi_12 g_mr_6"></i>
|
||||
互相关注
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</div>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="isShow && speed > 0" class="g_bg_f_5">
|
||||
<g-panel-hr :str="query.isFinish >= 0 && query.isFinish < query.size ? speed + '个发单号' : '加载中'" />
|
||||
</view>
|
||||
<!-- #ifdef H5 -->
|
||||
<view style="height: 50px"></view>
|
||||
<!-- #endif -->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
onReady() {
|
||||
this.G.setNavStyle()
|
||||
},
|
||||
onShareAppMessage() {
|
||||
return this.G.shareFun()
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
cdnBaseImg: this.G.store().cdnBaseImg,
|
||||
isLogin: null,
|
||||
isShow: false,
|
||||
loading: true,
|
||||
showDot: true,
|
||||
speed: -1,
|
||||
query: {
|
||||
page: 1,
|
||||
size: 50,
|
||||
list: [],
|
||||
isFinish: -1,
|
||||
},
|
||||
keyword: '',
|
||||
scrollTop: 0,
|
||||
domHeight: 0,
|
||||
waitNum_downs: 0,
|
||||
waitNum_ups: 0,
|
||||
|
||||
cardTab: [
|
||||
{
|
||||
icon: 't-icon-xunzhaoshangyou',
|
||||
title: '搜索发单号',
|
||||
remark: '关注更多单子的更新',
|
||||
},
|
||||
{
|
||||
icon: 't-icon-fazhanxiayou',
|
||||
title: '发展代理',
|
||||
remark: '让更多代理关注我',
|
||||
},
|
||||
],
|
||||
tabInfo: {
|
||||
list: [
|
||||
{
|
||||
name: '关注(0)',
|
||||
num: 0,
|
||||
tip: 0,
|
||||
cate_count: 0,
|
||||
},
|
||||
{
|
||||
name: '粉丝(0)',
|
||||
num: 0,
|
||||
tip: 1,
|
||||
cate_count: 0,
|
||||
},
|
||||
],
|
||||
active: 0,
|
||||
},
|
||||
tabFansInfo: {
|
||||
list: [
|
||||
{
|
||||
name: '新的代理',
|
||||
},
|
||||
{
|
||||
name: '全部粉丝',
|
||||
},
|
||||
],
|
||||
active: 0,
|
||||
},
|
||||
inviteNum: 0, //邀请关注粉丝的数量
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
let that = this
|
||||
that.tabInfo.active = options.active
|
||||
// if (that.tabInfo.active == 0) {
|
||||
// uni.setNavigationBarTitle({
|
||||
// title: "发单号",
|
||||
// });
|
||||
// } else {
|
||||
// if (that.tabInfo.active == 1) {
|
||||
// uni.setNavigationBarTitle({
|
||||
// title: "我的粉丝",
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
const query = uni.createSelectorQuery().in(this)
|
||||
query
|
||||
.select('.m-top')
|
||||
.boundingClientRect((data) => {
|
||||
that.domHeight = data.height + 34
|
||||
})
|
||||
.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 // 小红点数字显示
|
||||
}
|
||||
}
|
||||
|
||||
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 = []
|
||||
} else {
|
||||
that.query.page = 1
|
||||
that.getWaitNum()
|
||||
that.getNum()
|
||||
that.getList()
|
||||
that.getInviteNum()
|
||||
|
||||
that.getPoint()
|
||||
}
|
||||
},
|
||||
onReachBottom() {
|
||||
let that = this
|
||||
if (that.query.isFinish == -1 || that.query.isFinish == that.query.size) {
|
||||
that.query.page++
|
||||
that.getList('concat')
|
||||
}
|
||||
},
|
||||
onPageScroll(e) {
|
||||
this.scrollTop = e.scrollTop
|
||||
},
|
||||
methods: {
|
||||
handleUpdateFensTab(e) {},
|
||||
getPoint() {
|
||||
let that = this
|
||||
that.G.Get(
|
||||
that.api.bind_getWaitNum + '/2',
|
||||
{
|
||||
type: 2,
|
||||
},
|
||||
(res) => {
|
||||
that.tabInfo.list[1].cate_count = res.unread
|
||||
}
|
||||
)
|
||||
},
|
||||
getWaitNum() {
|
||||
let that = this
|
||||
that.G.Get(
|
||||
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()
|
||||
}
|
||||
)
|
||||
},
|
||||
getNum() {
|
||||
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 + ')'
|
||||
}
|
||||
)
|
||||
},
|
||||
getInviteNum() {
|
||||
let that = this
|
||||
that.G.Get(that.api.user_getInviteNum, {}, (res) => {
|
||||
console.log(res)
|
||||
that.inviteNum = res
|
||||
})
|
||||
},
|
||||
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',
|
||||
type: that.tabInfo.active * 1 + 1,
|
||||
formdata: true,
|
||||
},
|
||||
(res) => {
|
||||
that.isShow = true
|
||||
that.speed = res.recordCount
|
||||
if (that.speed == 0) {
|
||||
that.loading = false
|
||||
} else {
|
||||
that.loading = true
|
||||
}
|
||||
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)
|
||||
}
|
||||
}
|
||||
)
|
||||
},
|
||||
getSearch(e) {
|
||||
if (e == 'string') {
|
||||
this.keyword = e
|
||||
}
|
||||
this.G.isLogin()
|
||||
if (this.G.isLogin()) {
|
||||
this.speed = -1
|
||||
this.query.page = 1
|
||||
this.getList()
|
||||
}
|
||||
},
|
||||
|
||||
handleUpdateTab(e) {
|
||||
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()
|
||||
}
|
||||
},
|
||||
goMain($item) {
|
||||
let that = this
|
||||
this.G.isLogin()
|
||||
if (this.G.isLogin()) {
|
||||
if ($item.supplierAccount == 1) {
|
||||
let params = {
|
||||
id: $item.agencyId,
|
||||
type: that.tabInfo.active * 1 + 1,
|
||||
bindid: $item.id,
|
||||
isShowMore: false,
|
||||
isShowJob: false,
|
||||
shareForm:'apply'
|
||||
}
|
||||
|
||||
if (that.tabInfo.active == 0) {
|
||||
// 关注
|
||||
params.isShowMore = true
|
||||
params.isShowJob = true
|
||||
} else {
|
||||
// 粉丝
|
||||
if ($item.recordStatus == 1) {
|
||||
// 已关注
|
||||
params.isShowMore = true
|
||||
params.isShowJob = false
|
||||
} else {
|
||||
// 相互关注
|
||||
params.isShowMore = true
|
||||
params.isShowJob = true
|
||||
}
|
||||
}
|
||||
|
||||
uni.navigateTo({
|
||||
url: '/root/detail/userShare?' + 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,
|
||||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
goApply() {
|
||||
let that = this,
|
||||
str = ''
|
||||
this.G.isLogin()
|
||||
if (this.G.isLogin()) {
|
||||
uni.navigateTo({
|
||||
url: '/root/bind/applyList?active=2',
|
||||
})
|
||||
}
|
||||
},
|
||||
goSearch($item, $index) {
|
||||
let that = this
|
||||
that.G.isLogin()
|
||||
if (that.G.isLogin()) {
|
||||
uni.navigateTo({
|
||||
url: '/root/bind/search?active=' + $index,
|
||||
})
|
||||
}
|
||||
},
|
||||
goApplyForm($item, $index) {
|
||||
let that = this
|
||||
if ($item.recordStatus == 5 || $item.recordStatus == 6) {
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: '/root/bind/applyForm?code=' + $item.agencyId + '&form=1',
|
||||
})
|
||||
}
|
||||
},
|
||||
goInviteList() {
|
||||
uni.navigateTo({
|
||||
url: '/root/bind/inviteList?active=0',
|
||||
})
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.p-bind-inedx {
|
||||
.m-card {
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
|
||||
.item {
|
||||
width: calc(50% - 5px);
|
||||
}
|
||||
}
|
||||
|
||||
.showdoc {
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 0 6px rgba(0, 0, 0, 0.02);
|
||||
}
|
||||
|
||||
.suffix {
|
||||
position: absolute;
|
||||
right: 20rpx;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
z-index: 1;
|
||||
border-top-right-radius: 110rpx;
|
||||
border-bottom-right-radius: 110rpx;
|
||||
}
|
||||
|
||||
.tab-fixed {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 44px;
|
||||
background-color: #fff;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.m-search {
|
||||
// .u-icon-wrap{
|
||||
// position: absolute;
|
||||
// left: 190rpx;
|
||||
// }
|
||||
}
|
||||
|
||||
.m-search-active {
|
||||
.u-icon-wrap {
|
||||
position: inherit;
|
||||
left: 0rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Loading…
Reference in New Issue