From ffe688c6449367a6b55632d15ce42ba80679ced6 Mon Sep 17 00:00:00 2001
From: jscyl13849007907 <13849007907@163.com>
Date: Wed, 22 Jan 2025 18:38:48 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/login.js | 9 ++
src/components/FirstJob/joblist.vue | 130 ++++++++++++++-------
.../accountsetting/components/boundtel.vue | 35 +++++-
3 files changed, 126 insertions(+), 48 deletions(-)
diff --git a/src/api/login.js b/src/api/login.js
index 0bc4273..9714bdb 100644
--- a/src/api/login.js
+++ b/src/api/login.js
@@ -50,3 +50,12 @@ export function checkTokenApi(data) {
method: "get",
});
}
+
+// 修改昵称和性别
+export function updateUserNameAndSex(data) {
+ return request({
+ url: "/yishoudan/user/updateUserNameAndSex",
+ method: "put",
+ data: setqs(data),
+ });
+}
diff --git a/src/components/FirstJob/joblist.vue b/src/components/FirstJob/joblist.vue
index f738406..171cbea 100644
--- a/src/components/FirstJob/joblist.vue
+++ b/src/components/FirstJob/joblist.vue
@@ -331,34 +331,38 @@
{{ item.name }}
-
-
-
-
-
-
- {{ filterObj.price }}
-
-
-
- {{ filterObj.gender }}
-
-
-
- {{ filterObj.age }}
-
-
-
- {{ item.name }}
-
-
- ...
-
-
-
-
-
-
+
+
+
+
+
+
+ {{ filterObj.price }}
+
+
+
+ {{ filterObj.gender }}
+
+
+
+ {{ filterObj.age }}
+
+
+
+ {{ item.name }}
+
+
+ ...
+
+
+
+
+
+ 清除
+
+
@@ -1340,25 +1344,43 @@ export default {
// this.isspinning = true;
console.log('newdata',newdata);
try {
- newdata = {
- district: "",
- monthlyPayStr: "",
- ageStr: "",
- jobRequestLabelIds: "",
- aliasName: "",
- pageNum: this.formvalue.pageNum, // 使用当前页码
- pageSize: 8,
- total: null, //分页配置
- isScroll: newdata && newdata.isScroll == 1 ? 1 : 0,
- sortTag: this.sortTag
- };
- for (var k in this.formvalue) {
- if (Array.isArray(this.formvalue[k])) {
- newdata[k] = this.formvalue[k].length > 0 ? this.formvalue[k].join() : "";
- } else {
- newdata[k] = this.formvalue[k];
+ if(newdata == 'clear'){
+ newdata = {
+ pageNum: this.formvalue.pageNum, // 使用当前页码
+ pageSize: 8,
+ district: '',
+ monthlyPayStr:'',
+ ageStr: '',
+ jobRequestLabelIds: '',
+ aliasName: '',
+ isScroll: 0,
+ sortTag: 0
+ };
+ this.formvalue = [];
+ }else{
+ newdata = {
+ district: "",
+ monthlyPayStr: "",
+ ageStr: "",
+ jobRequestLabelIds: "",
+ aliasName: "",
+ pageNum: this.formvalue.pageNum, // 使用当前页码
+ pageSize: 8,
+ total: null, //分页配置
+ isScroll: newdata && newdata.isScroll == 1 ? 1 : 0,
+ sortTag: this.sortTag
+ };
+ }
+ if(this.formvalue && this.formvalue.length > 0){
+ for (var k in this.formvalue) {
+ if (Array.isArray(this.formvalue[k])) {
+ newdata[k] = this.formvalue[k].length > 0 ? this.formvalue[k].join() : "";
+ } else {
+ newdata[k] = this.formvalue[k];
+ }
}
}
+
if (this.isLogin) {
const { data } = await JobListApi(newdata);
if (data.status === 200) {
@@ -2275,6 +2297,19 @@ export default {
},
handleToggle(e){
this.isToggle = !this.isToggle
+ },
+ clearFilter(){
+ this.filterObj = {
+ price: "", // 选中的价格搜索
+ gender: "", // 选中的性别搜索
+ specialactive: [], // 点中的特色标签索引
+ monthlyPayStr:'',
+ jobRequestLabelIds:'',
+ sex:'',
+ jobCategoryLabelIds:''
+ };
+
+ this.getJobList('clear');
}
},
};
@@ -3791,4 +3826,9 @@ p {
.top-obj:active {
background-color: #1890ffdd;
}
+ .clear-obj{
+ &:hover{
+ color: #1890ff;
+ }
+ }
diff --git a/src/components/userinfo/accountsetting/components/boundtel.vue b/src/components/userinfo/accountsetting/components/boundtel.vue
index 1b03d3e..7893981 100644
--- a/src/components/userinfo/accountsetting/components/boundtel.vue
+++ b/src/components/userinfo/accountsetting/components/boundtel.vue
@@ -27,7 +27,7 @@
- 更新基本信息
+ 更新基本信息
@@ -56,7 +56,7 @@