New Huajishe Check ChaoXing

This commit is contained in:
e2hang
2025-10-01 10:01:52 +08:00
parent 240b884eac
commit 80be8ae3cf
1094 changed files with 61709 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
import { appBaseInfo } from '../common/utils';
const themeChangeBehavior = Behavior({
data: {
theme: 'light',
},
attached() {
this._initTheme();
},
methods: {
_initTheme() {
const that = this;
that.setData({
theme: appBaseInfo.theme,
});
wx.onThemeChange((res) => {
that.setData({
theme: res.theme,
});
});
},
},
});
export default themeChangeBehavior;