1111
This commit is contained in:
parent
eb008f4d88
commit
b1c1bd0da0
@ -50,6 +50,52 @@ export default {
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
|
||||
|
||||
// shareToTwitter(){
|
||||
// const text = encodeURIComponent("SINOTRUK HOWO Dump Truck Manufacturers and Factory - Price - SINOTRUCK ");
|
||||
// const url = encodeURIComponent("https://www.cdtruck.com/truck/dump-truck/china-sinotruk-howo-19m3-6x4-cheap-336hp-10.html");
|
||||
// const hashtags = "example,sharing";
|
||||
// const twitterUrl = `https://twitter.com/intent/tweet?text=${text}&url=${url}&hashtags=${hashtags}`;
|
||||
// window.open(twitterUrl, "_blank");
|
||||
// },
|
||||
//
|
||||
// shareToFacebook(){
|
||||
// const url = encodeURIComponent("https://www.cdtruck.com/truck/dump-truck/china-sinotruk-howo-19m3-6x4-cheap-336hp-10.html");
|
||||
// // let url = 'https://www.cdtruck.com/truck/dump-truck/china-sinotruk-howo-19m3-6x4-cheap-336hp-10.html'
|
||||
// const facebookUrl = `https://www.facebook.com/sharer.php?kid_directed_site=0&u=${url}`;
|
||||
// window.open(facebookUrl, "_blank");
|
||||
// },
|
||||
//
|
||||
// shareToLinkedin(){
|
||||
// const title = encodeURIComponent("SINOTRUK HOWO Dump Truck Manufacturers and Factory - Price - SINOTRUCK ");
|
||||
// const url = encodeURIComponent("https://www.cdtruck.com/truck/dump-truck/china-sinotruk-howo-19m3-6x4-cheap-336hp-10.html");
|
||||
// const SUMMARY = encodeURIComponent("SUMMARY");
|
||||
// const SOURCE = encodeURIComponent("SOURCE");
|
||||
// const linkedin = `http://www.linkedin.com/shareArticle?mini=true&title=${title}&url=${url}&summary=${SUMMARY}&source=${SOURCE}&armin=armin`;
|
||||
// window.open(linkedin, "_blank");
|
||||
// },
|
||||
//
|
||||
// shareToPinterest(){
|
||||
// const pageUrl = encodeURIComponent('https://www.cdtruck.com/truck/dump-truck/china-sinotruk-howo-19m3-6x4-cheap-336hp-10.html');
|
||||
// const mediaUrl = encodeURIComponent('https://www.cdtruck.com/uploads/201912156/china-sinotruk-howo-19m3-6x4-cheap-336hp-1005360771358.jpg'); // 替换为你的图片URL
|
||||
// const description = encodeURIComponent('这是我分享的网页内容描述'); // 替换为你的描述内容
|
||||
// const pinterestUrl = `https://www.pinterest.com/pin/create/button/?url=${pageUrl}&media=${mediaUrl}&description=${description}`;
|
||||
// window.open(pinterestUrl, '_blank');
|
||||
// },
|
||||
//
|
||||
// shareToWhatsapp(){
|
||||
// const text = encodeURIComponent("SINOTRUK HOWO Dump Truck Manufacturers and Factory - Price - SINOTRUCK ");
|
||||
// const url = encodeURIComponent("https://www.cdtruck.com/truck/dump-truck/china-sinotruk-howo-19m3-6x4-cheap-336hp-10.html");
|
||||
// const whatsappUrl = `https://api.whatsapp.com/send?text=${text}&url=${url}`;
|
||||
// window.open(whatsappUrl, "_blank");
|
||||
// },
|
||||
// shareToWhatsapp2(){
|
||||
// const whatsappUrl = `https://api.whatsapp.com/send?l=en&phone=8618253112969`;
|
||||
// window.open(whatsappUrl, "_blank");
|
||||
// },
|
||||
|
||||
|
||||
toShare(id){
|
||||
const url = encodeURIComponent(window.location.href);
|
||||
const title = encodeURIComponent(document.title);
|
||||
|
Loading…
Reference in New Issue
Block a user