Ejemplo n.º 1
0
        [OutputCache(Location = OutputCacheLocation.None, NoStore = false)]   //清除缓存
        public ActionResult QRCodePay(decimal cash)
        {
            string body      = "账户充值";
            string Recordid  = UtilTool.GenerateOutTradeNo();
            string notifyurl = "http://*****:*****@"<!DOCTYPE html>
<html lang='en'>
<head>
    <meta charset='UTF-8'>
    <title>Title</title>
    <style>
      *{
        margin: 0;
        padding: 0;
      }
      .layout-qrcode{
        width:100%;
      }
      .layout-qrcode .container{
        width:251px;
        margin:0 auto;
        border:1px solid #ddd;
        border-radius: 10px;
      }
      .layout-qrcode .content{
          padding:35px;
      }
      .layout-qrcode .qr-img{
        width:181px;
        height:181px;
      }
      .layout-qrcode .qr-txt{
          width:181px;
          margin: 15px auto 0;
      }
      .layout-qrcode .qr-txt img{
          width: 100%;
      }
    </style>
</head>
<body>
<div class='layout-qrcode'>
  <div class='container'>
    <div class='content'>
      <div class='qr-img'>
        <img src='" + pic + @"' height='181' width='181'/>
      </div>
      <div class='qr-txt'>
          <img src='/Content/wx/说明文字.png' alt=''>
      </div>
    </div>
  </div>
</div>
</body>
</html>";


            return(Content(html));
        }