浏览代码

pad适应性更改

rongxinhui 1 年之前
父节点
当前提交
25c2c51225
共有 4 个文件被更改,包括 304 次插入301 次删除
  1. 1 0
      raising-vue-uniapp/App.vue
  2. 1 0
      raising-vue-uniapp/manifest.json
  3. 2 1
      raising-vue-uniapp/pages.json
  4. 300 300
      raising-vue-uniapp/upms/views/menu/menu.vue

+ 1 - 0
raising-vue-uniapp/App.vue

@@ -35,6 +35,7 @@
 			const Decimal = require('decimal.js');
 			// 原生app版本更新检测
 			// #ifdef APP-PLUS
+			plus.screen.lockOrientation('landscape-primary'); // 强制横屏
 			APPUpdate();
 			// const ToastPlusModule = uni.requireNativePlugin("unitest")
 			// ToastPlusModule.init();

+ 1 - 0
raising-vue-uniapp/manifest.json

@@ -9,6 +9,7 @@
         "usingComponents" : true,
         "nvueCompiler" : "uni-app",
         "compilerVersion" : 3,
+		"orientation" : [ "landscape-primary","landscape-secondary" ],
         "splashscreen" : {
             "alwaysShowBeforeRender" : true,
             "waiting" : true,

+ 2 - 1
raising-vue-uniapp/pages.json

@@ -21,7 +21,8 @@
     }
   ],
   "globalStyle": {
-    "navigationStyle": "custom"
+    "navigationStyle": "custom",
+	"pageOrientation":"landscape"
   },
   "subPackages": [
     {

文件差异内容过多而无法显示
+ 300 - 300
raising-vue-uniapp/upms/views/menu/menu.vue