...
|
...
|
@@ -8,9 +8,9 @@ |
|
|
|
|
|
module.exports = function() {
|
|
|
var $ = require('yoho-jquery');
|
|
|
var _weChatInterface = '//m.yohobuy.com/life/getSignPackage';
|
|
|
var _weChatInterface = '//m.yohobuy.com/activity/wechat/share';
|
|
|
|
|
|
$.getJSON(_weChatInterface + '?pageurl=' +
|
|
|
$.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,
|
...
|
...
|
|