Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mui
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mui
Commits
52771921
Commit
52771921
authored
Jun 28, 2015
by
hbcui1984
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新manifest.json中分享插件配置
parent
05837808
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
11 deletions
+12
-11
examples/hello-mui/examples/setting.html
examples/hello-mui/examples/setting.html
+11
-7
examples/hello-mui/manifest.json
examples/hello-mui/manifest.json
+1
-4
No files found.
examples/hello-mui/examples/setting.html
View file @
52771921
...
...
@@ -539,14 +539,18 @@
if
(
i
>
0
)
{
var
s_id
=
ids
[
i
-
1
].
id
;
var
share
=
shares
[
s_id
];
if
(
share
.
authenticated
)
{
shareMessage
(
share
,
ids
[
i
-
1
].
ex
);
}
else
{
share
.
authorize
(
function
()
{
if
(
share
){
if
(
share
.
authenticated
)
{
shareMessage
(
share
,
ids
[
i
-
1
].
ex
);
},
function
(
e
)
{
console
.
log
(
"
认证授权失败:
"
+
e
.
code
+
"
-
"
+
e
.
message
);
});
}
else
{
share
.
authorize
(
function
()
{
shareMessage
(
share
,
ids
[
i
-
1
].
ex
);
},
function
(
e
)
{
console
.
log
(
"
认证授权失败:
"
+
e
.
code
+
"
-
"
+
e
.
message
);
});
}
}
else
{
mui
.
toast
(
"
无法获取分享服务,请检查manifest.json中分享插件参数配置,并重新打包
"
)
}
}
});
...
...
examples/hello-mui/manifest.json
View file @
52771921
...
...
@@ -48,9 +48,6 @@
"XMLHttpRequest"
:
{
"description"
:
"跨域网络访问"
},
"Share"
:
{
"description"
:
"管理社交分享插件"
},
"Speech"
:
{
"description"
:
"管理语音识别插件"
},
...
...
@@ -64,7 +61,7 @@
"autoclose"
:
false
,
/*如果为
true
,程序启动的图片可以自动关闭,如果为
false
,开发者需要手动关闭*/
"waiting"
:
true
/*是否在程序启动界面显示等待雪花,
true
表示显示,
false
表示不显示。*/
},
"runmode"
:
"
liberate
"
,
/*两个值,liberate或normal,前者在应用安装时释放资源,后者不需要释放资源*/
"runmode"
:
"
normal
"
,
/*两个值,liberate或normal,前者在应用安装时释放资源,后者不需要释放资源*/
"signature"
:
"Sk9JTiBVUyBtYWlsdG86aHIyMDEzQGRjbG91ZC5pbw=="
,
/*可选,保留给应用签名,暂不使用*/
"distribute"
:
{
"debug"
:
""
,
/*可选,是否为debug模式,可取值:
true
表示debug模式运行,
false
表示release模式运行,默认值为
false
*/
...
...
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