apeng 4 years ago
parent
commit
cce4d5e439
2 changed files with 8 additions and 9 deletions
  1. 6 3
      assets/css/learn/detail/_id.scss
  2. 2 6
      pages/frontend/learn/detail/_id.vue

+ 6 - 3
assets/css/learn/detail/_id.scss

@@ -521,11 +521,12 @@
 
 }
 .learn-detail-wrapper-mobile {
-  border:1px solid red;
     position: relative;
     width: 100%;
-    padding-bottom: calc(1.4rem + 0.16rem + constant(safe-area-inset-bottom));
-    padding-bottom: calc(1.4rem + 0.16rem + env(safe-area-inset-bottom));
+    padding-bottom: calc(1.4rem + constant(safe-area-inset-bottom));
+    padding-bottom: calc(1.4rem + env(safe-area-inset-bottom));
+    // padding-bottom: constant(safe-area-inset-bottom);
+    // padding-bottom: env(safe-area-inset-bottom);
     display: flex;
     flex-direction: column;
     .video-container {
@@ -827,6 +828,8 @@
       display: flex;
       height: calc(1.4rem + constant(safe-area-inset-bottom));
       height: calc(1.4rem + env(safe-area-inset-bottom));
+      // height: constant(safe-area-inset-bottom);
+      // height: env(safe-area-inset-bottom);
       .btn-study {
         display: flex;
         align-self: center;

+ 2 - 6
pages/frontend/learn/detail/_id.vue

@@ -410,11 +410,7 @@ export default {
     },
     methods: {
       goUserPage(){
-        if(this.userinfo && this.userinfo.uid){
-          window.location.href = `/wo/${this.userinfo.uid}`
-        }else{
-          window.location.href = 'proginn://login'
-        }
+        window.location.href = 'proginn://login'
       },
       /**
        * 初始化播放器
@@ -497,7 +493,7 @@ export default {
             // 未登录时 => 去登录
             if (this.deviceType.ios || this.deviceType.android) {
               window.location.href = "proginn://login?backToPage=true";
-            } else {
+            } else { 
               window.location.href = this.baseUrl + "/?loginbox=show&next=" + encodeURIComponent(location.href)
             }
           } else {