...
|
...
|
@@ -99,6 +99,8 @@ define('plugins/share', function(require, exports) { |
|
|
name: "",
|
|
|
caption: ""
|
|
|
};
|
|
|
var appid = "",
|
|
|
domain = document.domain;
|
|
|
if (options.fbTextFunction != null) {
|
|
|
tmpResult = (function() {
|
|
|
return options.fbTextFunction.apply($(".yohoo-share-button-facebook"));
|
...
|
...
|
@@ -128,6 +130,25 @@ define('plugins/share', function(require, exports) { |
|
|
.replace(/[&]/g, "%26")
|
|
|
.replace(/[#]/g, "%23")
|
|
|
.replace(/[+]/g, "%2B");
|
|
|
if (domain === "yohood.dev.yoho.cn") {
|
|
|
appid = "146057275796393";
|
|
|
} else if (domain === "yohood.test.yoho.cn") {
|
|
|
appid = "146057275796393";
|
|
|
} else if (domain === "www.yohood.cn") {
|
|
|
appid = "146050529130401";
|
|
|
}
|
|
|
if (appid !== "") {
|
|
|
window.open("http://www.facebook.com/dialog/feed?app_id=" + appid +
|
|
|
// "&redirect_uri=" + location.href +
|
|
|
"&link=" + options.shareUrl +
|
|
|
"&picture=" + options.img +
|
|
|
"&caption=" + options.fbName +
|
|
|
"&description=" + options.fbDescription + (options.fbDescription == "" ? "" : "") +
|
|
|
"&name=" + options.fbCaption,
|
|
|
"",
|
|
|
"height=" + options.height + ",width=" + options.width + ",left=" + iLeft + ",top=" + iTop);
|
|
|
return;
|
|
|
}
|
|
|
window.open("http://www.facebook.com/dialog/feed?app_id=1431491300468916&redirect_uri=http://www.yohoboys.com/channel/yohood/closedialog&" +
|
|
|
"link=" + options.shareUrl +
|
|
|
"&picture=" + options.img +
|
...
|
...
|
@@ -183,4 +204,4 @@ define('plugins/share', function(require, exports) { |
|
|
$(".enterprise").on("click.closeWxDialog", function() {
|
|
|
$(".detail-container").trigger("click.closeWxDialog");
|
|
|
})
|
|
|
}); |
|
|
\ No newline at end of file |
|
|
}); |
...
|
...
|
|