2025-08-11 11:06:07 +08:00
|
|
|
<script>
|
2025-08-13 10:39:47 +08:00
|
|
|
import http from '@/until/http.js';
|
|
|
|
|
export default {
|
|
|
|
|
onLaunch: function () {
|
|
|
|
|
this.getInfo()
|
|
|
|
|
},
|
|
|
|
|
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:06:07 +08:00
|
|
|
},
|
|
|
|
|
}
|
2025-08-13 10:39:47 +08:00
|
|
|
}
|
2025-08-11 11:06:07 +08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss">
|
2025-08-13 10:39:47 +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:06:07 +08:00
|
|
|
|
2025-08-13 10:39:47 +08:00
|
|
|
body {
|
|
|
|
|
background-color: transparent !important;
|
|
|
|
|
}
|
2025-08-11 11:06:07 +08:00
|
|
|
|
2025-08-13 10:39:47 +08:00
|
|
|
// 设置整个项目的背景色
|
|
|
|
|
page {
|
|
|
|
|
background-color: transparent !important;
|
|
|
|
|
font-family: Source Han Sans CN, Source Han Sans CN;
|
|
|
|
|
}
|
2025-08-11 11:06:07 +08:00
|
|
|
|
2025-08-13 10:39:47 +08:00
|
|
|
img {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
object-fit: cover;
|
|
|
|
|
}
|
2025-08-11 11:06:07 +08:00
|
|
|
</style>
|