ws 4 years ago
commit 99dcd20018

@ -1,122 +1,139 @@
import request from "../utils/request"; import request from "../utils/request";
// 获取卡券信息 // 获取卡券信息
export function userCardApi(data) { export function userCardApi(data) {
return request({ return request({
url: "/yishoudan/usercoupon/list", url: "/yishoudan/usercoupon/list",
// method: "post", // method: "post",
params: data, params: data,
}); });
} }
// 获取用户余额信息 // 获取用户余额信息
export function userBalanceApi(data) { export function userBalanceApi(data) {
return request({ return request({
url: "/yishoudan/wallet/info", url: "/yishoudan/wallet/info",
// method: "post", // method: "post",
params: data, params: data,
}); });
} }
// 获取用户提现详情 // 获取用户提现详情
export function userDetailApi(data) { export function userDetailApi(data) {
return request({ return request({
url: "/yishoudan/wallet/withdrawal/list", url: "/yishoudan/wallet/withdrawal/list",
// method: "post", // method: "post",
params: data, params: data,
}); });
}
// 获取我的老乡信息
export function userTownsmanApi(data) {
return request({
url: "/yishoudan/workorder/getLaoXiangList",
// method: "post",
params: data,
});
} }
// // 获取我的老乡信息
// export function userTownsmanApi(data) {
// return request({
// url: "/yishoudan/workorder/getLaoXiangList",
// // method: "post",
// params: data,
// });
// }
// 获取我的报名信息 // 获取我的报名信息
export function userBillApi(data) { export function userBillApi(data) {
return request({ return request({
url: "/yishoudan/user/apply/order/list", url: "/yishoudan/user/apply/order/list",
// method: "post", // method: "post",
params: data, params: data,
}); });
} }
// 获取用户信息 // 获取用户信息
export function userBaseInfoApi(data) { export function userBaseInfoApi(data) {
return request({ return request({
url: "/yishoudan/user/getUserInfo", url: "/yishoudan/user/getUserInfo",
// method: "post", // method: "post",
params: data, params: data,
}); });
} }
// 获取用户积分信息 // 获取用户积分信息
export function getPointApi(data) { export function getPointApi(data) {
return request({ return request({
url: "/yishoudan/wallet/getPoint", url: "/yishoudan/wallet/getPoint",
// method: "post", // method: "post",
params: data, params: data,
}); });
} }
// 获取用户积分使用信息 // 获取用户积分使用信息
export function getPointDetailApi(data) { export function getPointDetailApi(data) {
return request({ return request({
url: "/yishoudan/pointUseRecord/list", url: "/yishoudan/pointUseRecord/list",
// method: "post", // method: "post",
params: data, params: data,
}); });
} }
// 登录状态账号设置修改密码 // 登录状态账号设置修改密码
export function setUserPswApi(data) { export function setUserPswApi(data) {
return request({ return request({
url: "/yishoudan/changePassword", url: "/yishoudan/changePassword",
// method: "post", // method: "post",
params: data, params: data,
}); });
} }
// 登录状态账号修改绑定手机号 // 登录状态账号修改绑定手机号
export function setUserTelApi(data) { export function setUserTelApi(data) {
return request({ return request({
url: "/yishoudan/user/changeTel", url: "/yishoudan/user/changeTel",
// method: "post", // method: "post",
params: data, params: data,
}); });
} }
// 账号修改绑定银行卡 // 账号修改绑定银行卡
export function getUserBankListApi(data) { export function getUserBankListApi(data) {
return request({ return request({
url: "/yishoudan/user/bank/getUserBankList", url: "/yishoudan/user/bank/getUserBankList",
// method: "post", // method: "post",
params: data, params: data,
}); });
} }
// 实名认证 // 实名认证
export function setUserRealNameApi(data) { export function setUserRealNameApi(data) {
return request({ return request({
url: "/yishoudan/user/realNameAuth", url: "/yishoudan/user/realNameAuth",
// method: "post", // method: "post",
params: data, params: data,
}); });
} }
// 获取用户微信绑定的二维码 // 获取用户微信绑定的二维码
export function getUserWxApi(data) { export function getUserWxApi(data) {
return request({ return request({
url: "/yishoudan/user/getMiniAppQrCodeOfBindUser", url: "/yishoudan/user/getMiniAppQrCodeOfBindUser",
// method: "post", // method: "post",
params: data, params: data,
}); });
} }
// 上传用户头像 // 上传用户头像
export function uploadUserAvatarApi(data) { export function uploadUserAvatarApi(data) {
return request({ return request({
url: "/yishoudan/user/changeUserImgsrc", url: "/yishoudan/user/changeUserImgsrc",
method: "post", method: "post",
headers: { "Content-Type": "multipart/form-data" }, headers: { "Content-Type": "multipart/form-data" },
data: data, data: data,
// data, // data,
}); });
}
// 获取我的老乡
export function userTownsmanApi(data) {
return request({
url: "/yishoudan/agency/user/list",
method: "post",
params: data,
// data,
});
}
// 我的老乡各个状态统计
export function gettownsManCountApi(data) {
return request({
url: "/yishoudan/agency/user/listStatistics",
method: "post",
params: data,
});
} }

