star7th 6 years ago
parent
commit
78de2a161e

+ 2 - 2
web_src/src/components/item/show/show_regular_item/Index.vue

@@ -89,7 +89,7 @@
     get_page_content(page_id){
       if (page_id <= 0 ) {return;};
       //根据屏幕宽度进行响应(应对移动设备的访问)
-      if( this.isMobile() ||  window.screen.width< 1300){
+      if( this.isMobile() ||  window.innerWidth< 1300){
         this.$nextTick(() => {
           this.AdaptToMobile();
         });
@@ -146,7 +146,7 @@
   },
   mounted () {
     //根据屏幕宽度进行响应(应对移动设备的访问)
-    if( this.isMobile() ||  window.screen.width< 1300){
+    if( this.isMobile() ||  window.innerWidth< 1300){
       this.$nextTick(() => {
         this.AdaptToMobile();
       });

+ 2 - 2
web_src/src/components/item/show/show_regular_item/OpBar.vue

@@ -365,11 +365,11 @@
 
     }
 
-    if ( this.isMobile() || ( window.screen.width< 1300 && !this.item_info.is_login ) ) {
+    if ( this.isMobile() || ( window.innerWidth< 1300 && !this.item_info.is_login ) ) {
         this.show_menu_btn = false ;
         this.show_op_bar = false;
     }
-    if (this.isMobile() || ( window.screen.width< 1300 && this.item_info.is_login ) ) {
+    if (this.isMobile() || ( window.innerWidth< 1300 && this.item_info.is_login ) ) {
         this.show_menu_btn = true ;
         this.show_op_bar = false;
     }