分享到QQ,微信,微博等

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <title>分享到QQ,微信,微博等</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-

scalable=0">
        <meta name="format-detection" content="telephone=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="stylesheet" type="text/css" href="$!webPath/resources/mobile/css/common.css" />
        <link rel="stylesheet" type="text/css" href="$!webPath/resources/mobile/css/hfc_style.css" />      
        <script type="text/javascript" src="$!webPath/resources/mobile/js/jquery-1.9.1.js" ></script>
        <script type="text/javascript" src="$!webPath/resources/mobile/js/init.js" ></script>
        
        <script type="text/javascript" src="$!webPath/resources/mobile/js/ShareSDK.js" ></script>
        <script>
        #set($jq="$")
        function init()
        {
            //1、配置平台信息,有开放平台账号系统的平台需要自行去申请账号(平台字段参考:http://wiki.mob.com/社交平

台配置项说明/)
            var platformConfig = {};
            
            //以下是示例
            //新浪微博
            var sinaConf = {};
            sinaConf["app_key"] = "2717668240";
            sinaConf["app_secret"] = "5ee75ee64e6c767b4dff75914cba7645";
            sinaConf["redirect_uri"] = "http://www.huifencheng.com";
            platformConfig[${jq}sharesdk.PlatformID.SinaWeibo] = sinaConf;
            
            //微信
            var weixinConf = {};
            weixinConf["app_id"] = "wx91a7749c7046a780";
            weixinConf["app_secret"] = "3a0c4da1aedb7b2bbb064f6f71b76fe3";
            platformConfig[${jq}sharesdk.PlatformID.WechatPlatform] = weixinConf;

            //QQ
            var qqConf = {};
            qqConf["app_id"] = "1105241169";
            qqConf["app_key"] = "6YyDlsuRR6qUgSJY";
            platformConfig[${jq}sharesdk.PlatformID.QQPlatform] = qqConf;

            //2、初始化ShareSDK
            ${jq}sharesdk.initSDKAndSetPlatfromConfig("1083c05e733ae", platformConfig);
        }

        function shareWeibo(){
            var params = {
                "text" : "分享到QQ,微信,微博等,
                "title" : "分享到QQ,微信,微博等",
                "imageUrl" : "http://www.huifencheng.cn/statics/images/img3/logo1.jpg",
                "url" : "$!webPath/m/seller/register.htm?uid=$!user.id",
                "titleUrl" : "$!webPath/m/seller/invite_register.htm?uid=$!user.id",
                "description" : "分享到QQ,微信,微博等",
                "site" : "分享到QQ,微信,微博等",
                "siteUrl" : "http://www.huifencheng.com",
                "type" : ${jq}sharesdk.ContentType.Auto
            };
            ${jq}sharesdk.showShareMenu(null, params, 100, 100, function (reqID, platform, state, shareInfo, error)

{
            });
        }
        </script>

    <script type="text/javascript" src="$!webPath/resources/mobilestyle/script/alert.js"></script></head>
    <body οnlοad="init()" >
        <div class="userCenterPage">
            <div class="public_top" style="background:#ffffff;">
                分享到QQ,微信,微博等
            </div>
            <div class="top">
                <div class="balance_list">
                    <div class="item">
                        <span class="label">分享到QQ,微信,微博等</span>
                        <span class="text">¥#if(!$balance) 0.0 #else $balance #end</span>
                    </div>
                    <div class="item">
                        <span class="label">分享到QQ,微信,微博等</span>
                        <span class="text">¥#if(!$sellerAvailableBalance) 0.0 #else 

$sellerAvailableBalance #end</span>
                    </div>
                    <div class="item">
                        <span class="label">分享到QQ,微信,微博等</span>
                        <span class="text text_b">¥#if(!$sellerFreezeBlance) 0.0 #else 

$sellerFreezeBlance #end</span>
                    </div>
                </div>
                <div class="messageBox">
                    <a href="$!webPath/m/seller/predeposit_log.htm" class="text_w">分享到QQ,微信,微博等</a>
                </div>
                <div class="settingBox"> 
                    <a href="$!webPath/m/seller/setting.htm">
                        <span class="icon_setting"></span>
                    </a>
                </div>
            </div>  
            
            <div class="functionSection">
                <a href="$!webPath/m/seller/seller_cash.htm">
                    <span class="icon_money2"></span>分享到QQ,微信,微博等
                </a>
                
                <a href="$!webPath/m/seller/account_safe.htm">
                    <span class="icon_protect"></span>分享到QQ,微信,微博等
                </a>
                
                <a href="$!webPath/m/seller/account_certification.htm">
                    <span class="icon_card"></span>分享到QQ,微信,微博等
                </a>
                
                <a href="$!webPath/m/seller/bank_card_list.htm">
                    <span class="icon_bankcard"></span>分享到QQ,微信,微博等
                </a>
                #if($!jsapiconfig)
                <a href="javascript:alert('请点击微信左上角图标进行分享');" class="no_arrow">
                    <span class="icon_person_group"></span>分享到QQ,微信,微博等
                </a>
                #else
                <a href="javascript:shareWeibo();" class="no_arrow">
                    <span class="icon_person_group"></span>分享到QQ,微信,微博等
                </a>
                #end
                
                <a href="$!webPath/m/setting_helps.htm">
                    <span class="icon_question"></span>分享到QQ,微信,微博等
                </a>
            </div> 
        </div> 
  
    </body>  
</html>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值