From 9bbe9407b0fbdc4ae71116fb95f162bd4810fdcf Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期五, 19 一月 2024 14:19:57 +0800
Subject: [PATCH] force launch in landscape mode
---
manifest.json | 3 ++-
pages.json | 12 ++----------
App.vue | 1 +
3 files changed, 5 insertions(+), 11 deletions(-)
diff --git a/App.vue b/App.vue
index 8c2b732..776a3fd 100644
--- a/App.vue
+++ b/App.vue
@@ -2,6 +2,7 @@
export default {
onLaunch: function() {
console.log('App Launch')
+ plus.screen.lockOrientation("landscape-primary")
},
onShow: function() {
console.log('App Show')
diff --git a/manifest.json b/manifest.json
index c3569ca..24adf64 100644
--- a/manifest.json
+++ b/manifest.json
@@ -3,7 +3,7 @@
"appid" : "__UNI__E87AC35",
"description" : "",
"versionName" : "1.0.0",
- "versionCode" : "100",
+ "versionCode" : 101,
"transformPx" : false,
/* 5+App鐗规湁鐩稿叧 */
"app-plus" : {
@@ -22,6 +22,7 @@
},
/* 搴旂敤鍙戝竷淇℃伅 */
"distribute" : {
+ "orientation" : [ "landscape-primary" ],
/* android鎵撳寘閰嶇疆 */
"android" : {
"permissions" : [
diff --git a/pages.json b/pages.json
index 8ae6463..20fa017 100644
--- a/pages.json
+++ b/pages.json
@@ -9,16 +9,8 @@
],
"globalStyle": {
"navigationStyle": "custom",
- "backgroundColor": "#F8F8F8"
-
- // "navigationBarTextStyle": "black",
- // "navigationBarTitleText": "uni-app",
- // "navigationBarBackgroundColor": "#F8F8F8",
- // pad 瀹藉害閰嶇疆
- //"rpxCalcMaxDeviceWidth": 0,
- //"rpxCalcBaseDeviceWidth": 375,
- //"rpxCalcIncludeWidth": 750
-
+ "backgroundColor": "#F8F8F8",
+ "pageOrientation": "landscape"
},
"uniIdRouter": {}
}
--
Gitblit v1.8.0