uniapp 不同端 页面部分内容滚动设置scroll-view高度

<scroll-view scroll-y="true" :style="{height: scrollHeight}">
	<block v-for="(item,index) in list" :key='index'>
		<work-list></work-list>
	</block>
</scroll-view>
onLoad() {
	uni.getSystemInfo({
	    success:  (res)=> {
			const wid = res.windowWidth
			const hei = res.windowHeight
			// 230是除了可滚动区域外的其它部分占的rpx高度
			this.scrollHeight=(hei/(wid/750)-230)*(wid/750) +'px'
	    }
	});
},

版权声明:本文为qq_42739199原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。