You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

98 lines
2.3 KiB

<script>
export default {
onLaunch: async function() {
console.log('App Launch')
// uni.login({
// provider: 'weixin', //使用微信登录
// success: async (loginRes) => {
// try {
// const res = await this.$u.api.login({
// code: loginRes.code
// })
// console.log("res",res.data.token)
// this.$u.vuex('vuex_token', res.data.token)
// const user = await this.$u.api.user()
// console.log("user",user)
// this.$u.vuex('vuex_user', user.data.user)
// } catch (err) {
// console.error(err)
// }
// },
// fail:err => {
// console.log(err)
// }
// });
},
onShow: function() {
console.log('App Show')
},
onHide: function() {
console.log('App Hide')
}
}
</script>
<style lang="scss">
/*每个页面公共css */
@import "uview-ui/index.scss";
/* 定义字体名称和路径 */
// @font-face {
// font-family: 'MyCustomFont'; /* 自定义字体名称(全局使用时需要) */
// /* 字体路径:相对当前 CSS 文件的路径(或绝对路径) */
// src: url('static/fonts/myfont.ttf') format('truetype');
// // url('../fonts/myfont.woff') format('woff'),
// // url('../fonts/myfont.woff2') format('woff2');
// font-weight: normal; /* 字体粗细 */
// font-style: normal; /* 字体样式 */
// }
// /* 全局应用字体(可选) */
// /* 给 body 或根元素设置,覆盖默认字体 */
body, page {
// font-family: 'MyCustomFont', sans-serif;
background-color: #F1F7FA;
}
.uni-tabbar-bottom{
display: block!important;
}
.uni-tabbar {
box-shadow: 0px 0px 20rpx rgba(0, 0, 0, 0.3);
.uni-tabbar-border{
display: none;
}
.uni-tabbar__item {
.uni-tabbar__bd {
height: 170rpx !important;
.uni-tabbar__icon {
width: 59rpx !important;
height: 69rpx !important;
}
.uni-tabbar__label {
font-size: 28rpx !important;
}
}
}
& .uni-tabbar__item:nth-of-type(2) {
.uni-tabbar__icon {
width: 73rpx !important;
height: 70rpx !important;
}
}
// & .uni-tabbar__item:first-child{
// .uni-tabbar__icon{
// width:73rpx;
// height:70rpx;
// }
// }
}
</style>