Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
lumastoreapp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xieyishang
lumastoreapp
Commits
19c09fee
Commit
19c09fee
authored
Nov 18, 2020
by
home
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zxf
parent
f8ad2eb6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
46 deletions
+46
-46
App.vue
App.vue
+39
-39
manifest.json
manifest.json
+7
-7
No files found.
App.vue
View file @
19c09fee
...
@@ -55,55 +55,55 @@
...
@@ -55,55 +55,55 @@
}
}
},
},
methods
:{
methods
:{
//
hgServiceFun(){
hgServiceFun
(){
//
const hgService = uni.requireNativePlugin("HG-Background"); //初始化
const
hgService
=
uni
.
requireNativePlugin
(
"
HG-Background
"
);
//初始化
//
hgService.config({
hgService
.
config
({
//
title:"鹿马商家助手",
title
:
"
鹿马商家助手
"
,
//
content:"小鹿正在为您进行实时播报...",
content
:
"
小鹿正在为您进行实时播报...
"
,
//
mode: 1, //0省电模式 1流氓模式
mode
:
1
,
//0省电模式 1流氓模式
//
});
});
//
var rsult=hgService.checkIfLimited(); //检测是否限制后台运行
var
rsult
=
hgService
.
checkIfLimited
();
//检测是否限制后台运行
//
if(rsult.isLimit){ //限制了后台运行
if
(
rsult
.
isLimit
){
//限制了后台运行
//
hgService.requestIgnoreLimit(); //申 请
hgService
.
requestIgnoreLimit
();
//申 请
//
}
}
//
// console.log('没有限制');
// console.log('没有限制');
//
hgService.startService(); //启动前台服务
hgService
.
startService
();
//启动前台服务
//
// hgService.showSafeSetting();//打开安全管理 支持小米,华为,锤子,opp,vivo,三星,乐视,魅族
// hgService.showSafeSetting();//打开安全管理 支持小米,华为,锤子,opp,vivo,三星,乐视,魅族
//
//var globalEvent = uni.requireNativePlugin('globalEvent'); //全局事件回调 任务启动时间,会有一定延时 一般一分钟内。
//var globalEvent = uni.requireNativePlugin('globalEvent'); //全局事件回调 任务启动时间,会有一定延时 一般一分钟内。
//
},
},
hgServiceFun
(){
//
hgServiceFun(){
const
pushLive
=
uni
.
requireNativePlugin
(
'
push-live
'
);
//
const pushLive = uni.requireNativePlugin('push-live');
pushLive
.
startService
({
//启动服务
//
pushLive.startService({ //启动服务
title
:
"
鹿马商家助手
"
,
//
title: "鹿马商家助手",
content
:
"
小鹿正在为您进行实时播报...
"
,
//
content: "小鹿正在为您进行实时播报...",
mode
:
1
//0省电模式 1流氓模式
//
mode: 1 //0省电模式 1流氓模式
},
function
(
res
)
{
//
}, function(res) {
// console.log(res,111111111111111111)
//
// console.log(res,111111111111111111)
});
//
});
pushLive
.
isIgnoringBatteryOptimizations
(
function
(
res
)
{
//是否添加到白名单中
//
pushLive.isIgnoringBatteryOptimizations(function(res) { //是否添加到白名单中
console
.
log
(
res
)
//
console.log(res)
if
(
res
.
flag
){
//添加进去了
//
if(res.flag){ //添加进去了
//pushLive.gotoWhiteListSetting();
//
//pushLive.gotoWhiteListSetting();
}
else
{
//
}else{
pushLive
.
requestIgnoreBatteryOptimizations
();
//申请加入白名单
//
pushLive.requestIgnoreBatteryOptimizations(); //申请加入白名单
// console.log(222222222222222222222222222222222222)
//
// console.log(222222222222222222222222222222222222)
}
//
}
})
//
})
// var globalEvent = uni.requireNativePlugin('globalEvent');
//
// var globalEvent = uni.requireNativePlugin('globalEvent');
// globalEvent.addEventListener('doJobEvent', function() {
//
// globalEvent.addEventListener('doJobEvent', function() {
// console.log("我被定时启动了。。。。。。。。。。。。。。。。。")
//
// console.log("我被定时启动了。。。。。。。。。。。。。。。。。")
// });
//
// });
},
//
},
//获取 语音消息
//获取 语音消息
async
getnewsRemind
(
type
){
async
getnewsRemind
(
type
){
...
...
manifest.json
View file @
19c09fee
...
@@ -155,17 +155,17 @@
...
@@ -155,17 +155,17 @@
},
},
"compilerVersion"
:
2
,
"compilerVersion"
:
2
,
"nativePlugins"
:
{
"nativePlugins"
:
{
"
push-live
"
:
{
"
HG-Background
"
:
{
"__plugin_info__"
:
{
"__plugin_info__"
:
{
"name"
:
"
安卓保活插件(限制 防杀) - [试用版,仅用于自定义调试基座]
"
,
"name"
:
"
保活 前台运行
"
,
"description"
:
"
如果你的应用希望能够一直在后台运行而不被系统自动杀死的话,可以尝试一下。群485147231
"
,
"description"
:
"
用于提高app存活概率或添加前台显示 q群:219508489
"
,
"platforms"
:
"Android"
,
"platforms"
:
"Android"
,
"url"
:
"https://ext.dcloud.net.cn/plugin?id=2
930
"
,
"url"
:
"https://ext.dcloud.net.cn/plugin?id=2
203
"
,
"android_package_name"
:
""
,
"android_package_name"
:
"
com.app.lumastore
"
,
"ios_bundle_id"
:
""
,
"ios_bundle_id"
:
""
,
"isCloud"
:
true
,
"isCloud"
:
true
,
"bought"
:
0
,
"bought"
:
1
,
"pid"
:
"2
930
"
,
"pid"
:
"2
203
"
,
"parameters"
:
{}
"parameters"
:
{}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment