<%@ page language="C#" autoeventwireup="true" inherits="pay_wechat, kfenlei" %>
<%if(tools.IsWeChat())
{
%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Cache-control" content="no-cache" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
<link rel="stylesheet" href="/wap/wap.css" type="text/css" />
<title>微信支付</title>
</head>
<body>
<div align="left">
<div class="itop"><div class="itopio1"><a href="javascript:history.go(-1);" class="infoback">返回</a></div>
<div class="clear"></div>
</div>
<div class="tishiBox">
<div class="title">微信支付</div>
<div class="con">
正在跳转微信支付……
</div>
</div>
</div>
</body>
</html>
<%=kfWechat.jssdk_config() %>
<script type="text/javascript">
wx.ready(function ()
{
    if(window.__wxjs_environment=="miniprogram")
    {
   
          wx.miniProgram.navigateTo({url:'/pages/pay/pay?t=<%=t %>'});
    }
    else
    {
      window.location.href="<%=sUrl %>";
    }
});
</script>
<%
}
else
{ %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Cache-control" content="no-cache" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
<title>微信扫一扫支付</title>
<link rel="stylesheet" href="/wap/wap.css" type="text/css" />
<style type="text/css">
body{ background-color:#333333;}
.qrCode{margin:20px auto; width:200px; height:200px; background-color:#ffffff; padding:10px; border:1px solid #333333;}
.qrCode img{ width:200px; height:200px;}
</style>
</head>
<body>
<div style="text-align:center">
<div style="font-size:22px; color:#FFFFFF; margin-top:50px;">微信支付</div>
<div class="qrCode">
<img src="/qrCode/?s=url&id=<%=sUrl%>" />
</div>
<div style="font-size:18px; color:#FFFFFF;">请使用微信扫描二维码付款</div>
<div style="width:300px; height:50px; margin:10px auto;"><a href="/pay/wechatReturn.aspx?t=<%=t%>" target="_blank"><div class="payBtn" style="background-color:#70cd00; border-radius:25px; font-size:20px; border:1px solid #222222; letter-spacing:5px;">完成</div></a>
</div>
</div>
<script src="https://wx.gtimg.com/wxpay_h5/fingerprint2.min.1.5.1.js"></script>
<script type="text/javascript">
<%=sJs %>
</script>
</body>
</html>
<%} %>