no message

cyl/job_im_cus
jscyl13849007907 3 weeks ago
parent f017ef26f5
commit b965aa5a6f

@ -22,11 +22,11 @@ export default {
// themeColor: "#00B666", // themeColor: "#00B666",
// themeBackgroundColor: "#00B66621", // themeBackgroundColor: "#00B66621",
themeColor: "#fea702", // themeColor: "#fea702",
themeBackgroundColor: "#fea70221", // themeBackgroundColor: "#fea70221",
// themeColor: "#2FC67D", themeColor: "#2FC67D",
// themeBackgroundColor: "#2FC67D21", themeBackgroundColor: "#2FC67D21",
logo: "", logo: "",
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
@ -525,6 +525,7 @@ export default {
uni-page-body { uni-page-body {
height: 100%; height: 100%;
background-color: #ededed;
} }
uni-page-body > uni-view { uni-page-body > uni-view {

@ -0,0 +1,167 @@
<template>
<view class="custom-tabbar">
<view class="custom-tabbar__content">
<view
v-for="(item, index) in tabList"
:key="index"
class="custom-tabbar__item"
@tap="switchTab(index)"
>
<view class="custom-tabbar__icon">
<text
class="iconfont"
:class="item.icon"
:style="{
fontSize: '24px',
color: currentIndex === index ? activeColor : inactiveColor
}"
></text>
</view>
<text
class="custom-tabbar__text"
:style="{
color: currentIndex === index ? activeColor : inactiveColor
}"
>{{ item.text }}</text>
</view>
</view>
<view class="custom-tabbar__safe-area"></view>
</view>
</template>
<script>
export default {
name: 'CustomTabbar',
props: {
current: {
type: Number,
default: -1
}
},
data() {
return {
currentIndex: 0,
activeColor: getApp().globalData.themeColor || '#2FC67D',
inactiveColor: '#606266',
watcherTimer: null,
tabList: [
{
icon: 'icon-home',
text: '首页',
pagePath: '/pages/home/index'
},
{
icon: 'icon-message',
text: '消息',
pagePath: '/pages/message/index'
},
{
icon: 'icon-plus-square',
text: '报名',
pagePath: '/pages/apply/index'
},
{
icon: 'icon-filesearch',
text: '工单',
pagePath: '/pages/order/index'
},
{
icon: 'icon-user',
text: '我的',
pagePath: '/pages/person/index'
}
]
}
},
created() {
uni.hideTabBar({
animation: false
})
this.startWatchers()
},
methods: {
startWatchers() {
this.watcherTimer = setInterval(() => {
const newColor = getApp().globalData.themeColor
if (newColor && newColor !== this.activeColor) {
this.activeColor = newColor
}
if (this.current >= 0 && this.currentIndex !== this.current) {
this.currentIndex = this.current
}
}, 500)
},
switchTab(index) {
if (this.currentIndex === index) return
uni.switchTab({
url: this.tabList[index].pagePath,
animationType: 'none'
})
}
},
beforeDestroy() {
if (this.watcherTimer) {
clearInterval(this.watcherTimer)
}
},
watch: {
current: {
immediate: true,
handler(newVal) {
if (newVal >= 0) {
this.currentIndex = newVal
}
}
}
}
}
</script>
<style lang="scss" scoped>
.custom-tabbar {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
z-index: 999;
background-color: #ffffff;
border-top: 1rpx solid #e5e5e5;
&__content {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-around;
height: 50px;
}
&__item {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
flex: 1;
height: 100%;
}
&__icon {
display: flex;
align-items: center;
justify-content: center;
height: 28px;
}
&__text {
font-size: 10px;
line-height: 14px;
margin-top: 2px;
}
&__safe-area {
padding-bottom: constant(safe-area-inset-bottom);
padding-bottom: env(safe-area-inset-bottom);
}
}
</style>

@ -27,9 +27,20 @@ export default {
}, },
data() { data() {
return { return {
targetScrollId: `tab-${this.current}`, // scroll-into-viewid 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: { computed: {
activeIndex() { activeIndex() {
return this.current; return this.current;
@ -82,13 +93,13 @@ export default {
fontWeight: 400, fontWeight: 400,
transition: "all 0.2s ease", 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 // active
getActiveLineStyle() { getActiveLineStyle() {
return { return {
backgroundColor: this.activeColor, backgroundColor: this.currentActiveColor,
transition: "all 0.2s ease", transition: "all 0.2s ease",
}; };
}, },

@ -156,6 +156,10 @@ export default {
// //
watch: {}, watch: {},
created() { created() {
let that = this;
uni.$on('themeChanged', (color) => {
that.themeColor = color;
});
this.tabbarHeight = uni.getStorageSync("TABBAR_HEIGHT"); this.tabbarHeight = uni.getStorageSync("TABBAR_HEIGHT");
// console.log("this.tabbarHeight", this.tabbarHeight); // console.log("this.tabbarHeight", this.tabbarHeight);
}, },

@ -14,7 +14,7 @@
<!-- #ifdef APP-PLUS || H5 || MP-KUAISHOU || MP-WEIXIN --> <!-- #ifdef APP-PLUS || H5 || MP-KUAISHOU || MP-WEIXIN -->
<!-- <view class="" style="height: calc(58px + 48px)" v-if="from != 'chat'"></view> --> <!-- <view class="" style="height: calc(58px + 48px)" v-if="from != 'chat'"></view> -->
<!-- #endif --> <!-- #endif -->
<scroll-view class="m-list" :style="{ height: from != 'chat' ? `calc(100vh - ${0}px)` : `calc(95vh )` }" :scroll-y="true" @scrolltolower="reachBottom"> <scroll-view class="m-list" :style="{ height: from != 'chat' ? `calc(100vh - 50px - env(safe-area-inset-bottom))` : `calc(95vh )` }" :scroll-y="true" @scrolltolower="reachBottom">
<!-- <view class=""> --> <!-- <view class=""> -->
<view> <view>
<view :class="[from ? 'sticky' : '']" v-if="isLogin"> <view :class="[from ? 'sticky' : '']" v-if="isLogin">
@ -218,7 +218,9 @@ export default {
}, },
created() { created() {
let that = this; let that = this;
// console.log(4567456456); uni.$on('themeChanged', (color) => {
that.activeColor = color;
});
// //
that.navInfo = that.G.getNavInfo(); that.navInfo = that.G.getNavInfo();
if (uni.getStorageSync("apply-supplierAccount") == 1) { if (uni.getStorageSync("apply-supplierAccount") == 1) {

@ -300,7 +300,9 @@ export default {
}, },
created() { created() {
let that = this; let that = this;
// console.log("this.G", this.G); uni.$on('themeChanged', (color) => {
that.themeColor = color;
});
that.defaultLogo = uni.getStorageSync("miniApp-info").logo; that.defaultLogo = uni.getStorageSync("miniApp-info").logo;
this.jobArray = this.list; this.jobArray = this.list;
if (uni.getStorageSync("apply-token")) { if (uni.getStorageSync("apply-token")) {

@ -38,9 +38,14 @@ export default {
themeColor: getApp().globalData.themeColor, themeColor: getApp().globalData.themeColor,
isAdmin: uni.getStorageSync("IS_MINIAPP_ADMIN"), isAdmin: uni.getStorageSync("IS_MINIAPP_ADMIN"),
isMember: uni.getStorageSync("IS_MINIAPP_MEMBER"), 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: { props: {
item: { item: {
type: Object, type: Object,

@ -37,6 +37,11 @@ export default {
themeColor: getApp().globalData.themeColor, themeColor: getApp().globalData.themeColor,
}; };
}, },
created() {
uni.$on('themeChanged', (color) => {
this.themeColor = color;
});
},
props: { props: {
item: { item: {
type: Object, type: Object,

@ -139,6 +139,9 @@ export default {
}, },
}, },
mounted() { mounted() {
uni.$on('themeChanged', (color) => {
this.themeColor = color;
});
this.info = this.item; this.info = this.item;
this.corpUserFlag = uni.getStorageSync("apply-userinfo").corpUserFlag; this.corpUserFlag = uni.getStorageSync("apply-userinfo").corpUserFlag;
// console.log(uni.getStorageSync("apply-userinfo").corpUserFlag); // console.log(uni.getStorageSync("apply-userinfo").corpUserFlag);

@ -92,6 +92,11 @@ export default {
themeColor: getApp().globalData.themeColor, themeColor: getApp().globalData.themeColor,
}; };
}, },
created() {
uni.$on('themeChanged', (color) => {
this.themeColor = color;
});
},
props: { props: {
info: { info: {
type: Object, type: Object,

@ -63,7 +63,9 @@ export default {
}, },
}, },
mounted() { mounted() {
// uni.$on('themeChanged', (color) => {
this.themeColor = color;
});
this.$nextTick(() => { this.$nextTick(() => {
this.getTrackInfo().then(() => { this.getTrackInfo().then(() => {
this.calcHandlePosition(); this.calcHandlePosition();

@ -137,7 +137,7 @@
"quickapp" : {}, "quickapp" : {},
/* */ /* */
"mp-weixin" : { "mp-weixin" : {
"appid" : "wx15bc9c758f4eb129", "appid" : "wxfab5320942daaafa",
"setting" : { "setting" : {
"urlCheck" : false, "urlCheck" : false,
"es6" : true, "es6" : true,

@ -11,7 +11,8 @@
"backgroundColorTop": "#ededed", "backgroundColorTop": "#ededed",
"backgroundColorBottom": "#ededed", "backgroundColorBottom": "#ededed",
"navigationBarTextStyle": "black", "navigationBarTextStyle": "black",
"navigationStyle": "custom" "navigationStyle": "custom",
"animationType": "none"
} }
}, },
{ {
@ -39,7 +40,8 @@
"navigationBarTitleText": "消息", "navigationBarTitleText": "消息",
"backgroundColor": "#ededed", "backgroundColor": "#ededed",
"backgroundColorTop": "#ededed", "backgroundColorTop": "#ededed",
"backgroundColorBottom": "#ededed" "backgroundColorBottom": "#ededed",
"animationType": "none"
} }
}, },
{ {
@ -48,7 +50,8 @@
"navigationBarTitleText": "我的", "navigationBarTitleText": "我的",
"backgroundColor": "#ededed", "backgroundColor": "#ededed",
"backgroundColorTop": "#ededed", "backgroundColorTop": "#ededed",
"backgroundColorBottom": "#ededed" "backgroundColorBottom": "#ededed",
"animationType": "none"
} }
}, },
{ {
@ -57,7 +60,8 @@
"navigationBarTitleText": "报名", "navigationBarTitleText": "报名",
"backgroundColor": "#ededed", "backgroundColor": "#ededed",
"backgroundColorTop": "#ededed", "backgroundColorTop": "#ededed",
"backgroundColorBottom": "#ededed" "backgroundColorBottom": "#ededed",
"animationType": "none"
} }
}, },
{ {
@ -66,7 +70,8 @@
"navigationBarTitleText": "工单", "navigationBarTitleText": "工单",
"backgroundColor": "#ededed", "backgroundColor": "#ededed",
"backgroundColorTop": "#ededed", "backgroundColorTop": "#ededed",
"backgroundColorBottom": "#ededed" "backgroundColorBottom": "#ededed",
"animationType": "none"
} }
}, },
{ {
@ -854,38 +859,38 @@
"uniIdRouter": {}, "uniIdRouter": {},
"tabBar": { "tabBar": {
"color": "#606266", "color": "#606266",
"selectedColor": "#fea702", "selectedColor": "#2FC67D",
"borderStyle": "black", "borderStyle": "black",
"backgroundColor": "#ffffff", "backgroundColor": "#ffffff",
// "custom": true, "custom": true,
"list": [ "list": [
{ {
"iconPath": "static/image/tabbar/home.png", "iconPath": "static/image/tabbar/home.png",
"selectedIconPath": "static/image/tabbar/home_yellow.png", "selectedIconPath": "static/image/tabbar/home_green.png",
"pagePath": "pages/home/index", "pagePath": "pages/home/index",
"text": "首页" "text": "首页"
}, },
{ {
"iconPath": "static/image/tabbar/message.png", "iconPath": "static/image/tabbar/message.png",
"selectedIconPath": "static/image/tabbar/message_yellow.png", "selectedIconPath": "static/image/tabbar/message_green.png",
"pagePath": "pages/message/index", "pagePath": "pages/message/index",
"text": "消息" "text": "消息"
}, },
{ {
"iconPath": "static/image/tabbar/plus-square.png", "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", "pagePath": "pages/apply/index",
"text": "报名" "text": "报名"
}, },
{ {
"iconPath": "static/image/tabbar/order.png", "iconPath": "static/image/tabbar/order.png",
"selectedIconPath": "static/image/tabbar/order_yellow.png", "selectedIconPath": "static/image/tabbar/order_green.png",
"pagePath": "pages/order/index", "pagePath": "pages/order/index",
"text": "工单" "text": "工单"
}, },
{ {
"iconPath": "static/image/tabbar/user.png", "iconPath": "static/image/tabbar/user.png",
"selectedIconPath": "static/image/tabbar/user_yellow.png", "selectedIconPath": "static/image/tabbar/user_green.png",
"pagePath": "pages/person/index", "pagePath": "pages/person/index",
"text": "我的" "text": "我的"
} }

@ -1,12 +1,13 @@
<template> <template>
<view v-if="!isLogin" class="m-log g_flex_column_start g_bg_page"> <view v-if="!isLogin" class="m-log g_flex_column_start g_bg_page" style="padding-bottom: calc(50px + env(safe-area-inset-bottom)); min-height: 100vh; opacity: 0; animation: fadeIn 0.2s ease forwards;">
<view> <view>
<rh-login-false-list loginUrl="/root/login/index" /> <rh-login-false-list loginUrl="/root/login/index" />
</view> </view>
</view> </view>
<view class="p-root-home-quick g_w_all g_bg_f_5 g_kuaishou" v-else> <view class="p-root-home-quick g_w_all g_bg_f_5 g_kuaishou" v-else style="padding-bottom: calc(50px + env(safe-area-inset-bottom)); min-height: 100vh; opacity: 0; animation: fadeIn 0.2s ease forwards;">
<rh-apply useform="pages"></rh-apply> <rh-apply useform="pages"></rh-apply>
</view> </view>
<custom-tabbar :current="2" />
</template> </template>
<script> <script>
export default { export default {
@ -41,4 +42,13 @@ export default {
}; };
</script> </script>
<style lang="scss"></style> <style lang="scss">
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
</style>

@ -1,6 +1,6 @@
<template> <template>
<!-- :style="{ minHeight: `calc(100vh - ${navbarHeight}px)` }" --> <!-- :style="{ minHeight: `calc(100vh - ${navbarHeight}px)` }" -->
<view class="p-home-inedx g_w_all g_kuaishou" :class="computeCode == -1 ? 'g_flex_column_center' : ''" :style="{ minHeight: `calc(100vh)` }"> <view class="p-home-inedx g_w_all g_kuaishou" :class="computeCode == -1 ? 'g_flex_column_center' : ''" :style="{ minHeight: `calc(100vh)`, paddingBottom: 'calc(50px + env(safe-area-inset-bottom))', backgroundColor: '#ededed', opacity: 0, animation: 'fadeIn 0.2s ease forwards' }">
<div class="navContainer" :style="computeCode == -1 ? { backgroundColor: '#ededed' } : { backgroundImage: `linear-gradient(to bottom, ${themeColor}, ${themeColorRgba(0.98)})` }"> <div class="navContainer" :style="computeCode == -1 ? { backgroundColor: '#ededed' } : { backgroundImage: `linear-gradient(to bottom, ${themeColor}, ${themeColorRgba(0.98)})` }">
<u-navbar :is-back="false" :is-fixed="true" :borderBottom="false" background="transparent" :title-bold="false"> <u-navbar :is-back="false" :is-fixed="true" :borderBottom="false" background="transparent" :title-bold="false">
<view class="g_flex_row_start flex_center g_fs_20 g_pl_12"> <view class="g_flex_row_start flex_center g_fs_20 g_pl_12">
@ -38,7 +38,7 @@
<u-search height="80" v-model="keyword" class="g_flex_1" placeholder="搜索职位名称" bg-color="#fff" :show-action="false" placeholder-class="g_c_c" search-icon-color="#999999" :maxlength="20" @clear="getSearch" @search="getSearch"></u-search> <u-search height="80" v-model="keyword" class="g_flex_1" placeholder="搜索职位名称" bg-color="#fff" :show-action="false" placeholder-class="g_c_c" search-icon-color="#999999" :maxlength="20" @clear="getSearch" @search="getSearch"></u-search>
</view> </view>
</view> </view>
<scroll-view class="m-list" id="listBox" :scroll-into-view="scrollTo" refresher-default-style="none" refresher-background="#ededed" :refresher-enabled="true" :refresher-triggered="isTrigger" @refresherrefresh="refreshJobList" :style="{ height: `calc(100vh - ${navbarHeight + 40}px)` }" :scroll-y="true" @scrolltolower="reachBottom" @scroll="checkScroll"> <scroll-view class="m-list" id="listBox" :scroll-into-view="scrollTo" refresher-default-style="none" refresher-background="#ededed" :refresher-enabled="true" :refresher-triggered="isTrigger" @refresherrefresh="refreshJobList" :style="{ height: `calc(100vh - ${navbarHeight + 40}px - 50px - env(safe-area-inset-bottom))` }" :scroll-y="true" @scrolltolower="reachBottom" @scroll="checkScroll">
<div> <div>
<div class="g_text_c g_c_c g_fs_12" style="width: 100vw; position: absolute; top: -32px; z-index: 9999999">{{ "最近更新" + (jobNum || "-") + "条信息" }}</div> <div class="g_text_c g_c_c g_fs_12" style="width: 100vw; position: absolute; top: -32px; z-index: 9999999">{{ "最近更新" + (jobNum || "-") + "条信息" }}</div>
<!-- <div class="g_h_10"></div> --> <!-- <div class="g_h_10"></div> -->
@ -159,7 +159,7 @@
:hrtext="hrtext" :hrtext="hrtext"
:isshowskit="isshowskit" :isshowskit="isshowskit"
:pt="tabInfo.active == 0 ? 0 : 120" :pt="tabInfo.active == 0 ? 0 : 120"
style="padding-bottom: 120px" style="padding-bottom: 10px"
from="home" from="home"
class="g_h_all" class="g_h_all"
:list="query.list" :list="query.list"
@ -187,7 +187,7 @@
<div>分享</div> <div>分享</div>
</div> --> </div> -->
</view> </view>
<!-- <g-tabbar class="tabbar" :isShow="tabbarShow"></g-tabbar> --> <custom-tabbar :current="0" />
</template> </template>
<script> <script>
@ -1648,4 +1648,13 @@ export default {
opacity: 1; opacity: 1;
} }
} }
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
</style> </style>

@ -1,7 +1,7 @@
<template> <template>
<div style="" class="g_bg_f_5"> <div style="box-sizing: border-box; padding-bottom: calc(50px + env(safe-area-inset-bottom)); min-height: 100vh; background-color: #ededed; opacity: 0; animation: fadeIn 0.2s ease forwards;" class="g_bg_f_5">
<view class="" v-if="isLogin && is_use_im == 1"> <view class="" v-if="isLogin && is_use_im == 1">
<scroll-view @scroll="getScrollInfo" :scroll-top="resetScroll" style="height: 100vh" :scroll-y="true"> <scroll-view @scroll="getScrollInfo" :scroll-top="resetScroll" style="height: calc(100vh - 50px - env(safe-area-inset-bottom))" :scroll-y="true">
<view class="" v-if="is_use_im == 1"> <view class="" v-if="is_use_im == 1">
<div style="height: 10px" v-if="isJm"></div> <div style="height: 10px" v-if="isJm"></div>
<view class="" v-show="isLogin ? current == 0 : current == 1"> <view class="" v-show="isLogin ? current == 0 : current == 1">
@ -27,7 +27,7 @@
</view> </view>
</scroll-view> </scroll-view>
</view> </view>
<view class="" v-if="!isLogin" style="height: 100vh"> <view class="" v-if="!isLogin" style="height: calc(100vh - 50px - env(safe-area-inset-bottom))">
<rh-login-false-list /> <rh-login-false-list />
</view> </view>
<rh-serverpopup <rh-serverpopup
@ -50,6 +50,7 @@
<!-- </template> --> <!-- </template> -->
</view> </view>
<u-skeleton :loading="firstLoad" :animation="true" el-color="#ededed" bg-color="#fff"></u-skeleton> <u-skeleton :loading="firstLoad" :animation="true" el-color="#ededed" bg-color="#fff"></u-skeleton>
<custom-tabbar :current="1" />
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
@ -215,4 +216,13 @@ const updateType = (e) => {
// border-bottom: none; // border-bottom: none;
// } // }
} }
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
</style> </style>

@ -1,5 +1,8 @@
<template> <template>
<view style="box-sizing: border-box; min-height: 100vh; background-color: #ededed; padding-bottom: calc(50px + env(safe-area-inset-bottom)); opacity: 0; animation: fadeIn 0.2s ease forwards;">
<gListApply :status="menuActive" :hasRequested.sync="hasRequested" :isLogin="isLogin"></gListApply> <gListApply :status="menuActive" :hasRequested.sync="hasRequested" :isLogin="isLogin"></gListApply>
<custom-tabbar :current="3" />
</view>
</template> </template>
<script> <script>
@ -127,7 +130,7 @@ export default {
}, },
], ],
menuList: [], menuList: [],
menuActive: -1, menuActive: 0,
isLogin: false, isLogin: false,
loginInfo: {}, loginInfo: {},
navInfo: {}, navInfo: {},
@ -571,4 +574,13 @@ export default {
left: 0; left: 0;
z-index: 100; z-index: 100;
} }
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
</style> </style>

@ -1,5 +1,5 @@
<template> <template>
<view class="p-person-inedx g_w_all g_bg_f_5 g_kuaishou" :style="{ minHeight: `calc(100vh - ${tabbarHeight}px)` }"> <view class="p-person-inedx g_w_all g_bg_f_5 g_kuaishou" :style="{ minHeight: `calc(100vh - ${tabbarHeight}px)`, paddingBottom: 'calc(50px + env(safe-area-inset-bottom))', backgroundColor: '#ededed', opacity: 0, animation: 'fadeIn 0.2s ease forwards' }">
<view class="g_h_10"></view> <view class="g_h_10"></view>
<!-- 基本信息 --> <!-- 基本信息 -->
<view style="" class=""> <view style="" class="">
@ -222,6 +222,7 @@
<canvas type="2d" style="position: absolute; left: -2000px; width: 425px; height: 350px; background: #fff" id="canvasId" ref="canvasId"></canvas> <canvas type="2d" style="position: absolute; left: -2000px; width: 425px; height: 350px; background: #fff" id="canvasId" ref="canvasId"></canvas>
</view> </view>
<!-- <g-tabbar class="tabbar" :isShow="tabbarShow"></g-tabbar> --> <!-- <g-tabbar class="tabbar" :isShow="tabbarShow"></g-tabbar> -->
<custom-tabbar :current="4" />
</template> </template>
<script> <script>
@ -337,6 +338,7 @@ export default {
onShow() { onShow() {
let that = this; let that = this;
that.demoModeEnabled = uni.getStorageSync("DEMO_MODE_ENABLED") || false; that.demoModeEnabled = uni.getStorageSync("DEMO_MODE_ENABLED") || false;
that.themeColor = getApp().globalData.themeColor;
if (uni.getStorageSync("apply-token")) { if (uni.getStorageSync("apply-token")) {
that.G.checkToken().then(() => { that.G.checkToken().then(() => {
that.agencyInfo = uni.getStorageSync("agencyInfo"); that.agencyInfo = uni.getStorageSync("agencyInfo");
@ -1076,4 +1078,13 @@ page {
} }
} }
} }
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
</style> </style>

@ -238,6 +238,7 @@ export default {
}, },
onShow() { onShow() {
let that = this; let that = this;
that.themeColor = getApp().globalData.themeColor;
if(that.foa != 1){ if(that.foa != 1){
that.init(); that.init();
}else{ }else{

@ -208,6 +208,7 @@ export default {
}, },
onShow() { onShow() {
let that = this; let that = this;
that.themeColor = getApp().globalData.themeColor;
that.isLogin = uni.getStorageSync("apply-token"); that.isLogin = uni.getStorageSync("apply-token");
that.query.page = 1; that.query.page = 1;
if (uni.getStorageSync("apply-token")) { if (uni.getStorageSync("apply-token")) {

@ -218,6 +218,7 @@ export default {
}, },
onShow() { onShow() {
let that = this; let that = this;
that.themeColor = getApp().globalData.themeColor;
that.isLogin = uni.getStorageSync("apply-token"); that.isLogin = uni.getStorageSync("apply-token");
uni.setStorageSync("watch_invite", 1); uni.setStorageSync("watch_invite", 1);
if (!that.isLogin) { if (!that.isLogin) {

@ -230,6 +230,7 @@ export default {
}, },
onShow() { onShow() {
let that = this let that = this
that.themeColor = getApp().globalData.themeColor
that.isLogin = uni.getStorageSync('apply-token') that.isLogin = uni.getStorageSync('apply-token')
if (uni.getStorageSync('watch_invite')) { if (uni.getStorageSync('watch_invite')) {
if (uni.getStorageSync('watch_invite') == 1) { if (uni.getStorageSync('watch_invite') == 1) {

@ -465,6 +465,7 @@
}, },
onShow() { onShow() {
let that = this; let that = this;
that.themeColor = getApp().globalData.themeColor;
that.G.Get(that.api.get_job_updateNum, {hour:48}, (resNum) => { that.G.Get(that.api.get_job_updateNum, {hour:48}, (resNum) => {
that.jobNus = resNum; that.jobNus = resNum;
that.isHidden = false; that.isHidden = false;

@ -517,6 +517,7 @@ export default {
}); });
}, },
onShow() { onShow() {
this.themeColor = getApp().globalData.themeColor;
this.isCreator = uni.getStorageSync("IS_CREATOR") == 1 ? true : false; this.isCreator = uni.getStorageSync("IS_CREATOR") == 1 ? true : false;
this.getResident(); this.getResident();
this.getPeople(); this.getPeople();

@ -398,6 +398,7 @@ export default {
}); });
}, },
onShow() { onShow() {
this.themeColor = getApp().globalData.themeColor;
this.isCreator = uni.getStorageSync("IS_CREATOR") == 1 ? true : false; this.isCreator = uni.getStorageSync("IS_CREATOR") == 1 ? true : false;
this.getPeople(); this.getPeople();
this.getDetail(); this.getDetail();

@ -95,7 +95,7 @@ export default {
this.isCreator = uni.getStorageSync("IS_CREATOR") == 1 ? true : false; this.isCreator = uni.getStorageSync("IS_CREATOR") == 1 ? true : false;
}, },
onShow() { onShow() {
console.log("onShow", this.item); this.themeColor = getApp().globalData.themeColor;
}, },
watch: { watch: {
item(val) { item(val) {

@ -808,6 +808,7 @@ export default {
}, },
onShow() { onShow() {
let that = this; let that = this;
this.themeColor = getApp().globalData.themeColor;
this.isLogin = uni.getStorageSync("apply-userinfo") ? true : false; this.isLogin = uni.getStorageSync("apply-userinfo") ? true : false;
this.IS_CREATOR = uni.getStorageSync("IS_CREATOR") == 1 ? true : false; this.IS_CREATOR = uni.getStorageSync("IS_CREATOR") == 1 ? true : false;
// console.log("this.IS_CREATOR", this.IS_CREATOR); // console.log("this.IS_CREATOR", this.IS_CREATOR);

@ -289,6 +289,7 @@ export default {
this.G.setNavStyle(); this.G.setNavStyle();
}, },
onShow() { onShow() {
this.themeColor = getApp().globalData.themeColor;
this.getResident(); this.getResident();
}, },
onShareAppMessage() { onShareAppMessage() {

@ -264,6 +264,7 @@ export default {
}, },
onShow() { onShow() {
let that = this; let that = this;
that.activeColor = getApp().globalData.themeColor;
that.pageSpeed = -1; that.pageSpeed = -1;
}, },
methods: { methods: {

@ -114,6 +114,7 @@ export default {
}, },
onShow() { onShow() {
let that = this; let that = this;
that.themeColor = getApp().globalData.themeColor;
utilsLogin.clearLocalStorage(); utilsLogin.clearLocalStorage();
that.initLogo(); that.initLogo();
}, },

@ -23,6 +23,11 @@ export default {
isSubmit:false, isSubmit:false,
}; };
}, },
created() {
uni.$on('themeChanged', (color) => {
this.primaryColor = color;
});
},
methods: { methods: {
changeNotice(e) { changeNotice(e) {
console.log(e); console.log(e);

@ -49,6 +49,9 @@ export default {
}, },
onLoad(options) { onLoad(options) {
let that = this; let that = this;
uni.$on('themeChanged', (color) => {
that.primaryColor = color;
});
console.log('动态公告',options) console.log('动态公告',options)
let appId = getApp().globalData.appId; let appId = getApp().globalData.appId;
if (appId == "wx581db3f39c49ed2b") { if (appId == "wx581db3f39c49ed2b") {

@ -51,6 +51,7 @@ export default {
}; };
}, },
onLoad(options) { onLoad(options) {
this.themeColor = getApp().globalData.themeColor;
console.log(options); console.log(options);
// this.getNum(); // this.getNum();
}, },

@ -649,7 +649,7 @@ import { onLoad, onShow, onHide } from "@dcloudio/uni-app";
// const G = "./utils/ajax.js"; // const G = "./utils/ajax.js";
const G = getCurrentInstance().appContext.app.config.globalProperties.G; const G = getCurrentInstance().appContext.app.config.globalProperties.G;
const api = getCurrentInstance().appContext.app.config.globalProperties.api; const api = getCurrentInstance().appContext.app.config.globalProperties.api;
const themeColor = getApp().globalData.themeColor; const themeColor = ref(getApp().globalData.themeColor);
let sseTest = ref(null); // sse let sseTest = ref(null); // sse
import { locationList } from "./utils/locationList"; import { locationList } from "./utils/locationList";
import color from "../../uni_modules/vk-uview-ui/libs/function/color"; import color from "../../uni_modules/vk-uview-ui/libs/function/color";
@ -1260,10 +1260,9 @@ onLoad((options) => {
} }
getAiToken(); getAiToken();
}); });
// onShow(() => { uni.$on('themeChanged', (color) => {
// console.log("onShow"); themeColor.value = color;
});
// });
const openCore = (respons) => { const openCore = (respons) => {
console.log("open sse", respons); console.log("open sse", respons);
}; };

@ -25,6 +25,7 @@ import resumeNew from "./child/resumeNew.vue";
export default { export default {
onLoad() {}, onLoad() {},
onShow() { onShow() {
this.themeColor = getApp().globalData.themeColor;
this.getResumeInfo(); this.getResumeInfo();
}, },
onMounted() { onMounted() {

@ -48,6 +48,7 @@
export default { export default {
onLoad(options) { onLoad(options) {
let that = this; let that = this;
that.themecolor = getApp().globalData.themeColor;
that.type = options.type; that.type = options.type;
that.value = Number(options.value); that.value = Number(options.value);
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({

@ -98,6 +98,7 @@ import dayjs from "dayjs";
// import moment from "moment"; // import moment from "moment";
export default { export default {
onLoad() { onLoad() {
this.themeColor = getApp().globalData.themeColor;
this.getGroupList(); this.getGroupList();
}, },
data() { data() {

@ -379,7 +379,7 @@ export default {
}, },
onShow() { onShow() {
let that = this; let that = this;
// console.log("=========", that); that.globalData.themeColor = getApp().globalData.themeColor;
that.loadSelectedCityFromCache(); that.loadSelectedCityFromCache();

@ -130,6 +130,7 @@ export default {
}); });
uni.setStorageSync("DEMO_MODE_ENABLED", true); uni.setStorageSync("DEMO_MODE_ENABLED", true);
getApp().globalData.themeColor = that.formData.themeColor; getApp().globalData.themeColor = that.formData.themeColor;
uni.$emit('themeChanged', that.formData.themeColor);
uni.showToast({ uni.showToast({
title: "保存成功", title: "保存成功",
icon: "success", icon: "success",
@ -147,6 +148,7 @@ export default {
demoConfig.enabled = false; demoConfig.enabled = false;
uni.setStorageSync("DEMO_MODE_CONFIG", demoConfig); uni.setStorageSync("DEMO_MODE_CONFIG", demoConfig);
getApp().globalData.themeColor = originalThemeColor; getApp().globalData.themeColor = originalThemeColor;
uni.$emit('themeChanged', originalThemeColor);
this.selectedColorIndex = -1; this.selectedColorIndex = -1;
this.themeColor = originalThemeColor; this.themeColor = originalThemeColor;
this.formData.themeColor = originalThemeColor; this.formData.themeColor = originalThemeColor;

@ -36,6 +36,7 @@ export default {
}, },
onShow(){ onShow(){
let that = this; let that = this;
that.themeColor = getApp().globalData.themeColor;
if (uni.getStorageSync("apply-token")) { if (uni.getStorageSync("apply-token")) {
this.G.checkToken().then(() => { this.G.checkToken().then(() => {

@ -94,12 +94,7 @@ export default {
}, },
onShow() { onShow() {
let that = this; let that = this;
// this.reset = false; this.themeColor = getApp().globalData.themeColor;
// console.log("this.reset", this.reset);
// setTimeout(() => {
// this.reset = true;
// }, 10);
console.log("this.reset", this.reset);
that.init(); that.init();
// that.getBocaiId(); // that.getBocaiId();
}, },

@ -114,6 +114,7 @@ export default {
}, },
onShow() { onShow() {
let that = this; let that = this;
that.primaryTheme = getApp().globalData.themeColor;
utilsLogin.clearLocalStorage(); utilsLogin.clearLocalStorage();
that.initLogo(); that.initLogo();
}, },

@ -137,6 +137,9 @@ export default {
}, },
mounted() { mounted() {
let that = this; let that = this;
uni.$on('themeChanged', (color) => {
that.activeColor = color;
});
let options = this.dataoptions; let options = this.dataoptions;
let params = options.params ? JSON.parse(options.params) : {}; let params = options.params ? JSON.parse(options.params) : {};
if (params.jobId) { if (params.jobId) {

@ -124,16 +124,21 @@ export default {
}, },
primaryColor: { primaryColor: {
default: () => { default: () => {
return getApp().globalData.themeColor; return "";
}, },
}, },
}, },
data() { data() {
return { return {
customLH: "40px", customLH: "40px",
currentThemeColor: getApp().globalData.themeColor,
}; };
}, },
mounted() { mounted() {
let that = this;
uni.$on('themeChanged', (color) => {
that.currentThemeColor = color;
});
const query = uni.createSelectorQuery().in(this); const query = uni.createSelectorQuery().in(this);
query query
.select(".bocai-btn") .select(".bocai-btn")
@ -153,23 +158,25 @@ export default {
.exec(); .exec();
}, },
computed: { computed: {
resolvedColor() {
return this.primaryColor || this.currentThemeColor;
},
buttonStyle() { buttonStyle() {
const baseStyle = { const baseStyle = {
// lineHeight: this.height - 2 + "px",
padding: 0, padding: 0,
color: this.color || "", color: this.color || "",
}; };
if (this.type === "primary") { if (this.type === "primary") {
const themeStyle = { const themeStyle = {
backgroundColor: this.primaryColor, backgroundColor: this.resolvedColor,
border: `1px solid ${this.primaryColor}`, border: `1px solid ${this.resolvedColor}`,
}; };
return { ...baseStyle, ...themeStyle }; return { ...baseStyle, ...themeStyle };
} else if (this.type === "default") { } else if (this.type === "default") {
const defaultStyle = { const defaultStyle = {
color: this.primaryColor, color: this.resolvedColor,
border: `1px solid ${this.primaryColor}`, border: `1px solid ${this.resolvedColor}`,
}; };
return { ...baseStyle, ...defaultStyle }; return { ...baseStyle, ...defaultStyle };
} else { } else {

Loading…
Cancel
Save