From caf55a7ff217908b9dd06b69374059966cc23fbd Mon Sep 17 00:00:00 2001 From: Apcallover <1503963513@qq.com> Date: Tue, 9 Apr 2024 10:44:52 +0800 Subject: [PATCH] =?UTF-8?q?flat:=20=E5=B7=A5=E8=B5=84=E5=8D=95=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/dic.js | 15 ++++++++++- pages/recruit/subPage/task.vue | 46 +++++++++++++++++++++++++++------- pages/recruit/subPage/work.vue | 38 +++++++++++++++++++++++----- store/models/user.js | 8 +++++- vue.config.js | 2 +- 5 files changed, 91 insertions(+), 18 deletions(-) diff --git a/common/dic.js b/common/dic.js index f38f74c..235d1a3 100644 --- a/common/dic.js +++ b/common/dic.js @@ -283,6 +283,17 @@ const companyEnum = [ { value: 11, label: "其它" }, ] +const wageUnitCategoryState = [[ + { id: 1, label: "元/人·时", disable: false }, + { id: 2, label: "元/人·天", disable: false }, + { id: 3, label: "元/人·月", disable: true }, + { id: 4, label: "其他", disable: true }, + // { value: 0, label: "元/人·次", disable: true }, + // { value: 4, label: "元/人·周", disable: true }, + // { value: 5, label: "元/人·个", disable: true }, + // { value: 6, label: "元/人·件", disable: true }, +]]; + export default { salary, taskSalary, @@ -290,5 +301,7 @@ export default { natureArr, ageArr, eduArr, - expeArr,companyEnum + expeArr, + companyEnum, + wageUnitCategoryState } \ No newline at end of file diff --git a/pages/recruit/subPage/task.vue b/pages/recruit/subPage/task.vue index caac52c..8bdba1c 100644 --- a/pages/recruit/subPage/task.vue +++ b/pages/recruit/subPage/task.vue @@ -23,13 +23,29 @@ 任务要求 - - + + + + + + - diff --git a/pages/recruit/subPage/work.vue b/pages/recruit/subPage/work.vue index 4818a9b..91910f1 100644 --- a/pages/recruit/subPage/work.vue +++ b/pages/recruit/subPage/work.vue @@ -24,12 +24,28 @@ - - + --> + + + + + - diff --git a/store/models/user.js b/store/models/user.js index af24443..2975fe9 100644 --- a/store/models/user.js +++ b/store/models/user.js @@ -61,7 +61,9 @@ const user = { sendTimes:getStore({//用户发送短信次数 name:'setUserSendTimes' }) || 0, - seeEnterprise: 0, // 0 个体招工 ; 企业招工 + seeEnterprise: getStore({//用户发送短信次数 + name:'enterprise' + }) || 0, // 0 个体招工 ; 企业招工 }, actions: { //用户点击radio按钮 @@ -183,6 +185,10 @@ const user = { mutations: { setEnterprise(state, val) { // 0 个体招工 ; 企业招工 state.seeEnterprise = val; + setStore({ + name: 'enterprise', + content: val, + }) }, SET_TOKEN: (state, token) => { state.token = token; diff --git a/vue.config.js b/vue.config.js index d942576..2fabec4 100644 --- a/vue.config.js +++ b/vue.config.js @@ -3,7 +3,7 @@ module.exports = { port: 1887, proxy: { '/api': { - target: 'http://10.165.0.173:8000', + target: 'http://192.168.1.106:8000', ws: true, pathRewrite: { '^/api': '/'