@@ -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();
@@ -9,6 +9,7 @@
"usingComponents" : true,
"nvueCompiler" : "uni-app",
"compilerVersion" : 3,
+ "orientation" : [ "landscape-primary","landscape-secondary" ],
"splashscreen" : {
"alwaysShowBeforeRender" : true,
"waiting" : true,
@@ -21,7 +21,8 @@
}
],
"globalStyle": {
- "navigationStyle": "custom"
+ "navigationStyle": "custom",
+ "pageOrientation":"landscape"
},
"subPackages": [
{