From 9ebaf99ac5719d1d3a7526ae198df47701e30417 Mon Sep 17 00:00:00 2001 From: "1263428893@qq.com" Date: Sun, 16 Feb 2025 17:31:03 +0800 Subject: [PATCH] 1 --- common/api.js | 5 ++++ common/config.js | 3 ++- pages.json | 9 ++++++++ pages/auth/index.vue | 21 ++++++++++++++--- pages/home/index.vue | 35 +++++++++++++++++++--------- pages/login/index.vue | 32 ++++++++++++++++++-------- pages_subpack/notice/index.vue | 44 ++++++++++++++++++++++++++++++++++++ pages_subpack/order-detail/index.vue | 3 ++- pages_subpack/record/index.vue | 27 ++++++++++++++-------- pages_subpack/resume/index.vue | 2 +- util/request/requestInterceptors.js | 1 + 11 files changed, 147 insertions(+), 35 deletions(-) create mode 100644 pages_subpack/notice/index.vue diff --git a/common/api.js b/common/api.js index e1ee23c..968d144 100644 --- a/common/api.js +++ b/common/api.js @@ -69,3 +69,8 @@ export const getNotice = (params) => http.get('/employ-api/index/getNotice', {pa export const updateRole = (params) => http.post('/employ-api/user/updateRole', params) // 招聘方修改信息 传id修改 export const updateRoleBoss = (params) => http.post('/employ-api/user/updateRoleBoss', params) +// 公告列表 +export const noticeList = (params) => http.get('/employ-api/index/noticeList', {params:params}) +// 小程序-获取sessionKey +export const getSessionKey = (params) => http.get('/employ-api/user/getSessionKey', {params:params}) + diff --git a/common/config.js b/common/config.js index 8b9944f..c93ca26 100644 --- a/common/config.js +++ b/common/config.js @@ -1,4 +1,5 @@ module.exports = { // baseUrl: 'http://3fl8266127.qicp.vip' - baseUrl:"https://employadmin.hhlm1688.com" + // baseUrl:"https://employadmin.hhlm1688.com", + baseUrl:"http://augcl.natapp1.cc" } diff --git a/pages.json b/pages.json index c4458d4..108389e 100644 --- a/pages.json +++ b/pages.json @@ -220,6 +220,15 @@ "navigationBarBackgroundColor": "#FF7A31", "navigationBarTextStyle": "white" } + }, + { + "path": "notice/index", + "style": { + "navigationBarTitleText": "公告详情", + "navigationStyle":"default", + "navigationBarBackgroundColor": "#FF7A31", + "navigationBarTextStyle": "white" + } } ] } diff --git a/pages/auth/index.vue b/pages/auth/index.vue index 5fea524..9b47f54 100644 --- a/pages/auth/index.vue +++ b/pages/auth/index.vue @@ -55,23 +55,38 @@ + + \ No newline at end of file diff --git a/pages_subpack/order-detail/index.vue b/pages_subpack/order-detail/index.vue index 0d7a50b..83dbb95 100644 --- a/pages_subpack/order-detail/index.vue +++ b/pages_subpack/order-detail/index.vue @@ -142,7 +142,8 @@ 支付方式 - + 提前支付 + 试用后支付 工作时间 diff --git a/pages_subpack/record/index.vue b/pages_subpack/record/index.vue index 09bc6d1..838354f 100644 --- a/pages_subpack/record/index.vue +++ b/pages_subpack/record/index.vue @@ -52,14 +52,15 @@ - {{items.desc}} + {{items.title}} {{items.createTime}} - - {{items.money}} + + {{items.type==0?'-':'+'}} + ¥{{items.money}} @@ -100,27 +101,35 @@ } }, mounted() { - this.startTime = this.$dayjs().valueOf(); - this.startDate = this.$dayjs().format('YYYY-MM-DD') + this.startTime = this.$dayjs().subtract(1, 'day').valueOf(); + this.startDate = this.$dayjs().subtract(1, 'day').format('YYYY-MM-DD') this.endTime = this.$dayjs().valueOf(); this.endDate = this.$dayjs().format('YYYY-MM-DD') - console.info(this.$dayjs().format('YYYY-MM-DD')) this.onPayLog(); }, + onReachBottom() { + let that = this + that.pageNo = that.pageNo + 1 + that.onPayLog() + }, methods:{ onPayLog(){ let that = this let params = { pageNo:that.pageNo, pageSize:that.pageSize, - startTime:that.startTime, - endTime:that.endTime + startTime:that.startDate+" 00:00:00", + endTime:that.endDate+" 23:59:59" } payLog(params).then(response=>{ console.info("payLog",response) that.money = response.result.money?response.result.money:0 that.moneyLog = response.result.moneyLog?response.result.moneyLog:0 - that.records = response.result.log.records + if(that.pageNo==1){ + that.records = response.result.log.records + }else{ + that.records = that.records.concat(response.result.log.records) + } }).catch(error=>{ }) diff --git a/pages_subpack/resume/index.vue b/pages_subpack/resume/index.vue index e2e949c..afddd6f 100644 --- a/pages_subpack/resume/index.vue +++ b/pages_subpack/resume/index.vue @@ -35,7 +35,7 @@ - diff --git a/util/request/requestInterceptors.js b/util/request/requestInterceptors.js index 9aa4b75..6bc6f90 100644 --- a/util/request/requestInterceptors.js +++ b/util/request/requestInterceptors.js @@ -7,6 +7,7 @@ module.exports = (vm) => { config.data = config.data || {} config.header['X-Access-Token'] = uni.getStorageSync('token'); config.header['Content-Type'] = 'application/json' + // config.header['Content-Type'] = 'application/x-www-form-urlencoded' return config }, config => { return Promise.reject(config)