Files
g.hnyhua.cn/Mtxfw.VipSite/mobile/tg2wm.aspx
2026-02-07 15:48:27 +08:00

162 lines
5.4 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<%@ Page Title="" Description="" Language="C#" AutoEventWireup="true" CodeBehind="tg2wm.aspx.cs" Inherits="Mtxfw.VipSite.tg2wm" %>
<!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" />
<style type="text/css">
.zzbox{ position:fixed; right:0; top:0; width:100%; height:100%;background-color: rgba(0,0,0,0.8);}
.zzbox img{ position:absolute; right:0; top:0;}
</style>
<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>
<script type="text/javascript">
$(document).ready(function () {
setInterval("$('.zzbox').hide();", 5000);
});
</script>
</head>
<body id="activity-detail" style="max-width: 720px;margin:0px auto; position:relative;">
<div class="baomingheader">
我的二维码
</div>
<form id="form1" runat="server">
<div class="owner-2wm">
<img src="<%=EWMPic %>" />
<div></div>
</div>
</form>
<div class="fg"></div>
<div class="zzbox" onclick="$('.zzbox').hide();"><img src="/images/mmexport.png"/></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: '请将图片发送给朋友',
desc: '<%=strurl %>',
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: '请将图片发送给朋友',
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: '请将图片发送给朋友',
desc: '<%=strurl %>',
link: '<%=strurl %>',
imgUrl: '<%=EWMPic2 %>',
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: '<%=EWMPic2 %>',
success: function (res) {
alert('已分享');
},
cancel: function (res) {
alert('已取消');
},
fail: function (res) {
alert(JSON.stringify(res));
}
});
});
</script>
</body>
</html>