wallet-bind-alipay.html 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8"/>
  5. <meta name="author" content=""/>
  6. <meta name="description" content=""/>
  7. <meta name="keywords" content="扫码支付,线上投币,运营数据,物联网"/>
  8. <meta name="format-detection" content="telephone=no,email=no"/>
  9. <meta name="viewport"
  10. content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
  11. <meta http-equiv="pragma" content="no-cache">
  12. <meta http-equiv="cache-control" content="no-cache">
  13. <meta http-equiv="expires" content="0">
  14. <title>绑定支付宝</title>
  15. <link rel="stylesheet" href="https://cdn.washpayer.com/components/lib/mui.min.css"/>
  16. <link rel="stylesheet" href="/components/custom/css/common.css"/>
  17. <link rel="stylesheet" href="/app/css/xyf.common.min.css">
  18. <style>
  19. </style>
  20. </head>
  21. <body>
  22. <h5 class="padding-10 margin-0 "><span class="help-title" style="line-height: 1.4">请填写支付宝账号和实名</span></h5>
  23. <form id="form" class="">
  24. <div class="mui-input-group">
  25. <div class="mui-input-row">
  26. <label>支付宝账号</label>
  27. <input type="text" id="loginId" class="text-right font-b-14"
  28. placeholder="手机或是邮箱" required>
  29. </div>
  30. <div class="mui-input-row">
  31. <label>支付宝实名</label>
  32. <input type="text" id="realName" class="text-right font-b-14"
  33. placeholder="实名认证的真实姓名" required>
  34. </div>
  35. </div>
  36. </form>
  37. <div class="custom-subt">
  38. <input class="mui-btn-block" onclick="save()" type="button" value="保存">
  39. </div>
  40. <script src="https://cdn.washpayer.com/components/lib/jquery.min.js"></script>
  41. <script src="https://cdn.washpayer.com/components/lib/mui.min.js"></script>
  42. <script src="/components/custom/js/common.js"></script>
  43. <script src="/components/custom/js/iconfont.js"></script>
  44. <script src="/app/js/xyf.common.js"></script>
  45. <script>
  46. var loginId = decodeURIComponent(getQueryString("loginId") || '');
  47. var realName = decodeURIComponent(getQueryString("realName") || '');
  48. if (loginId && realName) {
  49. $('.help-title').html('当前账号:<span class="c-blue">' + loginId + '</span> <span class="margin-l-10">实名:</span><span class="c-blue ">' + realName + '</span>')
  50. }
  51. function save() {
  52. let flag = form.reportValidity()
  53. if (!flag) {
  54. return
  55. }
  56. var data = {
  57. realName: $('#loginId').val(),
  58. loginId: $('#realName').val(),
  59. };
  60. sendRequest({
  61. url: "/dealer/saveAlipayAccount",
  62. type: "POST",
  63. data: data,
  64. contentType: "json",
  65. success: function (res) {
  66. if (res.result == 1) {
  67. mui.toast('保存成功');
  68. setTimeout(function () {
  69. history.back();
  70. }, 1000)
  71. } else {
  72. mui.toast(res.description);
  73. }
  74. }
  75. });
  76. }
  77. </script>
  78. </body>
  79. </html>