uniapp 设置页面高度

uniapp yekong 812℃
<view class="page" :style="'height:'+windowHeight+'px'"></view>

<script>
    export default {
        components: {
        },
        data() {
            return {
                show: false,
                windowHeight: 0
            }
        },
        mounted() {
            var that = this;
            uni.getSystemInfo({
                success: function(res) {
                    that.windowHeight = res.windowHeight -  70
                }
            })
        },
        onShow() {

        },
        methods: {
            goback() {
                uni.navigateBack({

                })
            }
        }
    }
</script>
喜欢 (0)