Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
陈峰
8 years ago
Commit
f67041b0006cb859e80b7764afadb6831ca9c321
2 parents
57b3071c
33ce659a
Merge branch 'release/5.3' of
http://git.yoho.cn/fe/yohobuywap-node
into release/5.3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
public/js/common/share.js
public/js/plugin/wx-share.js
public/js/common/share.js
View file @
f67041b
...
...
@@ -5,7 +5,7 @@
* Time: 16:55
*/
var
qs
=
window
.
queryString
;
var
qs
=
require
(
'yoho-qs'
)
;
var
jsApiList
=
[
'checkJsApi'
,
...
...
public/js/plugin/wx-share.js
View file @
f67041b
...
...
@@ -8,9 +8,9 @@
module
.
exports
=
function
()
{
var
$
=
require
(
'yoho-jquery'
);
var
_weChatInterface
=
'//m.yohobuy.com/
life/getSignPackag
e'
;
var
_weChatInterface
=
'//m.yohobuy.com/
activity/wechat/shar
e'
;
$
.
getJSON
(
_weChatInterface
+
'?
page
url='
+
$
.
getJSON
(
_weChatInterface
+
'?url='
+
encodeURIComponent
(
location
.
href
.
split
(
'#'
)[
0
])
+
'&callback=?'
,
function
(
json
)
{
var
_appId
,
_timestamp
,
_nonceStr
,
_signature
;
...
...
@@ -23,7 +23,7 @@ module.exports = function() {
_appId
=
json
.
appId
.
toString
();
_timestamp
=
json
.
timestamp
;
_nonceStr
=
json
.
nonceStr
.
toString
();
_signature
=
json
.
signature
.
toString
();
_signature
=
json
.
ticket
.
toString
();
wx
.
config
({
debug
:
false
,
...
...
Please
register
or
login
to post a comment