ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
``` // js /*查看打款信息*/ $(document).on("click", ".view_details", function () { var data = Table.api.selecteddata(table); //console.log(data); var area = [$(window).width() > 800 ? '500px' : '95%', $(window).height() > 600 ? '400px' : '95%']; Layer.open({ content: Template("view_detail", {}), zIndex: 99, area: area, title: __('查看打款信息'), resize: false, btn: [__('关闭')], yes: function (index, layero) { Layer.close(index); },success: function (layero, index) { $("#order_id").val(data[0]['OrderID']); $("#BankName").val(data[0]['BankName']); $("#bankAddress").val(data[0]['BankDetail']); $("#bankuname").val(data[0]['RealName']); $("#bankcardnum").val(data[0]['BankNum']); $("#pscore").val(data[0]['SellMoney']); } }); return false; }) //选择渠道 var area = [$(window).width() > 800 ? '500px' : '95%', $(window).height() > 600 ? '400px' : '95%']; Layer.open({ content: Template("choose_plate", {}), zIndex: 99, area: area, title: __('请选择打款通道'), resize: false, btn: [__('确定')], yes: function (index, layero) { Layer.close(index); var choose_channel_id=$("input[name=plate]:checked").val(); Fast.api.ajax({ url: "finance/apply_orders/trade_buy", data: {ID: row.ID,Channel_id:choose_channel_id}, }, function (data, ret) { table.bootstrapTable('refresh'); },function (data,ret) { table.bootstrapTable('refresh'); }); },success: function (layero, index) { } }); // html 放在 index.html下面 <!--查看打款信息--> <script id="view_detail" type="text/html"> <div class="row"> <form class="form-horizontal" > <div class="form-group"> <label class="control-label col-xs-12 col-sm-3">{:__('订单号')}:</label> <div class="col-xs-12 col-sm-7"> <input class="form-control" id="order_id" type="text" readonly> </div> </div> <div class="form-group"> <label class="control-label col-xs-12 col-sm-3">{:__('应付金额')}:</label> <div class="col-xs-12 col-sm-7"> <input class="form-control" id="pscore" type="text" readonly > </div> </div> <div class="form-group"> <label class="control-label col-xs-12 col-sm-3">{:__('开户行')}:</label> <div class="col-xs-12 col-sm-7"> <input class="form-control" id="BankName" type="text" readonly > </div> </div> <div class="form-group"> <label class="control-label col-xs-12 col-sm-3">{:__('开户姓名')}:</label> <div class="col-xs-12 col-sm-7"> <input class="form-control" id="bankuname" type="text" readonly > </div> </div> <div class="form-group"> <label class="control-label col-xs-12 col-sm-3">{:__('银行卡号')}:</label> <div class="col-xs-12 col-sm-7"> <input class="form-control" id="bankcardnum" type="text" readonly > </div> </div> <div class="form-group"> <label class="control-label col-xs-12 col-sm-3">{:__('开户行详细地址')}:</label> <div class="col-xs-12 col-sm-7"> <input class="form-control" id="bankAddress" type="text" readonly > </div> </div> </form> </div> </script> <!--选择打款通道--> <script id="choose_plate" type="text/html"> <div class="row"> <form class="form-horizontal" > <div class="alert alert-dismissable alert-danger"> <button type="button" class="close" data-dismiss="alert">×</button> <strong>{:__('Warning')}</strong><br/> 请务必选择一个渠道进行代付打款!!! </div> <div class="form-group"> <label class="control-label col-xs-12 col-sm-2">&nbsp;</label> <div class="col-xs-12 col-sm-8"> {:build_radios('plate', ['1'=>__('通道1'), '2'=>__('通道2'), '3'=>__('通道3'), '4'=>__('通道4')])} </div> </div> </form> </div> </script> ```