zhanghe преди 6 години
родител
ревизия
2d88e0c673
променени са 2 файла, в които са добавени 20 реда и са изтрити 41 реда
  1. 9 7
      src/stage/index/scene/LessonScene.js
  2. 11 34
      src/stage/index/style/TerminalScene.less

+ 9 - 7
src/stage/index/scene/LessonScene.js

@@ -127,14 +127,14 @@ class LessonScene extends scene {
     * 创建右侧视窗
     * 创建右侧视窗
     */
     */
     createRightView(item) {
     createRightView(item) {
-        // 清一下定时器
-        window.clearInterval(this.timer);
-        this.timer = null;
+      // 清一下定时器
+      window.clearInterval(this.timer);
+      this.timer = null;
 
 
-        const { title, type, list } = item;
-        //设定视窗的标题
-        document.getElementById('view-top').innerHTML = title;
-        //关闭安卓播放器
+      const { title, type, list } = item;
+      //设定视窗的标题
+      document.getElementById('view-top').innerHTML = title;
+      //关闭安卓播放器
     	if (window.efunbox) {
     	if (window.efunbox) {
     		window.efunbox.closePlayer();
     		window.efunbox.closePlayer();
     	}
     	}
@@ -154,6 +154,8 @@ class LessonScene extends scene {
                   </div>
                   </div>
                 `;
                 `;
     			document.getElementById('view-bottom').innerHTML = videoViewDom;
     			document.getElementById('view-bottom').innerHTML = videoViewDom;
+          */
+    			document.getElementById('view-bottom').innerHTML = '';
     			this.moye.root.reRender();
     			this.moye.root.reRender();
     			this.renderVideoView(title, playUrl, type);
     			this.renderVideoView(title, playUrl, type);
     			break;
     			break;

+ 11 - 34
src/stage/index/style/TerminalScene.less

@@ -9,42 +9,19 @@
 
 
 	.background {
 	.background {
 		position: absolute;
 		position: absolute;
-		width: 13rem;
-		left: 50%;
-		margin-left: -6.5rem;
-		padding-top: 1.78rem;
-		padding-bottom: 1.78rem;
-		font-size: .46rem;
-		.terminal-wrapper {
+		top: 0;
+		left: 0;
+		z-index: -1;
+		width: 100%;
+		height: 100%;
+		img {
+			position: absolute;
+			top: 0;
+			left: 0;
 			width: 100%;
 			width: 100%;
-			height: 7rem;
-			border-radius: 1rem;
-			padding: .2rem .7rem 0;
-			box-sizing: border-box;
-			background-color: #FFFAEA;
-			.info-item {
-				width: 100%;
-				height: 1.2rem;
-				padding-left: .2rem;
-				line-height: 1.7rem;
-				font-size: .46rem;
-				border-bottom: .05rem dashed #fcca98;
-				span {
-					display: inline-block;
-					width: 2rem;
-					height: 100%;
-					text-align:justify;
-					text-justify:distribute-all-lines;/*ie6-8*/
-					text-align-last:justify;/* ie9*/
-					-moz-text-align-last:justify;/*ff*/
-					-webkit-text-align-last:justify;/*chrome 20+*/
-				}
-				&:nth-last-child(1) {
-					border-bottom: none;
-					line-height: 1.6rem;
-				}
-			}
+			height: 100%;
 		}
 		}
+	}
 
 
 	.terminal {
 	.terminal {
 		position: absolute;
 		position: absolute;