uview-plus组件库全面升级更新,订单结算判断支付方式是否可用代码调整,公众号关注二维码修改
This commit is contained in:
@@ -5,6 +5,11 @@ export const props = defineMixin({
|
||||
bgColor: {
|
||||
type: String,
|
||||
default: () => defProps.statusBar.bgColor
|
||||
}
|
||||
},
|
||||
// 状态栏获取得高度
|
||||
height: {
|
||||
type: Number,
|
||||
default: () => defProps.statusBar.height
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
export default {
|
||||
// statusBar
|
||||
statusBar: {
|
||||
bgColor: 'transparent'
|
||||
bgColor: 'transparent',
|
||||
height: 0
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,11 +34,13 @@
|
||||
this.isH5 = true
|
||||
// #endif
|
||||
},
|
||||
emits: ['update:height'],
|
||||
computed: {
|
||||
style() {
|
||||
const style = {}
|
||||
// 状态栏高度,由于某些安卓和微信开发工具无法识别css的顶部状态栏变量,所以使用js获取的方式
|
||||
let sheight = getWindowInfo().statusBarHeight
|
||||
this.$emit('update:height', sheight)
|
||||
if (sheight == 0) {
|
||||
this.isH5 = true
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user