@ -20,9 +20,9 @@
</div> </div>
<div class="jobname"> <div class="jobname">
{{ {{
item.aliasName !== null && item.aliasName !== "" item.storeName !== null && item.storeName !== ""
? item.aliasName ? item.storeName
: item.storeName : item.aliasName
}} }}
</div> </div>
</a> </a>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -1312,7 +1312,7 @@ export default {
// display: ; // display: ;
transition: all 0.4s; transition: all 0.4s;
left: 0; left: 0;
top: 164px; top: 144px;
width: 100vw; width: 100vw;
background-color: #fff; background-color: #fff;
z-index: 999; z-index: 999;

File diff suppressed because it is too large Load Diff

@ -54,7 +54,7 @@
<div class="maincontentright"> <div class="maincontentright">
<div class="hotphone"> <div class="hotphone">
<h1 class="bottombox"><i>服务热线</i></h1> <h1 class="bottombox"><i>服务热线</i></h1>
<p>0371-6666 6666</p> <p>0371-6611 3723</p>
</div> </div>
<!-- <div class="relationme"> <!-- <div class="relationme">
<p class="bottombox"><i>一手单合作</i></p> <p class="bottombox"><i>一手单合作</i></p>

@ -105,7 +105,7 @@
<div class="left"> <div class="left">
<p>总部地址河南省郑州市郑东新区升龙广场2号楼A座</p> <p>总部地址河南省郑州市郑东新区升龙广场2号楼A座</p>
<p>接待地址河南省郑州市航空港区相州街29-60</p> <p>接待地址河南省郑州市航空港区相州街29-60</p>
<p>联系电话135 2307 4549</p> <p>联系电话0371-6611 3723</p>
</div> </div>
<div class="right"> <div class="right">
<span <span

@ -4,7 +4,8 @@
<span v-if="!istelshow"></span> <span v-if="!istelshow"></span>
<span v-else></span> <span v-else></span>
</div> </div>
<div class="contentbody" v-if="!istelshow"> <div v-if="isShow">
<div class="contentbody" v-if="!istelshow">
<div class="warninginfo"> <div class="warninginfo">
您的账号可能存在安全风险为了确保为您本人操作请先进行安全验证 您的账号可能存在安全风险为了确保为您本人操作请先进行安全验证
</div> </div>
@ -33,6 +34,7 @@
更换手机号 更换手机号
</button> </button>
</div> </div>
</div>
</div> </div>
</template> </template>
@ -68,27 +70,37 @@ export default {
timmer: null, timmer: null,
}, },
istelshow: false, istelshow: false,
isShow :false
}; };
}, },
// //
computed: {}, computed: {},
// //
watch: {}, watch: {
},
// //
/** /**
* 组件实例创建完成属性已绑定但DOM还未生成$ el属性还不存在 * 组件实例创建完成属性已绑定但DOM还未生成$ el属性还不存在
*/ */
created() { created() {
setTimeout(()=>{
console.log(this.userinfo);
if (this.userinfo.tel) { if (this.userinfo.tel) {
this.istelshow = true; this.istelshow = true;
console.log(this.istelshow); // console.log(this.istelshow);
} }
this.isShow = true
},100)
}, },
/** /**
* el 被新创建的 vm.el 替换并挂载到实例上去之后调用该钩子 * el 被新创建的 vm.el 替换并挂载到实例上去之后调用该钩子
* 如果 root 实例挂载了一个文档内元素 mounted 被调用时 vm.el 也在文档内 * 如果 root 实例挂载了一个文档内元素 mounted 被调用时 vm.el 也在文档内
*/ */
mounted() {}, mounted() {
},
// //
methods: { methods: {
async submit() { async submit() {

@ -1,131 +1,150 @@
<template> <template>
<div class="loginpsw-container"> <div class="loginpsw-container">
<div class="contenttitle"> <div class="contenttitle">
<span>设置新的密码</span> <span>设置新的密码</span>
</div> </div>
<div class="contentbody"> <div class="contentbody">
<div class="username"> <div class="username">
<div>用户名</div> <div>用户名</div>
<input type="text" :value="username" disabled="disabled" /> <input type="text" :value="username" disabled="disabled" />
</div> </div>
<div class="password"> <div class="password">
<div>密码</div> <div>密码</div>
<input type="password" v-model.trim="password" /> <input type="password" v-model.trim="password" class="passwordInp"/>
</div> <i class="iconfont icon-biyan1" @click="changeStatus"></i>
<button @click="submit"></button> </div>
</div> <button @click="submit"></button>
</div> </div>
</div>
</template> </template>
<script> <script>
import { setUserPswApi } from "../../../../api/userinfo"; import { setUserPswApi } from "../../../../api/userinfo";
export default { export default {
// //
name: "", name: "",
// //
components: {}, components: {},
// //
props: { props: {
userinfo: { userinfo: {
require: true, require: true,
}, },
}, },
// //
data() { data() {
return { return {
username: "", username: "",
password: null, password: null,
}; };
}, },
// //
computed: {}, computed: {},
// //
watch: { watch: {
userinfo() { userinfo() {
this.$nextTick(() => { this.$nextTick(() => {
console.log(this.userinfo); console.log(this.userinfo);
// this.username = this.userinfo.tel; // this.username = this.userinfo.tel;
console.log(this.username); console.log(this.username);
}); });
}, },
}, },
// //
/** /**
* 组件实例创建完成属性已绑定但DOM还未生成$ el属性还不存在 * 组件实例创建完成属性已绑定但DOM还未生成$ el属性还不存在
*/ */
created() { created() {
console.log(this.userinfo.hidename); console.log(this.userinfo.hidename);
this.username = this.username = this.userinfo.userName || this.userinfo.nickName || this.userinfo.tel;
this.userinfo.userName || this.userinfo.nickName || this.userinfo.tel; },
}, /**
/** * el 被新创建的 vm.el 替换并挂载到实例上去之后调用该钩子
* el 被新创建的 vm.el 替换并挂载到实例上去之后调用该钩子 * 如果 root 实例挂载了一个文档内元素 mounted 被调用时 vm.el 也在文档内
* 如果 root 实例挂载了一个文档内元素 mounted 被调用时 vm.el 也在文档内 */
*/ mounted() {},
mounted() {}, //
// methods: {
methods: { async submit() {
async submit() { if (this.password === null || this.password.length === 0) {
if (this.password === null || this.password.length === 0) { this.$message.warning("请输入密码");
this.$message.warning("请输入密码"); } else {
} else { try {
try { const { data } = await setUserPswApi({ password: this.password });
const { data } = await setUserPswApi({ password: this.password }); console.log(data);
console.log(data); if (data.status === 200) {
if (data.status === 200) { this.$message.success("密码修改成功");
this.$message.success("密码修改成功"); }
} } catch (error) {
} catch (error) { console.log(error);
console.log(error); }
} }
} console.log(this.password);
console.log(this.password); },
}, changeStatus(e) {
}, // console.log(e);
let pas = document.querySelector('.passwordInp')
// console.dir(pas);
if (e.target.className == "iconfont icon-biyan1") {
e.target.className = "iconfont icon-zhengyan1";
pas.attributes[1].nodeValue = 'text'
} else {
e.target.className = "iconfont icon-biyan1";
pas.attributes[1].nodeValue = 'password'
}
},
},
}; };
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
.loginpsw-container { .loginpsw-container {
.contentbody { .contentbody {
.username, .username,
.password { .password {
margin-top: 16px; margin-top: 16px;
div { div {
font-size: 16px; font-size: 16px;
line-height: 16px; line-height: 16px;
margin-bottom: 8px; margin-bottom: 8px;
} }
input { input {
outline: none; outline: none;
width: 430px; width: 430px;
height: 40px; height: 40px;
text-indent: 10px; text-indent: 10px;
font-size: 16px; font-size: 16px;
background: #eeeeee; background: #eeeeee;
border: 1px solid #dddddd; border: 1px solid #dddddd;
border-radius: 4px; border-radius: 4px;
} }
} }
.password { .password {
input { position: relative;
background-color: #fff; input {
} background-color: #fff;
} }
button { .iconfont {
width: 64px; position: absolute;
height: 32px; font-size: 14px;
margin-top: 21px; right: 48%;
background: #ff6a00; top: 36px;
border-radius: 4px; }
border: none; }
font-size: 14px; button {
color: #fff; width: 64px;
&:hover { height: 32px;
background-color: #fe8034; margin-top: 21px;
} background: #ff6a00;
} border-radius: 4px;
} border: none;
font-size: 14px;
color: #fff;
&:hover {
background-color: #fe8034;
}
}
}
} }
</style> </style>

@ -78,7 +78,7 @@
<div class="username" v-else>Hi,{{ userinfo.hidetel }}</div> <div class="username" v-else>Hi,{{ userinfo.hidetel }}</div>
</div> </div>
<div class="priceinfo"> <div class="priceinfo">
<ul> <ul style="display:none">
<li <li
@click="pushto('/accountsetting/myintegral')" @click="pushto('/accountsetting/myintegral')"
:class="{ tagactive: activelist === 6 }" :class="{ tagactive: activelist === 6 }"
@ -140,6 +140,7 @@
<li <li
@click="pushto('/accountsetting/boundbankcard')" @click="pushto('/accountsetting/boundbankcard')"
:class="{ tagactive: activelist === 3 }" :class="{ tagactive: activelist === 3 }"
style="display:none"
> >
<span <span
><i class="iconfont icon-bangdingyinhangka"></i>绑定银行卡</span ><i class="iconfont icon-bangdingyinhangka"></i>绑定银行卡</span
@ -163,6 +164,7 @@
<li <li
@click="pushto('/accountsetting/realname')" @click="pushto('/accountsetting/realname')"
:class="{ tagactive: activelist === 4 }" :class="{ tagactive: activelist === 4 }"
style="display:none"
> >
<span><i class="iconfont icon-shimingrenzheng"></i>实名认证</span <span><i class="iconfont icon-shimingrenzheng"></i>实名认证</span
><span ><span

@ -21,10 +21,16 @@
待面试 待面试
</li> </li>
<li <li
@click="pagination.status = 25"
:class="{ townsmanactive: pagination.status === 25 }"
>
已接到
</li>
<li
@click="pagination.status = 30" @click="pagination.status = 30"
:class="{ townsmanactive: pagination.status === 30 }" :class="{ townsmanactive: pagination.status === 30 }"
> >
待入职 面试通过
</li> </li>
<li <li
@click="pagination.status = 40" @click="pagination.status = 40"
@ -33,17 +39,12 @@
在职中 在职中
</li> </li>
<li <li
@click="pagination.status = 50" @click="pagination.status = 999"
:class="{ townsmanactive: pagination.status === 50 }" :class="{ townsmanactive: pagination.status === 999 }"
> >
待离职 报名结束
</li>
<li
@click="pagination.status = 60"
:class="{ townsmanactive: pagination.status === 60 }"
>
已完成
</li> </li>
<!-- <li <!-- <li
@click="pagination.status = 70" @click="pagination.status = 70"
:class="{ townsmanactive: pagination.status === 70 }" :class="{ townsmanactive: pagination.status === 70 }"
@ -352,8 +353,8 @@ export default {
// console.log(parent.offsetHeight); // console.log(parent.offsetHeight);
// console.log(sibling.offsetHeight); // console.log(sibling.offsetHeight);
// console.log(window.getComputedStyle(parent).height); // console.log(window.getComputedStyle(parent).height);
console.log("子元素高度", sibling.offsetHeight); // console.log("", sibling.offsetHeight);
console.log("父元素高度", parent.offsetHeight); // console.log("", parent.offsetHeight);
if (sibling.offsetHeight > parent.offsetHeight) { if (sibling.offsetHeight > parent.offsetHeight) {
// sibling.style.height = "100%"; // sibling.style.height = "100%";
sibling.style.overflow = "hidden"; sibling.style.overflow = "hidden";
@ -363,14 +364,15 @@ export default {
item.isunfold = false; item.isunfold = false;
} }
item.controlUnfold = true; item.controlUnfold = true;
console.log(item.status);
// setTimeout(() => { // setTimeout(() => {
if (item.status == 10 || item.status == 20 || item.status == 30) { if (item.status == 10 || item.status == 20 || item.status == 21 || item.status == 25 || item.status == 26|| item.status == 30|| item.status == 35|| item.status == 45) {
item.statusTimeInfo = "面试时间"; item.statusTimeInfo = "面试时间";
item.statusShowTime = item.interviewTime; item.statusShowTime = item.interviewTime;
} else if (item.status == 40 || item.status == 50) { } else if (item.status == 40) {
item.statusTimeInfo = "入职时间"; item.statusTimeInfo = "入职时间";
item.statusShowTime = item.entryTime; item.statusShowTime = item.entryTime;
} else { } else if (item.status == 50) {
item.statusTimeInfo = "离职时间"; item.statusTimeInfo = "离职时间";
item.statusShowTime = item.leaveTime; item.statusShowTime = item.leaveTime;
} }

@ -1,256 +1,502 @@
<template> <template>
<div class="townsman-container w"> <div class="townsman-container w">
<div class="contenttitle"> <div class="contenttitle">
<span>我的老乡</span> <ul @click="resetpag">
<div @click="getTownsman"> <li @click="pagination.status = 0" :class="{ townsmanactive: pagination.status === 0 }">
<button 全部<span>{{ statusNum.num0 }}</span>
@click="pagination.searchTag = 1" </li>
:class="{ townsmanactive: pagination.searchTag === 1 }" <li @click="pagination.status = 1" :class="{ townsmanactive: pagination.status === 1 }">
> 空闲中<span>{{ statusNum.num1 }}</span>
已在职 </li>
</button> <li @click="pagination.status = 2" :class="{ townsmanactive: pagination.status === 2 }">
<button 报名中<span>{{ statusNum.num2 }}</span>
@click="pagination.searchTag = 0" </li>
:class="{ townsmanactive: pagination.searchTag === 0 }" <li @click="pagination.status = 3" :class="{ townsmanactive: pagination.status === 3 }">
> 在职中<span>{{ statusNum.num3 }}</span>
未在职 </li>
</button> </ul>
</div> </div>
</div> <div class="contentbody">
<div class="contentbody"> <div class="searchbox">
<a-table <div class="searchinput">
:columns="columns" <a-input placeholder="请输入老乡姓名/身份证号" @keyup.enter="onSearch" @input="resetsearch" v-model="pagination.keys"
:data-source="data" ><i slot="prefix" class="iconfont icon-sousuo"></i>
:pagination="false" <button slot="suffix" @click="onSearch"></button>
@change="onChange" </a-input>
:loading="{ </div>
spinning: isspinning, <div class="pagechange">
tip: '加载中', <button @click="changepage(-1)"></button>
wrapperClassName: 'spinstyle', <button @click="changepage(1)"></button>
}" </div>
:locale="tablenodata" </div>
:rowKey="(record) => record.index" <a-table
> :columns="columns"
<a slot="name" slot-scope="text">{{ text }}</a> :data-source="data"
</a-table> :pagination="false"
<div class="pagecontainer"> @change="onChange"
<a-pagination :loading="{
:current="+pagination.pageNum" spinning: isspinning,
:default-current="1" tip: '加载中',
:defaultPageSize="1" wrapperClassName: 'spinstyle',
:total="pagination.total" }"
@change="onChange" :locale="tablenodata"
/> :rowKey="(record) => record.index"
<div class="ant-pagination-options-quick-jumper"> >
跳至<input <a slot="name" slot-scope="text">{{ text }}</a>
ref="pageinput" </a-table>
type="text" <div class="pagecontainer">
@keyup.enter="inputpageChange" <a-pagination :current="+pagination.pageNum" :default-current="1" :defaultPageSize="8" :total="pagination.total" @change="onChange" />
@blur="inputpageChange" <div class="ant-pagination-options-quick-jumper">跳至<input ref="pageinput" type="text" @keyup.enter="inputpageChange" @blur="inputpageChange" :style="{ 'background-Color': '#f6f6f6' }" /></div>
:style="{ 'background-Color': '#f6f6f6' }" </div>
/> </div>
</div> </div>
</div>
</div>
</div>
</template> </template>
<script> <script>
import { userTownsmanApi } from "../../../../api/userinfo"; import { userTownsmanApi, gettownsManCountApi } from "../../../../api/userinfo";
import { formatDateYMD } from "../../../../utils/commonUtil"; import { formatDateYMD, getUserApplyOrderStatusById } from "../../../../utils/commonUtil";
export default { export default {
// //
name: "", name: "",
// //
components: {}, components: {},
// //
props: {}, props: {},
// //
data() { data() {
return { return {
tablenodata: { tablenodata: {
// //
emptyText: () => ( emptyText: () => (
<div> <div>
<div> <div>
<img <img src="https://user-images.githubusercontent.com/507615/54591670-ac0a0180-4a65-11e9-846c-e55ffce0fe7b.png" style="width:105px;height:90px;marginTop:20px" />
src="https://user-images.githubusercontent.com/507615/54591670-ac0a0180-4a65-11e9-846c-e55ffce0fe7b.png" </div>
style="width:105px;height:90px;marginTop:20px" <div style="marginBottom:20px">暂无数据</div>
/> </div>
</div> ),
<div style="marginBottom:20px">暂无数据</div> },
</div> pagination: {
), pageNum: 1,
}, pageSize: 8,
pagination: { total: null, //
pageNum: 1, status: 0,
pageSize: 1, keys:null,
total: null, // // searchTag: 1,
searchTag: 1, },
}, isspinning: false,
isspinning: false, sortedInfo: null,
columns: [ statusNum: {
{ num0: 0,
title: "序号", num1: 0,
dataIndex: "index", num2: 0,
key: "index", num3: 0,
scopedSlots: { customRender: "index" }, },
ellipsis: true, data: [],
width: 60, };
}, },
{ //
title: "老乡姓名", computed: {
dataIndex: "userName", columns() {
key: "userName", let { sortedInfo } = this;
ellipsis: true, sortedInfo = sortedInfo || {};
width: 90, const columns = [
}, {
{ title: "序号",
title: "跟进记录", dataIndex: "index",
dataIndex: "userServeRecordDespLatest", key: "index",
key: "userServeRecordDespLatest", scopedSlots: { customRender: "index" },
ellipsis: true, ellipsis: true,
}, width: 40,
{ },
title: "更新时间", {
dataIndex: "updateTime", title: "老乡姓名",
key: "updateTime", dataIndex: "userName",
ellipsis: true, key: "userName",
width: 160, ellipsis: true,
}, width: 90,
], },
data: [], {
}; title: "年龄",
}, dataIndex: "age",
// key: "age",
computed: {}, ellipsis: true,
// width: 50,
watch: {}, },
// {
/** title: "民族",
* 组件实例创建完成属性已绑定但DOM还未生成$ el属性还不存在 dataIndex: "nation",
*/ key: "nation",
created() { ellipsis: true,
this.getTownsman(); width: 50,
}, },
/** {
* el 被新创建的 vm.el 替换并挂载到实例上去之后调用该钩子 title: "手机号",
* 如果 root 实例挂载了一个文档内元素 mounted 被调用时 vm.el 也在文档内 dataIndex: "tel",
*/ key: "tel",
mounted() {}, ellipsis: true,
// width: 120,
methods: { },
onChange(e) { {
this.pagination.pageNum = e; title: "身份证号",
this.getTownsman(); dataIndex: "IDCard",
console.log(e); key: "IDCard",
}, ellipsis: true,
inputpageChange(e) { // width: 50,
const pagenumcount = this.pagination.total / this.pagination.pageSize; },
console.log(pagenumcount); {
if (e.target.value) { title: "状态",
if (e.target.value > pagenumcount) { dataIndex: "userApplyOrder",
this.pagination.pageNum = Math.ceil(pagenumcount); key: "userApplyOrder",
} else { sorter: (a, b) => a.userApplyOrder.localeCompare(b.userApplyOrder),
this.pagination.pageNum = e.target.value;
} // sortOrder: sortedInfo.columnKey == "userApplyOrder" && sortedInfo.order,
} else { // ellipsis: true,
this.pagination.pageNum = 1; width: 120,
} },
// this.getJobList(); ];
this.getTownsman(); console.log(sortedInfo);
return columns;
},
},
//
watch: {},
//
/**
* 组件实例创建完成属性已绑定但DOM还未生成$ el属性还不存在
*/
created() {
this.getTownsman();
},
/**
* el 被新创建的 vm.el 替换并挂载到实例上去之后调用该钩子
* 如果 root 实例挂载了一个文档内元素 mounted 被调用时 vm.el 也在文档内
*/
mounted() {
this.gettownsManCount();
},
//
methods: {
onChange(e,e1,e2) {
console.log(e); console.log(e);
}, console.log(e1);
async getTownsman() { console.log(e2);
// let jobinfo = {...this.pagination , searchTag:1} if (typeof e == 'number') {
try { this.pagination.pageNum = e;
this.isspinning = true; this.getTownsman();
const { data } = await userTownsmanApi(this.pagination);
console.log(data);
if (data.status === 200) {
// console.log();
this.data = data.data.recordList;
this.data.forEach((item, index) => {
console.log(item);
item.updateTime = formatDateYMD(item.updateTime);
item.index = index + 1;
});
console.log(true);
this.pagination.total = data.data.recordCount;
}
} catch (error) {
console.log(error);
} }
this.isspinning = false; },
}, inputpageChange(e) {
getPopupContainer(el, dialogContext) { const pagenumcount = this.pagination.total / this.pagination.pageSize;
console.log(el); console.log(pagenumcount);
console.log(dialogContext); if (e.target.value) {
if (dialogContext) { if (e.target.value > pagenumcount) {
return dialogContext.getDialogWrap(); this.pagination.pageNum = Math.ceil(pagenumcount);
} else { } else {
return document.body; this.pagination.pageNum = e.target.value;
}
} else {
this.pagination.pageNum = 1;
}
// this.getJobList();
this.getTownsman();
console.log(e);
},
async getTownsman() {
// let jobinfo = {...this.pagination , searchTag:1}
try {
this.isspinning = true;
console.log(this.pagination);
const { data } = await userTownsmanApi(this.pagination);
if (data.status === 200) {
// console.log();
this.data = data.data.recordList;
this.data.forEach((item, index) => {
// console.log(item);
item.userApplyOrder = getUserApplyOrderStatusById(item.userApplyOrderStatus);
item.updateTime = formatDateYMD(item.updateTime);
item.index = index + 1;
});
console.log(data);
console.log(true);
this.pagination.total = data.data.recordCount;
}
} catch (error) {
console.log(error);
}
this.isspinning = false;
},
async gettownsManCount() {
try {
const { data } = await gettownsManCountApi(this.pagination);
console.log(data);
if (data.status == 200) {
console.log("yes");
this.statusNum = data.data;
}
} catch (error) {
console.log(error);
}
},
getPopupContainer(el, dialogContext) {
console.log(el);
console.log(dialogContext);
if (dialogContext) {
return dialogContext.getDialogWrap();
} else {
return document.body;
}
},
resetpag() {
this.pagination = {
//
pageNum: 1,
pageSize: 8,
total: null,
status: this.pagination.status,
keys: null
};
this.getTownsman();
},
resetsearch(e) {
console.log(e);
if (e.target.value.length === 0) {
this.pagination.keys = "";
this.gettownsManCount();
this.getTownsman();
}
},
onSearch() {
if(this.pagination.keys != null && this.pagination.keys.length != 0){
this.getTownsman();
this.gettownsManCount();
} }
}, },
}, changepage(num) {
console.log(Math.ceil(this.pagination.total / this.pagination.pageSize));
if ((this.pagination.pageNum === 1 && num === -1) || (this.pagination.pageNum === Math.ceil(this.pagination.total / this.pagination.pageSize) && num === 1)) {
if (num === -1) {
this.$message.warning("已经到第一页了");
} else {
this.$message.warning("已经到最后一页了");
}
return;
} else {
this.pagination.pageNum += num;
}
this.getTownsman();
},
},
}; };
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
.townsman-container { .townsman-container {
padding: 0 10px; padding: 0 10px;
background-color: #fff;
border: 1px solid #0000;
} }
.contenttitle { .contenttitle {
display: flex; display: flex;
padding-bottom: 16px; padding-bottom: 0px;
justify-content: space-between; justify-content: space-between;
border-bottom: 1px solid rgba(77, 87, 94, 0.1); border-bottom: 1px solid rgba(77, 87, 94, 0.1);
margin-top: 16px;
margin-bottom: 16px; margin-top: 16px;
span { margin-bottom: 16px;
font-size: 20px;
color: #ff6a00; ul {
} display: flex;
div { height: 40px;
.townsmanactive { .townsmanactive {
border-color: #ff6a00; // border-color: #;
color: #ff6a00; width: 128px;
z-index: 999; color: #ff6a00;
} z-index: 999;
button { border-bottom: 2px solid #ff6a00;
width: 100px; > span {
height: 28px; font-size: 16px;
position: relative; color: #ff6a00;
font-size: 14px; }
border: 1px solid #cccccc; }
background-color: #fff; li {
margin-right: -1px; position: relative;
// transition: all 1s; width: 118px;
cursor: pointer; font-size: 16px;
&:hover { // height: 40px;
color: #ff6a00; padding-bottom: 16px;
} color: #666;
} // line-height: 40px;
button:first-child { text-align: center;
border-radius: 4px 0px 0px 4px; transition: width 0.2s;
} cursor: pointer;
button:last-child { > span {
border-radius: 0px 4px 4px 0px; margin-left: 12px;
} font-size: 16px;
} color: #666;
}
&::after {
content: "";
position: absolute;
display: block;
width: 1px;
height: 16px;
right: 0;
top: 5px;
// transform: translateY(-50%);
background-color: #eeeeee;
}
&:last-child::after {
display: none;
}
}
button {
width: 100px;
height: 28px;
position: relative;
font-size: 14px;
border: 1px solid #cccccc;
background-color: #fff;
margin-right: -1px;
cursor: pointer;
&:hover {
color: #ff6a00;
}
}
button:first-child {
border-radius: 4px 0px 0px 4px;
}
button:last-child {
border-radius: 0px 4px 4px 0px;
}
}
} }
.contentbody { .contentbody {
overflow: hidden; overflow: hidden;
/deep/ .ant-table-placeholder { /deep/ .searchbox {
min-height: 300px; display: flex;
> div { justify-content: space-between;
position: relative; margin-bottom: 16px;
height: 131px; .searchinput {
top: 30px; width: 326px;
// transform: translateY(-50%); position: relative;
} .ant-input {
} // width: 300px;
position: relative;
height: 32px;
text-indent: 10px;
background: #fff;
// border: 1px solid rgba(77, 87, 94, 0.3);
border-radius: 136px;
box-shadow: 0px 2px 4px 0px transparent;
font-size: 14px !important;
padding-right: 0;
border-color: #e9e9e9;
// z-index: ;
&::placeholder {
text-indent: 10px;
font-size: 14px !important;
}
&:hover {
border-color: #ff6a00;
box-shadow: none;
}
&:focus {
border-color: #ff6a00;
}
}
.ant-input-affix-wrapper {
.ant-input-prefix {
position: absolute;
width: 20px;
right: 0;
top: 16px;
i {
color: #c9c9c9;
}
}
.ant-input-suffix {
// position: absolute;
right: 0px !important;
}
}
button {
width: 70px;
height: 32px;
color: white;
background: #ff6a00;
border-color: #ff6a00;
border: none;
border-radius: 16px;
font-size: 14px;
box-shadow: none;
cursor: pointer;
outline: none;
&:hover {
background-color: #ff842b;
}
// &:focus {
// border: none;
// }
}
}
.pagechange {
button {
width: 66px;
height: 24px;
border: 1px solid rgba(77, 87, 94, 0.3);
border-radius: 4px;
font-size: 14px;
color: #4d575e;
background-color: #fff;
&:hover {
border-color: #ff6a00;
color: #ff6a00;
}
&:first-child {
margin-right: 12px;
}
}
}
}
/deep/ .ant-table-placeholder {
min-height: 300px;
> div {
position: relative;
height: 131px;
top: 30px;
// transform: translateY(-50%);
}
}
/deep/ .ant-table-content {
.ant-table-body {
.ant-table-thead {
th {
padding: 16px 0;
&:not(:first-child) {
> span {
// line-height: 22px;
> div {
// line-height: 1;
border-left: 1px solid #ccc;
padding-left: 12px;
}
}
}
}
}
.ant-table-tbody {
.ant-table-row-cell-ellipsis {
padding: 16px 0;
}
}
}
}
} }
</style> </style>

