2025-08-11 11:51:38 +08:00
|
|
|
<script>
|
2025-08-13 10:51:01 +08:00
|
|
|
import http from '@/until/http.js';
|
|
|
|
|
export default {
|
|
|
|
|
onLaunch: function () {
|
2025-08-14 11:26:34 +08:00
|
|
|
// this.getInfo()
|
2025-08-13 10:51:01 +08:00
|
|
|
},
|
|
|
|
|
onHide: function () {
|
|
|
|
|
uni.removeStorageSync('Theme_Data')
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
async getInfo() {
|
|
|
|
|
http.get('/api/Theme/get_theme_data').then(response => {
|
|
|
|
|
const {
|
|
|
|
|
data,
|
|
|
|
|
code
|
|
|
|
|
} = response
|
|
|
|
|
if(code) {
|
|
|
|
|
if(data) {
|
|
|
|
|
uni.setStorageSync('Theme_Data',JSON.stringify(data))
|
|
|
|
|
} else {
|
|
|
|
|
uni.setStorageSync('Theme_Data','')
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}).catch(error => {
|
|
|
|
|
uni.setStorageSync('Theme_Data','')
|
|
|
|
|
});
|
2025-08-11 11:51:38 +08:00
|
|
|
},
|
|
|
|
|
}
|
2025-08-13 10:51:01 +08:00
|
|
|
}
|
2025-08-11 11:51:38 +08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss">
|
2025-08-13 10:51:01 +08:00
|
|
|
@import '@/static/public.css';
|
|
|
|
|
/*每个页面公共css */
|
|
|
|
|
@import '@/uni_modules/uni-scss/index.scss';
|
|
|
|
|
/* #ifndef APP-NVUE */
|
|
|
|
|
@import '@/static/customicons.css';
|
2025-08-11 11:51:38 +08:00
|
|
|
|
2025-08-13 10:51:01 +08:00
|
|
|
body {
|
|
|
|
|
background-color: transparent !important;
|
|
|
|
|
}
|
2025-08-11 11:51:38 +08:00
|
|
|
|
2025-08-13 10:51:01 +08:00
|
|
|
// 设置整个项目的背景色
|
|
|
|
|
page {
|
|
|
|
|
background-color: transparent !important;
|
|
|
|
|
font-family: Source Han Sans CN, Source Han Sans CN;
|
|
|
|
|
}
|
2025-08-11 11:51:38 +08:00
|
|
|
|
2025-08-13 10:51:01 +08:00
|
|
|
img {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
object-fit: cover;
|
|
|
|
|
}
|
2025-08-14 11:26:34 +08:00
|
|
|
// 定制
|
|
|
|
|
:root {
|
|
|
|
|
--primary-color: #6C49E4;
|
|
|
|
|
--sub-color: #F0EEF7;
|
|
|
|
|
--subs-color: #6C49E4;
|
|
|
|
|
--subss-color: #DEB52E;
|
|
|
|
|
--warn-color:#F69627;
|
|
|
|
|
--font-button-color:#fff;
|
|
|
|
|
--font-button-size:24rpx;
|
|
|
|
|
}
|
2025-08-11 11:51:38 +08:00
|
|
|
</style>
|