asp写的旅游线路拼团程序,旅游公司可用

=============================================

互相学习电话微信:18611436777(加微信注明事由)

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%
Session.CodePage=936
Response.Charset = "gb2312"
Response.CodePage=936
%>
<!-- #include file="anco.asp"-->
<!-- #include file="WxAPI.asp"-->
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<meta content="yes" name="apple-mobile-web-app-capable" />
<meta content="telephone=no" name="format-detection" />
<meta name="Author" content="0431" />
<TITLE><%=anco_site_name%></TITLE>
<link rel="stylesheet" type="text/css" href="css/css.css" />
<!--jdk分享-->
<%
timestamp = DateDiff("s","1970-01-01 08:00:00",Now)
nonceStr = Wx.MakeRandStr(32)
signature = Wx.ToSign(timestamp,nonceStr)
%>
<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script>
wx.config({
debug: false, // false开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
appId: '<%= weixin_Appid %>', // 必填,公众号的唯一标识
timestamp:<%= timestamp %> , // 必填,生成签名的时间戳
nonceStr: '<%= nonceStr %>', // 必填,生成签名的随机串
signature: '<%= signature %>',// 必填,签名
jsApiList: [
'checkJsApi',
'onMenuShareTimeline',
'onMenuShareAppMessage',
'onMenuShareQQ',
'onMenuShareWeibo',
'onMenuShareQZone'
]
});
</script>
<!--jdk分享end-->
</head>
<body>
<div class="content">
<!--head-->
<div class="header">
<div class="head">
<!--<a href="index.asp" title="首页" class="home-btn iconfont">&#xe60c;</a>-->
<p class="top-title"><%=anco_site_name%></p>
<!--<div class="nav-btn iconfont">&#xe612;</div>-->
</div>
</div>
<!--head_end-->
<div class="hy_96">
<!--start-->
<ul class="index_pro">
<%
Set rs17 = SqlHelper("select id,pt30,pt30rmb,pt20,pt20rmb,fx,click,jzdate,dk_uploadfile2,title from aboutset order by id desc","")
do while not rs17.eof
yid = rs17("id")
bmrs = Conn.Execute("SELECT SUM(crsl+etsl) FROM [baoming] where yid="&yid&"")(0)'统计人数
%>
<li>
<a href="view.asp?id=<%=rs17("id")%>"><img src="<%=rs17("dk_uploadfile2")%>"></a>
<h1><a href="view.asp?id=<%=rs17("id")%>"><%=rs17("title")%></a></h1>
<dl>
<dt><span>¥<%=rs17("pt30rmb")%></span>需拼团人数达<%=rs17("pt30")%>人<span></span> <span>¥<%=rs17("pt20rmb")%></span>需拼团人数达<%=rs17("pt20")%>人</dt>
<dd><span class="iconfont">&#xe613;</span>已报名:<%=bmrs%> 人</dd><dd><span class="iconfont">&#xe603;</span>团购截止:<%=rs17("jzdate")%></dd><dd><span class="iconfont">&#xe63b;</span><%=rs17("click")%></dd><dd><span class="iconfont">&#xe61c;</span><%=rs17("fx")%></dd>
</dl>
</li>
<%
rs17.movenext
loop
rs17.close
set rs17=nothing
%>
</ul>
<!--end-->
</div>
</div><!--content结束-->
<%
conn.close
set conn=nothing
%>
<!--jdk分享-->
<script>
wx.ready(function () {

// 2. 分享接口
// 2.1 监听“分享给朋友”,按钮点击、自定义分享内容及分享结果接口
wx.onMenuShareAppMessage({
title: '<%=anco_site_name%>',
desc: '<%=anco_site_trcee%>',
link: '<%=anco_site_http%>',
imgUrl: '<%=anco_site_http%>/<%=anco_site_photo%>',
success: function (res) {
alert('分享成功');
},
cancel: function (res) {
alert('已取消');
alert(JSON.stringify(res));
},
fail: function (res) {
alert(JSON.stringify(res));
}
});

// 2.2 监听“分享到朋友圈”按钮点击、自定义分享内容及分享结果接口
wx.onMenuShareTimeline({
title: '<%=anco_site_name%>',
desc: '<%=anco_site_trcee%>',
link: '<%=anco_site_http%>',
imgUrl: '<%=anco_site_http%>/<%=anco_site_photo%>',
success: function () {
// 用户确认分享后执行的回调函数
alert("分享成功");
},
cancel: function () {
// 用户取消分享后执行的回调函数
alert("用户取消分享");
},
fail: function (res) {
alert(JSON.stringify(res));
}
});


// 2.3 监听“分享到QQ”按钮点击、自定义分享内容及分享结果接口
wx.onMenuShareQQ({
title: '<%=anco_site_name%>',
desc: '<%=anco_site_trcee%>',
link: '<%=anco_site_http%>',
imgUrl: '<%=anco_site_http%>/<%=anco_site_photo%>',
success: function (res) {
alert('已分享');
},
cancel: function (res) {
alert('已取消');
},
fail: function (res) {
alert(JSON.stringify(res));
}
});

// 2.4 监听“分享到微博”按钮点击、自定义分享内容及分享结果接口
wx.onMenuShareWeibo({
title: '<%=anco_site_name%>',
desc: '<%=anco_site_trcee%>',
link: '<%=anco_site_http%>',
imgUrl: '<%=anco_site_http%>/<%=anco_site_photo%>',
complete: function (res) {
alert(JSON.stringify(res));
},
success: function (res) {
alert('已分享');
},
cancel: function (res) {
alert('已取消');
},
fail: function (res) {
alert(JSON.stringify(res));
}
});

// 2.5 监听“分享到QZone”按钮点击、自定义分享内容及分享接口
wx.onMenuShareQZone({
title: '<%=anco_site_name%>',
desc: '<%=anco_site_trcee%>',
link: '<%=anco_site_http%>',
imgUrl: '<%=anco_site_http%>/<%=anco_site_photo%>',
complete: function (res) {
alert(JSON.stringify(res));
},
success: function (res) {
alert('已分享');
},
cancel: function (res) {
alert('已取消');
},
fail: function (res) {
alert(JSON.stringify(res));
}
});

});
</script>
<!--jdk分享end-->
</body>
</html>

扫描二维码关注公众号,回复: 3510639 查看本文章

猜你喜欢

转载自www.cnblogs.com/lytocnc/p/9765656.html