dist
This commit is contained in:
@@ -161,20 +161,13 @@ export default defineComponent({
|
||||
console.log(index)
|
||||
share().then((res: any)=>{
|
||||
console.log(res)
|
||||
|
||||
let url = "";
|
||||
if(index == 1){
|
||||
const url = `https://service.weibo.com/share/share.php?url=${res.shareUrl}&appkey=2754574056&language=zh_cn&pic=${res.shareImg}&searchPic=true&title=${res.shareTitle}`
|
||||
window.open(url, "_blank")
|
||||
|
||||
url = `https://service.weibo.com/share/share.php?url=${res.shareUrl}&appkey=2754574056&language=zh_cn&pic=${res.shareImg}&searchPic=true&title=${res.shareTitle}`
|
||||
}else {
|
||||
window.FB.ui({
|
||||
method: 'share',
|
||||
href: res.shareUrl,
|
||||
quote: res.shareTitle
|
||||
}, function(response: any){
|
||||
console.log(response)
|
||||
});
|
||||
url = `https://www.facebook.com/sharer/sharer.php?%20u=${res.shareUrl}&t=${res.shareTitle}`
|
||||
}
|
||||
window.open(url, "_blank")
|
||||
})
|
||||
}
|
||||
return{
|
||||
|
||||
Reference in New Issue
Block a user