Authored by 郭成尧

wx-share-url-params

@@ -8,9 +8,9 @@ @@ -8,9 +8,9 @@
8 8
9 module.exports = function() { 9 module.exports = function() {
10 var $ = require('yoho-jquery'); 10 var $ = require('yoho-jquery');
11 - var _weChatInterface = '//m.yohobuy.com/life/getSignPackage'; 11 + var _weChatInterface = '//m.yohobuy.com/activity/wechat/share';
12 12
13 - $.getJSON(_weChatInterface + '?pageurl=' + 13 + $.getJSON(_weChatInterface + '?url=' +
14 encodeURIComponent(location.href.split('#')[0]) + '&callback=?', function(json) { 14 encodeURIComponent(location.href.split('#')[0]) + '&callback=?', function(json) {
15 var _appId, _timestamp, _nonceStr, _signature; 15 var _appId, _timestamp, _nonceStr, _signature;
16 16
@@ -23,7 +23,7 @@ module.exports = function() { @@ -23,7 +23,7 @@ module.exports = function() {
23 _appId = json.appId.toString(); 23 _appId = json.appId.toString();
24 _timestamp = json.timestamp; 24 _timestamp = json.timestamp;
25 _nonceStr = json.nonceStr.toString(); 25 _nonceStr = json.nonceStr.toString();
26 - _signature = json.signature.toString(); 26 + _signature = json.ticket.toString();
27 27
28 wx.config({ 28 wx.config({
29 debug: false, 29 debug: false,