Commit 6c9cb4d5 authored by mengcuiguang's avatar mengcuiguang

快手状态栏返回键优化

parent d2ea13e0
...@@ -12,8 +12,13 @@ ...@@ -12,8 +12,13 @@
// #ifndef APP-PLUS || H5 || MP-ALIPAY || MP-LARK // #ifndef APP-PLUS || H5 || MP-ALIPAY || MP-LARK
const menuButtonObject = uni.getMenuButtonBoundingClientRect(); const menuButtonObject = uni.getMenuButtonBoundingClientRect();
this.globalData.titlePadding = res.screenWidth - menuButtonObject.right; this.globalData.titlePadding = res.screenWidth - menuButtonObject.right;
this.globalData.titleButtonWidth = this.globalData.titlePadding + menuButtonObject.width; 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) * this.globalData.titleBarHeight = menuButtonObject.height + (menuButtonObject.top - res.statusBarHeight) *
2 + 2; 2 + 2;
// #endif // #endif
......
...@@ -123,7 +123,7 @@ ...@@ -123,7 +123,7 @@
&-title { &-title {
flex: 1; flex: 1;
text-align: center; text-align: center;
font-size: 40rpx; font-size: 36rpx;
} }
} }
</style> </style>
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
</view> </view>
</template> </template>
<script> <script>
import uniTransition from '@/components/uni-transition/uni-transition.vue' // import uniTransition from '@/components/uni-transition/uni-transition.vue'
/** /**
* PopUp 弹出层 * PopUp 弹出层
* @description 弹出层组件,为了解决遮罩弹层的问题 * @description 弹出层组件,为了解决遮罩弹层的问题
...@@ -27,9 +27,9 @@ ...@@ -27,9 +27,9 @@
export default { export default {
name: 'UniPopup', name: 'UniPopup',
components: { // components: {
uniTransition // uniTransition
}, // },
props: { props: {
// 开启动画 // 开启动画
animation: { 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