Parcourir la source

修改scroll滚动条

sophieChenyx il y a 6 ans
Parent
commit
dc245bed86

+ 1 - 1
src/res/tpl/CourseScene.tpl

@@ -5,7 +5,7 @@
 	<div class="header">
 		<div class="course-name" id="course-name"></div>
 		<div class="nav" fe-role="Switch" id="course-nav">
-			<div fe-role="Widget" id="course-tab-list" class="nav-item list"></div>
+			<div fe-role="Widget" id="course-tab-list" class="nav-item list selected"></div>
 			<div fe-role="Widget" id="course-tab-detail" class="nav-item detail"></div>
 			<div fe-role="Widget" id="course-tab-periphery" class="nav-item periphery"></div>
 			<div fe-role="Widget" id="course-tab-collect" class="nav-item collect"></div>

BIN
src/stage/index/assets/img/DownloadScene/download_del_disable_btn.png


+ 3 - 3
src/stage/index/scene/DownloadManagerScene.js

@@ -116,6 +116,8 @@ class DownloadManagerScene extends scene {
             // 删除按钮是否可点击
             let delDisable = downloadStatus === Consts.DOWNLOAD_STATUS_ONGOING ? true : false;
             let feRole = delDisable ? '' : 'fe-role="Widget"';
+            let delImg = delDisable ? '<img src="./assets/img/DownloadScene/download_del_disable_btn.png" class="img-btn"/> '
+                          : '<img src="./assets/img/DownloadScene/download_del_btn.png" class="img-btn"/>'
 
             if (!rec['lessonName']) {
                 rec['lessonName'] = rec['courseName'];
@@ -131,9 +133,7 @@ class DownloadManagerScene extends scene {
                 <div id="enter-btn-lesson-${rec['lessonId']}" class="download-enter-btn" fe-role="Widget" data-id="${rec['lessonId']}">
                   <img src="./assets/img/DownloadScene/download_enter_btn.png" class="img-btn"/>
                 </div>
-                <div id="del-btn-lesson-${rec['lessonId']}" class="download-del-btn" ${feRole} data-id="${rec['lessonId']}" >
-                  <img src="./assets/img/DownloadScene/download_del_btn.png" class="${delDisable ? 'img-disable-btn' : 'img-btn'}"/>
-                </div>
+                <div id="del-btn-lesson-${rec['lessonId']}" class="download-del-btn" ${feRole} data-id="${rec['lessonId']}" >${delImg}</div>
               </div>
             </div>
             </div>`

+ 2 - 12
src/stage/index/style/DownloadScene.less

@@ -176,20 +176,10 @@
 						height: 100%;
 						width: 100%;
 					}
-					.img-disable-btn {
-						height: 100%;
-						width: 100%;
-						-webkit-filter: grayscale(100%);
-						-moz-filter: grayscale(100%);
-						-ms-filter: grayscale(100%);
-						-o-filter: grayscale(100%);
-						filter: grayscale(100%);
-						filter: gray;
-					}
 				}
 			}
-			
-			
+
+
 		}
 		&.row-header{
 			height: 0.9rem;