123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213 |
- {include file="common/header"/}
- <div class="LM-container">
- <div class="LM-main">
- <fieldset class="layui-elem-field layui-field-title">
- <blockquote class="layui-elem-quote">
- <a href="{:url($hre)}" class="layui-btn layui-btn-xs" lay-event="update_pwd">返回</a>
- </blockquote>
- </fieldset>
- <form class="layui-form layui-form-pane" lay-filter="form">
- <input type="hidden" name="id" id="id">
- <div class="layui-form-item">
- <label class="layui-form-label">手机号</label>
- <div class="layui-input-inline">
- <input type="text" name="phone" value="" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">银行卡持卡人</label>
- <div class="layui-input-inline">
- <input type="text" name="name" value="" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">银行卡名称</label>
- <div class="layui-input-inline">
- <input type="text" name="bank_name" value="" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">银行卡号</label>
- <div class="layui-input-inline">
- <input type="text" name="bank_number" value="" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">开户支行</label>
- <div class="layui-input-inline">
- <input type="text" name="bank_branch" value="" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">支付宝账号</label>
- <div class="layui-input-inline">
- <input type="text" name="ali_pay" value="" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">微信账号</label>
- <div class="layui-input-inline">
- <input type="text" name="wx_pay" value="" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">支付宝收款码</label>
- <input type="hidden" name="ali_pay_image" id="logo">
- <div class="layui-input-block">
- <div class="layui-upload">
- <button type="button" class="layui-btn layui-btn-primary" id="logoBtn"><i
- class="icon icon-upload3"></i>{:lang('upload')}
- </button>
- <div class="layui-upload-list">
- <img class="layui-upload-img" id="site_logo">
- <p id="demoText"></p>
- </div>
- </div>
- </div>
- <div class="layui-form-mid layui-word-aux">
- 支付宝收款码
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">微信收款码</label>
- <input type="hidden" name="wx_pay_image" id="logos">
- <div class="layui-input-block">
- <div class="layui-upload">
- <button type="button" class="layui-btn layui-btn-primary" id="logoBtns"><i
- class="icon icon-upload3"></i>{:lang('upload')}
- </button>
- <div class="layui-upload-list">
- <img class="layui-upload-img" id="site_logos">
- <p id="demoTexts"></p>
- </div>
- </div>
- </div>
- <div class="layui-form-mid layui-word-aux">
- 微信收款码。
- </div>
- </div>
- <div class="layui-form-item">
- <div class="layui-input-inline">
- <button type="button" class="layui-btn" lay-submit="" lay-filter="submit">{:lang('submit')}</button>
- <!--<a href="{:url('hlep')}" class="layui-btn layui-btn-primary">{:lang('back')}</a>-->
- </div>
- </div>
- </form>
- </div>
- </div>
- {include file="common/footer"/}
- <script>
- layui.use(['form', 'layer','upload','laydate'], function () {
- var form = layui.form, laydate=layui.laydate,layer = layui.layer,$= layui.jquery,upload = layui.upload;
- var info = '';
- var config = {$user|raw};
- console.log("user",config)
- //日期范围
- form.val("form", config);
- $('#site_logo').attr('src',config.ali_pay_image);
- $('#site_logos').attr('src',config.wx_pay_image);
- if(info){
- }
- form.render();
- form.on('submit(submit)', function (data) {
- console.log("data",data.field)
- loading =layer.load(1, {shade: [0.1,'#fff']});
- $.post("", data.field, function (res) {
- layer.close(loading);
- if (res.code== 200) {
- layer.msg(res.msg, {time: 1800, icon: 1}, function () {
- // location.href = res.url;
- // location.href = res.url;
- });
- } else {
- layer.msg(res.msg, {time: 1800, icon: 2});
- }
- },"json");
- });
- //普通图片上传
- var uploadInst = upload.render({
- elem: '#logoBtn'
- ,url: '{:url("uploads/uploads")}'
- ,before: function(obj){
- //预读本地文件示例,不支持ie8
- obj.preview(function(index, file, result){
- $('#site_logo').attr('src', result); //图片链接(base64)
- });
- }
- ,done: function(res){
- //上传成功
- if(res.code>0){
- $('#logo').val(res.url);
- }else{
- //如果上传失败
- return layer.msg('上传失败');
- }
- }
- ,error: function(){
- //演示失败状态,并实现重传
- var demoText = $('#demoText');
- demoText.html('<span style="color: #FF5722;">上传失败</span> <a class="layui-btn layui-btn-mini demo-reload">重试</a>');
- demoText.find('.demo-reload').on('click', function(){
- uploadInst.upload();
- });
- }
- });
- //普通图片上传
- var uploadInsts = upload.render({
- elem: '#logoBtns'
- ,url: '{:url("uploads/uploads")}'
- ,before: function(obj){
- //预读本地文件示例,不支持ie8
- obj.preview(function(index, file, result){
- $('#site_logos').attr('src', result); //图片链接(base64)
- });
- }
- ,done: function(res){
- //上传成功
- if(res.code>0){
- $('#logos').val(res.url);
- }else{
- //如果上传失败
- return layer.msg('上传失败');
- }
- }
- ,error: function(){
- //演示失败状态,并实现重传
- var demoText = $('#demoTexts');
- demoText.html('<span style="color: #FF5722;">上传失败</span> <a class="layui-btn layui-btn-mini demo-reload">重试</a>');
- demoText.find('.demo-reload').on('click', function(){
- uploadInsts.upload();
- });
- }
- });
- });
- </script>
|