Files
yusheng-h5/App.vue

67 lines
1.3 KiB
Vue
Raw Permalink Normal View History

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 () {
2025-10-23 16:04:28 +08:00
// this.getInfo()
2025-08-13 10:39:47 +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: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-10-23 16:04:28 +08:00
// 定制
:root {
2025-10-30 18:27:45 +08:00
--primary-color: #3ABC6D;
2025-10-23 16:04:28 +08:00
--sub-color: #F0EEF7;
2025-10-30 18:27:45 +08:00
--subs-color: #3ABC6D;
2025-10-23 16:04:28 +08:00
--subss-color: #DEB52E;
--warn-color:#F69627;
--font-button-color:#fff;
--font-button-size:24rpx;
--font-button-size-p:28rpx;
/* tab图标 */
2025-12-03 18:59:18 +08:00
--tab-url:url('https://test.vespa.qxyushen.top/h5/image/tabline.png');
2025-10-23 16:04:28 +08:00
}
2025-08-11 11:06:07 +08:00
</style>