no message

cyl/job_im_cus
jscyl13849007907 3 weeks ago
parent b965aa5a6f
commit cf35134ba5

@ -19,7 +19,7 @@ export default {
list: { type: Array, default: () => [] },
noScroll: { type: Boolean, default: true },
current: { type: Number, default: 0 },
activeColor: { type: String, default: getApp().globalData.themeColor },
activeColor: { type: String, default: "" },
fontSize: { type: [String, Number], default: 32 },
activeFontWeight: { type: [String, Number], default: 600 },
normalColor: { type: String, default: "#333333" },
@ -33,7 +33,7 @@ export default {
},
created() {
uni.$on('themeChanged', (color) => {
if (!this.activeColor || this.activeColor === this.currentActiveColor) {
if (!this.activeColor) {
this.currentActiveColor = color;
}
});
@ -41,6 +41,13 @@ export default {
beforeDestroy() {
uni.$off('themeChanged');
},
watch: {
activeColor(newVal) {
if (newVal) {
this.currentActiveColor = newVal;
}
},
},
computed: {
activeIndex() {
return this.current;

@ -322,6 +322,7 @@
},
onShow() {
let that = this;
that.themeColor = getApp().globalData.themeColor;
uni.removeStorageSync("last_called_getCoziInfo");
// console.log('==============',this.G.store())
if (uni.getStorageSync("apply-token")) {

@ -201,6 +201,7 @@ export default {
* 生命周期函数--监听页面显示
*/
onShow() {
this.themeColor = getApp().globalData.themeColor;
var that = this;
// that.userinfo = uni.getStorageSync("apply-userinfo") || {};
that.getBannerList();

@ -199,7 +199,9 @@ export default {
/**
* 生命周期函数--监听页面显示
*/
onShow() {},
onShow() {
this.themeColor = getApp().globalData.themeColor;
},
/**
* 生命周期函数--监听页面隐藏
*/

@ -162,6 +162,11 @@
}
}
},
created(){
uni.$on('themeChanged', (color) => {
this.themeColor = color;
});
},
methods:{
handleUpdateMenu($item,$index){
let that = this;

@ -316,6 +316,7 @@ export default {
},
onShow() {
let that = this;
that.themeColor = getApp().globalData.themeColor;
let skipRefresh = uni.getStorageSync("HOME_SKIP_REFRESH");
if (skipRefresh) {
uni.removeStorageSync("HOME_SKIP_REFRESH");

@ -647,7 +647,7 @@ import { h, ref, onMounted, onBeforeMount, watch, getCurrentInstance, computed,
import { onLoad, onShow, onHide } from "@dcloudio/uni-app";
const G = getCurrentInstance().appContext.app.config.globalProperties.G;
const api = getCurrentInstance().appContext.app.config.globalProperties.api;
const themeColor = getApp().globalData.themeColor;
const themeColor = ref(getApp().globalData.themeColor);
let sseTest = ref(null); // sse
import { locationList } from "../../libs/utils/locationList.js";
import color from "../../libs/utils/color";
@ -1181,10 +1181,9 @@ onMounted(() => {
});
}
getAiToken();
getScrollViewScrollTop();
uni.$on('themeChanged', (color) => {
themeColor.value = color;
});
//
formInfo.value.returnFeeType = 0;

@ -277,6 +277,9 @@ export default {
},
created() {
let that = this;
uni.$on('themeChanged', (color) => {
that.themeColor = color;
});
that.defaultLogo = uni.getStorageSync("miniApp-info").logo;
this.jobArray = this.list;
},

@ -7,7 +7,7 @@
>
<view :class="paddingBottom">
<view class="g_flex_row_center">
<u-loading mode="circle" :size="size" :color="primaryColor"></u-loading>
<u-loading mode="circle" :size="size" :color="resolvedColor"></u-loading>
</view>
<view class="g_fs_14 g_c_9 g_flex_row_center g_mt_10" v-if="text != 'empty'">{{ text }}</view>
</view>
@ -52,10 +52,25 @@ export default {
},
primaryColor:{
default:()=>{
return getApp().globalData.themeColor || '#3578f6';
return "";
}
}
},
data() {
return {
currentThemeColor: getApp().globalData.themeColor || '#3578f6',
};
},
created() {
uni.$on('themeChanged', (color) => {
this.currentThemeColor = color || '#3578f6';
});
},
computed: {
resolvedColor() {
return this.primaryColor || this.currentThemeColor;
}
},
};
</script>

Loading…
Cancel
Save