227 lines
7.4 KiB
Plaintext
227 lines
7.4 KiB
Plaintext
<%@ Page Title="" Description="" Language="C#" AutoEventWireup="true" CodeBehind="tg2wm2.aspx.cs" Inherits="Mtxfw.VipSite.tg2wm2" %>
|
||
<!DOCTYPE html>
|
||
<html style="background-color:#fff;">
|
||
<head>
|
||
<title><%=SiteTitle %></title>
|
||
<meta charset="utf-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||
<meta http-equiv="Cache-Control" content="no-transform " />
|
||
<link rel ="alternate" media ="handheld" href ="#" />
|
||
<link rel="Shortcut Icon" href="/favicon.ico">
|
||
<link href="css/User_Info.css" media="screen" rel="stylesheet" type="text/css" />
|
||
<script type="text/javascript" src="/Scripts/jquery-1.9.1.min.js"></script>
|
||
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
|
||
<style type="text/css">
|
||
a,a:visited{ text-decoration:none;}
|
||
header.main {
|
||
width:100%;
|
||
margin:0;
|
||
padding:0;
|
||
background:#fff;
|
||
position:relative;
|
||
float:left;
|
||
height:3em;
|
||
line-height:3em;
|
||
border-bottom:1px solid #efefef;
|
||
}
|
||
.logo {
|
||
margin:0;
|
||
font-size:1.4em;
|
||
text-align:center
|
||
}
|
||
header.main .logo {
|
||
font-family:"museo-sans","Museo Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
|
||
font-weight:300;
|
||
font-weight:700;
|
||
float:none;
|
||
width:100%;
|
||
margin:0 auto;
|
||
position:relative;
|
||
}
|
||
|
||
header.main a.menu-trigger,header.main a.menu-trigger:visited {
|
||
position:absolute;
|
||
top:0.5em;
|
||
left:1em;
|
||
padding:0;
|
||
display:block;
|
||
width:auto;
|
||
height:100%;
|
||
|
||
}
|
||
header.main a.menu-trigger img,header.main a.menu-trigger:visited img
|
||
{
|
||
width:1.3em;
|
||
height:1.3em;
|
||
}
|
||
header.main a.fanhui-trigger,header.main a.fanhui-trigger:visited {
|
||
position:absolute;
|
||
top:0;
|
||
left:2em;
|
||
padding:0;
|
||
font-size:1.2em;
|
||
display:block;
|
||
width:auto;
|
||
height:100%;
|
||
line-height:2.8em;
|
||
color:#bbb;
|
||
}</style>
|
||
<style type="text/css">
|
||
.ewmbox{width: 540px; min-height:750px; margin:0px auto; position:relative; /*background:url('/images/2wm_bg.png?t=3') no-repeat 0 0;background-size:100% 100%;*/}
|
||
.ewmboxto{height:300px;}
|
||
.owner-2wm{float: left; margin:0; width:100%; text-align:center; }
|
||
.owner-2wm div{margin:0 auto;margin-top:0px; width:100px;height:120px; line-height:25px; color:#fff; font-size:18px; font-weight:bold; }
|
||
.owner-2wm img{margin-top:0px; width:80px;height:80px; padding:10px; background-color:#fff;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;}
|
||
|
||
@media screen and (max-width:720px)
|
||
{
|
||
.ewmbox{width: 100%;min-height:640px;}
|
||
.ewmboxto{height:310px;}
|
||
}
|
||
|
||
</style>
|
||
</head>
|
||
<body id="activity-detail" style="max-width: 720px; margin:0px auto; position:relative;">
|
||
|
||
<header class="main">
|
||
<div class="logo"><%=strRealName%>的推广二维码</div>
|
||
<%if (Request.QueryString["t"] != null)
|
||
{ %>
|
||
<a href="javascript:history.go(-1);" class="menu-trigger"><img src="../images/faifeito0.png" /></a>
|
||
<a href="javascript:history.go(-1);" class="fanhui-trigger">返回</a>
|
||
<%} %>
|
||
</header><div style="clear:both"></div>
|
||
<div class="ewmbox">
|
||
<img src="<%=EWMPic %>" style="width:100%;" />
|
||
<!--div class="ewmboxto" style=" width:100%; ">
|
||
|
||
</div>
|
||
<div class="owner-2wm">
|
||
<div>
|
||
<img src="<%=EWMPic %>" />
|
||
<br>立即扫码>
|
||
</div>
|
||
</div-->
|
||
</div>
|
||
|
||
|
||
|
||
<div class="fg"></div>
|
||
<div style="clear:both"></div>
|
||
|
||
<script type="text/javascript">
|
||
wx.config({
|
||
debug: false,
|
||
appId: '<%=appKey %>',
|
||
timestamp: <%=timestamp %>,
|
||
nonceStr: '<%=nonceStr %>',
|
||
signature: '<%=signature %>',
|
||
jsApiList: ['onMenuShareAppMessage','onMenuShareTimeline','onMenuShareQQ','onMenuShareWeibo']
|
||
});
|
||
/*
|
||
* 注意:
|
||
* 1. 所有的JS接口只能在公众号绑定的域名下调用,公众号开发者需要先登录微信公众平台进入“公众号设置”的“功能设置”里填写“JS接口安全域名”。
|
||
* 2. 如果发现在 Android 不能分享自定义内容,请到官网下载最新的包覆盖安装,Android 自定义分享接口需升级至 6.0.2.58 版本及以上。
|
||
* 3. 完整 JS-SDK 文档地址:http://mp.weixin.qq.com/wiki/7/aaa137b55fb2e0456bf8dd9148dd613f.html
|
||
*
|
||
* 如有问题请通过以下渠道反馈:
|
||
* 邮箱地址:weixin-open@qq.com
|
||
* 邮件主题:【微信JS-SDK反馈】具体问题
|
||
* 邮件内容说明:用简明的语言描述问题所在,并交代清楚遇到该问题的场景,可附上截屏图片,微信团队会尽快处理你的反馈。
|
||
*/
|
||
wx.ready(function () {
|
||
|
||
|
||
// 2. 分享接口
|
||
// 2.1 监听“分享给朋友”,按钮点击、自定义分享内容及分享结果接口
|
||
|
||
wx.onMenuShareAppMessage({
|
||
title: '您好,我是<%=strRealName %>',
|
||
desc: '邀您做播主,轻松躺赚上百万!',
|
||
link: '<%=strurl %>',
|
||
imgUrl: '<%=EWMPic2 %>',
|
||
|
||
trigger: function (res) {
|
||
// 不要尝试在trigger中使用ajax异步请求修改本次分享的内容,因为客户端分享操作是一个同步操作,这时候使用ajax的回包会还没有返回
|
||
//alert('用户点击发送给朋友');
|
||
},
|
||
success: function (res) {
|
||
alert('已分享');
|
||
},
|
||
cancel: function (res) {
|
||
alert('已取消');
|
||
},
|
||
fail: function (res) {
|
||
alert(JSON.stringify(res));
|
||
}
|
||
|
||
});
|
||
|
||
|
||
// 2.2 监听“分享到朋友圈”按钮点击、自定义分享内容及分享结果接口
|
||
wx.onMenuShareTimeline({
|
||
title: '您好,我是<%=strRealName %>',
|
||
link: '<%=strurl %>',
|
||
imgUrl: '<%=EWMPic2 %>',
|
||
trigger: function (res) {
|
||
// 不要尝试在trigger中使用ajax异步请求修改本次分享的内容,因为客户端分享操作是一个同步操作,这时候使用ajax的回包会还没有返回
|
||
//alert('用户点击发送给朋友');
|
||
},
|
||
success: function (res) {
|
||
alert('已分享');
|
||
},
|
||
cancel: function (res) {
|
||
alert('已取消');
|
||
},
|
||
fail: function (res) {
|
||
alert(JSON.stringify(res));
|
||
}
|
||
});
|
||
|
||
|
||
// 2.3 监听“分享到QQ”按钮点击、自定义分享内容及分享结果接口
|
||
|
||
wx.onMenuShareQQ({
|
||
title: '您好,我是<%=strRealName %>',
|
||
desc: '邀您在安哥共享购物享受批发价,百元开启我们的创业梦想!',
|
||
link: '<%=strurl %>',
|
||
imgUrl: '<%=EWMPic2 %>',
|
||
success: function (res) {
|
||
alert('已分享');
|
||
},
|
||
cancel: function (res) {
|
||
alert('已取消');
|
||
},
|
||
fail: function (res) {
|
||
alert(JSON.stringify(res));
|
||
}
|
||
});
|
||
|
||
|
||
// 2.4 监听“分享到微博”按钮点击、自定义分享内容及分享结果接口
|
||
|
||
wx.onMenuShareWeibo({
|
||
title: '您好,我是<%=strRealName %>',
|
||
desc: '邀您做地主,轻松躺赚上百万!',
|
||
link: '<%=strurl %>',
|
||
imgUrl: '<%=EWMPic2 %>',
|
||
success: function (res) {
|
||
alert('已分享');
|
||
},
|
||
cancel: function (res) {
|
||
alert('已取消');
|
||
},
|
||
fail: function (res) {
|
||
alert(JSON.stringify(res));
|
||
}
|
||
});
|
||
|
||
|
||
});
|
||
|
||
|
||
</script>
|
||
</body>
|
||
</html> |