228 lines
7.7 KiB
Plaintext
228 lines
7.7 KiB
Plaintext
|
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="tuiguang_link.aspx.cs" Inherits="Mtxfw.shop.tuiguang_link" %>
|
|||
|
|
<!DOCTYPE html>
|
|||
|
|
<html>
|
|||
|
|
<head runat="server">
|
|||
|
|
<title></title>
|
|||
|
|
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
|
|||
|
|
<script src="/Scripts/jquery.1.9.1.min.js"></script>
|
|||
|
|
<script src="/layer/layer.min.js"></script>
|
|||
|
|
<meta id="viewport" name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1; user-scalable=no;" />
|
|||
|
|
<style type="text/css">
|
|||
|
|
*{margin:0; padding:0;}
|
|||
|
|
<%if(IFLink == "1")
|
|||
|
|
{%>
|
|||
|
|
body{ background-color:#970113;}
|
|||
|
|
.zzbox{ position:fixed; right:0; top:0; width:auto;}
|
|||
|
|
.ulbox1{float:left;width:100%; margin:0; background-color:#fff;}
|
|||
|
|
.ulbox1 ul{width:310px;margin:0 auto; list-style-type:none;}
|
|||
|
|
.ulbox1 ul li{float:left;width:150px; line-height:40px; height:40px;font-size:12px;}
|
|||
|
|
.ulbox1 ul li span{color:#ff0000;}
|
|||
|
|
.ulbox1 ul li.picbox{float:left;width:150px; height:100px;}
|
|||
|
|
.ulbox1 ul li.picbox img{float:left; margin:10px; width:80px; height:80px;}
|
|||
|
|
.ulbox2{float:left;width:100%; margin:0 auto;}
|
|||
|
|
.ulbox2 ul{width:310px;margin:0 auto; list-style-type:none;}
|
|||
|
|
.ulbox2 ul li{width:310px; line-height:25px; text-align:center; font-size:12px; color:#fff;}
|
|||
|
|
.ulbox2 ul li.fontbox{font-size:18px;}
|
|||
|
|
.ulbox2 ul li.picbox{width:310px; height:210px;}
|
|||
|
|
.ulbox2 ul li.picbox img{width:200px; height:200px;}
|
|||
|
|
<%}else{%>
|
|||
|
|
|
|||
|
|
|
|||
|
|
.ulbox{float:left;width:100%; margin:0;}
|
|||
|
|
.ulbox ul{width:310px;margin:0 auto; list-style-type:none;}
|
|||
|
|
.ulbox ul li{float:left;width:100%; line-height:40px; height:40px;}
|
|||
|
|
.ulbox ul li.dtitle{ font-size:14px;height:100%;line-height:30px; font-weight:bold; color:#ff0000;}
|
|||
|
|
.needMoney_Purple
|
|||
|
|
{
|
|||
|
|
margin:0 auto;
|
|||
|
|
width:125px;
|
|||
|
|
height:35px;
|
|||
|
|
display:inline-block;display:-moz-inline-stack;zoom:1;*display:inline;
|
|||
|
|
background-color:#ff4a00;
|
|||
|
|
line-height:35px;
|
|||
|
|
font-size:16px;
|
|||
|
|
text-align:center;
|
|||
|
|
color:#fff;
|
|||
|
|
font-weight:bold;
|
|||
|
|
cursor:pointer;
|
|||
|
|
border:0;
|
|||
|
|
text-decoration:none;
|
|||
|
|
-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;
|
|||
|
|
}
|
|||
|
|
<%}%>
|
|||
|
|
</style>
|
|||
|
|
</head>
|
|||
|
|
<body>
|
|||
|
|
<form id="Form1" runat="server">
|
|||
|
|
<%if (IFLink == "1")
|
|||
|
|
{%>
|
|||
|
|
<div class="ulbox1">
|
|||
|
|
<ul>
|
|||
|
|
<li class="picbox"><%=strPic%></li>
|
|||
|
|
<li>我是 <span><%=strNCName%></span></li>
|
|||
|
|
<li>我为 <span>荞宝商城</span> 代言</li>
|
|||
|
|
</ul>
|
|||
|
|
</div>
|
|||
|
|
<div class="ulbox2">
|
|||
|
|
<ul>
|
|||
|
|
<li class="topbox"><img src="/images/qq/send.png" /></li>
|
|||
|
|
<li class="picbox"><img src="/images/qq/2wm.png" /></li>
|
|||
|
|
<li class="fontbox">长按此图 识别图中二维码 搞定!</li>
|
|||
|
|
<li>关注荞宝商城,奖品送不停,别人消费您还赚佣金。</li>
|
|||
|
|
</ul>
|
|||
|
|
</div>
|
|||
|
|
<%}
|
|||
|
|
else
|
|||
|
|
{%>
|
|||
|
|
<div class="ulbox">
|
|||
|
|
<ul>
|
|||
|
|
<li class="dtitle">您目前没有成功购买,还不是VIP会员,您所分享的链接业绩将不在您的名下。建议您先购买成功后,成为VIP会员了再转发链接!</li>
|
|||
|
|
<li><a href="/tuiguang_link.aspx?IFLink=1" class="needMoney_Purple">确认转发</a> <a href="/" class="needMoney_Purple">去购买</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</div>
|
|||
|
|
<%} %>
|
|||
|
|
</form>
|
|||
|
|
<%if (IFApp == "1")
|
|||
|
|
{ %>
|
|||
|
|
|
|||
|
|
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
|
|||
|
|
<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: '请将图片发送给朋友',
|
|||
|
|
desc: '<%=strurl %>',
|
|||
|
|
link: '<%=strurl %>',
|
|||
|
|
imgUrl: 'http://shop.q-b.cc/images/qq/sendto.png',
|
|||
|
|
|
|||
|
|
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: '请将图片发送给朋友',
|
|||
|
|
link: '<%=strurl %>',
|
|||
|
|
imgUrl: 'http://shop.q-b.cc/images/qq/sendto.png',
|
|||
|
|
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: '请将图片发送给朋友',
|
|||
|
|
desc: '<%=strurl %>',
|
|||
|
|
link: '<%=strurl %>',
|
|||
|
|
imgUrl: 'http://shop.q-b.cc/images/qq/sendto.png',
|
|||
|
|
success: function (res) {
|
|||
|
|
alert('已分享');
|
|||
|
|
},
|
|||
|
|
cancel: function (res) {
|
|||
|
|
alert('已取消');
|
|||
|
|
},
|
|||
|
|
fail: function (res) {
|
|||
|
|
alert(JSON.stringify(res));
|
|||
|
|
}
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
|
|||
|
|
// 2.4 监听“分享到微博”按钮点击、自定义分享内容及分享结果接口
|
|||
|
|
|
|||
|
|
wx.onMenuShareWeibo({
|
|||
|
|
title: '请将图片发送给朋友',
|
|||
|
|
desc: '<%=strurl %>',
|
|||
|
|
link: '<%=strurl %>',
|
|||
|
|
imgUrl: 'http://shop.q-b.cc/images/qq/sendto.png',
|
|||
|
|
success: function (res) {
|
|||
|
|
alert('已分享');
|
|||
|
|
},
|
|||
|
|
cancel: function (res) {
|
|||
|
|
alert('已取消');
|
|||
|
|
},
|
|||
|
|
fail: function (res) {
|
|||
|
|
alert(JSON.stringify(res));
|
|||
|
|
}
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
;!function(){
|
|||
|
|
|
|||
|
|
//加载扩展模块
|
|||
|
|
layer.config({
|
|||
|
|
extend: 'extend/layer.ext.js'
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
//页面一打开就执行,放入ready是为了layer所需配件(css、扩展模块)加载完毕
|
|||
|
|
layer.ready(function(){
|
|||
|
|
//官网欢迎页
|
|||
|
|
layer.open({
|
|||
|
|
type: 1,
|
|||
|
|
title:false,
|
|||
|
|
fix: true,
|
|||
|
|
shade: [0.8, '#000'],
|
|||
|
|
closeBtn: false,
|
|||
|
|
shadeClose: false,
|
|||
|
|
maxmin: false,
|
|||
|
|
time: 10000,
|
|||
|
|
content: '<div class="zzbox"><img src="/images/qq/mmexport.png"/></div>'
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
|
|||
|
|
});
|
|||
|
|
}();
|
|||
|
|
</script>
|
|||
|
|
<%} %>
|
|||
|
|
</body>
|
|||
|
|
</html>
|