@@ -7,6 +7,11 @@ export default {
globalData: {},
onLaunch() {
+ // #ifdef APP-PLUS
+ // 锁定屏幕方向 横屏正方向
+ plus.screen.lockOrientation('landscape');
+ // #endif
+
// 删除缓存
if (process.env.NODE_ENV == 'production') {
uni.removeStorageSync('shopUser')
@@ -20,6 +20,7 @@
"autoclose" : true,
"delay" : 0
},
+ "orientation" : [ "landscape" ],
"modules" : {
"OAuth" : {},
"Payment" : {},
@@ -28,11 +28,6 @@ export default {
onLoad: function (option) {
- // #ifdef APP-PLUS
- //横屏锁定
- //plus.screen.lockOrientation('landscape')
- // #endif
-
this.option = option || null
if (option.token) {
uni.setStorageSync('token', option.token)
@@ -17,6 +17,7 @@
"app-plus":{"titleNView":false,"bounce":"none"},
"navigationStyle":"custom",
"rpxCalcMaxDeviceWidth": 2000,
- "rpxCalcBaseDeviceWidth": 1440
+ "rpxCalcBaseDeviceWidth": 1440,
+ "pageOrientation":"landscape"
}