Files
FirstUI-vue/pages/component/expand/safeArea/safeArea.vue
2023-08-17 21:28:49 +08:00

73 lines
1.7 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!--本文件由FirstUI授权予新疆天衡创新研究院有限公司手机号 18 6140 7 2 549身份证尾号5A07X5专用请尊重知识产权勿私下传播违者追究法律责任-->
<template>
<view class="fui-wrap">
<view class="fui-page__hd">
<view class="fui-page__title fui-align__center" @tap="vip">SafeArea <image
src="/static/images/index/light/icon_member_3x.png"></image>
</view>
<view class="fui-page__desc">SafeArea 底部安全区域用于适配iphonex等机型底部安全区域</view>
</view>
<view class="fui-page__bd">
<view class="fui-content">
<view class="fui-content__text">向下滑动~</view>
<fui-divider text="底部内容"></fui-divider>
<fui-safe-area background="#F1F4FA"></fui-safe-area>
</view>
<view class="fui-tabbar__box">
<view class="fui-tabbar__content">
底部tabbar内容~
</view>
<fui-safe-area></fui-safe-area>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
}
},
methods: {
vip() {
this.fui.href("/pages/my/qa/qa?index=2&title=VIP专属内容")
}
}
}
</script>
<style>
.fui-page__bd{
padding-bottom: 100rpx;
}
.fui-content{
width: 100%;
padding: 0 32rpx;
box-sizing: border-box;
}
.fui-content__text{
width: 100%;
height: 1200px;
font-size: 28rpx;
font-weight: normal;
}
.fui-tabbar__box{
width: 100%;
position: fixed;
left: 0;
right: 0;
bottom: 0;
z-index: 10;
}
.fui-tabbar__content{
width: 100%;
height: 100rpx;
background: #fff;
display: flex;
align-items: center;
padding: 0 32rpx;
box-sizing: border-box;
}
</style>