From b965aa5a6f95e3fa3bbf6c4861cef9090afc54d7 Mon Sep 17 00:00:00 2001 From: jscyl13849007907 <13849007907@163.com> Date: Tue, 9 Jun 2026 15:10:06 +0800 Subject: [PATCH] no message --- App.vue | 9 +- components/custom-tabbar/custom-tabbar.vue | 167 +++++++++++++++++++++ components/custom-tabs.vue | 17 ++- components/list/apply.vue | 4 + components/list/applyPage.vue | 6 +- components/list/job.vue | 4 +- components/list/jobChild/info.vue | 7 +- components/list/order/info.vue | 5 + components/list/order/top.vue | 3 + components/panel/infoCard.vue | 5 + .../components/primewind-sliderrange/index.vue | 4 +- manifest.json | 2 +- pages.json | 29 ++-- pages/apply/index.vue | 16 +- pages/home/index.vue | 43 +++--- pages/message/index.vue | 16 +- pages/order/index.vue | 16 +- pages/person/index.vue | 13 +- root/bind/applyForm.vue | 1 + root/bind/fensi.vue | 1 + root/bind/inviteList.vue | 1 + root/bind/order.vue | 1 + root/chat/index.vue | 1 + root/detail/applyTob.vue | 1 + root/detail/applyToc.vue | 1 + root/detail/components/record.vue | 2 +- root/detail/job.vue | 1 + root/home/jobForm.vue | 1 + root/home/quickApplication.vue | 1 + root/login/index.vue | 1 + root/merchantManagement/bell.vue | 5 + root/merchantManagement/dynamicNotice.vue | 3 + root/merchantManagement/inviteFollowSuccess.vue | 1 + root/merchantManagement/jobForm.vue | 9 +- root/merchantManagement/merchantManagement.vue | 1 + root/merchantManagement/setOption.vue | 1 + root/merchantManagement/todayData.vue | 1 + root/other/channelPage.vue | 2 +- root/person/config.vue | 2 + root/person/downpage.vue | 1 + root/person/info.vue | 7 +- root/person/loginIndex.vue | 1 + uni_modules/rh-ui/components/rh-apply/rh-apply.vue | 3 + .../rh-ui/components/rh-button/rh-button.vue | 19 ++- 44 files changed, 365 insertions(+), 70 deletions(-) create mode 100644 components/custom-tabbar/custom-tabbar.vue diff --git a/App.vue b/App.vue index d3b18fd..92c33e5 100644 --- a/App.vue +++ b/App.vue @@ -22,11 +22,11 @@ export default { // themeColor: "#00B666", // themeBackgroundColor: "#00B66621", - themeColor: "#fea702", - themeBackgroundColor: "#fea70221", + // themeColor: "#fea702", + // themeBackgroundColor: "#fea70221", - // themeColor: "#2FC67D", - // themeBackgroundColor: "#2FC67D21", + themeColor: "#2FC67D", + themeBackgroundColor: "#2FC67D21", logo: "", // #ifdef MP-WEIXIN @@ -525,6 +525,7 @@ export default { uni-page-body { height: 100%; + background-color: #ededed; } uni-page-body > uni-view { diff --git a/components/custom-tabbar/custom-tabbar.vue b/components/custom-tabbar/custom-tabbar.vue new file mode 100644 index 0000000..0ebac04 --- /dev/null +++ b/components/custom-tabbar/custom-tabbar.vue @@ -0,0 +1,167 @@ + + + + + diff --git a/components/custom-tabs.vue b/components/custom-tabs.vue index e0f7f12..f9721ea 100644 --- a/components/custom-tabs.vue +++ b/components/custom-tabs.vue @@ -27,9 +27,20 @@ export default { }, data() { return { - targetScrollId: `tab-${this.current}`, // 核心变量:控制scroll-into-view的目标id + targetScrollId: `tab-${this.current}`, + currentActiveColor: this.activeColor || getApp().globalData.themeColor, }; }, + created() { + uni.$on('themeChanged', (color) => { + if (!this.activeColor || this.activeColor === this.currentActiveColor) { + this.currentActiveColor = color; + } + }); + }, + beforeDestroy() { + uni.$off('themeChanged'); + }, computed: { activeIndex() { return this.current; @@ -82,13 +93,13 @@ export default { fontWeight: 400, transition: "all 0.2s ease", }; - return this.activeIndex === index ? { ...baseStyle, color: this.activeColor, fontWeight: this.activeFontWeight } : { ...baseStyle, color: this.normalColor }; + return this.activeIndex === index ? { ...baseStyle, color: this.currentActiveColor, fontWeight: this.activeFontWeight } : { ...baseStyle, color: this.normalColor }; }, // 动态生成active底部横条样式 getActiveLineStyle() { return { - backgroundColor: this.activeColor, + backgroundColor: this.currentActiveColor, transition: "all 0.2s ease", }; }, diff --git a/components/list/apply.vue b/components/list/apply.vue index e015857..a628a11 100644 --- a/components/list/apply.vue +++ b/components/list/apply.vue @@ -156,6 +156,10 @@ export default { // 侦听器 watch: {}, created() { + let that = this; + uni.$on('themeChanged', (color) => { + that.themeColor = color; + }); this.tabbarHeight = uni.getStorageSync("TABBAR_HEIGHT"); // console.log("this.tabbarHeight", this.tabbarHeight); }, diff --git a/components/list/applyPage.vue b/components/list/applyPage.vue index 6ac895b..f76a1bf 100644 --- a/components/list/applyPage.vue +++ b/components/list/applyPage.vue @@ -14,7 +14,7 @@ - + @@ -218,7 +218,9 @@ export default { }, created() { let that = this; - // console.log(4567456456); + uni.$on('themeChanged', (color) => { + that.activeColor = color; + }); // 导航栏高度信息 that.navInfo = that.G.getNavInfo(); if (uni.getStorageSync("apply-supplierAccount") == 1) { diff --git a/components/list/job.vue b/components/list/job.vue index 3df123b..ce4fa4a 100644 --- a/components/list/job.vue +++ b/components/list/job.vue @@ -300,7 +300,9 @@ export default { }, created() { let that = this; - // console.log("this.G", this.G); + uni.$on('themeChanged', (color) => { + that.themeColor = color; + }); that.defaultLogo = uni.getStorageSync("miniApp-info").logo; this.jobArray = this.list; if (uni.getStorageSync("apply-token")) { diff --git a/components/list/jobChild/info.vue b/components/list/jobChild/info.vue index 1970a0b..1102bd0 100644 --- a/components/list/jobChild/info.vue +++ b/components/list/jobChild/info.vue @@ -38,9 +38,14 @@ export default { themeColor: getApp().globalData.themeColor, isAdmin: uni.getStorageSync("IS_MINIAPP_ADMIN"), isMember: uni.getStorageSync("IS_MINIAPP_MEMBER"), - hasPermission: uni.getStorageSync("HAS_PERMISSION") == 1 ? true : false, // 登陆者是否有权限查看 + hasPermission: uni.getStorageSync("HAS_PERMISSION") == 1 ? true : false, }; }, + created() { + uni.$on('themeChanged', (color) => { + this.themeColor = color; + }); + }, props: { item: { type: Object, diff --git a/components/list/order/info.vue b/components/list/order/info.vue index 889d84a..46c94f7 100644 --- a/components/list/order/info.vue +++ b/components/list/order/info.vue @@ -37,6 +37,11 @@ export default { themeColor: getApp().globalData.themeColor, }; }, + created() { + uni.$on('themeChanged', (color) => { + this.themeColor = color; + }); + }, props: { item: { type: Object, diff --git a/components/list/order/top.vue b/components/list/order/top.vue index 29b687a..2691a71 100644 --- a/components/list/order/top.vue +++ b/components/list/order/top.vue @@ -139,6 +139,9 @@ export default { }, }, mounted() { + uni.$on('themeChanged', (color) => { + this.themeColor = color; + }); this.info = this.item; this.corpUserFlag = uni.getStorageSync("apply-userinfo").corpUserFlag; // console.log(uni.getStorageSync("apply-userinfo").corpUserFlag); diff --git a/components/panel/infoCard.vue b/components/panel/infoCard.vue index 95b5744..72b4c61 100644 --- a/components/panel/infoCard.vue +++ b/components/panel/infoCard.vue @@ -92,6 +92,11 @@ export default { themeColor: getApp().globalData.themeColor, }; }, + created() { + uni.$on('themeChanged', (color) => { + this.themeColor = color; + }); + }, props: { info: { type: Object, diff --git a/components/primewind-sliderrange/components/primewind-sliderrange/index.vue b/components/primewind-sliderrange/components/primewind-sliderrange/index.vue index a1590d8..d364775 100644 --- a/components/primewind-sliderrange/components/primewind-sliderrange/index.vue +++ b/components/primewind-sliderrange/components/primewind-sliderrange/index.vue @@ -63,7 +63,9 @@ export default { }, }, mounted() { - // 初始化获取轨道信息 + uni.$on('themeChanged', (color) => { + this.themeColor = color; + }); this.$nextTick(() => { this.getTrackInfo().then(() => { this.calcHandlePosition(); diff --git a/manifest.json b/manifest.json index df30c27..66f1af8 100644 --- a/manifest.json +++ b/manifest.json @@ -137,7 +137,7 @@ "quickapp" : {}, /* 小程序特有相关 */ "mp-weixin" : { - "appid" : "wx15bc9c758f4eb129", + "appid" : "wxfab5320942daaafa", "setting" : { "urlCheck" : false, "es6" : true, diff --git a/pages.json b/pages.json index 11a55f8..9477ea8 100644 --- a/pages.json +++ b/pages.json @@ -11,7 +11,8 @@ "backgroundColorTop": "#ededed", "backgroundColorBottom": "#ededed", "navigationBarTextStyle": "black", - "navigationStyle": "custom" + "navigationStyle": "custom", + "animationType": "none" } }, { @@ -39,7 +40,8 @@ "navigationBarTitleText": "消息", "backgroundColor": "#ededed", "backgroundColorTop": "#ededed", - "backgroundColorBottom": "#ededed" + "backgroundColorBottom": "#ededed", + "animationType": "none" } }, { @@ -48,7 +50,8 @@ "navigationBarTitleText": "我的", "backgroundColor": "#ededed", "backgroundColorTop": "#ededed", - "backgroundColorBottom": "#ededed" + "backgroundColorBottom": "#ededed", + "animationType": "none" } }, { @@ -57,7 +60,8 @@ "navigationBarTitleText": "报名", "backgroundColor": "#ededed", "backgroundColorTop": "#ededed", - "backgroundColorBottom": "#ededed" + "backgroundColorBottom": "#ededed", + "animationType": "none" } }, { @@ -66,7 +70,8 @@ "navigationBarTitleText": "工单", "backgroundColor": "#ededed", "backgroundColorTop": "#ededed", - "backgroundColorBottom": "#ededed" + "backgroundColorBottom": "#ededed", + "animationType": "none" } }, { @@ -854,38 +859,38 @@ "uniIdRouter": {}, "tabBar": { "color": "#606266", - "selectedColor": "#fea702", + "selectedColor": "#2FC67D", "borderStyle": "black", "backgroundColor": "#ffffff", - // "custom": true, + "custom": true, "list": [ { "iconPath": "static/image/tabbar/home.png", - "selectedIconPath": "static/image/tabbar/home_yellow.png", + "selectedIconPath": "static/image/tabbar/home_green.png", "pagePath": "pages/home/index", "text": "首页" }, { "iconPath": "static/image/tabbar/message.png", - "selectedIconPath": "static/image/tabbar/message_yellow.png", + "selectedIconPath": "static/image/tabbar/message_green.png", "pagePath": "pages/message/index", "text": "消息" }, { "iconPath": "static/image/tabbar/plus-square.png", - "selectedIconPath": "static/image/tabbar/plus-square_yellow.png", + "selectedIconPath": "static/image/tabbar/plus-square_green.png", "pagePath": "pages/apply/index", "text": "报名" }, { "iconPath": "static/image/tabbar/order.png", - "selectedIconPath": "static/image/tabbar/order_yellow.png", + "selectedIconPath": "static/image/tabbar/order_green.png", "pagePath": "pages/order/index", "text": "工单" }, { "iconPath": "static/image/tabbar/user.png", - "selectedIconPath": "static/image/tabbar/user_yellow.png", + "selectedIconPath": "static/image/tabbar/user_green.png", "pagePath": "pages/person/index", "text": "我的" } diff --git a/pages/apply/index.vue b/pages/apply/index.vue index 3bea3bb..48c1c3b 100644 --- a/pages/apply/index.vue +++ b/pages/apply/index.vue @@ -1,12 +1,13 @@ - + diff --git a/pages/home/index.vue b/pages/home/index.vue index 644257c..6924ef3 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -1,6 +1,6 @@