1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <meta name="viewport"
- content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no"/>
- <meta name="format-detection" content="telephone=no,email=no">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- <meta http-equiv="Cache-Control" content="no-cache,no-store,no-siteapp,must-revalidate">
- <meta http-equiv="pragma" content="no-cache">
- <meta http-equiv="expires" content="0">
- <meta name="author" content="">
- <meta name="description" content=""/>
- <meta name="keywords" content="扫码支付,线上投币,运营数据,物联网"/>
- <title>添加充值卡</title>
- <link rel="stylesheet" href="https://cdn.washpayer.com/components/lib/mui.min.css">
- <link rel="stylesheet" href="/components/custom/css/common.css"/>
- <link rel="stylesheet" href="css/xyf.common.min.css">
- <style>
- </style>
- </head>
- <body>
- <div class="">
- <div class="mui-content custom-top ">
- <div class="mui-input-group">
- <div class="mui-input-row">
- <label>卡号</label>
- <input type="text" id="cardNo" placeholder="卡号" class="mui-text-right"
- maxlength="15">
- </div>
- <div class="mui-input-row">
- <label>名称</label>
- <input type="text" id="cardName" placeholder="备注信息" maxlength="32" class="mui-text-right">
- </div>
- </div>
- <div class=" mui-table-view handleBtn mui-text-center">
- <button type="button" class=" mui-col-sm-4 mui-col-xs-4 mui-btn mui-btn-primary" onclick="save()">保存</button>
- </div>
- </div>
- </div>
- <script src="https://cdn.washpayer.com/components/lib/jquery.min.js"></script>
- <script src="https://cdn.washpayer.com/components/lib/mui.min.js"></script>
- <script src="/components/custom/js/common.js"></script>
- <script src="js/xyf.common.js"></script>
- <script>
- function save() {
- var cardNo = $("#cardNo").val();
- var cardName = $("#cardName").val();
- if (!cardNo) {
- mui.toast("请填写卡号");
- return;
- }
- if (!cardName) {
- mui.toast("请填写卡片备注信息");
- return;
- }
- var url = "/dealer/saveCard";
- var data = {
- "cardNo": cardNo,
- "cardName": cardName,
- };
- sendRequest(url, "POST", data, function (res) {
- if (res.result == 1) {
- history.back();
- } else {
- mui.toast(res.description);
- }
- });
- }
- </script>
- </body>
- </html>
|