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
e2a3934c
Commit
e2a3934c
authored
Dec 18, 2018
by
liuxinjun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉本地缓存时间限制
parent
ade6256b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
46 deletions
+46
-46
sdk.js
assets/llewan-weixin-sdk/sdk.js
+46
-46
No files found.
assets/llewan-weixin-sdk/sdk.js
View file @
e2a3934c
...
...
@@ -877,29 +877,29 @@ var sdk = {
var
specialFlag
=
0
;
wx
.
showShareMenu
({
withShareTicket
:
true
})
wx
.
updateShareMenu
({
withShareTicket
:
true
,
isUpdatableMessage
:
true
,
activityId
:
this
.
getConfig4
().
activityId
,
// 活动 ID
templateInfo
:
{
parameterList
:
[{
name
:
'member_count'
,
value
:
String
(
this
.
getConfig4
().
activityMemberCount
)
},
{
name
:
'room_limit'
,
value
:
String
(
this
.
getConfig4
().
activityRoomLimit
)
}]
},
success
:
function
(){
console
.
error
(
"动态消息成功回调"
);
},
fail
:
function
(){
console
.
error
(
"动态消息失败回调"
);
},
complete
:
function
(){
console
.
error
(
"动态消息完成"
);
},
})
//
wx.updateShareMenu({
//
withShareTicket: true,
//
isUpdatableMessage: true,
//
activityId: this.getConfig4().activityId , // 活动 ID
//
templateInfo: {
//
parameterList: [{
//
name: 'member_count',
//
value: String(this.getConfig4().activityMemberCount)
//
}, {
//
name: 'room_limit',
//
value: String(this.getConfig4().activityRoomLimit)
//
}]
//
},
//
success: function(){
//
console.error("动态消息成功回调");
//
},
//
fail: function(){
//
console.error("动态消息失败回调");
//
},
//
complete: function(){
//
console.error("动态消息完成");
//
},
//
})
wx
.
onShareAppMessage
(
function
(
res
){
...
...
@@ -1004,29 +1004,29 @@ var sdk = {
console
.
log
(
"sdk 微信分享"
,
shareInfo
);
if
(
cc
.
sys
.
platform
===
cc
.
sys
.
WECHAT_GAME
)
{
wx
.
updateShareMenu
({
withShareTicket
:
true
,
isUpdatableMessage
:
true
,
activityId
:
this
.
getConfig4
().
activityId
,
// 活动 ID
templateInfo
:
{
parameterList
:
[{
name
:
'member_count'
,
value
:
String
(
this
.
getConfig4
().
activityMemberCount
)
},
{
name
:
'room_limit'
,
value
:
String
(
this
.
getConfig4
().
activityRoomLimit
)
}]
},
success
:
function
(){
console
.
error
(
"动态消息成功回调"
);
},
fail
:
function
(){
console
.
error
(
"动态消息失败回调"
);
},
complete
:
function
(){
console
.
error
(
"动态消息完成"
);
},
})
//
wx.updateShareMenu({
//
withShareTicket: true,
//
isUpdatableMessage: true,
//
activityId: this.getConfig4().activityId , // 活动 ID
//
templateInfo: {
//
parameterList: [{
//
name: 'member_count',
//
value: String(this.getConfig4().activityMemberCount)
//
}, {
//
name: 'room_limit',
//
value: String(this.getConfig4().activityRoomLimit)
//
}]
//
},
//
success: function(){
//
console.error("动态消息成功回调");
//
},
//
fail: function(){
//
console.error("动态消息失败回调");
//
},
//
complete: function(){
//
console.error("动态消息完成");
//
},
//
})
wx
.
shareAppMessage
(
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