cyl/master-im
wangxia 9 months ago
commit 62c1ee2123

@ -15,6 +15,7 @@ let jobInfo = {
job_getPolicyShare: '/yishoudan/store/job/getPolicyByStoreJobId',// 获取共享职位政策
job_ai: '/yishoudan/common/structure/get', // 获取ai结果
yi_job_class_new: "/labels/getListByTypeAndIndustry", // 新职位要求接口(新)
job_get_cus: "/yishoudan/job/customer/support/getJobCustomerSupportIM", // 获取客服ID
}
export default jobInfo;

@ -2,7 +2,7 @@
<view :class="isLogin ? '' : 'm-login-false'">
<view class="m-panel" :class="!loading && speed == 0 ? 'g_bg_f_5' : ''">
<view class="link" :class="!loading && speed == 0 ? '' : ''">
<g-loading bg="#ededed" v-if="loading && speed == -1" />
<!-- <g-loading bg="#ededed" v-if="loading && speed == -1" /> -->
<view v-if="!loading && speed == 0 && isLogin" style="background-color: #ededed">
<view>
<view class="g_h_100"></view>

@ -48,7 +48,7 @@
<span class="contact-item-title"> {{ t("blacklistText") }}</span>
<Icon iconClassName="more-icon" color="#999" type="icon-jiantou" />
</div>
<div class="contact-item" @click="onDropdownClick('innerAddress')" v-if="corpUserFlag">
<div class="contact-item" @click="onDropdownClick('innerAddress')" v-if="corpUserFlag && false">
<img src="https://matripe-cms.oss-cn-beijing.aliyuncs.com/bocaigongyinglian/inner.svg" alt="" style="width: 48px; height: 48px; border-radius: 50%" />
<!-- <Badge :num="unreadSysMsgCount" :style="{ position: 'absolute', top: '5px', left: '51px' }" /> -->
<span class="contact-item-title">公司内部成员</span>

