From d98707bfc30fdacde9f3bfb5ab2a5af5e3196398 Mon Sep 17 00:00:00 2001 From: huliyong <2783385703@qq.com> Date: Tue, 24 Dec 2024 17:28:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/api.js | 30 +-- api/model/index-lzx.js | 30 --- api/model/workEntryInfo.js | 57 +++++ components/list/userList/index.vue | 21 +- components/list/workList/index.vue | 8 +- components/screen/screenWork.vue | 75 ++++--- manifest.json | 2 +- pages.json | 6 + pages/index/center.vue | 56 +++-- pages/index/consult.vue | 5 +- pages/index/index.vue | 64 +++--- pages/index/keepAccounts.vue | 15 +- pages_order/auth/certification.vue | 8 +- pages_order/auth/certificationEnterprise.vue | 306 +++++++++++++++++++++++++++ pages_order/auth/wxLogin.vue | 21 +- pages_order/auth/wxUserInfo.vue | 6 +- pages_order/kepp/AnnualExpenditure.vue | 4 +- pages_order/kepp/addPriceEntryRecords.vue | 6 +- pages_order/kepp/addWorkEntryRecords.vue | 33 ++- pages_order/kepp/keepAccountsDetail.vue | 28 ++- pages_order/mine/about.vue | 11 +- pages_order/mine/enterpriseInfo.vue | 22 ++ pages_order/work/addResume.vue | 38 ++-- pages_order/work/jobPosting.vue | 2 +- pages_order/work/workDetail.vue | 3 +- pages_order/work/workList.vue | 44 +++- store/store.js | 86 +++++++- utils/index.js | 12 +- 28 files changed, 768 insertions(+), 231 deletions(-) create mode 100644 api/model/workEntryInfo.js create mode 100644 pages_order/auth/certificationEnterprise.vue create mode 100644 pages_order/mine/enterpriseInfo.vue diff --git a/api/api.js b/api/api.js index cf4ea9a..56f6b44 100644 --- a/api/api.js +++ b/api/api.js @@ -11,6 +11,7 @@ const models = [ 'examination', 'collect', 'contact', + 'workEntryInfo', ] const config = { @@ -32,14 +33,6 @@ const config = { url: '/api/common/aboutUs', method: 'GET', }, - //新建账本 - commonAddBill: { - url: '/api/common/addBill', - method: 'POST', - auth: true, - limit : 500, - showLoading : true, - }, // 我的服务-兑换码 commonAddExchange: { url: '/api/common/addExchange', @@ -48,14 +41,6 @@ const config = { limit : 500, showLoading : true, }, - // 技工问题 - commonAddQuestion: { - url: '/api/common/addQuestion', - method: 'POST', - auth: true, - limit : 500, - showLoading : true, - }, // 我的服务-会员充值(开通VIP) commonAddRecharge: { url: '/api/common/addRecharge', @@ -92,16 +77,6 @@ const config = { url: '/api/common/queryAddressList', method: 'GET', }, - //全年收支 - commonQueryBill: { - url: '/api/common/queryBill', - method: 'GET', - }, - //记工记账项目列表 - commonQueryNotebookList: { - url: '/api/common/queryNotebookList', - method: 'GET', - }, //会员中心-正式积分||临时积分 commonQueryScore: { url: '/api/common/queryScore', @@ -224,7 +199,8 @@ function addApiModel(model, key){ if(config[`${k}`]){ console.error(`重名api------model=${key},key=${k}`); uni.showModal({ - title: `重名api------model=${key},key=${k}` + title: `重名api`, + content: `model=${key},key=${k}` }) continue } diff --git a/api/model/index-lzx.js b/api/model/index-lzx.js index e4213fe..e8bdc7b 100644 --- a/api/model/index-lzx.js +++ b/api/model/index-lzx.js @@ -75,36 +75,6 @@ const api = { limit : 500, showLoading : true, }, - //新建账本 - addNoteBook: { - url: '/employ/notebook/addNoteBook', - method: 'POST', - auth: true, - limit : 500, - showLoading : true, - }, - //记工记账-项目记工 - addWorkInfo: { - url: '/employ/notebook/addWorkInfo', - method: 'POST', - auth: true, - limit : 500, - showLoading : true, - }, - //记工记账-项目记账 - addBillInfo: { - url: '/employ/notebook/addBillInfo', - method: 'POST', - auth: true, - limit : 500, - showLoading : true, - }, - //记工记账-全年收支 - queryBill: { - url: '/employ/notebook/queryBill', - method: 'GET', - auth: true, - }, } export default api \ No newline at end of file diff --git a/api/model/workEntryInfo.js b/api/model/workEntryInfo.js new file mode 100644 index 0000000..9777903 --- /dev/null +++ b/api/model/workEntryInfo.js @@ -0,0 +1,57 @@ + +// 记工记账相关接口 + +const api = { + //记工记账项目列表 + commonQueryNotebookList: { + url: '/api/common/queryNotebookList', + method: 'GET', + }, + // 技工问题 + commonAddQuestion: { + url: '/employ/notebook/addQuestion', + method: 'POST', + auth: true, + limit : 500, + showLoading : true, + }, + + //新建账本 + addNoteBook: { + url: '/employ/notebook/addNoteBook', + method: 'POST', + auth: true, + limit : 500, + showLoading : true, + }, + //记工记账-项目记工 + addWorkInfo: { + url: '/employ/notebook/addWorkInfo', + method: 'POST', + auth: true, + limit : 500, + showLoading : true, + }, + //记工记账-项目记账 + addBillInfo: { + url: '/employ/notebook/addBillInfo', + method: 'POST', + auth: true, + limit : 500, + showLoading : true, + }, + //记工记账-全年收支 + queryBill: { + url: '/employ/notebook/queryBill', + method: 'GET', + auth: true, + }, + //记工记账-全年收支 + notebookQueryWork: { + url: '/employ/notebook/queryWork', + method: 'GET', + auth: true, + }, +} + +export default api \ No newline at end of file diff --git a/components/list/userList/index.vue b/components/list/userList/index.vue index bac09a3..a3ab4c3 100644 --- a/components/list/userList/index.vue +++ b/components/list/userList/index.vue @@ -48,12 +48,29 @@ } }, methods: { - getData(){ + getData(params, query){ if(uni.getStorageSync('token')){ this.queryParams.token = uni.getStorageSync('token') } - this.$api(this.api, this.queryParams, res => { + let queryParams = { + pageNo: this.queryParams.pageNo, + pageSize: this.queryParams.pageSize, + } + + if(params && params.length > 0){ + params.forEach(n => { + queryParams[n.name] = n.value + }) + } + + if(query){ + for(let key in query){ + queryParams[key] = query[key] + } + } + + this.$api(this.api, queryParams, res => { uni.stopPullDownRefresh() if(res.code == 200){ this.list = res.result.records || res.result diff --git a/components/list/workList/index.vue b/components/list/workList/index.vue index 32f3a3a..9b20c11 100644 --- a/components/list/workList/index.vue +++ b/components/list/workList/index.vue @@ -42,7 +42,7 @@ } }, methods: { - getData(params){ + getData(params, query){ if(uni.getStorageSync('token')){ this.queryParams.token = uni.getStorageSync('token') } @@ -58,6 +58,12 @@ }) } + if(query){ + for(let key in query){ + queryParams[key] = query[key] + } + } + this.$api(this.api, queryParams, res => { uni.stopPullDownRefresh() if(res.code == 200){ diff --git a/components/screen/screenWork.vue b/components/screen/screenWork.vue index 2033e73..5876056 100644 --- a/components/screen/screenWork.vue +++ b/components/screen/screenWork.vue @@ -1,7 +1,7 @@