|
Server : Microsoft-IIS/10.0 System : Windows NT EBS-6136 10.0 build 17763 (Windows Server 2016) i586 User : jxgj ( 0) PHP Version : 7.0.33 Disable Function : passthru,exec,system,shell_exec,proc_open,popen,pcntl_exec,socket_bind,stream_socket_server Directory : D:/tmp_aspnet/root/ada36728/6e3bc2/ |
?#pragma checksum "D:\wwwroot\jinxiangshun123\wwwroot\Views\wxpayjs\pay.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "5BA658F1C40491C1AE5CDB0B1DA75EBEB85B38D8"
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具天生。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且若是
// 沉新天生代码,这些更改将会迷失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace ASP {
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Web;
using System.Web.Helpers;
using System.Web.Security;
using System.Web.UI;
using System.Web.WebPages;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using System.Web.Mvc.Html;
using System.Web.Optimization;
using System.Web.Routing;
using Web;
public class _Page_Views_wxpayjs_pay_cshtml : System.Web.Mvc.WebViewPage<dynamic> {
#line hidden
public _Page_Views_wxpayjs_pay_cshtml() {
}
protected ASP.global_asax ApplicationInstance {
get {
return ((ASP.global_asax)(Context.ApplicationInstance));
}
}
public override void Execute() {
WriteLiteral("\r\n");
#line 2 "D:\wwwroot\jinxiangshun123\wwwroot\Views\wxpayjs\pay.cshtml"
ViewBag.Title = "微信支付";
ViewBag.Head = true;
ViewBag.Foot = false;
ViewBag.Back = "/OrderPay/Pay/"+ ViewBag.id;
#line default
#line hidden
WriteLiteral("\r\n\r\n<div");
WriteLiteral(" class=\"order_pay\"");
WriteLiteral(">\r\n <div");
WriteLiteral(" class=\"num_zf\"");
WriteLiteral(">本次需支付<b>¥");
#line 10 "D:\wwwroot\jinxiangshun123\wwwroot\Views\wxpayjs\pay.cshtml"
Write(ViewBag.total_fee);
#line default
#line hidden
WriteLiteral("</b></div>\r\n\r\n <div");
WriteLiteral(" id=\"mess\"");
WriteLiteral(" style=\"text-align:center; margin-top:0.6rem;\"");
WriteLiteral(">\r\n <img");
WriteLiteral(" src=\"/css/images_pub/loading1.gif\"");
WriteLiteral(" /><br />\r\n 微信钱包在加载...\r\n </div>\r\n <div");
WriteLiteral(" id=\"btnbox\"");
WriteLiteral(" class=\"qx\"");
WriteLiteral(" style=\"display:none;\"");
WriteLiteral(">\r\n <a");
WriteLiteral(" id=\"btn_pay\"");
WriteLiteral(" href=\"javascript:callpay()\"");
WriteLiteral(">当即付款</a>\r\n </div>\r\n</div>\r\n\r\n\r\n");
DefineSection("js", () => {
WriteLiteral("\r\n <script");
WriteLiteral(" type=\"text/javascript\"");
WriteLiteral(">\r\n //挪用微信JS api 支付\r\n function jsApiCall()\r\n {\r\n WeixinJSBridge.in" +
"voke(\r\n \'getBrandWCPayRequest\',\r\n");
WriteLiteral(" ");
#line 29 "D:\wwwroot\jinxiangshun123\wwwroot\Views\wxpayjs\pay.cshtml"
Write(Html.Raw(ViewBag.wxJsApiParam));
#line default
#line hidden
WriteLiteral(@",
function (res)
{
WeixinJSBridge.log(res.err_msg);
//alert(res.err_code + res.err_desc + res.err_msg);
//alert(res.err_code + res.err_desc + res.err_msg);
//res.err_msg
//https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=7_7
//取缔支付返回:get_brand_wcpay_request:cancel
//支付成功返回:get_brand_wcpay_request:ok
//支付失败返回:get_brand_wcpay_request:fail
if(res.err_msg==""get_brand_wcpay_request:ok"")
{
//window.location.href = '/payres.html';
window.location.href = '/OrderPay/Result/");
#line 43 "D:\wwwroot\jinxiangshun123\wwwroot\Views\wxpayjs\pay.cshtml"
Write(ViewBag.id);
#line default
#line hidden
WriteLiteral(@"';
}else{
document.getElementById(""mess"").style.display=""none"";
document.getElementById(""btnbox"").style.display=""inherit"";
}
}
);
}
function callpay()
{
if (typeof(WeixinJSBridge) == ""undefined"")
{
if (document.addEventListener)
{
document.addEventListener('WeixinJSBridgeReady', jsApiCall, false);
}
else if (document.attachEvent)
{
document.attachEvent('WeixinJSBridgeReady', jsApiCall);
document.attachEvent('onWeixinJSBridgeReady', jsApiCall);
}
}
else
{
jsApiCall();
}
}
callpay();
</script>
");
});
}
}
}