1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/ask_flowers_and_trees-uniapp-read

В этом репозитории не указан файл с открытой лицензией (LICENSE). При использовании обратитесь к конкретному описанию проекта и его зависимостям в коде.
Клонировать/Скачать
App.vue 1.5 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
问花有木 Отправлено 02.07.2022 05:29 c3916a7
<script>
import Vue from 'vue';
export default {
onLaunch: function() {
// 初始化系统
this.initSystem();
// #ifdef APP-PLUS
// 锁定竖屏
plus.screen.lockOrientation("portrait-primary");
// #endif
let curSource = Vue.prototype.$store.getters.get_curSource
if (!curSource) {
let sources = Vue.prototype.$store.getters.get_sources
Vue.prototype.$store.commit('set_curSource', sources[0])
} else {
Vue.prototype.$store.commit('set_curSource', curSource)
}
},
onShow: function() {
console.log('App Show')
},
onHide: function() {
console.log('App Hide')
},
methods: {
/**
* 初始化系统
*/
initSystem() {
const self = this
let sys = uni.getSystemInfoSync()
Vue.prototype.$SafeAreaInsetsBottom = sys.safeAreaInsets.bottom
Vue.prototype.$StatusBar = sys.statusBarHeight
Vue.prototype.$NavBar = sys.statusBarHeight + 44
},
}
}
</script>
<style lang="scss">
/*每个页面公共css */
@import "./static/iconfont.css";
body {
margin: 0;
padding: 0;
outline: 0;
-webkit-tap-highlight-color: transparent;
font-size: 16px;
}
.default-cover {
position: relative;
width: 100%;
height: 100%;
// border: 1px solid #E8E8E8;
background-image: linear-gradient(to right bottom, rgba(0, 0, 255, 0.5), rgba(255, 0, 0, 0.5));
&::before {
content: attr(data-cover);
font-size: 11px;
color: #525252;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
}
button::after {
border: none;
}
</style>

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/ask_flowers_and_trees-uniapp-read.git
git@api.gitlife.ru:oschina-mirror/ask_flowers_and_trees-uniapp-read.git
oschina-mirror
ask_flowers_and_trees-uniapp-read
ask_flowers_and_trees-uniapp-read
master