Commit 6c9cb4d5 authored by mengcuiguang's avatar mengcuiguang

快手状态栏返回键优化

parent d2ea13e0
......@@ -12,8 +12,13 @@
// #ifndef APP-PLUS || H5 || MP-ALIPAY || MP-LARK
const menuButtonObject = uni.getMenuButtonBoundingClientRect();
this.globalData.titlePadding = res.screenWidth - menuButtonObject.right;
this.globalData.titleButtonWidth = this.globalData.titlePadding + menuButtonObject.width;
this.globalData.titlePadding = res.screenWidth - menuButtonObject.right;
this.globalData.titleButtonWidth = this.globalData.titlePadding + menuButtonObject.width;
// #ifdef MP-KUAISHOU
this.globalData.titlePadding = 8;
this.globalData.titleButtonWidth = 100;
// #endif
this.globalData.titleBarHeight = menuButtonObject.height + (menuButtonObject.top - res.statusBarHeight) *
2 + 2;
// #endif
......
......@@ -123,7 +123,7 @@
&-title {
flex: 1;
text-align: center;
font-size: 40rpx;
font-size: 36rpx;
}
}
</style>
......@@ -11,7 +11,7 @@
</view>
</template>
<script>
import uniTransition from '@/components/uni-transition/uni-transition.vue'
// import uniTransition from '@/components/uni-transition/uni-transition.vue'
/**
* PopUp 弹出层
* @description 弹出层组件,为了解决遮罩弹层的问题
......@@ -27,9 +27,9 @@
export default {
name: 'UniPopup',
components: {
uniTransition
},
// components: {
// uniTransition
// },
props: {
// 开启动画
animation: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment