|
@@ -49,23 +49,19 @@ function share_button(e, title, url, img, content) {
|
|
|
var u = navigator.userAgent.toLowerCase();
|
|
|
var isApple = /iphone|ipad|ipod|ios/i.test(u);
|
|
|
var isAndroid = /android/i.test(u);
|
|
|
- if (isApple) {
|
|
|
+ if (isApple || isAndroid) {
|
|
|
e.show();
|
|
|
e.click(function()
|
|
|
{
|
|
|
- share_ios(title, url, img, content);
|
|
|
- })
|
|
|
- } else if(isAndroid && window.AndroidBridge) {
|
|
|
- e.show();
|
|
|
- e.click(function()
|
|
|
- {
|
|
|
- share_android(title, url, img, content);
|
|
|
+ WX_share(url, content, title, img);
|
|
|
})
|
|
|
+
|
|
|
} else {
|
|
|
e.hide();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+/*
|
|
|
function share_ios(title, url, img, content) {
|
|
|
window.location = 'myscheme://share_title/' + title + '/share_url/' + url + '/share_img/' + img + '/share_content/' + content;
|
|
|
}
|
|
@@ -73,6 +69,7 @@ function share_ios(title, url, img, content) {
|
|
|
function share_android(title, url, img, content) {
|
|
|
window.AndroidBridge.openShare(title, url, img, content);
|
|
|
}
|
|
|
+*/
|
|
|
|
|
|
var URL = window.location.href, site;
|
|
|
site = 1;
|