Prechádzať zdrojové kódy

针对ios平板的优化

Changpeng Duan 5 rokov pred
rodič
commit
ce48bda454

+ 3 - 3
tv/src/Mock/index.js

@@ -370,7 +370,7 @@ let getClassStat = function (ClassOn, dp) {
     };
 };
 
-let t = 1;//0 is on 1 is off
+let t = 0;//0 is on 1 is off
 if (t == 0) {
     // 列表测试
     Mock.mock('/api/testTable', 'post', testTable());
@@ -379,11 +379,11 @@ if (t == 0) {
     let curheadapi = 'http://192.168.0.63:8080/';
 
     // 0: 下课 团课/私教/PK 的排名
-    let LessonClass = 3;
+    let LessonClass = 0;
     // 1:团课/私教
     // 2:竞技课2PK
     // 3:竞技课threepk
-    let LessonDp = 3;
+    let LessonDp = 0;
 
 
     if (LessonClass == 1) {

+ 4 - 4
tv/src/assets/css/bg.css

@@ -31,28 +31,28 @@
 .bg2Style1 {
     background-color: #028fe1;
     background: url("../../static/img/bg/bg2_1.png");
-    background-size: 100%;
+    background-size: 100%  100%;
     background-repeat: no-repeat;
 }
 
 .bg2Style2 {
     background-color: #028fe1;
     background: url("../../static/img/bg/bg2_2.png");
-    background-size: 100%;
+    background-size: 100%  100%;
     background-repeat: no-repeat;
 }
 
 .bg2Style3 {
     background-color: #028fe1;
     background: url("../../static/img/bg/bg2_3.png");
-    background-size: 100%;
+    background-size: 100%  100%;
     background-repeat: no-repeat;
 }
 
 .bg2Style4 {
     background-color: #028fe1;
     background: url("../../static/img/bg/bg2_4.png");
-    background-size: 100%;
+    background-size: 100%  100%;
     background-repeat: no-repeat;
 }
 

+ 16 - 3
tv/src/components/Headside.vue

@@ -1,14 +1,14 @@
 <template>
     <div class="headerContainer dv1">
-        <div class="lt">
+        <div class="lt" @click="showfullScreen()">
             <em> {{ nowWeeks }}</em> <span>  {{ nowDay }}</span>
         </div>
-        <div class="rt">
+        <div class="rt" >
             {{ nowTime }}
 
             <span @click="showUuid()">版本:{{version}}</span>
             <img src="../static/img/blue.svg"/>
-            <img src="../static/img/wifi.svg"/>
+            <img  src="../static/img/wifi.svg"/>
         </div>
 
 
@@ -63,6 +63,19 @@
             clearInterval(this.timer);
         },
         methods: {
+            // 全屏展示
+            showfullScreen(){
+                let elem = document.body;
+                if (elem.webkitRequestFullScreen) {
+                    elem.webkitRequestFullScreen();
+                } else if (elem.mozRequestFullScreen) {
+                    elem.mozRequestFullScreen();
+                } else if (elem.requestFullScreen) {
+                    elem.requestFullscreen();
+                } else {
+                    notice.notice_show("浏览器不支持全屏API或已被禁用", null, null, null, true, true);
+                }
+            },
             nowDayFunc() {
                 let days = new Date().getDay();
                 let wd = numberToWeekdays(days);

+ 0 - 6
tv/需求修改和debug.md

@@ -184,16 +184,10 @@ TODO 翻拍特效
 TODO 7.上课学生分组,改由后台进行第一次分组,每次改队上传后台处理
 TODO 欢迎私有心率带同学来上课
 
-
-
-
-
 -------
 跨店预约
 1. 蒙正店用户登陆app预约 龙奥店上课 (电视盒子看效果)
 2. app的课程表能看到测试课程的bug
-3. 破纪录没有默认头像问题
-4. 破纪录显示时间加长
 5. 兼容树莓派关机情况
 
 ***********