//分享SNS组件
function getShare($shareText, $shareKey, $shareSkintype = "1", $shareType = "item", $shareClass = "qzzshare"){
    $fx = '<div class="sns-widget '.$shareClass.'" data-sharebtn="{
    \'skinType\':'.$shareSkintype.',
    \'type\':\''.$shareType.'\',
    \'key\':\''.$shareKey.'\',
    \'comment\':\'这个很赞哦...\',
    \'title\':\'\',
    \'pic\':\'\',
    \'client_id\':68,
    \'isShowFriend\':false}" title="点此分享给好友">'.$shareText.'</div>    
    ';
    return $fx;
}
//喜欢SNS组件
function getLike($likeText, $likeKey, $likeSkintype = "2", $likeType = "item", $likeClass = "qzzlike"){
if($likeType == 'item'){
$likeType = "2";
}elseif($likeType == 'shop'){
$likeType = "4";
}elseif($likeType == 'webpage'){
$likeType = "3";
}
$xh = '<div class="sns-widget '.$likeClass.'" data-like="{
\'skinType\':'.$likeSkintype.',
\'type\':'.$likeType.',
\'key\':\''.$likeKey.'\',
\'text\':\''.$likeText.'\',
\'client_id\':68}"></div>    
';    
return $xh;
}
最后编辑: admin  文档更新时间: 2020-05-20 16:14   作者:admin