-
@@ -427,7 +684,11 @@ import {
getHotStoreApi,
// getCityApi,
} from "../../api/job";
-import { moneyToFixed, getSalaryClassifyValue } from "../../utils/commonUtil";
+import {
+ moneyToFixed,
+ getSalaryClassifyValue,
+ isNotEmptyCheck,
+} from "../../utils/commonUtil";
import recommend from "@/components/FirstJob/components/recommend.vue";
import { nationlist } from "../../utils/datalist";
import Clipboard from "clipboard";
@@ -464,24 +725,40 @@ export default {
return {
// jobMainList: [], // 职位列表
specialList: [], // 获取的特色列表
- // searchvalue: "",
- specialactive: [], // 点中的特色标签索引
+ searchValue: "",
specialvalue: [], // 点中的特色标签
+ filterObj: {
+ price: "", // 选中的价格搜索
+ gender: "", // 选中的性别搜索
+ specialactive: [], // 点中的特色标签索引
+ },
+ showDotted: false,
visible: false, // 录单模态框的展示
confirmLoading: false, // 录单提交的loading效果
cityoption: [], // 城市列表
hotCityList: [], // 热门城市列表
hasJobCityList: {}, // 有职位的城市列表
currentCityList: {}, // 当前首字母展示的城市列表
+ minMonthlyPay: "",
+ maxMonthlyPay: "",
+ isdownHotStoreShow: false, // 热门企业下拉显示
+ currentPage: "",
currentCity: "全国",
cityValue: "", // 城市输入框内容
activeInd: -1,
hotStoreList: [],
newFormValue: [],
apply: "", // 报名企业id
+ filterStatus: 0, // 筛选开合状态
+ filterHeight: "", // 筛选盒子高度
+ tagArray0: [],
+ tagArray1: [],
+ tagArray2: [],
+ tagArray3: [],
+ tagArray4: [],
proxyinfo: JSON.parse(sessionStorage.getItem("LOGIN_DATA")),
nationlist: nationlist,
-
+ specialHotTag: [],
dateinfo: {
day: "",
week: "",
@@ -560,60 +837,70 @@ export default {
// 侦听器
watch: {
formvalue: {
- handler(e) {
- console.log(e);
+ handler() {
+ // console.log(e);
// 筛选列表数据处理
- // if(e.city !== undefined){
- // if (e.district.length === 0) {
- // document.getElementById("city").style.width = 85 + "px";
- // } else {
- // const result = e.district.join("");
- // // console.log(result);
- // if (result.length > 6) {
- // document.getElementById("city").style.width = (result.length + 3) * 14 + "px";
- // document.getElementById("city").style.maxWidth = "210px";
- // document.querySelector("#city").nextElementSibling.style.width = (result.length + 3) * 14 + "px"; // 获取下一个兄弟元素s
- // document.getElementById("city").nextElementSibling.style.maxWidth = "210px";
- // } else if (result.length > 5) {
- // document.getElementById("city").style.width = (result.length + 2.8) * 14 + "px";
- // document.querySelector("#city").nextElementSibling.style.width = (result.length + 2.6) * 14 + "px";
- // } else if (result.length > 4) {
- // document.getElementById("city").style.width = (result.length + 2.4) * 14 + "px";
- // document.querySelector("#city").nextElementSibling.style.width = (result.length + 2.4) * 14 + "px";
+ // if (e.district !== undefined) {
+ // if (e.district.length === 0) {
+ // document.getElementById("city").style.width = 85 + "px";
// } else {
- // document.getElementById("city").style.width = (result.length + 1.5) * 14 + "px";
- // document.getElementById("city").style.minWidth = 72 + "px";
- // document.querySelector("#city").nextElementSibling.style.width = (result.length + 1.5) * 14 + "px";
+ // const result = e.district.join("");
+ // console.log(result);
+ // if (result.length > 6) {
+ // document.getElementById("city").style.width = (result.length + 3) * 14 + "px";
+ // document.getElementById("city").style.maxWidth = "210px";
+ // document.querySelector("#city").nextElementSibling.style.width = (result.length + 3) * 14 + "px"; // 获取下一个兄弟元素s
+ // document.getElementById("city").nextElementSibling.style.maxWidth = "210px";
+ // } else if (result.length > 5) {
+ // document.getElementById("city").style.width = (result.length + 2.8) * 14 + "px";
+ // document.querySelector("#city").nextElementSibling.style.width = (result.length + 2.6) * 14 + "px";
+ // } else if (result.length > 4) {
+ // document.getElementById("city").style.width = (result.length + 2.4) * 14 + "px";
+ // document.querySelector("#city").nextElementSibling.style.width = (result.length + 2.4) * 14 + "px";
+ // } else {
+ // document.getElementById("city").style.width = (result.length + 1.5) * 14 + "px";
+ // document.getElementById("city").style.minWidth = 72 + "px";
+ // document.querySelector("#city").nextElementSibling.style.width = (result.length + 1.5) * 14 + "px";
+ // }
// }
// }
- // }
// 工价的判断
- if (e.monthlyPayStr.length == 0) {
- document.getElementById("price").style.width = 60 + "px";
- document.getElementById("price").style.minWidth = 60 + "px";
- } else {
- const result = e.monthlyPayStr.join("");
- if (result.length >= 0) {
- document.getElementById("price").style.width = "120px";
- document.getElementById("price").nextElementSibling.style.width =
- "130px";
- // document.querySelector(".ant-cascader-picker-label").style.width =
- // "150px";
- }
- }
- if (e.monthlyPayStr.length == 0) {
- document.getElementById("price").style.width = 60 + "px";
- document.getElementById("price").style.minWidth = 60 + "px";
- } else {
- const result = e.monthlyPayStr.join("");
- if (result.length >= 0) {
- document.getElementById("price").style.width = "120px";
- document.getElementById("price").nextElementSibling.style.width =
- "130px";
- // document.querySelector(".ant-cascader-picker-label").style.width =
- // "150px";
- }
- }
+ // if (e.monthlyPayStr.length == 0) {
+ // document.getElementById("price").style.width = 60 + "px";
+ // document.getElementById("price").style.minWidth = 60 + "px";
+ // } else {
+ // const result = e.monthlyPayStr.join("");
+ // if (result.length >= 0) {
+ // document.getElementById("price").style.width = "120px";
+ // document.getElementById("price").nextElementSibling.style.width = "130px";
+ // document.querySelector(".ant-cascader-picker-label").style.width =
+ // "150px";
+ // }
+ // }
+ // if (e.monthlyPayStr.length == 0) {
+ // document.getElementById("price").style.width = 60 + "px";
+ // document.getElementById("price").style.minWidth = 60 + "px";
+ // } else {
+ // const result = e.monthlyPayStr.join("");
+ // if (result.length >= 0) {
+ // document.getElementById("price").style.width = "120px";
+ // document.getElementById("price").nextElementSibling.style.width = "130px";
+ // // document.querySelector(".ant-cascader-picker-label").style.width =
+ // // "150px";
+ // }
+ // }
+ // if (e.sex.length == 0) {
+ // document.getElementById("gender").style.width = 60 + "px";
+ // document.getElementById("gender").style.minWidth = 60 + "px";
+ // } else {
+ // const result = e.sex.join("");
+ // if (result.length >= 2) {
+ // document.getElementById("gender").style.width = "90px";
+ // document.getElementById("gender").nextElementSibling.style.width = "100px";
+ // document.querySelector(".ant-cascader-picker-label").style.width =
+ // "150px";
+ // }
+ // }
// 年龄筛选长度的判断
// if (e.ageStr.length === 0) {
// document.getElementById("age").style.width = 60 + "px";
@@ -630,10 +917,22 @@ export default {
deep: true,
},
$route: {
- handler(to, from) {
- console.log("ischange");
- console.log(to);
- console.log(from);
+ handler() {
+ // console.log("ischange");
+ // console.log(to);
+ // console.log(from);
+ },
+ deep: true,
+ },
+ filterObj: {
+ handler(newv) {
+ var arr = Object.keys(newv);
+ console.log(arr.length);
+ if (arr.length + newv.specialactive.length - 1 > 6) {
+ this.showDotted = true;
+ } else {
+ this.showDotted = false;
+ }
},
deep: true,
},
@@ -645,7 +944,13 @@ export default {
* 组件实例创建完成,属性已绑定,但DOM还未生成,$ el属性还不存在
*/
created() {
- console.log(this.proxyinfo);
+ // console.log(this.proxyinfo);
+ // console.log(this.$route);
+ this.currentPage = this.$route.params.pagenum;
+ if (this.currentPage) {
+ // console.log(this.currentPage);
+ this.formvalue.pageNum = this.currentPage;
+ }
// this.reload();
this.getJobList();
this.getJobSpecial();
@@ -659,16 +964,7 @@ export default {
* el 被新创建的 vm.el 替换,并挂载到实例上去之后调用该钩子。
* 如果 root 实例挂载了一个文档内元素,当 mounted 被调用时 vm.el 也在文档内。
*/
- mounted() {
- this.$nextTick(() => {});
- setTimeout(() => {
- console.log(this.jobMainList);
- }, 200);
- // document.querySelector(".ant-pagination-options-quick-jumper").innerHTML =
- // "跳至
页";
- console.log(this.formvalue);
- console.log(this.$route);
- },
+ mounted() {},
// 组件方法
methods: {
// 处理筛选框的定位
@@ -680,41 +976,210 @@ export default {
// },
//搜索企业名称
- onSearch(e) {
- console.log(e);
+ onSearch() {
+ // console.log(e);
// if (typeof e === "string" || typeof e === "number") {
// if (e.length !== 0) {
- // console.log("zifuchuan ");
+ // console.log("zifuchuan ");
// this.formvalue.aliasName = e;
// this.getJobList();
// }
// } else
- this.formvalue.pageNum = 1;
- if (
- this.formvalue.aliasName.trim() !== "" ||
- this.formvalue.ageStr.trim() !== ""
- ) {
+ console.log(typeof this.searchValue.trim());
+ if (this.searchValue.trim() !== "") {
+ this.formvalue.pageNum = 1;
+ if (
+ typeof +this.searchValue.trim() == "number" &&
+ !isNaN(+this.searchValue.trim())
+ ) {
+ this.formvalue.ageStr = this.searchValue.trim();
+ } else {
+ this.formvalue.aliasName = this.searchValue.trim();
+ }
// console.log("search1");
- // this.formvalue.aliasName = this.searchvalue;
- console.log(this.formvalue);
+ // this.formvalue.aliasName = this.searchValue;
+ // console.log(this.formvalue);
this.getJobList();
+ this.isdownHotStoreShow = false;
}
// this.$router.push("/list").catch((err) => {
- // console.log(err);
+ // console.log(err);
// });
},
+ // 搜索工价
+ searchPrice(e) {
+ console.log(e);
+ if (e.target.nodeName == "SPAN") {
+ if (e.target.textContent == this.filterObj.price) {
+ this.formvalue.monthlyPayStr = "";
+ this.filterObj.price = "";
+ } else {
+ this.formvalue.monthlyPayStr = e.target.textContent;
+ this.filterObj.price = this.formvalue.monthlyPayStr;
+ }
+
+ this.getJobList();
+ } else if (e.target.nodeName == "BUTTON") {
+ console.log(this.minMonthlyPay);
+ console.log(this.maxMonthlyPay);
+ if (
+ this.minMonthlyPay.length != 0 &&
+ this.maxMonthlyPay.length != 0 &&
+ typeof +this.minMonthlyPay == "number" &&
+ typeof +this.maxMonthlyPay == "number" &&
+ !isNaN(+this.minMonthlyPay) &&
+ !isNaN(+this.maxMonthlyPay)
+ ) {
+ this.formvalue.monthlyPayStr =
+ this.minMonthlyPay + "-" + this.maxMonthlyPay;
+ this.filterObj.price = this.formvalue.monthlyPayStr;
+ this.getJobList();
+ }
+ }
+ },
+ // 搜索性别
+ searchGender(e) {
+ console.log(e);
+ if (e.target.tagName == "SPAN") {
+ if (e.target.textContent == "男") {
+ if (this.filterObj.gender == "男") {
+ this.filterObj.gender = "";
+ this.formvalue.sex = "";
+ } else {
+ this.filterObj.gender = "男";
+ this.formvalue.sex = 1;
+ }
+ } else if (e.target.textContent == "女") {
+ if (this.filterObj.gender == "女") {
+ this.filterObj.gender = "";
+ this.formvalue.sex = "";
+ } else {
+ this.filterObj.gender = "女";
+ this.formvalue.sex = 2;
+ }
+ } else {
+ if (this.filterObj.gender == "男女不限") {
+ this.filterObj.gender = "";
+ this.formvalue.sex = "";
+ } else {
+ this.filterObj.gender = "男女不限";
+ this.formvalue.sex = -1;
+ }
+ }
+ this.getJobList();
+ }
+ },
// 获取职位特色
- async getJobSpecial() {
- try {
- const { data } = await getJobSpecialApi();
- console.log(data);
- this.specialList = data.data;
- } catch (error) {
- console.log(error);
+ getJobSpecial() {
+ if (isNotEmptyCheck(localStorage.getItem("SPECIALLIST"))) {
+ if (
+ new Date(
+ new Date().getTime() -
+ JSON.parse(localStorage.getItem("SPECIALLIST")).timestamp
+ ).getHours() > 2
+ ) {
+ this.getJobSpecialList().then((res) => {
+ this.specialList = res;
+ this.specialList.forEach((item) => {
+ if (item.typeClassify == "0") {
+ this.tagArray0.push(item);
+ } else if (item.typeClassify == "1") {
+ this.tagArray1.push(item);
+ } else if (item.typeClassify == "2") {
+ this.tagArray2.push(item);
+ } else if (item.typeClassify == "3") {
+ this.tagArray3.push(item);
+ } else if (item.typeClassify == "4") {
+ this.tagArray4.push(item);
+ }
+ if (
+ item.name == "大龄工" ||
+ item.name == "暑假工" ||
+ item.name == "长白班"
+ ) {
+ this.specialHotTag.push(item);
+ }
+ });
+ this.$nextTick(() => {
+ let fileterContent = document.querySelector(".filter-content");
+ this.filterHeight = fileterContent.scrollHeight;
+ fileterContent.style.height = this.filterHeight + "px";
+ });
+ });
+ } else {
+ this.specialList = JSON.parse(
+ localStorage.getItem("SPECIALLIST")
+ ).data;
+ this.specialList.forEach((item) => {
+ if (item.typeClassify == "0") {
+ this.tagArray0.push(item);
+ } else if (item.typeClassify == "1") {
+ this.tagArray1.push(item);
+ } else if (item.typeClassify == "2") {
+ this.tagArray2.push(item);
+ } else if (item.typeClassify == "3") {
+ this.tagArray3.push(item);
+ } else if (item.typeClassify == "4") {
+ this.tagArray4.push(item);
+ }
+ if (
+ item.name == "大龄工" ||
+ item.name == "暑假工" ||
+ item.name == "长白班"
+ ) {
+ this.specialHotTag.push(item);
+ }
+ });
+ this.$nextTick(() => {
+ let fileterContent = document.querySelector(".filter-content");
+ this.filterHeight = fileterContent.scrollHeight;
+ fileterContent.style.height = this.filterHeight + "px";
+ });
+ }
+ } else {
+ this.getJobSpecialList().then((res) => {
+ this.specialList = res;
+ this.specialList.forEach((item) => {
+ if (item.typeClassify == "0") {
+ this.tagArray0.push(item);
+ } else if (item.typeClassify == "1") {
+ this.tagArray1.push(item);
+ } else if (item.typeClassify == "2") {
+ this.tagArray2.push(item);
+ } else if (item.typeClassify == "3") {
+ this.tagArray3.push(item);
+ } else if (item.typeClassify == "4") {
+ this.tagArray4.push(item);
+ }
+ if (
+ item.name == "大龄工" ||
+ item.name == "暑假工" ||
+ item.name == "长白班"
+ ) {
+ this.specialHotTag.push(item);
+ }
+ });
+ this.$nextTick(() => {
+ let fileterContent = document.querySelector(".filter-content");
+ this.filterHeight = fileterContent.scrollHeight;
+ fileterContent.style.height = this.filterHeight + "px";
+ });
+ });
+ }
+ },
+ async getJobSpecialList() {
+ const { data } = await getJobSpecialApi();
+ console.log(data);
+ if (data.status == 200) {
+ let container = {
+ data: data.data,
+ timestamp: new Date().getTime(),
+ };
+ localStorage.setItem("SPECIALLIST", JSON.stringify(container));
+ return data.data;
}
},
-
// 获取省份列表
async getProvince() {
// const that = this;
@@ -727,22 +1192,22 @@ export default {
// console.log(this.cityoption);
// console.log(data);
} catch (error) {
- console.log(error);
+ // console.log(error);
}
},
// 筛选职位
- onChange(e, item) {
- console.log(e);
- console.log(item);
- console.log(this.formvalue);
+ onChange() {
+ // console.log(e);
+ // console.log(item);
+ // console.log(this.formvalue);
// if (item) {
// if (item.uid === 1) {
- // console.log(1);
+ // console.log(1);
// this.formvalue.monthlyPayStr = item[0];
// } else if (item.uid === 2) {
// this.formvalue.ageStr = item[0];
// } else if (item[0].id) {
- // console.log(e.join());
+ // console.log(e.join());
// this.formvalue.district = e;
// } else
// if (item[0].uid == 3){
@@ -753,14 +1218,14 @@ export default {
this.getJobList();
},
pageChange(e) {
- console.log(e);
+ // console.log(e);
this.formvalue.pageNum = e;
this.$refs.pageinput.value = "";
this.getJobList();
},
inputpageChange(e) {
const pagenumcount = this.formvalue.total / this.formvalue.pageSize;
- console.log(pagenumcount);
+ // console.log(pagenumcount);
if (e.target.value) {
if (e.target.value > pagenumcount) {
this.formvalue.pageNum = Math.ceil(pagenumcount);
@@ -771,7 +1236,7 @@ export default {
this.formvalue.pageNum = 1;
}
this.getJobList();
- console.log(e);
+ // console.log(e);
},
handleChange() {},
claerfilter() {
@@ -799,26 +1264,26 @@ export default {
this.formvalue.pageSize = pageSize;
this.formvalue.total = total;
// console.log(this.formvalue);
- this.specialactive = [];
+ this.filterObj.specialactive = [];
this.specialvalue = [];
this.getJobList();
},
specialclick(index, item) {
- console.log(item);
- console.log(index);
- let arrIndex = this.specialactive.indexOf(item.name);
+ // console.log(item);
+ // console.log(index);
+ let arrIndex = this.filterObj.specialactive.indexOf(item);
if (arrIndex > -1) {
- this.specialactive.splice(arrIndex, 1);
+ this.filterObj.specialactive.splice(arrIndex, 1);
this.specialvalue.splice(arrIndex, 1);
} else {
- this.specialactive.push(item.name);
+ this.filterObj.specialactive.push(item);
this.specialvalue.push(item.id);
}
this.formvalue.jobSpecialLabelIds = this.specialvalue;
- // console.log(this.specialactive);
+ // console.log(this.filterObj.specialactive);
this.getJobList();
- console.log(this.specialvalue);
- console.log(this.formvalue);
+ // console.log(this.specialvalue);
+ // console.log(this.formvalue);
// console.log(index);
},
isspecialboxshowclick() {
@@ -831,7 +1296,7 @@ export default {
// window.body.scrollY = 0;
},
moneyToFixed(value) {
- console.log(value);
+ // console.log(value);
return moneyToFixed(value);
},
// 重置搜索结果
@@ -839,18 +1304,44 @@ export default {
// console.log(e);
if (e.target.value.length === 0) {
this.formvalue.aliasName = "";
-
+ this.formvalue.ageStr = "";
this.getJobList();
}
// this.$router.push("/list").catch((err) => {
- // console.log(err);
+ // console.log(err);
// });
},
- resetAgeSearch(e) {
- if (e.target.value.length === 0) {
- this.formvalue.ageStr = "";
+ delFilter(e, value, items) {
+ console.log(e);
+ console.log(items);
+ if (value == "price") {
+ this.filterObj.price = "";
+ this.formvalue.monthlyPayStr = "";
+ } else if (value == "gender") {
+ this.filterObj.gender = "";
+ this.formvalue.sex = "";
+ } else {
+ this.filterObj.specialactive.splice(
+ this.filterObj.specialactive.indexOf(items),
+ 1
+ );
+ this.specialvalue.splice(this.specialvalue.indexOf(items.id), 1);
+ this.formvalue.jobSpecialLabelIds = this.specialvalue;
+ // if(this.filterObj.specialactive.indexOf(items) > -1){
+ // }
+ }
+ this.getJobList();
+ },
+ resetAgeSearch(e) {
+ // console.log(e.target.value);
+ // console.log(+e.target.value);
+ if (this.minMonthlyPay.length == 0 && this.maxMonthlyPay.length == 0) {
+ this.formvalue.monthlyPayStr = "";
+ this.filterObj.price = "";
this.getJobList();
+ } else if (typeof +e.target.value != "number" || isNaN(+e.target.value)) {
+ this.$message.warning("请输入正确的价格");
}
},
cityModalClose() {
@@ -886,22 +1377,22 @@ export default {
// console.log(date.getDate().length);
if (date.getDate().toString().length <= 1) {
this.dateinfo.day = "0" + date.getDate();
- console.log(this.dateinfo.day);
+ // console.log(this.dateinfo.day);
} else {
this.dateinfo.day = date.getDate();
- console.log(this.dateinfo.day);
+ // console.log(this.dateinfo.day);
}
this.dateinfo.date = date.getFullYear() + "." + (date.getMonth() + 1);
},
- delmark(index) {
- console.log(index);
- this.specialactive.splice(index, 1);
- this.specialvalue.splice(index, 1);
- this.getJobList();
- },
+ // delmark(index) {
+ // // console.log(index);
+ // this.specialactive.splice(index, 1);
+ // this.specialvalue.splice(index, 1);
+ // this.getJobList();
+ // },
torecord(item) {
// 跳转到路由新页面的方法
- console.log(item);
+ // console.log(item);
// let userinfo = JSON.stringify(item);
this.$router.push({ name: "recordbill", params: item });
@@ -913,19 +1404,19 @@ export default {
async getHotCity() {
try {
const { data } = await getHotCityApi();
- console.log(data);
+ // console.log(data);
if (data.status == 200) {
this.hotCityList = data.data;
this.currentCityList = this.hotCityList;
}
} catch (error) {
- console.log(error);
+ // console.log(error);
}
},
async getCityWhichHasJob() {
try {
const { data } = await getCityWhichHasJobApi();
- console.log(data);
+ // console.log(data);
if (data.status == 200) {
let pinyinList = [];
data.data.forEach((item) => {
@@ -960,13 +1451,13 @@ export default {
this.hasJobCityList.cityList = cityList;
}
} catch (error) {
- console.log(error);
+ // console.log(error);
}
},
async getHotStore() {
try {
const { data } = await getHotStoreApi();
- console.log(data);
+ // console.log(data);
if (data.status == 200) {
let middle = [];
this.hotStoreList = data.data;
@@ -979,12 +1470,12 @@ export default {
// console.log(this.hotStoreList);
}
} catch (error) {
- console.log(error);
+ // console.log(error);
}
},
changeCurrentCity(index) {
this.currentCityList = this.hasJobCityList.cityList[index];
- console.log(index);
+ // console.log(index);
},
searchCity() {
this.currentCityList = [];
@@ -993,7 +1484,7 @@ export default {
// console.log(item);
// console.log(item.name.indexOf(this.cityValue));
if (item.name.indexOf(this.cityValue) > -1) {
- console.log(123);
+ // console.log(123);
this.currentCityList.push(item);
}
});
@@ -1009,7 +1500,7 @@ export default {
}
},
searchJob(item) {
- console.log(item);
+ // console.log(item);
this.formvalue.cityName = item.name;
this.formvalue.levelType = item.levelType;
this.currentCity = item.name;
@@ -1017,8 +1508,11 @@ export default {
this.visible = false;
},
getHotStoreList(item) {
- console.log(item);
+ // console.log(item);
+ this.searchValue = item.storeName;
this.formvalue.aliasName = item.storeName;
+
+ this.isdownHotStoreShow = false;
// this.formvalue.hotStoreId = item.storeId;
this.getJobList();
},
@@ -1027,7 +1521,7 @@ export default {
this.formvalue.levelType = "";
this.formvalue.hotStoreId = "";
this.currentCity = "全国";
- console.log(this.formvalue);
+ // console.log(this.formvalue);
this.getJobList();
},
copyText(event, ind) {
@@ -1039,51 +1533,81 @@ export default {
return document.querySelector(".copyInfo" + ind); // .copyInfo 是要复制的目标内容
},
});
- console.log(clipboard);
+ // console.log(clipboard);
// if(){
// }
- clipboard.on("success", (e) => {
+ clipboard.on("success", () => {
// success 是成功的回调 success => error 可以捕获复制失败的异常信息
- console.log(123);
- console.log(e);
+ // console.log(123);
+ // console.log(e);
this.$message.success("复制成功");
clipboard.destroy();
});
},
+ showHotStore() {
+ // 显示热门企业下拉
+ // console.log("isinner");
+ this.isdownHotStoreShow = true;
+ },
+ hidedownHotStore() {
+ // console.log("isdown");
+ this.isdownHotStoreShow = false;
+ },
+ resetCity() {
+ // 重置当前城市
+ this.currentCity = "全国";
+ this.formvalue.cityName = "";
+ this.formvalue.levelType = "";
+ this.getJobList();
+ },
// todetail(item) {
// const routeURL = this.$router.resolve({
// name: "Detail",
// query: item.id,
// });
// window.open(routeURL.href, "_blank");
- // console.log(item);
+ // console.log(item);
// },
+ hideFilterContent() {
+ let fileterContent = document.querySelector(".filter-content");
+ // fileterContent.style.transition = 'all .2s'
+ if (this.filterStatus == 0) {
+ this.filterStatus = 1;
+ fileterContent.style.height = "0px";
+ } else {
+ this.filterStatus = 0;
+ fileterContent.style.height = this.filterHeight + "px";
+ }
+ },
},
};
diff --git a/src/components/Login/login.vue b/src/components/Login/login.vue
index 7e98396..697551e 100644
--- a/src/components/Login/login.vue
+++ b/src/components/Login/login.vue
@@ -3,7 +3,7 @@
@@ -513,10 +513,10 @@ export default {
width: 346px;
height: 158px;
background: #ffffff;
- border-radius: 4px;
+ border-radius: 0px;
padding: 24px 0;
text-align: center;
-
+ border: 1px solid #ededed;
.avatarbox {
margin: 0 auto;
width: 64px;
@@ -581,7 +581,7 @@ export default {
// margin-top: 16px;
// padding: 0 16px;
background-color: #fff;
- border-radius: 4px;
+ border-radius: 0px;
overflow: hidden;
li {
position: relative;
@@ -590,7 +590,7 @@ export default {
line-height: 24px;
justify-content: space-between;
- // border-bottom: 1px solid #f3f4f4;
+ border-bottom: 1px solid #ededed;
cursor: pointer;
&:nth-child(-n + 2):after {
position: absolute;
@@ -643,17 +643,19 @@ export default {
background-color: #fff;
margin-top: 16px;
// padding: 0 16px;
- border-radius: 4px;
+ border-radius: 0px;
overflow: hidden;
-
+ border: 1px solid #ededed;
li {
position: relative;
display: flex;
padding: 16px;
line-height: 24px;
justify-content: space-between;
- // border-bottom: 1px solid #f3f4f4;
cursor: pointer;
+ &:not(:last-child) {
+ // border-bottom: 1px solid #ededed;
+ }
&:nth-child(-n + 3):after {
position: absolute;
content: "";
@@ -666,6 +668,8 @@ export default {
}
> span:first-child {
font-size: 16px;
+ display: flex;
+ align-items: center;
i {
margin-right: 12px;
font-size: 20px;
@@ -708,6 +712,7 @@ export default {
height: 600px;
padding: 0 16px;
background-color: #fff;
+ border: 1px solid #ededed;
}
}
diff --git a/src/components/userinfo/usercenter/components/mybill.vue b/src/components/userinfo/usercenter/components/mybill.vue
index c6e565c..30271c6 100644
--- a/src/components/userinfo/usercenter/components/mybill.vue
+++ b/src/components/userinfo/usercenter/components/mybill.vue
@@ -6,55 +6,59 @@
@click="pagination.status = -1"
:class="{ townsmanactive: pagination.status === -1 }"
>
- 全部
99
+ 全部
{{ billNumber.num == 0 ? "" : billNumber.num }}
- 审核中99
+ 审核中{{ billNumber.num10 == 0 ? "" : billNumber.num10 }}
- 待面试99
+ 待面试{{ billNumber.num20 == 0 ? "" : billNumber.num20 }}
- 已接到99
+ 已接到{{ billNumber.num25 == 0 ? "" : billNumber.num25 }}
- 面试通过99
+ 面试通过{{
+ billNumber.num30 == 0 ? "" : billNumber.num30
+ }}
- 在职中99
+ 在职中{{ billNumber.num40 == 0 ? "" : billNumber.num40 }}
- 报名结束99
+ 报名结束{{
+ billNumber.num999 == 0 ? "" : billNumber.num999
+ }}
- 当前99
+ 当前{{ billNumber.num == 0 ? "" : billNumber.num }}
- 稍后99
+ 稍后{{ billNumber.num == 0 ? "" : billNumber.num }}
- 状态
+ 状态:
- 展开收起
+ 展开收起
@@ -171,6 +175,9 @@
>{{ item.statusTimeInfo }}: {{ item.statusShowTime }}
+ 具体以出名单时间为准
@@ -191,7 +198,7 @@
type="text"
@keyup.enter="inputpageChange"
@blur="inputpageChange"
- :style="{ 'background-Color': '#f6f6f6' }"
+ style=""
/>页