123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154 |
- @extends('admin/master')
- @section('content')
- <body>
- @if(count($errors) > 0)
- <div class="Huialert Huialert-info" id="error">
- @foreach($errors->all() as $error)
- <li>{{$error}}</li>
- @endforeach
- </div>
- @endif
- <div class="page-container">
- <form action="/admin/deposit/store" method="post" class="form form-horizontal">
- <input type="hidden" name="_token" value="{{ csrf_token() }}" />
- @if(!$phone)
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2">
- 用户名:</label>
- <div class="formControls col-xs-6 col-sm-6">
- <input type="text" class="input-text" value="{{old('name')}}" placeholder="" name="name">
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2">
- <font color='red'>* </font>手机号:</label>
- <div class="formControls col-xs-6 col-sm-6">
- <input type="text" class="input-text" value="{{old('phone')}}" placeholder="" name="phone">
- </div>
- </div>
- @else
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2">
- <font color='red'>* </font>账号:</label>
- <div class="formControls col-xs-6 col-sm-6">
- {{$phonei}}
- <input type="hidden" class="input-text" value="{{$phone}}" placeholder="" name="phone">
-
- </div>
- </div>
- @endif
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2">
- <font color='red'>* </font>选择套餐:</label>
- <div class="formControls col-xs-6 col-sm-6">
- <span class="select-box">
- <select size="1" name="package_id" id='package_id'>
- <option value="0" @if(old('package_id')=='0') selected @endif>- 请选择 -</option>
-
- @foreach($packages as $package)
- <option value="{{$package['id']}}" @if(old('package_id')=='{{$package["id"]}}') selected @endif >{{$package['note']}}</option>
- @endforeach
-
- </select>
- </span>
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2">
- 自定义金额:</label>
- <div class="formControls col-xs-6 col-sm-6">
- <input type="text" class="input-text" value="{{old('pay_money')}}" placeholder="填写自定义金额套餐将不会生效" name="pay_money">
-
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2">
- <font color='red'>* </font>充值时间:</label>
- <div class="formControls col-xs-6 col-sm-6">
- <input id="pay_time" type="text" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd HH:mm:ss' })" autocomplete="off" class="input-text Wdate" style="width:30%;text-align:center;" name="pay_time" value="{{old('pay_time')}}"> <font color='red'> </font>
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2">
- <font color='red'>* </font>支付方式:</label>
- <div class="formControls col-xs-6 col-sm-6">
- <input type="radio" name="payment_type" value="1" @if(old('payment_type')==='1') checked @else checked @endif>
- <label for="status-1" style="margin-right: 27px;">微信支付</label>
- <input type="radio" name="payment_type" value="3" @if(old('payment_type')==='3') checked @endif>
- <label for="status-0" style="margin-right: 27px;">个体户支付</label>
-
- </div>
- </div>
- @if($self_role !='销售' && $self_role != '分销销售')
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2">
- 选择销售员(不选默认当前用户):</label>
- <div class="formControls col-xs-6 col-sm-6">
- <span class="select-box">
- <select id='admins' size="1" name="admin_id">
- <option value="0" @if(old('admin_id')=='') selected @endif>-- 选择销售 --</option>
- @foreach($adminlist as $v)
- <option value="{{$v['id']}}" @if(old('admin_id')==$v['id']) selected @endif>{{$v['realname']}}</option>
- @endforeach
- </select>
-
- </span>
- </div>
- </div>
- @endif
- <div class="row cl">
- <div class="col-9 col-offset-2">
- <button class="btn btn-primary radius" type="submit" value=" 提交 "> 提交 </button>
- <button class="btn btn-default" type="reset" onclick="return_index();"> 返回 </button>
- {{--<a href="javascript:void(0)" class="btn btn-default radius" onclick="redirect('{{url('/admin/admin/all')}}')">返回并查看结果</a>--}}
- </div>
- </div>
- </form>
- </div>
- <!--_footer 作为公共模版分离出去-->
- <script type="text/javascript" src="/admin/lib/jquery/1.9.1/jquery.min.js"></script>
- <script type="text/javascript" src="/admin/lib/layer/2.4/layer.js"></script>
- <script type="text/javascript" src="/admin/static/h-ui/js/H-ui.min.js"></script>
- <script type="text/javascript" src="/admin/static/h-ui.admin/js/H-ui.admin.js"></script>
- <!--/_footer 作为公共模版分离出去-->
- <!--请在下方写此页面业务相关的脚本-->
- <script type="text/javascript" src="/admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
- <script type="text/javascript">
- $(function(){
- setTimeout("$('#error').hide()",3000);
- var tdate = today_date();
- $('#pay_time').val(tdate);
- });
- /*返回*/
- function return_index(){
- var phone = '{{$phone}}'
- if(phone){
- location.href='/admin/deposit/index?phone='+phone;
- }
- else{
- location.href='/admin/deposit/customerList';
- }
- }
- function today_date(){
- var today=new Date();
- var h=today.getFullYear();
- var m=today.getMonth()+1;
- var d=today.getDate();
- var hh=today.getHours();
- var mm=today.getMinutes();
- var ss=today.getSeconds();
- m= m<10?"0"+m:m;
- d= d<10?"0"+d:d;
- hh = hh < 10 ? "0" + hh:hh;
- mm = mm < 10 ? "0" + mm:mm;
- ss = ss < 10 ? "0" + ss:ss;
- return h+"-"+m+"-"+d+" "+hh+":"+mm+":"+ss;
- }
- </script>
- </body>
- @endsection
|