From 90faef4f010120c51fec09b46a49b0283479b47a Mon Sep 17 00:00:00 2001 From: jscyl13849007907 <13849007907@163.com> Date: Mon, 17 Feb 2025 11:08:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=20=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E5=8F=B0=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/mine/index.wxml | 6 +-- pages/mine/index.wxss | 2 +- pages/workBench/index.js | 61 +++++++++++++++++++++++-- pages/workBench/index.wxml | 111 +++++++++++++++++++++++++++++++++++++++++++-- pages/workBench/index.wxss | 77 +++++++++++++++++++++++++++++++ 5 files changed, 244 insertions(+), 13 deletions(-) diff --git a/pages/mine/index.wxml b/pages/mine/index.wxml index 96f051a..6e3fa5a 100644 --- a/pages/mine/index.wxml +++ b/pages/mine/index.wxml @@ -101,7 +101,7 @@ - + @@ -127,7 +127,7 @@ - + 今日数据 @@ -156,7 +156,7 @@ - + 报名工单 diff --git a/pages/mine/index.wxss b/pages/mine/index.wxss index 411039d..0ea2a8e 100644 --- a/pages/mine/index.wxss +++ b/pages/mine/index.wxss @@ -110,7 +110,7 @@ page { margin-bottom: 10px; overflow: hidden; margin-top: 10px; -} +} .balanceBox .myaBill { display: flex; justify-content: space-between; diff --git a/pages/workBench/index.js b/pages/workBench/index.js index 0cfced8..70637c7 100644 --- a/pages/workBench/index.js +++ b/pages/workBench/index.js @@ -16,7 +16,8 @@ Page({ underReviewNum: -1, underReviewList: [], searchParam: {}, - recordBillType: '' + recordBillType: '', + configInfo: {}, }, // 事件处理函数 bindViewTap () { @@ -33,6 +34,18 @@ Page({ selected: 1, }); } + + setTimeout(() => { + this.setData({ + + userInfo: app.globalData.loginUserInfo, + + }); + if (app.globalData.isLogin) { + this.getTeamList() + + } + }, 100); }, onUnload () { wx.removeStorage({ @@ -50,7 +63,12 @@ Page({ // }); // return // } - + if (wx.getStorageSync("configInfo")) { + this.setData({ + configInfo: { ...wx.getStorageSync("configInfo"), biao: false }, + }); + console.log('configInfo',this.data.configInfo); + } this.setData({ isLogin: app.globalData.isLogin, }); @@ -69,6 +87,22 @@ Page({ this.getBillNum(); this.getDataNum(); // } + setTimeout(() => { + if (app.globalData.isLogin) { + that.setData({ + userInfo: app.globalData.loginUserInfo, + }); + } else { + setTimeout(() => { + that.setData({ + userInfo: app.globalData.loginUserInfo, + }); + }, 100); + // }; + } + console.log(that.data.serviceInfo); + // this.watch(); + }, 100); }, getUserProfile (e) { // 推荐使用wx.getUserProfile获取用户信息,开发者每次通过该接口获取用户个人信息均需用户确认,开发者妥善保管用户快速填写的头像昵称,避免重复弹窗 @@ -446,10 +480,27 @@ Page({ }, 200); }, + toTodayData () { + if (!app.globalData.isLogin) { + wx.navigateTo({ + url: "/pages/login/index", + }); + } else { + wx.navigateTo({ + url: "/subPage/todayData/index", + }); + } + }, goList () { - wx.navigateTo({ - url: '../myBill/index?status=0', - }) + if (!app.globalData.isLogin) { + wx.navigateTo({ + url: "/pages/login/index", + }); + } else { + wx.switchTab({ + url: "../myBill/index?status=0", + }); + } }, getList: function (under) { var that = this; diff --git a/pages/workBench/index.wxml b/pages/workBench/index.wxml index cf54b30..bf53544 100644 --- a/pages/workBench/index.wxml +++ b/pages/workBench/index.wxml @@ -161,7 +161,110 @@ --> - + + + + + + 待结算(元) + + + {{map.billStatus20Salary || '0'}} + + + + 累计结算(元) + + + {{map.billStatus30Salary}} + + + + 待核对 + + {{ map.billStatus10Num }} +

暂无待核对账单

+ +
+
+
+ + + + 今日数据 + + + + + {{map.agencyData.signUps || '0'}} + 报名 + + + {{map.agencyData.arrived || '0'}} + 到面 + + + {{map.agencyData.passed || '0'}} + 通过 + + + {{map.agencyData.entry || '0'}} + 入职 + + + {{map.agencyData.obJob || '0'}} + 在职 + + + + + + + + 报名工单 + + 全部 + + + + + + + {{map.num10 || '0'}} + 审核中 + + + {{map.num20 || '0'}} + 待接待 + + + {{map.num25 || '0'}} + 待面试 + + + {{map.num30 || '0'}} + 待入职 + + + + {{map.num40 || '0'}} + 在职中 + + + + + + + @@ -179,7 +282,7 @@
- + 报名工单 @@ -218,7 +321,7 @@ - + 我的老乡 @@ -244,7 +347,7 @@ - + 我的账单 diff --git a/pages/workBench/index.wxss b/pages/workBench/index.wxss index 28d42e3..0b531fe 100644 --- a/pages/workBench/index.wxss +++ b/pages/workBench/index.wxss @@ -201,4 +201,81 @@ page { } .friendBar .container .sub view { line-height: 1; +} + +.balanceBox { + border-radius: 8px; + margin-bottom: 10px; + overflow: hidden; + margin-top: 10px; +} +.balanceBox .myaBill { + display: flex; + justify-content: space-between; + align-items: center; + height: 48px; + padding: 0 10px 0 16px; + background-color: #fff; +} +.balanceBox .myaBill .icon-gengduo11 { + color: #999; + font-size: 12px; +} +.container .userbalance { + display: flex; + justify-content: space-between; + align-items: center; + /* padding: 16px; */ + border-radius: 8px 8px 0 0; + /* width: 355px; */ + /* height: 96px; */ + box-sizing: border-box; + color: #fff; + background-color: #fff; +} +.container .userbalance > navigator { + height: 100%; + display: flex; + flex: 1; + flex-direction: column; + justify-content: space-around; + padding: 16px 0 16px 16px; +} +.container .userbalance > view > view:last-child { + font-size: 26px; +} +.balanceinfo { + display: flex; + justify-content: start; + flex-direction: row; + align-items: center; +} +.balanceinfo > view:last-child { + width: 20px; + height: 20px; + background-repeat: no-repeat; + background-size: 100% 100%; +} +.rightbox { + display: flex; + justify-content: space-between; + flex-direction: column; + align-items: center; +} +.rightbox > view:last-child { + width: 12px; + height: 12px; + /* margin-left: 8px; */ +} + +.userbalance > navigator { + height: 100%; + display: flex; + flex: 1; + flex-direction: column; + justify-content: space-around; + padding: 16px 0 16px 16px; +} +.gbr{ + border-right: 0.1px solid #eee; } \ No newline at end of file