From 204ff32e8cd1bda940d5f8b370cbe09822710f50 Mon Sep 17 00:00:00 2001 From: wangxia <779219182@qq.com> Date: Tue, 26 Aug 2025 11:18:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/job.js | 7 +- components/button.vue | 15 ++- components/customTabbar.vue | 79 +++--------- components/myMain.vue | 12 +- pages.json | 9 ++ pages/NEUIKit/components/Appellation.vue | 2 +- .../pages/Conversation/conversation-list/index.vue | 77 ++++++------ pages/NEUIKit/utils/msg.ts | 44 +++---- pages/home/index.vue | 100 +++++++-------- pages/home/order.vue | 4 +- pages/message/index.vue | 36 +++--- root/NEUIKit/pages/Chat/message/message-item.vue | 2 +- root/bind/myMain.vue | 4 +- root/detail/apply.vue | 89 +++++++++++++- root/detail/job.vue | 23 ++-- root/detail/userShare.vue | 32 ++--- root/person/changeTeam.vue | 133 ++++++++++++++++++++ root/person/info.vue | 2 +- root/person/orderEdit.vue | 6 +- root/person/set.vue | 35 ++++-- .../vk-uview-ui/components/u-tabs/u-tabs.vue | 3 +- utils/ajax.js | 134 +++++++++++---------- 22 files changed, 533 insertions(+), 315 deletions(-) create mode 100644 root/person/changeTeam.vue diff --git a/api/job.js b/api/job.js index 91993f1..8361be3 100644 --- a/api/job.js +++ b/api/job.js @@ -18,8 +18,11 @@ let jobInfo = { job_getPolicyShare: '/yishoudan/store/job/getPolicyByStoreJobId',// 获取共享职位政策 job_ai: '/yishoudan/common/structure/get', // 获取ai结果 yi_job_class_new: "/labels/getListByTypeAndIndustry", // 新职位要求接口(新) - job_get_cus: "/yishoudan/job/customer/support/getJobCustomerSupportIMAccid", // 获取客服ID - job_get_agency_cus: "/yishoudan/job/customer/support/getAgencyCustomerSupportIMAccid", // 获取代理客服ID + + // job_get_cus: "/yishoudan/job/customer/support/getJobCustomerSupportIM", // 获取客服ID(老) + // job_get_cus: "/yishoudan/job/customer/support/getJobCustomerSupportIMAccid", // 获取客服ID + job_get_cus: "/yishoudan/job/customer/support/getJobCustomerSupportIM", // 获取客服ID(新) + job_get_agency_cus: "/yishoudan/job/customer/support/getAgencyCustomerSupportIM", // 获取代理客服ID hasSee: "/yishoudan/job/view/record/addRecord", getCityNameByLatLng: '/location/getCityNameByLatLng' ,// 根据经纬度获取城市 diff --git a/components/button.vue b/components/button.vue index 028be43..fdaab4a 100644 --- a/components/button.vue +++ b/components/button.vue @@ -278,10 +278,9 @@ $main_color: #00b666; } &_none { background-color: #fff; - color: #666; - border: 1rpx solid #ccc; + color: #333; &.thover { - background-color: #ddd; + opacity: .8; } } &_disabled { @@ -293,6 +292,16 @@ $main_color: #00b666; opacity: 1; } } + &_noStyle { + background-color: rgba(0, 0, 0, 0.05); + color: #333; + font-weight: 600; + // border: 1rpx solid rgba(0, 0, 0, 0.05); + &.thover { + // background-color: rgba(0, 0, 0, 0.05); + opacity: .8; + } + } &_gradual { background: v-bind("gradual"); color: #fff; diff --git a/components/customTabbar.vue b/components/customTabbar.vue index cafb47e..9c05954 100644 --- a/components/customTabbar.vue +++ b/components/customTabbar.vue @@ -30,48 +30,6 @@ export default { }, 2000); } } - // if (this.userInfo.agencyId) { - // this.tabbarInfo = [ - // { - // iconPath: "icon-home g_c_9", - // selectedIconPath: "icon-home g_c_main", - // pagePath: "/pages/home/index", - // text: "首页", - // iconSize: 48, - // }, - // { - // iconPath: "icon-fadanhao-32 g_c_9", - // selectedIconPath: "icon-fadanhao-32 g_c_main", - // pagePath: "/pages/home/order", - // text: "发单号", - // iconSize: 48, - // }, - - // { - // iconPath: "icon-order_active g_c_9", - // selectedIconPath: "icon-order_active g_c_main", - // pagePath: "/pages/workBench/index", - // text: "工单", - // iconSize: 48, - // count: 0, - // }, - // { - // iconPath: "icon-message g_c_9", - // selectedIconPath: "icon-message g_c_main", - // pagePath: "/pages/message/index", - // text: "消息", - // iconSize: 78, - // iconType: "custom", - // }, - // { - // iconPath: "icon-user g_c_9", - // selectedIconPath: "icon-user g_c_main", - // pagePath: "/pages/person/index", - // text: "我的", - // iconSize: 48, - // }, - // ]; - // } else { if (!this.userInfo.agencyId) { this.tabbarInfo = [ { @@ -81,15 +39,6 @@ export default { text: "首页", iconSize: 48, }, - - { - iconPath: "icon-order_active g_c_9", - selectedIconPath: "icon-order_active g_c_main", - pagePath: "/pages/workBench/index", - text: "工单", - iconSize: 48, - count: 0, - }, { iconPath: "icon-message g_c_9", selectedIconPath: "icon-message g_c_main", @@ -99,6 +48,15 @@ export default { iconType: "custom", count: 0, }, + { + iconPath: "icon-order_active g_c_9", + selectedIconPath: "icon-order_active g_c_main", + pagePath: "/pages/workBench/index", + text: "工单", + iconSize: 48, + count: 0, + }, + { iconPath: "icon-user g_c_9", selectedIconPath: "icon-user g_c_main", @@ -147,15 +105,6 @@ export default { text: "发单号", iconSize: 48, }, - - { - iconPath: "icon-order_active g_c_9", - selectedIconPath: "icon-order_active g_c_main", - pagePath: "/pages/workBench/index", - text: "工单", - iconSize: 48, - count: 0, - }, { iconPath: "icon-message g_c_9", selectedIconPath: "icon-message g_c_main", @@ -165,6 +114,15 @@ export default { iconType: "custom", count: 0, }, + { + iconPath: "icon-order_active g_c_9", + selectedIconPath: "icon-order_active g_c_main", + pagePath: "/pages/workBench/index", + text: "工单", + iconSize: 48, + count: 0, + }, + { iconPath: "icon-user g_c_9", selectedIconPath: "icon-user g_c_main", @@ -192,7 +150,6 @@ export default { let that = this; console.log("datadatadatadatadatadata", data); for (var k in that.tabbarInfo) { - console.log("that.tabbarInfo[k].pagePath", that.tabbarInfo[k]); if (that.tabbarInfo[k].pagePath == "/pages/message/index") { if (data) { // console.log(that.messageCount + "+++++++++++++++++" + that.noticeCount); diff --git a/components/myMain.vue b/components/myMain.vue index 18f4819..edf6426 100644 --- a/components/myMain.vue +++ b/components/myMain.vue @@ -165,7 +165,7 @@ export default { lifetimes: { // 组件生命周期函数,在组件实例被从页面节点树移除时执行 detached() { - console.log('detacheddetacheddetacheddetacheddetached'); + console.log("detacheddetacheddetacheddetacheddetached"); uni.removeStorageSync("poster_img"); }, }, @@ -546,7 +546,15 @@ export default { // that.G.fillTextLineBreak(ctx, "今日更新职位" + info.jobUpdateNum, 140, 400, ("今日更新职位" + info.jobUpdateNum).length * 56, 56, "#999", 56, 500, "left"); // 今日更新职位 console.log("that.formatNumberAdvanced(info.jobNum)", that.formatNumberAdvanced(info.jobNum)); - const textSegments = [{ content: that.formatNumberAdvanced(info.jobNum).toString(), color: "#000", fontWeight: 500, fontSize: 80, space: info.jobNum < 10000 ? 10 : 0 }, info.jobNum < 10000 ? null : { content: "万", color: "#000", fontWeight: 500, fontSize: 64, space: 10 }, { content: "总职位", color: "#666", fontWeight: 500, fontSize: 56, space: 70 }, { content: that.formatNumberAdvanced(info.recruitmentJobNum).toString(), color: "#000", fontWeight: 500, fontSize: 80, space: 10 }, { content: "在招", color: "#666", fontWeight: 500, fontSize: 56, space: 70 }, { content: that.formatNumberAdvanced(info.downNum).toString(), color: "#000", fontWeight: 500, fontSize: 80, space: 10 }, { content: "粉丝", color: "#666", fontWeight: 500, fontSize: 56, space: 40 }]; + const textSegments = [ + // { content: that.formatNumberAdvanced(info.jobNum).toString(), color: "#000", fontWeight: 500, fontSize: 80, space: info.jobNum < 10000 ? 10 : 0 }, + // info.jobNum < 10000 ? null : { content: "万", color: "#000", fontWeight: 500, fontSize: 64, space: 10 }, + // { content: "总职位", color: "#666", fontWeight: 500, fontSize: 56, space: 70 }, + { content: that.formatNumberAdvanced(info.recruitmentJobNum).toString(), color: "#000", fontWeight: 500, fontSize: 80, space: 10 }, + { content: "在招", color: "#666", fontWeight: 500, fontSize: 56, space: 70 }, + { content: that.formatNumberAdvanced(info.downNum).toString(), color: "#000", fontWeight: 500, fontSize: 80, space: 10 }, + { content: "粉丝", color: "#666", fontWeight: 500, fontSize: 56, space: 40 }, + ]; that.G.drawCenteredText(ctx, mycenter + 20, 745, textSegments); imgres(canvas); }; diff --git a/pages.json b/pages.json index fcbb5e3..f9d3dcb 100644 --- a/pages.json +++ b/pages.json @@ -293,6 +293,15 @@ "backgroundColorBottom": "#ededed" } }, + { + "path": "changeTeam", + "style": { + "navigationBarTitleText": "切换团队", + "backgroundColor": "#ededed", + "backgroundColorTop": "#ededed", + "backgroundColorBottom": "#ededed" + } + }, { "path": "addOrUpdataMember", "style": { diff --git a/pages/NEUIKit/components/Appellation.vue b/pages/NEUIKit/components/Appellation.vue index 90d8434..d6c905d 100644 --- a/pages/NEUIKit/components/Appellation.vue +++ b/pages/NEUIKit/components/Appellation.vue @@ -4,7 +4,7 @@ :style="{ color: color, fontSize: fontSize + 'px' }" > {{ appellation }} - {{ subtitle }} + {{ subtitle }} diff --git a/pages/NEUIKit/pages/Conversation/conversation-list/index.vue b/pages/NEUIKit/pages/Conversation/conversation-list/index.vue index e416349..5deec57 100644 --- a/pages/NEUIKit/pages/Conversation/conversation-list/index.vue +++ b/pages/NEUIKit/pages/Conversation/conversation-list/index.vue @@ -4,18 +4,18 @@
- +
-
-
+ +
diff --git a/root/person/info.vue b/root/person/info.vue index c93e74e..b02b91c 100644 --- a/root/person/info.vue +++ b/root/person/info.vue @@ -110,7 +110,7 @@ export default { value: that.userinfo.imgSrc, path: "/root/person/avatar", tip: "avatar", - pColumn: 22, + pColumn: 19, }, { icon: "", diff --git a/root/person/orderEdit.vue b/root/person/orderEdit.vue index 93f7830..ca16071 100644 --- a/root/person/orderEdit.vue +++ b/root/person/orderEdit.vue @@ -3,7 +3,7 @@ -->
- + + diff --git a/root/person/set.vue b/root/person/set.vue index f360b07..b1e05d7 100644 --- a/root/person/set.vue +++ b/root/person/set.vue @@ -2,13 +2,18 @@ - + @@ -61,20 +66,21 @@ @clickItem="handleClickItem" /> - + /> --> + @@ -187,6 +193,11 @@ export default { }); } }, + toChangeTeam() { + uni.navigateTo({ + url: "/root/person/changeTeam", + }); + }, /** * 设置是否显示邀请关注弹窗 */ diff --git a/uni_modules/vk-uview-ui/components/u-tabs/u-tabs.vue b/uni_modules/vk-uview-ui/components/u-tabs/u-tabs.vue index 85e6ec9..9d86bd9 100644 --- a/uni_modules/vk-uview-ui/components/u-tabs/u-tabs.vue +++ b/uni_modules/vk-uview-ui/components/u-tabs/u-tabs.vue @@ -8,7 +8,7 @@ - + {{ item[name] || item["name"] }} @@ -200,6 +200,7 @@ export default { current: { immediate: true, handler(nVal, oVal) { + console.log("current nVal", nVal); // 视图更新后再执行移动操作 this.$nextTick(() => { this.currentIndex = nVal; diff --git a/utils/ajax.js b/utils/ajax.js index 7cc7d55..1d52c86 100644 --- a/utils/ajax.js +++ b/utils/ajax.js @@ -107,75 +107,83 @@ let data = { } } // console.log("公共参数,+++++", Object.assign($parmas, that.setPublicParams())); - uni.request({ - url: ajaxUrl + $url, - data: Object.assign($parmas, that.setPublicParams()), - header: Object.assign($header, that.setPublicParams()), - method: $method, - success: (res) => { - // console.log('测试报错123123123123123123',res); - // console.log('测试报错123123123123123123$url',$url); - let resData = res.data; + uni.getNetworkType({ + success: function (res) { + console.log('resresresres networkType',res); + if (res.networkType !== 'none') { + uni.request({ + url: ajaxUrl + $url, + data: Object.assign($parmas, that.setPublicParams()), + header: Object.assign($header, that.setPublicParams()), + method: $method, + success: (res) => { + // console.log('测试报错123123123123123123',res); + // console.log('测试报错123123123123123123$url',$url); + let resData = res.data; - if (resData.status == 200) {// 正常 - callback(resData.data, resData.msg); - } else if (resData.status == 9999) {// 登录过期或者身份变动等需要登录的场景 - uni.showToast({ - title: resData.msg, - icon: "none" - }); - failback(resData); - setTimeout(() => { - uni.reLaunch({ - url: '/root/person/loginIndex?path=/' + that.getPathCopy().path + '&level=' + that.getPathCopy().level - }); - }, 1500); - } else if (resData.status == 500 || resData.status == 502) {// 某种原因导致接口提示该状态码 - // if (resData.msg == '系统异常,请稍后') { - // uni.reLaunch({ - // url: '/root/other/error' - // }); - // } else { - uni.showToast({ - title: resData.msg, - // title:'系统异常,请稍后', - icon: "none" - }); - failback(resData.msg); - // } - } else if (resData.status == 2002) { - uni.showToast({ - title: '已切换团队,需要重新登录', - icon: "none" - }); - setTimeout(() => { - uni.reLaunch({ - url: '/root/person/loginIndex?path=/pages/home/index&level=' + that.getPathCopy().level - }); - }, 1500); - } else {// 其他异常 - if ($url == '/yishoudan/user/apply/order/V2/details') { + if (resData.status == 200) {// 正常 + callback(resData.data, resData.msg); + } else if (resData.status == 9999) {// 登录过期或者身份变动等需要登录的场景 + uni.showToast({ + title: resData.msg, + icon: "none" + }); + failback(resData); + setTimeout(() => { + uni.reLaunch({ + url: '/root/person/loginIndex?path=/' + that.getPathCopy().path + '&level=' + that.getPathCopy().level + }); + }, 1500); + } else if (resData.status == 500 || resData.status == 502) {// 某种原因导致接口提示该状态码 + // if (resData.msg == '系统异常,请稍后') { + // uni.reLaunch({ + // url: '/root/other/error' + // }); + // } else { + uni.showToast({ + title: resData.msg, + // title:'系统异常,请稍后', + icon: "none" + }); + failback(resData.msg); + // } + } else if (resData.status == 2002) { + uni.showToast({ + title: '已切换团队,需要重新登录', + icon: "none" + }); + setTimeout(() => { + uni.reLaunch({ + url: '/root/person/loginIndex?path=/pages/home/index&level=' + that.getPathCopy().level + }); + }, 1500); + } else {// 其他异常 + if ($url == '/yishoudan/user/apply/order/V2/details') { - } else { - uni.showToast({ - title: resData.msg, - icon: "none" - }); - } + } else { + uni.showToast({ + title: resData.msg, + icon: "none" + }); + } - failback(resData.msg); + failback(resData.msg); + } + }, + fail (error) { + uni.showToast({ + // title: error.errMsg, + title: '系统异常,请稍后', + icon: "none" + }) + failback(error); + } + }); } }, - fail (error) { - uni.showToast({ - // title: error.errMsg, - title: '系统异常,请稍后', - icon: "none" - }) - failback(error); - } - }); + }) + }, // 头像上传