@ -21,7 +21,7 @@
</ul> </ul>
</div> --> </div> -->
<div class="priceinfo"> <div class="priceinfo">
<ul> <ul style="">
<li <li
@click="pushto('/userinfo/usercenter/myintegral')" @click="pushto('/userinfo/usercenter/myintegral')"
:class="{ tagactive: activelist === 3 }" :class="{ tagactive: activelist === 3 }"

@ -110,7 +110,7 @@ const routes = [
name: "accountsetting", name: "accountsetting",
component: () => component: () =>
import("../components/userinfo/accountsetting/inedex.vue"), import("../components/userinfo/accountsetting/inedex.vue"),
redirect: "accountsetting/myintegral", redirect: "accountsetting/boundtel",
children: [ children: [
{ {
path: "loginpsw", path: "loginpsw",

@ -1,3 +1,4 @@
@import "http://at.alicdn.com/t/font_3135652_fha9d3mzga5.css";
// 初始化页面样式 // 初始化页面样式
body, body,
h1, h1,
@ -133,7 +134,6 @@ i {
fill: currentColor; fill: currentColor;
overflow: hidden; overflow: hidden;
} }
@import "http://at.alicdn.com/t/font_3135652_onj5dmqt30d.css";
// 字体图标 // 字体图标
// @font-face { // @font-face {
// font-family: "iconfont"; /* Project id 3135652 */ // font-family: "iconfont"; /* Project id 3135652 */
@ -466,7 +466,7 @@ i {
// border-top: 1px solid #000; // border-top: 1px solid #000;
width: 100vw; width: 100vw;
margin: 0 auto; margin: 0 auto;
top: 164px !important; top: 144px !important;
-webkit-box-shadow: 0 8px 8px rgba(0, 0, 0, 0.15); -webkit-box-shadow: 0 8px 8px rgba(0, 0, 0, 0.15);
box-shadow: 0 8px 8px rgba(0, 0, 0, 0.15); box-shadow: 0 8px 8px rgba(0, 0, 0, 0.15);
transition: none !important; transition: none !important;
@ -657,3 +657,62 @@ p.bottombox {
.ant-spin-text { .ant-spin-text {
color: #fda21d; color: #fda21d;
} }
.ant-popover {
.ant-popover-content {
.ant-popover-inner-content {
position: relative;
width: 600px;
white-space: pre-wrap !important;
>div{
position: absolute;
width: 44px;
height: 22px;
right: 10px;
top: 10px;
border: 1px solid #ff6a00;
color: #ff6a00;
border-radius: 999px;
line-height:22px;
text-align: center;
cursor: pointer;
&:hover {
background-color: #ff6a00;
color: #fff;
}
}
}
}
}
.xiangdan{
.ant-modal-content{
width: 600px;
max-height: calc(100vh - 40px);
.ant-modal-body{
padding-top: 36px;
position: relative;
min-height: 480px;
white-space: pre-wrap !important;
// max-height: ;
// background-color: #000;
.copy {
position: absolute;
padding: 0px 12px;
right: 20px;
top: 7px;
font-size: 14px;
border: 1px solid #ff6a00;
color: #ff6a00;
border-radius: 5px;
line-height: 22px;
text-align: center;
cursor: pointer;
&:hover {
color: #fff;
background-color: #ff6a00;
}
}
}
}
}

@ -1198,14 +1198,28 @@ function getJobSpecialLabelNamesArray(jobSpecialLabelNames) {
* 处理工单状态 * 处理工单状态
*/ */
export function userApplyOrderStatusArray() { export function userApplyOrderStatusArray() {
// let orderStatus = [
// { id: "10", name: "审核中", value: "10", text: "审核中" },
// { id: "20", name: "待面试", value: "20", text: "待面试" },
// { id: "30", name: "待入职", value: "30", text: "待入职" },
// { id: "40", name: "在职中", value: "40", text: "在职中" },
// { id: "50", name: "待离职", value: "50", text: "待离职" },
// { id: "60", name: "已完成", value: "60", text: "已完成" },
// ];
let orderStatus = [ let orderStatus = [
{ id: "10", name: "审核中", value: "10", text: "审核中" },
{ id: "20", name: "待面试", value: "20", text: "待面试" }, { id: "10", name: "报名审核中", value: "10", text: "报名审核中", num: 0 },
{ id: "30", name: "待入职", value: "30", text: "待入职" }, { id: "20", name: "审核通过", value: "20", text: "审核通过", num: 0 },
{ id: "40", name: "在职中", value: "40", text: "在职中" }, { id: "21", name: "审核未通过", value: "21", text: "审核未通过", num: 0 },
{ id: "50", name: "待离职", value: "50", text: "待离职" }, { id: "25", name: "已接到", value: "25", text: "已接到", num: 0 },
{ id: "60", name: "已完成", value: "60", text: "已完成" }, { id: "26", name: "未接到", value: "26", text: "未接到", num: 0 },
]; { id: "30", name: "面试通过", value: "30", text: "面试通过", num: 0 },
{ id: "35", name: "面试未通过", value: "35", text: "面试未通过", num: 0 },
{ id: "40", name: "已入职", value: "40", text: "已入职", num: 0 },
{ id: "45", name: "通过未入职", value: "45", text: "通过未入职", num: 0 },
{ id: "50", name: "已离职", value: "50", text: "已离职", num: 0 }
// { id: "60", name: "已完成", value: "60", text: "已完成", num: 0 }
];
return orderStatus; return orderStatus;
} }

@ -13,8 +13,8 @@ console.log(baseURL);
axios.defaults.withCredentials = true; //添加这行代码 axios.defaults.withCredentials = true; //添加这行代码
// console.log(axios); // console.log(axios);
const service = axios.create({ const service = axios.create({
baseURL: "/api_prod", // url = base url + request url // baseURL: "/api_prod", // url = base url + request url
// baseURL: baseURL, // baseURL: "/api", // url = base url + request url baseURL: baseURL, // baseURL: "/api", // url = base url + request url
withCredentials: true, // send cookies when cross-domain requests withCredentials: true, // send cookies when cross-domain requests
timeout: 10000, // request timeout timeout: 10000, // request timeout
crossDomain: true, crossDomain: true,

@ -38,6 +38,13 @@
>我的报名 >我的报名
</router-link> </router-link>
</li> </li>
<li>
<router-link
to="/mytownsman"
:class="routertitleindex == 4 ? 'titleactive' : ''"
>我的老乡
</router-link>
</li>
<!-- <li> <!-- <li>
<router-link to="/serviceoutlets" <router-link to="/serviceoutlets"
><a ><a

Loading…
Cancel
Save