Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
llewan-weixin-sdk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
llewan
llewan-weixin-sdk
Commits
cc419b6b
Commit
cc419b6b
authored
Jan 14, 2019
by
测试账号
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加分享取消接口处理分享成功接口
parent
29a98c46
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
sdk.js
assets/llewan-weixin-sdk/sdk.js
+11
-3
No files found.
assets/llewan-weixin-sdk/sdk.js
View file @
cc419b6b
...
...
@@ -861,7 +861,7 @@ var sdk = {
* @apiParam {String} [query] 必须是 key1=val1&key2=val2 的格式。
* @apiParam {callback} [success] 成功回调
* @apiParam {callback} [fail] 失败回调
* @apiParam {callback} [cancel] 点击取消分享按钮回调
注意:在该方法开始必须添加如下代码:sdk.shareCancelCallback=true;
* @apiParam {callback} [cancel] 点击取消分享按钮回调
*
* @apiSuccessExample {json} 示例:
* sdk.shareAppMessage({type: 1,query: "",success:xxx,cancel:xxx,fail:xxx });
...
...
@@ -912,7 +912,11 @@ var sdk = {
}
if
(
obj
.
cancel
){
shareInfo
.
cancel
=
obj
.
cancel
;
shareInfo
.
cancel
=
function
(){
self
.
shareCancelCallback
=
true
;
obj
.
cancel
();
console
.
log
(
"分享取消了"
);
}
}
...
...
@@ -977,7 +981,11 @@ var sdk = {
shareInfo
.
failCallback
=
obj
.
fail
;
}
if
(
obj
.
cancel
){
shareInfo
.
cancel
=
obj
.
cancel
;
shareInfo
.
cancel
=
function
(){
self
.
shareCancelCallback
=
true
;
obj
.
cancel
();
console
.
log
(
"分享取消了"
);
}
}
console
.
log
(
"sdk 微信分享"
,
shareInfo
);
...
...
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