@ -1,11 +1,15 @@
<template>
<div style="" class="g_bg_f_5">
<view class="">
<div style="" class="g_bg_f_5 g_h_all">
<view class="g_h_all">
<view class="m-tabs" v-if="isLogin" style="position: fixed; width: 100%; z-index: 999">
<u-tabs :list="typeGroup" :is-scroll="false" v-model="current" @change="updateType" item-width="126" :active-color="globalData.themeColor" bar-width="60" bar-height="6" font-size="32" :gutter="22" duration="0.1" itemWidth="auto" height="84"></u-tabs>
</view>
<scroll-view @scroll="getScrollInfo" :scroll-top="resetScroll" :style="{ height: `calc(100vh - ${isLogin ? tabbarHeight + 43 : 0}px)`, 'padding-top': isLogin ? '43px' : '' }" :scroll-y="true">
<view class="">
<scroll-view @scroll="getScrollInfo"
:scroll-top="resetScroll"
:style="{ height: `calc(100vh - ${isLogin ? tabbarHeight + 43 : 0}px)`, 'padding-top': isLogin ? '43px' : '' }"
:scroll-y="true"
v-if="isLogin"
>
<view class="" v-show="current == 0">
<view class="g_bg_f">
<ConversationList ref="contactList" />
@ -14,8 +18,17 @@
<view class="g_bg_f" v-if="current == 1">
<telPanel />
</view>
</view>
</scroll-view>
<view class="g_h_all" v-if="!isLogin">
<view class="" hover-class="none" hover-stop-propagation="false" style="height: 108px;">
</view>
<view class="">
<g-empty text="您还有没有登录,请登录后查看消息" />
<view class="g_h_32"></view>
<g-button btnText="去登录" size="small" class="g_mt_32" @clickBtn="goLogin" />
</view>
</view>
</view>
<servicePopup
:show="showService"
@ -87,7 +100,6 @@ const typeGroup = ref([
]);
const current = ref(0);
const count = ref(0); //
const messageId = ref("");
const userInfo = ref({});
onShow(() => {
@ -135,8 +147,7 @@ onShow(() => {
});
}
}, 1000);
current.value = globalData.value.messageTab;
messageId.value = globalData.value.messageId;
current.value = 0;
}
});
const goLogin = () => {

@ -93,7 +93,35 @@
@clickItem="handleClickItem"
/>
</view>
<view class="g_mt_10">
<!-- 账单 -->
<view class="g_radius_8 g_p_16 g_bg_f g_text_c g_ml_10 g_mr_10" hover-class="thover" @click="goPage('/root/bind/order?active=0')">
<view class="g_fw_600 g_mb_10 g_fs_20 g_position_rela">
{{ userNum.upNum }}
<view class="g_w_6 g_h_6 g_radius_50 g_bg_f0a" v-if="!readed" style="position: absolute; left: calc(50% + 10px); top: 0"></view>
</view>
<view class="g_c_6">关注发单号</view>
</view>
<view class="g_mt_10" v-if="false">
<g-panel-card-num :list="orderDataList" :subhead="agencyInfo.fullName || ''" titleNav="/root/merchantManagement/orderManagement" :border="true" :speed="1" :marginBottom="16" cusType="num" :height="26" :num="5" cusTitle="我的发单号" :bottomBox="true" bottomNav="/root/merchantManagement/jobForm" @clickItem="handleClickNum" />
</view>
<view class="g_mt_10">
<g-panel-card-num :list="billDataList" titleNav="/root/person/applyIndex" :border="true" :speed="1" :marginBottom="16" cusType="num" :height="26" :num="5" cusTitle="报名工单" @clickItem="goOrder" />
</view>
<view class="g_mt_24" v-if="agencyInfo.supplierAccount == 1">
<view class="g_p_16 g_bg_f g_radius_8 g_flex_row_between flex_center g_ml_10 g_mr_10" hover-class="thover" @click="goPage('/root/bind/search?active=1')">
<view class="g_flex_row_start flex_center">
<img src="https://matripe-cms.oss-cn-beijing.aliyuncs.com/dailibaoming/fazhandaili0610.svg" class="g_w_48 g_h_48 g_radius_50" alt="" />
<view class="g_flex_column_between g_ml_10">
<view class="g_fs_16 g_c_0 g_fw_600 g_mb_6">发展代理</view>
<view class="g_c_9">邀请更多代理粉丝关注我</view>
</view>
</view>
<view class="g_c_main g_bg_e7 g_radius_20" hover-class="thover" style="padding: 4px 12px">去邀请</view>
</view>
</view>
</view>
<view class="g_mt_24">
<g-panel-form-item
:list="[
@ -134,10 +162,6 @@
<view class style="color: #00b666" hover-class="none">{{ item.checked ? "当前" : "" }}</view>
</view>
</scroll-view>
<!-- <view class="g_flex_row_between g_pl_20 g_pr_20 g_pb_32 g_pt_12" style="box-shadow: 0px -3px 6px 0px rgba(153, 153, 153, 0.1)">
<g-button btnText="创建团队" @clickBtn="goHome" size="160"></g-button>
<g-button btnText="加入团队" type="primary" @clickBtn="goHome" size="160"></g-button>
</view> -->
</u-popup>
</view>
</template>
@ -147,13 +171,6 @@ export default {
onReady() {
this.G.setNavStyle();
},
// onShareAppMessage() {
// return {
// title: " ",
// imageUrl: "../../static/image/fdzsshare.png",
// };
// // return this.G.shareFun();
// },
watch: {
showTeamToggle(val) {
if (val) {
@ -239,6 +256,94 @@ export default {
waitNum_ups: 0,
itemList: [],
isCreator: false,
showService: false,
readed: true,
isLogin: false,
authInfo: { realNameAuth: 0 }, //
userNum: {},
map: { num10: "0", num20: "0", num25: "0", num30: "0", num40: "0", num999: "0", user999: "0", user40: "0", user48: "0", user50: "0", agencyData: {} },
orderDataList: [
{
name: "在招",
num: "-",
path: "/root/merchantManagement/orderManagement?recruitment=1",
},
{
name: "总职位",
num: "-",
path: "/root/merchantManagement/orderManagement",
},
{
name: "互关",
num: "-",
path: "",
},
{
name: "关注",
num: "-",
path: "",
},
{
name: "粉丝",
num: "-",
path: "",
},
],
todayDataList: [
{
name: "报名",
num: "-",
path: "/root/person/todayData",
},
{
name: "到面",
num: "-",
path: "/root/person/todayData",
},
{
name: "通过",
num: "-",
path: "/root/person/todayData",
},
{
name: "入职",
num: "-",
path: "/root/person/todayData",
},
{
name: "在职",
num: "-",
path: "/root/person/todayData",
},
],
billDataList: [
{
name: "审核中",
num: 0,
path: "/root/person/applyIndex?status=1",
},
{
name: "待接待",
num: 0,
path: "/root/person/applyIndex?status=2",
},
{
name: "待面试",
num: 0,
path: "/root/person/applyIndex?status=3",
},
{
name: "待入职",
num: 0,
path: "/root/person/applyIndex?status=4",
},
{
name: "在职中",
num: 0,
path: "/root/person/applyIndex?status=5",
},
],
};
},
onShow() {
@ -247,6 +352,16 @@ export default {
that.agencyInfo = uni.getStorageSync("agencyInfo");
if (uni.getStorageSync("apply-token")) {
that.setUserInfo();
// that.userInfo = uni.getStorageSync("apply-userinfo");
that.isLogin = uni.getStorageSync("apply-token") ? true : false;
if (that.isLogin) {
this.getAuthInfo();
this.getData();
this.getNum();
this.getCompanyInfo();
}
} else {
that.waitNum_ups = 0;
that.pageSpeed = 1;
@ -569,6 +684,119 @@ export default {
let that = this;
that.showTeamToggle = true;
},
getAuthInfo() {
let that = this;
console.log("this.agencyInfo.id", this.agencyInfo);
this.G.Get(this.api.get_supplier_info, { agencyId: this.agencyInfo.id || "" }, (res) => {
console.log("resresresresresres", res);
that.authInfo = res;
});
},
getData() {
let that = this;
this.G.Get(this.api.user_dataValue, {}, (res) => {
console.log("res", res);
if (res) {
that.map = res;
}
that.todayDataList = [
{
name: "报名",
num: that.map.agencyData.signUps || 0,
path: "/root/person/todayData",
},
{
name: "到面",
num: that.map.agencyData.arrived || 0,
path: "/root/person/todayData",
},
{
name: "通过",
num: that.map.agencyData.passed || 0,
path: "/root/person/todayData",
},
{
name: "入职",
num: that.map.agencyData.entry || 0,
path: "/root/person/todayData",
},
{
name: "在职",
num: that.map.agencyData.obJob || 0,
path: "/root/person/todayData",
},
];
that.billDataList = [
{
name: "审核中",
num: that.map.classify2num.num10 || 0,
path: "/root/person/applyIndex?status=1",
},
{
name: "待接待",
num: that.map.classify2num.num20 || 0,
path: "/root/person/applyIndex?status=2",
},
{
name: "待面试",
num: that.map.classify2num.num25 || 0,
path: "/root/person/applyIndex?status=3",
},
{
name: "待入职",
num: that.map.classify2num.num30 || 0,
path: "/root/person/applyIndex?status=4",
},
{
name: "在职中",
num: that.map.classify2num.num40 || 0,
path: "/root/person/applyIndex?status=5",
},
];
});
},
getCompanyInfo() {
let that = this;
that.G.Get(
that.api.bind_enterpriseDetail + "/" + uni.getStorageSync("apply-agencyId"),
{
agencyId: uni.getStorageSync("apply-agencyId"),
type: 1,
},
(res) => {
console.log("item.", res);
that.userNum = res;
}
);
},
getNum() {
let that = this;
that.G.Get(that.api.bind_getApplyNum, {}, (res) => {
console.log("获取待处理数量:", res);
if (res.approvePassHasNotRed > 0) {
uni.setTabBarBadge({
index: 1,
text: String(res.approvePassHasNotRed),
});
that.readed = false;
} else {
uni.removeTabBarBadge({
index: 1,
});
that.readed = true;
}
});
},
goOrder(){
uni.switchTab({
url: '/pages/workBench/index',
success: (res) => {},
fail: (res) => {},
complete: (res) => {},
})
}
},
};
</script>

@ -1,364 +1,500 @@
<template>
<view class="g_bg_page">
<view class="g_h_all" style="" v-if="!isLogin">
<unloginInfo></unloginInfo>
<view class="p-apply-inedx g_w_all g_h_all g_bg_f_5 g_kuaishou g-apply-tab">
<!-- #ifdef MP-TOUTIAO -->
<view class="g_flex_row_center apply-header" v-if="isHaveOrder == 1">
<view class="g_flex_row_between box">
<view v-for="(item, index) in tabInfo" :key="index" class="item g_flex_column_center" :class="tabActive == index ? 'item-active' : ''" @click="handleUpdateTab(index)">
<view class="btn g_flex_c g_fw_600">{{ item.name }}</view>
</view>
<view class="g_pb_48" v-else>
<view class="g_h_10"> </view>
<!-- 账单 -->
<!-- v-if="userInfo.user.agencyRole == 1 || userInfo.user.agencyRole == 2 || userInfo.hasBill || true" -->
<view class="g_radius_8 g_p_16 g_bg_f g_text_c g_ml_10 g_mr_10" hover-class="thover" @click="goPage('/root/bind/order?active=0')">
<view class="g_fw_600 g_mb_10 g_fs_20 g_position_rela">
{{ userNum.upNum }}
<view class="g_w_6 g_h_6 g_radius_50 g_bg_f0a" v-if="!readed" style="position: absolute; left: calc(50% + 10px); top: 0"></view>
</view>
<view class="g_c_6">关注发单号</view>
<!-- <view class="g_flex_row_between g_c_6 g_mt_12 ">
<div class="g_text_c g_flex_1">
<div class="g_fs_16 g_c_0 g_fw_600">{{ userNum.jobNum }}</div>
<div class="g_fs_14">总职位</div>
</div>
<div class="g_text_c g_flex_1">
<div class="g_fs_16 g_c_0 g_fw_600">{{ userNum.recruitmentJobNum }}</div>
<div class="g_fs_14">在招</div>
</div>
<div class="g_text_c g_flex_1">
<div class="g_fs_16 g_c_0 g_fw_600">{{ userNum.downNum }}</div>
<div class="g_fs_14">粉丝</div>
</div>
</view> -->
</view>
<!-- v-if="agencyInfo.supplierAccount == 1" -->
<view class="g_mt_10" v-if="false">
<!-- 发单号 -->
<g-panel-card-num :list="orderDataList" :subhead="agencyInfo.fullName || ''" titleNav="/root/merchantManagement/orderManagement" :border="true" :speed="1" :marginBottom="16" cusType="num" :height="26" :num="5" cusTitle="我的发单号" :bottomBox="true" bottomNav="/root/merchantManagement/jobForm" @clickItem="handleClickNum" />
</view>
<!-- #endif -->
<view class="g_mt_10">
<!-- 报名工单 -->
<g-panel-card-num :list="billDataList" titleNav="/root/person/applyIndex" :border="true" :speed="1" :marginBottom="16" cusType="num" :height="26" :num="5" cusTitle="报名工单" @clickItem="handleClickNum" />
<view class="g_h_all">
<!-- #ifdef APP-PLUS || H5 || MP-KUAISHOU || MP-WEIXIN -->
<view class="" style="height: calc(58px + 50px)"></view>
<!-- #endif -->
<view class="">
<view class="m-box-fixed" :style="{ top: 0 }" v-if="isLogin">
<view style="background-color: #fff" class="">
<view class="m-select">
<view style="height: 52px" class="g_flex_column_center">
<view class="m-search g_pb_0 g_position_rela" style="padding-bottom: 0; padding-left: 12px; padding-right: 12px">
<u-search @btnSearch="getSearch" height="80" v-model="keyword" placeholder="搜索姓名/职位/手机号" bg-color="#ededed" :show-action="false" @change="getSearch" @clear="getSearch" @custom="getSearch" @search="getSearch" search-icon-color="#999999" :maxlength="20"></u-search>
<view class="g_w_all g_h_40 g_position_abso" style="left: 0; top: 12px; z-index: 9999" @click.stop="goSearch"></view>
</view>
</view>
<!-- wx:if="{{configInfo.record}}" -->
<!-- titleNav="/root/detail/applyTob" -->
<!-- 今日数据 -->
<!-- titleNav="/root/person/todayData" -->
<!-- <view class="g_mt_10">
<g-panel-card-num :list="todayDataList" :border="true" :speed="1" :marginBottom="16" cusType="num" :height="26" :num="5" cusTitle="今日数据" @clickItem="handleClickNum" />
</view> -->
<view class="g_mt_24" v-if="agencyInfo.supplierAccount == 1">
<!-- <view class="g_mb_10 g_fw_600 g_pl_16 g_fs_17">仅项目方可见</view> -->
<view class="g_p_16 g_bg_f g_radius_8 g_flex_row_between flex_center g_ml_10 g_mr_10" hover-class="thover" @click="goPage('/root/bind/search?active=1')">
<view class="g_flex_row_start flex_center">
<!-- <view class="t-icon g_w_48 g_h_48 _i t-icon-fazhandaili1"></view> -->
<img src="https://matripe-cms.oss-cn-beijing.aliyuncs.com/dailibaoming/fazhandaili0610.svg" class="g_w_48 g_h_48 g_radius_50" alt="" />
<view class="g_flex_column_between g_ml_10">
<view class="g_fs_16 g_c_0 g_fw_600 g_mb_6">发展代理</view>
<view class="g_c_9">邀请更多代理粉丝关注我</view>
</view>
<view class="g_h_10 g_bg_f_5"></view>
</view>
<view class="g_c_main g_bg_e7 g_radius_20" hover-class="thover" style="padding: 4px 12px">去邀请</view>
<view style="width: 100vw" class="g_border_e_b" v-if="isLogin">
<u-tabs :list="menuList" item-width="126" v-model="menuActive" active-color="#00b666" bar-width="60" bar-height="6" font-size="32" @change="handleUpdateMenu" :gutter="22" duration="0.1" itemWidth="auto" height="84"></u-tabs>
</view>
<!-- <view class="g_fs_12 g_c_6 g_pl_20 g_mt_10">该卡片内容仅对开通发单号且有渠道管理权限的用户显示代理在该页面看不到此卡片内容</view> -->
</view>
<!-- 面板 -->
<g-list-apply from="home" @uploadList="getList('concat')" bg="" class="" :tabActive="tabActive" :loading="loading" :speed="speed" :isLogin="isLogin" :query.sync="query" :navInfo="navInfo" />
</view>
</view>
<!-- <servicePopup
:show="showService"
@updateShow="
(e) => {
showService = e;
}
"
></servicePopup> -->
</view>
</template>
<script>
// import gEmpty from "@/components/empty.vue";
import unloginInfo from "@/components/unloginInfo.vue";
// import servicePopup from "@/components/servicePopup.vue";
export default {
onShareAppMessage() {
return this.G.shareFun();
},
onReady() {
this.G.setNavStyle();
},
components: {
// gEmpty,
unloginInfo,
// servicePopup,
onShareAppMessage() {
return {
title: " ",
imageUrl: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/dailibaoming/APP/shareCard0609.png",
};
// return this.G.shareFun();
},
data() {
return {
globalData: getApp().globalData,
showService: false,
readed: true,
isLogin: false,
authInfo: { realNameAuth: 0 }, //
userInfo: {},
agencyInfo: {},
userNum: {},
map: { num10: "0", num20: "0", num25: "0", num30: "0", num40: "0", num999: "0", user999: "0", user40: "0", user48: "0", user50: "0", agencyData: {} },
orderDataList: [
{
name: "在招",
num: "-",
path: "/root/merchantManagement/orderManagement?recruitment=1",
isHaveOrder: -1,
loading: true,
speed: -1,
query: {
page: 1,
size: 50,
list: [],
isFinish: -1,
},
GZHInfo: 0,
cdnBaseImg: this.G.store().cdnBaseImg,
keyword: "",
tabActive: 0,
tabTip: "",
tabInfo: [
{
name: "总职位",
num: "-",
path: "/root/merchantManagement/orderManagement",
},
name: "我报的",
childList: [
{
name: "互关",
num: "-",
path: "",
name: "全部",
tip: "",
},
{
name: "关注",
num: "-",
path: "",
name: "审核中",
tip: "10",
},
{
name: "粉丝",
num: "-",
path: "",
name: "待接待",
tip: "20",
},
],
todayDataList: [
{
name: "报名",
num: "-",
path: "/root/person/todayData",
name: "待面试",
tip: "25",
},
{
name: "到面",
num: "-",
path: "/root/person/todayData",
name: "待入职",
tip: "30",
},
{
name: "通过",
num: "-",
path: "/root/person/todayData",
name: "在职中",
tip: "40,48",
},
{
name: "入职",
num: "-",
path: "/root/person/todayData",
name: "已完成",
tip: "21,26,35,45,50",
},
],
},
{
name: "在职",
num: "-",
path: "/root/person/todayData",
name: "报给我的",
childList: [
{
name: "全部",
tip: "",
},
],
billDataList: [
{
name: "审核中",
num: 0,
path: "/root/person/applyIndex?status=1",
name: "待审核",
tip: "10",
},
{
name: "待接待",
num: 0,
path: "/root/person/applyIndex?status=2",
tip: "20",
},
{
name: "待面试",
num: 0,
path: "/root/person/applyIndex?status=3",
tip: "25",
},
{
name: "待入职",
num: 0,
path: "/root/person/applyIndex?status=4",
tip: "30",
},
{
name: "在职中",
num: 0,
path: "/root/person/applyIndex?status=5",
tip: "40,48",
},
{
name: "已完成",
tip: "21,26,35,45,50",
},
],
query: {
pageNum: 1,
size: 50,
list: [],
jobType: 2,
recruitment: "",
},
],
menuList: [],
menuActive: 0,
isLogin: false,
loginInfo: {},
navInfo: {},
};
},
onLoad() {},
onShow() {
onHide() {
let that = this;
that.userInfo = uni.getStorageSync("apply-userinfo");
that.agencyInfo = uni.getStorageSync("agencyInfo");
console.log("that.agencyInfo", that.agencyInfo);
that.isLogin = uni.getStorageSync("apply-token") ? true : false;
// if (that.userInfo.agencyStatus == 1) {
if (that.isLogin) {
this.getAuthInfo();
this.getData();
this.getNum();
this.getCompanyInfo();
if (uni.getStorageSync("apply-supplierAccount") == 1) {
//
that.tabActive = 1;
} else {
//
that.tabActive = 0;
}
// }
// if (typeof that.$scope.getTabBar === "function" && that.$scope.getTabBar()) {
// that.$scope.getTabBar().setData({
// selected: 4,
// isShow: true,
// });
// }
// if (typeof that.$mp.page.getTabBar === "function" && that.$mp.page.getTabBar()) {
// that.$mp.page.getTabBar().setData({
// selected: 4,
// isShow: true,
// });
// }
uni.removeStorageSync("apply-tab-active");
},
created() {},
methods: {
getAuthInfo() {
let that = this;
console.log("this.agencyInfo.id", this.agencyInfo);
this.G.Get(this.api.get_supplier_info, { agencyId: this.agencyInfo.id || "" }, (res) => {
console.log("resresresresresres", res);
that.authInfo = res;
});
},
getData() {
onLoad(options) {
let that = this;
this.G.Get(this.api.user_dataValue, {}, (res) => {
console.log("res", res);
if (res) {
that.map = res;
if (options.status) {
that.menuActive = Number(options.status);
// setTimeout(() => {
// that.menuActive = Number(options.status);
// }, 200);
}
that.todayDataList = [
{
name: "报名",
num: that.map.agencyData.signUps || 0,
path: "/root/person/todayData",
},
{
name: "到面",
num: that.map.agencyData.arrived || 0,
path: "/root/person/todayData",
},
{
name: "通过",
num: that.map.agencyData.passed || 0,
path: "/root/person/todayData",
},
{
name: "入职",
num: that.map.agencyData.entry || 0,
path: "/root/person/todayData",
},
{
name: "在职",
num: that.map.agencyData.obJob || 0,
path: "/root/person/todayData",
},
];
that.billDataList = [
{
name: "审核中",
num: that.map.classify2num.num10 || 0,
path: "/root/person/applyIndex?status=1",
},
{
name: "待接待",
num: that.map.classify2num.num20 || 0,
path: "/root/person/applyIndex?status=2",
},
{
name: "待面试",
num: that.map.classify2num.num25 || 0,
path: "/root/person/applyIndex?status=3",
},
{
name: "待入职",
num: that.map.classify2num.num30 || 0,
path: "/root/person/applyIndex?status=4",
created() {
let that = this;
console.log(12312312312);
},
{
name: "在职中",
num: that.map.classify2num.num40 || 0,
path: "/root/person/applyIndex?status=5",
onShow() {
let that = this;
//
that.navInfo = that.G.getNavInfo();
if (uni.getStorageSync("apply-supplierAccount") == 1) {
//
that.isHaveOrder = 1;
if (uni.getStorageSync("apply-tab-active") == 1) {
that.tabActive = 0;
} else {
that.tabActive = 1;
}
} else {
//
that.isHaveOrder = 0;
that.tabActive = 0;
}
that.isLogin = uni.getStorageSync("apply-token") ? true : false;
console.log("that.isLogin", that.isLogin);
that.loginInfo = uni.getStorageSync("apply-userinfo");
if (!that.isLogin) {
that.loading = false;
that.speed = 0;
this.menuList = this.tabInfo[this.tabActive].childList;
} else {
this.query.page = 1;
this.menuList = this.tabInfo[this.tabActive].childList;
this.getList();
}
this.getGZHInfo();
},
];
});
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");
}
}
},
getCompanyInfo() {
methods: {
getList($type = "init") {
let that = this;
that.G.Get(
that.api.bind_enterpriseDetail + "/" + uni.getStorageSync("apply-agencyId"),
console.log("是否登录", that.isLogin);
if (!that.isLogin) {
return false;
}
that.G.Post(
that.api.order_list_new,
{
agencyId: uni.getStorageSync("apply-agencyId"),
type: 1,
pageNum: that.query.page,
pageSize: that.query.size,
keys: "",
classify: 2,
// classify: that.tabActive + 1,
statusStr: that.tabInfo[that.tabActive].childList[that.menuActive].tip,
},
(res) => {
console.log("item.", res);
that.userNum = res;
console.log("res", res);
// return
if (res.recordCount == 0) {
that.loading = false;
} else {
that.loading = true;
}
that.$forceUpdate();
that.speed = res.recordCount;
that.query.isFinish = res.recordList.length;
if (that.speed > 0) {
// uni.setBackgroundColor({
// backgroundColorBottom: "#ffffff",
// });
res.recordList.forEach((item, index) => {
if (item.status == 10) {
//
item.time = that.G.getPointTime(item.createTime, "MM--DD HH:MM");
} else if (item.status == 20) {
//
item.time = that.G.getPointTime(item.receptionTime, "MM--DD HH:MM");
} else if (item.status == 21 || item.status == 26 || item.status == 35 || item.status == 48 || item.status == 45) {
//
item.time = that.G.getPointTime(item.finishTime, "MM--DD HH:MM");
} else if (item.status == 25) {
//
item.time = that.G.getPointTime(item.interviewTime, "MM--DD HH:MM");
} else if (item.status == 30) {
//
item.time = that.G.getPointTime(item.willEntryTime, "MM--DD HH:MM");
} else if (item.status == 40) {
//
item.time = that.G.getPointTime(item.entryTime, "MM--DD HH:MM");
} else if (item.status == 50) {
//
item.time = that.G.getPointTime(item.leaveTime, "MM--DD HH:MM");
} else {
item.time = that.G.getPointTime(item.updateTime, "MM--DD HH:MM");
}
item.status_text = that.G.getOrderStatus().filter((itm, inx) => {
return itm.id == item.status;
})[0].name;
item.setTitle = that.G.titleToStr(item);
});
} else {
// uni.setBackgroundColor({
// backgroundColorBottom: "#ededed",
// });
}
if ($type == "init") {
that.query.list = res.recordList;
// that.query.list = [...res.recordList, ...res.recordList, ...res.recordList, ...res.recordList, ...res.recordList];
} else {
that.query.list = that.query.list.concat(res.recordList);
}
}
);
},
handleClickNum(e) {
console.log(e);
if (!e.item.path) {
if (e.item.name == "联系客服") {
this.showService = true;
goTel($item) {
console.log($item);
if ($item) {
uni.makePhoneCall({
phoneNumber: $item,
});
}
return false;
},
getGZHInfo() {
let that = this;
if (that.isLogin) {
that.G.Get(that.api.user_getGZHstatus, { type: "BMZS" }, (res) => {
console.log(res);
that.GZHInfo = res;
});
}
},
/**
* 跳转搜索页
*/
goSearch() {
this.G.isLogin();
if (this.G.isLogin()) {
uni.navigateTo({
url: e.item.path,
url: `/root/other/search?from=apply&active=${this.tabActive}`,
});
}
},
getNum() {
// tab
handleUpdateTab(e) {
let that = this;
that.G.Get(that.api.bind_getApplyNum , {}, (res) => {
console.log("获取待处理数量:", res);
if (res.approvePassHasNotRed > 0) {
uni.setTabBarBadge({
index: 1,
text: String(res.approvePassHasNotRed),
});
that.readed = false;
} else {
uni.removeTabBarBadge({
index: 1,
});
that.readed = true;
console.log("e", e);
this.tabActive = e;
this.menuActive = 0;
this.menuList = this.tabInfo[this.tabActive].childList;
this.speed = -1;
this.query.page = 1;
that.G.isLogin();
if (that.G.isLogin()) {
this.getList();
}
},
// tab
handleUpdateMenu($item, $index) {
let that = this;
console.log("$item", $item);
this.menuActive = $item;
this.speed = -1;
this.query.page = 1;
that.G.isLogin();
if (that.G.isLogin()) {
this.getList();
}
},
getSearch(e) {},
goDetail($item, $index) {
let that = this;
console.log("$item", $item);
// return
uni.navigateTo({
// url: "/root/detail/apply?id=" + $item.id + "&type=" + (that.tabActive + 1),
url: `/root/detail/apply?id=${$item.id}&type=${that.tabActive + 1}&relationId=${$item.relationId}`,
});
},
goLogin() {
console.log("123");
uni.reLaunch({
url: "/root/person/loginIndex",
});
},
goPage(url) {
this.G.isLogin();
if (this.G.isLogin()) {
toMessage() {
uni.navigateTo({
url,
url: "/root/person/message",
});
}
},
},
};
</script>
<style>
page {
box-sizing: border-box;
<style lang="scss">
.apply-header {
position: fixed;
left: 50%;
transform: translateX(-50%);
.box {
padding: 0 2px;
width: 148px;
height: 32px;
background-color: #eeeeee;
border-radius: 4px;
.item {
width: 72px;
height: 28px;
margin-top: 2px;
border-radius: 4px;
.btn {
font-size: 14px;
color: #333;
}
}
.item-active {
background-color: #fff;
}
}
}
.p-apply-inedx {
width: 100vw;
background-color: #ededed;
overflow-x: hidden;
min-height: 100%;
.bg_shawdoc {
background: linear-gradient(180deg, #caf1e0 1%, rgba(249, 249, 249, 0));
}
.suffix {
position: absolute;
right: 20rpx;
top: 10px;
z-index: 1;
border-top-right-radius: 110rpx;
border-bottom-right-radius: 110rpx;
}
.tab-fixed {
position: fixed;
left: 0;
top: 0;
width: 100%;
height: calc(112rpx + 36px);
background-color: #fff;
z-index: 1;
}
.m-search {
.u-icon-wrap {
}
}
.m-search-active {
.u-icon-wrap {
position: inherit;
left: 0rpx;
}
}
.m-select {
.u-tab-bar {
bottom: 5px !important;
}
.link {
.item {
.doc {
bottom: 0;
left: 50%;
transform: translateX(-50%);
}
}
}
.showdoc {
// box-shadow: 0 2px 4px rgba(0, 0, 0, .04), 0 0 6px rgba(0, 0, 0, .02);
border-bottom: 1rpx solid #eee;
overflow-x: "auto";
width: 100vw;
.menu-obj {
min-width: 422px;
.menu-btn {
margin-right: 8px;
.btn {
background: rgba(204, 204, 204, 0.2);
color: #666666;
}
&:first-child {
margin-left: 12px;
}
}
.menu-active {
.btn {
background: rgba(0, 182, 102, 0.1);
color: #00b666;
}
}
}
}
}
.m-login-false {
height: calc(100% - 92px);
.m-panel,
.link {
height: 100%;
.m-log {
height: 100%;
}
}
}
.m-panel {
min-height: 100%;
}
.m-box-fixed {
position: fixed;
left: 0;
// top: 92px;
width: 100vw;
background-color: #fff;
z-index: 999;
}
}
</style>

@ -540,6 +540,7 @@
</scroll-view>
</div>
</u-popup>
<canvas type="2d" style="position: absolute; left: -2000px; width: 425px; height: 350px; background: #fff" id="canvasId" ref="canvasId"></canvas>
</div>
</template>
@ -552,7 +553,27 @@ export default {
},
onShareAppMessage() {
this.attention = false;
return this.G.shareFun("/root/detail/job?id=" + this.jobDetail.id, "", this.jobDetail.jobName + " " + this.jobDetail.priceStr + " " + "好厂好工作 火热招聘中");
// return this.G.shareFun("/root/detail/job?id=" + this.jobDetail.id,
// "", this.jobDetail.jobName + " " + this.jobDetail.priceStr + " " + " ");
let that = this;
let path;
if (this.isMember) {
path = `/root/detail/job?id=${that.jobDetail.id}&from=home&userId=${that.userInfo.user.id}`;
} else {
path = `/root/detail/job?id=${that.jobDetail.id}&from=home`;
}
return {
promise: new Promise((resolve, reject) => {
that.getWXCanvas("", "setShare").then((res) => {
wx.hideLoading();
resolve({
title: " ",
imageUrl: res.tempFilePath,
path,
});
});
}),
};
},
mounted() {
var obj = dateTimePicker.dateTimePicker(this.startYear, this.endYear, this.currentTime);
@ -700,6 +721,7 @@ export default {
let num1 = 1;
this.templateArr.forEach((item) => {
let num = 1;
item.children = [];
item.childrenType.forEach((innerItem) => {
item.children.push({
key: innerItem,
@ -1234,11 +1256,14 @@ export default {
},
goIm() {
let that = this;
that.F.wyyxGet(that.api.job_get_cus + '?jobId=' + that.jobDetail.id,{},(cusData)=>{
that.F.wyyxPost(
that.api.wyyx_create,
{
senderUserId: uni.getStorageSync("apply-uid"),
receiverUserId: that.jobDetail.customServiceUserId,
receiverUserId: cusData,
},
(res) => {
uni.$UIKitStore.uiStore.selectConversation(res.conversationId);
@ -1247,7 +1272,7 @@ export default {
{
conversationType: 1,
senderUserId: uni.getStorageSync("apply-uid"), // id id
receiverUserId: that.jobDetail.customServiceUserId, // id
receiverUserId: cusData, // id
type: 100000,
jobDetail: {
title: that.jobDetail.jobName,
@ -1269,6 +1294,145 @@ export default {
},
() => {}
);
})
},
//
getWXCanvas(sharelImg, type) {
const that = this;
return new Promise((resolve) => {
var mycenter = 0; //
var myheight = 0; //
const query = uni.createSelectorQuery().in(this);
query
.select("#canvasId")
.fields({
node: true,
size: true,
})
.exec((res) => {
console.log("uni 获取节点信息:", res);
const canvas = res[0].node;
const ctx = canvas.getContext("2d");
that.setShareCover(ctx, canvas, mycenter).then((canvas) => {
uni.canvasToTempFilePath({
canvas: canvas,
success(res) {
resolve(res);
},
fail(res) {
uni.hideLoading();
uni.showToast({
title: res.errMsg,
icon: "error",
});
},
});
});
});
});
},
/**
* 生成分享小程序的封面
*/
setShareCover(ctx, canvas, mycenter) {
let that = this;
canvas.width = 750;
canvas.height = 600;
mycenter = canvas.width / 2;
let labelLeft = 0;
let baseLeft, logoSize, titleFontSize, mainFontSize, line1, line2, line3, line4, line5, line6, line7, line8;
baseLeft = 24; // 线
logoSize = 132; // logo
mainFontSize = 36; //
titleFontSize = 56; //
let dis = 0,
labelHeight = 0;
line1 = 0; //
line2 = 90 - dis;
line3 = 200 - dis;
line4 = 280 - dis;
line5 = 350 - dis - labelHeight;
line6 = 380 - dis - labelHeight - 0;
line7 = 460 - dis - labelHeight;
//
console.log("that.jobDetail", that.jobDetail);
that.G.roundRect1(ctx, 0, 0, 750, 600, 0, "#fff");
return new Promise(function (imgres) {
//
that.G.fillTextLineBreak(ctx, that.jobDetail.jobName, baseLeft, line2, 800, 20, "#000", titleFontSize, "500", "left");
//
that.G.fillTextLineBreak(ctx, that.jobDetail.monthPay, 750 - ctx.measureText(that.jobDetail.monthPay).width + 20, line3 + 6, 400, 20, "#ff4400", titleFontSize, "400");
//
that.G.fillTextLineBreak(ctx, that.G.getSalaryClassifyValue(that.jobDetail.salaryClassify, that.jobDetail.salaryClassifyValue), baseLeft, line3, 400, 40, "#ff4400", titleFontSize + 6, "600", "left");
if (that.jobDetail.jobRequestLabelNames.length > 0) {
that.jobDetail.jobRequestLabelNames.forEach((item1, index) => {
if (index <= 3) {
that.G.fillTextLineBreak(ctx, item1, baseLeft + labelLeft + 80, line4 + 4, 500, 40, "#666", mainFontSize);
labelLeft += ctx.measureText(item1).width + 40;
if (index == 3) {
labelLeft = 0;
}
} else if (index > 3 && index <= 6) {
that.G.fillTextLineBreak(ctx, item1, baseLeft + labelLeft + 80, line5 + 4, 500, 40, "#666", mainFontSize);
labelLeft += ctx.measureText(item1).width + 40;
}
});
}
// else if (that.jobDetail.jobSpecialLabelNames.length > 0) {
// that.jobDetail.jobSpecialLabelNames.forEach((item1, index) => {
// // if (index <= 3) {
// that.G.fillTextLineBreak(ctx, item1, baseLeft + labelLeft + 80, line4 + 4, 400, 40, "#666", mainFontSize); //
// // that.G.roundRect1(ctx, baseLeft + labelLeft, line4 - 38, ctx.measureText(item1).width + 24, 56, 8, "#00000012");
// labelLeft += ctx.measureText(item1).width + 20;
// // if (index == 3) {
// // labelLeft = 0;
// // }
// // } else if (index > 3 && index <= 6) {
// // // that.G.roundRect1(ctx, baseLeft + labelLeft, line5 - 38, ctx.measureText(item1).width + 24, 56, 8, "#00000012");
// // that.G.fillTextLineBreak(ctx, item1, baseLeft + labelLeft + 80, line5 + 4, 400, 40, "#666", mainFontSize); //
// // labelLeft += ctx.measureText(item1).width + 32;
// // }
// });
// }
//
that.G.roundRect1(ctx, mycenter - 712 / 2, line6, 712, 60, 4, "#fff6e8"); //
//
//
that.G.roundRect1(ctx, mycenter - 712 / 2, line7, 712, 100, 4, "#00b666"); //
//
that.G.fillTextLineBreak(ctx, "立即咨询", mycenter - 24 - ctx.measureText("立即咨询").width / 2 + 100, line7 + 65, 300, 120, "#fff", titleFontSize, "500"); //
// logo
uni.downloadFile({
url: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/pugongying/goxj2-qpwbo.png",
success(res) {
console.log("duihao", res);
const img1 = canvas.createImage();
img1.src = res.tempFilePath;
console.log("img info img", img1);
img1.onload = (info) => {
console.log("img info", info);
let safeMarkPosition = 44;
//
["安全保障", "工资保障", "补贴保障"].forEach((item1, index) => {
//
that.G.fillTextLineBreak(ctx, item1, baseLeft + safeMarkPosition + 70, line6 + 40, 100, 32, "#fca025");
that.G.roundRect(ctx, img1, baseLeft + safeMarkPosition - 36, line6 + 12, 32, 32, 12);
safeMarkPosition += 130 + ctx.measureText(item1).width;
});
setTimeout(() => {
imgres(canvas);
}, 200);
};
},
fail(err) {
console.log("downloadFile err", err);
},
});
}).catch((err) => {
console.log("all err", err);
});
},
},
};

@ -274,6 +274,7 @@ export default {
uni.setStorageSync("apply-tel", $data.tel); // -- 便
uni.setStorageSync("apply-token", $data.token); // -- token便
uni.setStorageSync("apply-agencyId", $data.user.agencyId); // -- id便
uni.setStorageSync("apply-uid", $data.user.id); // -- 便
uni.setStorageSync("apply-supplierAccount", $data.supplierAccount); // -- 便 0. 1.
uni.$emit("isGlogin", {
uid: $data.user.id,

@ -832,3 +832,6 @@ $max-radius: 49;
height: 40% !important;
}
//
.g_mb_50 {
margin-bottom: 50px;
}

@ -6,7 +6,7 @@ let data = {
appid: 'wxa7b4864efbcff191', //
localBaseImg: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/dailibaoming/APP/", // app图片前缀
cdnBaseImg: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/dailibaoming/", // cdn图片公共前缀路径
v3BaseImg: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/dailibaoming/v3", // cdn图片公共前缀路径
v3BaseImg: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/dailibaoming/v3/", // cdn图片公共前缀路径
loginText: '请登录',
// #ifdef MP-WEIXIN
version: uni.getAccountInfoSync().miniProgram.version || "1.0.16",
@ -27,6 +27,7 @@ let data = {
uni.removeStorageSync("apply-userinfo-copy");
uni.removeStorageSync("apply-agencyId");
uni.removeStorageSync("apply-supplierAccount");
uni.removeStorageSync("apply-uid");
},
/*
*/

Loading…
Cancel
Save