Browse Source

折叠屏显示移动端样式

jwyu 2 years ago
parent
commit
3c1b6c4fcd
3 changed files with 3 additions and 3 deletions
  1. 1 1
      App.vue
  2. 1 1
      mixin/index.js
  3. 1 1
      pages/report/report.vue

+ 1 - 1
App.vue

@@ -10,7 +10,7 @@
 				success: function (res) {
 					console.log('宽度:',res.windowWidth);
 					console.log('设备:',res.platform);
-					if (res.windowWidth > 600||['windows','mac'].includes(res.platform)) {
+					if (res.windowWidth > 750||['windows','mac'].includes(res.platform)) {
 						const params=options.query//此处的query就是在pc分享钩子函数中拼接的参数
 						let paramsStr=`xcxPath=${decodeURIComponent(options.path)}`
 						for(const key in params){

+ 1 - 1
mixin/index.js

@@ -70,7 +70,7 @@ module.exports = {
         console.log('宽度:',res.windowWidth);
         console.log('设备:',res.platform);
         if(page.route=='pages/login'||page.route=='pages/pc') return
-        if (res.windowWidth > 600||['windows','mac'].includes(res.platform)) {
+        if (res.windowWidth > 750||['windows','mac'].includes(res.platform)) {
           const params=options
           let paramsStr=`xcxPath=${decodeURIComponent(page.route)}`
           for(const key in params){

+ 1 - 1
pages/report/report.vue

@@ -135,7 +135,7 @@ export default {
   onShow() {
     uni.getSystemInfo({
 			success: function (res) {
-				if (res.windowWidth > 600||['windows','mac'].includes(res.platform)) {
+				if (res.windowWidth > 750||['windows','mac'].includes(res.platform)) {
 					console.log('跳转启动页判断进入pc');
 					uni.reLaunch({
 						url: "/pages/pc",