Parcourir la source

解决webview不能全屏问题

yichael il y a 4 ans
Parent
commit
1757072e74

+ 7 - 5
components/home/shutDownWebview.vue

@@ -8,7 +8,7 @@
 	export default {
 		data() {
 			return {
-				bShowWebview:false,
+				bShowWebview:true,
 			}
 		},
 		methods: {
@@ -26,13 +26,15 @@
 <style lang="scss" scoped>
 	.s_container {
 		position: fixed;
-		width: 100%;
-		height: 100%;
-		// z-index: 3;
+		// width: 50%;
+		// height: 50%;
+		width: px2vw(78);
+		height: px2vw(58);
+		z-index: 1;
 	}
 	.shut_down{
 		margin-top: 2%;
-		margin-left: 92%;
+		margin-right: 2%;
 		width: px2vw(78);
 		height: px2vw(58);
 		background: #ffffff;

+ 3 - 0
components/startLearning/learningAndExperiment/learningAndExperiment.vue

@@ -61,6 +61,9 @@
 				this.$emit("onClick_KSRZ")
 			},
 			onClick_KSKC(){
+				uni.pageScrollTo({ 
+				  scrollTop: 0, duration:1 
+				}); 
 				this.$emit("onShowWebview720");
 				// this.$emit("onClick_KSKC")
 			},