admin
2020-05-26 2d59a9d05057050fa54a465e33547676282616f7
AppInside/dataPreview/receivedData.html
@@ -31,8 +31,7 @@
            <div class="div_item">
               <div class="div_item_top">
                  <div class="title">金额</div>
                  <input id="inpunt_money" class="input" type="number" placeholder="不要超过7位数,支持小数点后两位" onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1').replace(/^0{1,}/g,'')"
                   maxlength="10">
                  <input id="inpunt_money" class="input" type="number" placeholder="不要超过4位数,支持小数点后两位" onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1').replace(/^0{1,}/g,'')">
               </div>
               <div style="height: 1px; background-color: #E0E0E0; margin-left: 0.3rem;"></div>
            </div>
@@ -44,12 +43,12 @@
               <div style="height: 1px; background-color: #E0E0E0; margin-left: 0.3rem;"></div>
            </div>
            <div class="div_item">
            <!-- <div class="div_item">
               <div class="div_item_top">
                  <div class="title">订单号</div>
                  <input id="inpunt_order" class="input" type="number" placeholder="你可复制一个订单号填写于此处">
               </div>
            </div>
            </div> -->
         </div>
         <!-- 重要提示  -->
@@ -84,12 +83,16 @@
               commitInfo: function() {
                  var money = $('#inpunt_money').val();
                  var dayTime = $('#inpunt_date').val();
                  var orderNo = $('#inpunt_order').val();
                  // var orderNo = $('#inpunt_order').val();
                  if (money.length == 0 || money == null ||
                     dayTime.length == 0 || dayTime == null ||
                     orderNo.length == 0 || orderNo == null) {
                     dayTime.length == 0 || dayTime == null) {
                     yesApp.toast('请将信息填写完整')
                     return;
                  };
                  if (parseFloat(money) > 1000) {
                     yesApp.toast('最大提现金额不得超过1000')
                     return;
                  }
@@ -99,10 +102,9 @@
                     uid: uid,
                     dayTime: dayTime,
                     money: money,
                     orderNo: orderNo
                  };
                  params = yesApp.getRequestBaseParams(params);
                  $.ajax({
                     type: "GET",
                     data: JSON.parse(params),
@@ -115,7 +117,6 @@
                           yesApp.savePicture(result.data.link);
                        } else {
                           yesApp.toast('222')
                           yesApp.hideLoading();
                           yesApp.toast(result.msg);
                        }
@@ -135,30 +136,30 @@
         app.fetchMoneyArrivalImg();
         setTimeout(function() {
            var currYear = (new Date()).getFullYear();
            var opt = {};
            opt.date = {
               preset: 'date'
            };
            opt.datetime = {
               preset: 'datetime'
            };
            opt.time = {
               preset: 'time'
            };
            opt.default = {
               theme: 'android-ics light', //皮肤样式
               display: 'modal', //显示方式
               mode: 'scroller', //日期选择模式
               dateFormat: 'yyyy-mm-dd',
               lang: 'zh',
               showNow: true,
               nowText: "今天",
               startYear: currYear - 10, //开始年份
               endYear: currYear + 10 //结束年份
            };
            var optDateTime = $.extend(opt['datetime'], opt['default']);
         setTimeout(function() {
            var currYear = (new Date()).getFullYear();
            var opt = {};
            opt.date = {
               preset: 'date'
            };
            opt.datetime = {
               preset: 'datetime'
            };
            opt.time = {
               preset: 'time'
            };
            opt.default = {
               theme: 'android-ics light', //皮肤样式
               display: 'modal', //显示方式
               mode: 'scroller', //日期选择模式
               dateFormat: 'yyyy-mm-dd',
               lang: 'zh',
               showNow: true,
               nowText: "今天",
               startYear: currYear - 10, //开始年份
               endYear: currYear + 10 //结束年份
            };
            var optDateTime = $.extend(opt['datetime'], opt['default']);
            $("#inpunt_date").mobiscroll(optDateTime).datetime(optDateTime);
         }, 1000);