Authored by liangxs

Merge branch 'beta/wap' of http://git.dev.yoho.cn/web/yohobuywap into beta/wap

@@ -2179,7 +2179,7 @@ window.successShare = function() { @@ -2179,7 +2179,7 @@ window.successShare = function() {
2179 success: function(data) { 2179 success: function(data) {
2180 var code = data.code; 2180 var code = data.code;
2181 2181
2182 - if (code === 200) { 2182 + if (code === 200 && data.data > 0) {
2183 tip.show('分享成功,亲密度+10'); 2183 tip.show('分享成功,亲密度+10');
2184 } 2184 }
2185 }, 2185 },
@@ -3954,7 +3954,13 @@ $receive.on('click', function() { @@ -3954,7 +3954,13 @@ $receive.on('click', function() {
3954 success: function(data) { 3954 success: function(data) {
3955 var msg = data.msg, 3955 var msg = data.msg,
3956 status = data.status, 3956 status = data.status,
  3957 + newUrl;
  3958 +
  3959 + if (getUrlParam('app-version')) {
  3960 + newUrl = data.url + '?code=' + getUrlParam('code') + '&app-version=' + getUrlParam('app-version');
  3961 + } else {
3957 newUrl = data.url + '?code=' + getUrlParam('code'); 3962 newUrl = data.url + '?code=' + getUrlParam('code');
  3963 + }
3958 3964
3959 if (data.noLogin === true) { 3965 if (data.noLogin === true) {
3960 if ($('#intimacy-link').length <= 0) { 3966 if ($('#intimacy-link').length <= 0) {
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
@@ -73,7 +73,7 @@ window.successShare = function() { @@ -73,7 +73,7 @@ window.successShare = function() {
73 success: function(data) { 73 success: function(data) {
74 var code = data.code; 74 var code = data.code;
75 75
76 - if (code === 200) { 76 + if (code === 200 && data.data > 0) {
77 tip.show('分享成功,亲密度+10'); 77 tip.show('分享成功,亲密度+10');
78 } 78 }
79 }, 79 },