帖子
帖子
用户
博客
课程
显示全部楼层
20
帖子
0
勋章
2046
Y币

customshare模块 demo 示例

[复制链接]
发表于 2019-7-23 11:45:33
<!DOCTYPE HTML>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="maximum-scale=1.0, minimum-scale=1.0, user-scalable=0, initial-scale=1.0, width=device-width"/>
    <meta name="format-detection" content="telephone=no, email=no, date=no, address=no">
    <title>WinA</title>
    <link rel="stylesheet" type="text/css" href="css/api.css"/>
    <link rel="stylesheet" type="text/css" href="css/box.css"/>
    <script type="text/javascript" src="script/public.js"></script>
    <style>
            p{
                    color:#999;
                    padding:5px;
            }



    </style>
    <script type="text/javascript">
                var customshare=null;
         apiready = function(){
                    customshare=api.require('customshare');
            }
               


       function customShare(){
                var param = {
                title:"定制分享测试",
                url:"www**.**",
                imgUrl:"http://f.hiphotos**.**/image/pic/item/09fa513d269759ee50f1971ab6fb43166c22dfba.jpg",
                desc:"点击测试",
                type:0};
                customshare.wxshare(param, function(ret, err){

                });
                }

<!--0,微信好友 1朋友圈,3.系统分享好友-->
    </script>
</head>
<body>
<div id="wrap">
    <div id="main">
        <br>

        <div class='itemtitle'>4.定制分享</div>
        <div class="clickbtn" tapmode="active">点击弹出</div>
        <br>
    </div>
</div>
</body>
</html>

0
帖子
0
勋章
216
Y币
感谢分享
您需要登录后才可以回帖 登录

本版积分规则