提交 0c1b7031 编写于 作者: 芊里

屏幕锁定

上级 56d290a1
......@@ -7,19 +7,6 @@ export default function (){
// 检查更新
checkUpdate();
keepScreenOn();
}
/**
* 保持屏幕常亮
*/
function keepScreenOn(){
//#ifdef APP-PLUS
// 保持屏幕常亮
uni.setKeepScreenOn({
keepScreenOn: true
});
//#endif
}
/**
* // 初始化appVersion
......
......@@ -4,11 +4,12 @@
"description": "",
"versionName": "1.0.0",
"versionCode": "100",
"transformPx": false,
"transformPx": false,
"app-plus": {
"usingComponents": true,
"nvueCompiler": "uni-app",
"compilerVersion": 3,
"compilerVersion": 3,
"screenOrientation":["portrait-primary"], // 竖屏锁定
"safearea": { //安全区域配置,仅iOS平台生效
"background": "#FFFFFF", //安全区域外的背景颜色,默认值为"#FFFFFF"
"bottom": { // 底部安全区域配置
......
......@@ -18,20 +18,7 @@
};
},
onShow(options) {
this.searchText = getApp().globalData.searchText;
plus.oauth.getServices(services=>{
console.log(services);
services.forEach(item=>{
if(item.id=='qq'){
item.authorize(e=>{
console.log(e);
},e=>{
console.log(e);
})
}
})
})
this.searchText = getApp().globalData.searchText;
},
/**
* 下拉刷新回调函数
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册