| | |
| | | <head>
|
| | | <meta charset="utf-8">
|
| | | <title>提现记录</title>
|
| | | <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
| | | <meta name="viewport" content="width=device-width,initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
| | | <link rel="stylesheet" type="text/css" href="./css/base.css" />
|
| | | <link rel="stylesheet" type="text/css" href="./css/txRecord.css" />
|
| | | <script>
|
| | |
| | | <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
|
| | | <script src="http://img.flqapp.com/resource/js/app2019112217.js"></script>
|
| | | <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
|
| | | <script src="js/laydate/laydate.js" type="text/javascript" charset="utf-8"></script>
|
| | | </head>
|
| | | <body>
|
| | | <div id="root">
|
| | |
| | | <div class="div_items_top_left">
|
| | | <img src="img/icon_tx.png" class="imtTx">
|
| | | <div class="div_items_top_left_content">
|
| | | <div class="div_items_top_left_content_title">你于{{item.txDate}}提现成功</div>
|
| | | <div class="div_items_top_left_content_content">支付宝:{{item.txPhone}} -姓名:{{item.txName}}</div>
|
| | | <div class="div_items_top_left_content_title">{{item.title}}</div>
|
| | | <div class="div_items_top_left_content_content">{{item.account}}</div>
|
| | | </div>
|
| | | </div>
|
| | | <div class="div_items_top_right">
|
| | | ¥{{item.txMoney}}
|
| | | {{item.money}}
|
| | | </div>
|
| | | </div>
|
| | |
|
| | | <img src="img/icon_close.png" class="deleClose" @click="deleteData(item.id)">
|
| | | <div class="div_items_line"></div>
|
| | | </div>
|
| | | </div>
|
| | |
| | | <img src="img/icon_add.png">
|
| | | </div>
|
| | | <div class="div_add_desc">添加提现记录</div>
|
| | | </div> |
| | | </div>
|
| | | <div style="height: 5.3rem"></div>
|
| | |
|
| | | <!-- 重要提示 -->
|
| | |
| | | 3.系统将会记录上一次填写的预览数据;<br>
|
| | | <span style="color: #E5005C;">4.提交预览后,系统会让相关页面保留预览数据10分钟,10分钟后恢复到非预览数据。</span>
|
| | | </div>
|
| | | <div style="height: 0.41rem"></div>
|
| | | <div style="height: 0.41rem;"></div>
|
| | | </div>
|
| | |
|
| | | <!-- 提交申请 -->
|
| | |
| | | <input id="inpunt_date" class="input" type="text" placeholder="如:2020.02.02 20:00">
|
| | | </div>
|
| | |
|
| | | <div id="tx_other" class="tx_title_desc">支付宝手机号</div>
|
| | | <div class="div_input_content_bg">
|
| | | <input id="inpunt_phone" class="input" type="text" placeholder="系统会自动隐藏后4位" maxlength="11" oninput="value=value.replace(/[^\d]/g,'')">
|
| | | </div>
|
| | |
|
| | | <div id="tx_other" class="tx_title_desc">支付宝真实姓名</div>
|
| | | <div class="div_input_content_bg">
|
| | | <input id="inpunt_name" class="input" type="text" placeholder="系统会只显示姓氏">
|
| | | </div>
|
| | |
|
| | | <div id="tx_other" class="tx_title_desc">提现金额</div>
|
| | | <div class="div_input_content_bg">
|
| | | <input id="inpunt_money" class="input" type="text" placeholder="单笔最大提现金额不超过1000" maxlength="4" oninput="value=value.replace(/[^\d]/g,'')">
|
| | |
| | | </div>
|
| | | </body>
|
| | |
|
| | | <script type="text/javascript">
|
| | | // laydate.render({
|
| | | // elem: '#inpunt_date',
|
| | | // trigger: 'click',
|
| | | // type: 'datetime'
|
| | | // });
|
| | |
|
| | | laydate.render({
|
| | | elem: '#inpunt_ccc',
|
| | | trigger: 'touchend',
|
| | | });
|
| | | </script>
|
| | |
|
| | | <script>
|
| | | // "http://api.flqapp.com";
|
| | | var host = "http://192.168.1.122:8080";
|
| | | var host = "http://192.168.1.253:8080";
|
| | | $(function() {
|
| | | var app = new Vue({
|
| | | el: '#root',
|
| | | data: {
|
| | | buttonName: '提交预览',
|
| | | dataList: [],
|
| | | pushList: []
|
| | | },
|
| | | watch: {},
|
| | | methods: {
|
| | |
| | | },
|
| | | commitAddTxRecord: function() {
|
| | | var txDate = $('#inpunt_date').val();
|
| | | var txPhone = $('#inpunt_phone').val();
|
| | | var txName = $('#inpunt_name').val();
|
| | | var txMoney = $('#inpunt_money').val();
|
| | | if (txDate.length <= 0 || txDate == null) {
|
| | | yesApp.toast('请输入提现时间')
|
| | | return;
|
| | | }
|
| | | if (txPhone.length <= 0 || txPhone == null) {
|
| | | yesApp.toast('请输入支付宝手机号')
|
| | | return;
|
| | | }
|
| | | if (txName.length <= 0 || txName == null) {
|
| | | yesApp.toast('请输入支付宝真实姓名')
|
| | | return;
|
| | | }
|
| | |
|
| | | if (txMoney.length <= 0 || txMoney == null) {
|
| | | yesApp.toast('请输入提现金额')
|
| | | return;
|
| | | }
|
| | | // 验证手机号 |
| | | var myreg = /^[1][3,4,5,7,8][0-9]{9}$/;
|
| | | if (!myreg.test(txPhone)) {
|
| | | yesApp.toast('请输入正确的手机号')
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | | yesApp.toast('单笔最大提现金额不超过1000')
|
| | | return;
|
| | | }
|
| | | var showPhone = app.formatPhone(txPhone)
|
| | | var showName = app.formatName(txName, 1)
|
| | |
|
| | | var showParms = {
|
| | | txDate: txDate,
|
| | | txPhone: showPhone,
|
| | | txName: showName,
|
| | | txMoney: txMoney
|
| | | }
|
| | | yesApp.showLoading();
|
| | | var uid = yesApp.getUid();
|
| | | var params = {
|
| | | uid: uid,
|
| | | dayTime: txDate,
|
| | | money: txMoney
|
| | | };
|
| | | params = yesApp.getRequestBaseParams(params);
|
| | |
|
| | | var pushParms = {
|
| | | txDate: txDate,
|
| | | txPhone: txPhone,
|
| | | txName: txName,
|
| | | txMoney: txMoney
|
| | | }
|
| | | var showList = app.dataList;
|
| | | showList.push(showParms);
|
| | | app.dataList = showList; |
| | | |
| | | // 上传的数组
|
| | | var pushList = app.pushList;
|
| | | pushList.push(pushParms);
|
| | | app.pushList = pushList;
|
| | | app.hiddenDialog()
|
| | | $.ajax({
|
| | | type: "GET",
|
| | | data: JSON.parse(params),
|
| | | url: host + "/fanli/api/v2/preview/saveExtractRecord",
|
| | | dataType: "jsonp",
|
| | | async: false,
|
| | | success: function(result) {
|
| | | if (result.code == 0) {
|
| | | app.hiddenDialog();
|
| | | app.fetchExtractRecord();
|
| | |
|
| | | } else {
|
| | | yesApp.hideLoading();
|
| | | yesApp.toast(result.msg);
|
| | | }
|
| | | },
|
| | |
|
| | | error: function(XMLHttpRequest, textStatus, errorThrown) {
|
| | | yesApp.hideLoading();
|
| | | if (textStatus === 'timeout') {}
|
| | | }
|
| | | });
|
| | | },
|
| | |
|
| | | fetchExtractRecord: function() {
|
| | | var uid = yesApp.getUid();
|
| | | var params = {
|
| | | uid: uid,
|
| | | };
|
| | | params = yesApp.getRequestBaseParams(params);
|
| | |
|
| | | $.ajax({
|
| | | type: "GET",
|
| | | data: JSON.parse(params),
|
| | | url: host + "/fanli/api/v2/preview/getExtractRecord",
|
| | | dataType: "jsonp",
|
| | | async: false,
|
| | | success: function(result) {
|
| | | yesApp.hideLoading();
|
| | | if (result.code == 0) {
|
| | | app.dataList = result.data.list;
|
| | |
|
| | | } else {
|
| | | yesApp.toast(result.msg);
|
| | | }
|
| | | },
|
| | | error: function(XMLHttpRequest, textStatus, errorThrown) {
|
| | | yesApp.hideLoading();
|
| | | if (textStatus === 'timeout') {
|
| | | setTimeout(function() {}, 2000);
|
| | | }
|
| | | }
|
| | | });
|
| | | },
|
| | |
|
| | | commitInfo: function() {
|
| | | yesApp.showLoading();
|
| | | var uid = yesApp.getUid();
|
| | | var params = {
|
| | | uid: uid,
|
| | | };
|
| | | params = yesApp.getRequestBaseParams(params);
|
| | |
|
| | | $.ajax({
|
| | | type: "GET",
|
| | | data: JSON.parse(params),
|
| | | url: host + "/fanli/api/v2/preview/previewExtractRecord",
|
| | | dataType: "jsonp",
|
| | | async: false,
|
| | | success: function(result) {
|
| | | if (result.code == 0) {
|
| | | yesApp.hideLoading();
|
| | | yesApp.toast('' + result.data);
|
| | |
|
| | | } else {
|
| | | yesApp.hideLoading();
|
| | | yesApp.toast(result.msg);
|
| | | }
|
| | | },
|
| | | error: function(XMLHttpRequest, textStatus, errorThrown) {
|
| | | yesApp.hideLoading();
|
| | | if (textStatus === 'timeout') {
|
| | | alert('請求超時');
|
| | | setTimeout(function() {
|
| | | alert('重新请求');
|
| | | }, 2000);
|
| | | }
|
| | | }
|
| | | });
|
| | | },
|
| | |
|
| | | formatName: function(str, index) {
|
| | | return str.substr(0, index) + new Array(str.length).join('*');
|
| | | },
|
| | | deleteData: function(idType) {
|
| | | yesApp.showLoading();
|
| | | var uid = yesApp.getUid();
|
| | | var params = {
|
| | | uid: uid,
|
| | | id: idType,
|
| | | };
|
| | | params = yesApp.getRequestBaseParams(params);
|
| | |
|
| | | formatPhone: function(str) {
|
| | | return str.substring(0, 7) + '****';
|
| | | $.ajax({
|
| | | type: "GET",
|
| | | data: JSON.parse(params),
|
| | | url: host + "/fanli/api/v2/preview/deleteExtractRecord",
|
| | | dataType: "jsonp",
|
| | | async: false,
|
| | | success: function(result) {
|
| | | if (result.code == 0) {
|
| | | app.hiddenDialog();
|
| | | app.fetchExtractRecord();
|
| | |
|
| | | } else {
|
| | | yesApp.hideLoading();
|
| | | yesApp.toast(result.msg);
|
| | | }
|
| | | },
|
| | | error: function(XMLHttpRequest, textStatus, errorThrown) {
|
| | | yesApp.hideLoading();
|
| | | if (textStatus === 'timeout') {
|
| | | alert('請求超時');
|
| | | setTimeout(function() {
|
| | | alert('重新请求');
|
| | | }, 2000);
|
| | | }
|
| | | }
|
| | | });
|
| | | }
|
| | | }
|
| | | });
|
| | | app.fetchExtractRecord();
|
| | | });
|
| | | </script>
|
| | | </html> |