113 lines
3.4 KiB
Plaintext
113 lines
3.4 KiB
Plaintext
|
|
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="openid2.aspx.cs" Inherits="SystemManage_openid2" %>
|
||
|
|
|
||
|
|
<!DOCTYPE html>
|
||
|
|
|
||
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||
|
|
<head runat="server">
|
||
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||
|
|
<title>绑定微信公众号</title>
|
||
|
|
<style type="text/css">
|
||
|
|
body {
|
||
|
|
font-family: "微软雅黑", "宋体", Arial, sans-serif;
|
||
|
|
font-size: 12px;
|
||
|
|
}
|
||
|
|
.t1 {
|
||
|
|
clear: both;
|
||
|
|
/* border-collapse: collapse; */
|
||
|
|
border: 1px solid #bebeff;
|
||
|
|
}
|
||
|
|
.t1 tr td {
|
||
|
|
border-bottom: 1px solid #bebeff;
|
||
|
|
padding: 5px 0px 5px 10px;
|
||
|
|
line-height: 22px;
|
||
|
|
word-break: break-all;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ltd {
|
||
|
|
text-align: right;
|
||
|
|
background: #e8e8e8;
|
||
|
|
}
|
||
|
|
|
||
|
|
.rtd {
|
||
|
|
text-align: left;
|
||
|
|
background-color: #fff;
|
||
|
|
}
|
||
|
|
h4, .h4 {
|
||
|
|
font-size: 18px;
|
||
|
|
}
|
||
|
|
</style>
|
||
|
|
</head>
|
||
|
|
<body>
|
||
|
|
<table id="PrintHide" style="width: 100%" border="0" cellpadding="0" cellspacing="0">
|
||
|
|
<tr>
|
||
|
|
<td valign="middle" style="border-bottom: #006633 1px dashed; height: 30px;"> <img src="../images/BanKuaiJianTou.gif" />
|
||
|
|
<a class="hei" href="../Main/MyDesk.aspx">桌面</a> >> 系统管理 >> 绑定微信公众号
|
||
|
|
</td>
|
||
|
|
<td align="right" valign="middle" style="border-bottom: #006633 1px dashed; height: 30px;">
|
||
|
|
<img class="HerCss" onclick="javascript:window.history.go(-1)" src="../images/Button/BtnExit.jpg" /> </td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<td height="3px" colspan="2" style="background-color: #ffffff"></td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
|
||
|
|
<table class="t1" style="width: 600px">
|
||
|
|
<tr>
|
||
|
|
<td colspan="3">
|
||
|
|
<h3>扫描下方二维码绑定微信</h3>
|
||
|
|
</td>
|
||
|
|
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<td rowspan="3">
|
||
|
|
<img id="qr" src="<%=qrurl %>" width="200" />
|
||
|
|
</td>
|
||
|
|
<td colspan="2">
|
||
|
|
<h4>当前绑定信息</h4>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<td class="ltd">头像:</td>
|
||
|
|
<td class="rtd">
|
||
|
|
<img src="<%=headimgurl %>" />
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<td class="ltd">昵称:</td>
|
||
|
|
<td class="rtd"><%=nickname %></td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
<script src="../JS/jquery-1.4.1.min.js"></script>
|
||
|
|
<script>
|
||
|
|
$(function () {
|
||
|
|
setInterval(function () {
|
||
|
|
$.ajax({
|
||
|
|
url: "getqr.ashx",
|
||
|
|
type: "post",
|
||
|
|
dataType: "json",
|
||
|
|
success: function (data) {
|
||
|
|
$("#qr").attr("src", data.Message);
|
||
|
|
}
|
||
|
|
});
|
||
|
|
}, 100 * 1000);
|
||
|
|
|
||
|
|
|
||
|
|
var ckb = setInterval(function () {
|
||
|
|
$.ajax({
|
||
|
|
url: "checkbd.ashx",
|
||
|
|
type: "post",
|
||
|
|
dataType: "json",
|
||
|
|
success: function (data) {
|
||
|
|
if (data.State == 1) {
|
||
|
|
clearInterval(ckb);
|
||
|
|
alert("绑定微信成功");
|
||
|
|
location.reload()
|
||
|
|
}
|
||
|
|
}
|
||
|
|
});
|
||
|
|
}, 6000);
|
||
|
|
})
|
||
|
|
</script>
|
||
|
|
</body>
|
||
|
|
</html>
|