123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- <form action="" method="post" class="form-horizontal form-validate" enctype="multipart/form-data">
-
- <input type="hidden" name="c" value="site" />
- <input type="hidden" name="a" value="entry" />
- <input type="hidden" name="m" value="ewei_shopv2" />
- <input type="hidden" name="do" value="web" />
- <input type="hidden" name="r" value="finance.recharge" />
- <input type='hidden' name='type' value="{$type}" />
- <input type='hidden' name='id' value="{$id}" />
-
-
- <div class="modal-dialog">
- <div class="modal-content">
- <div class="modal-header">
- <button data-dismiss="modal" class="close" type="button">×</button>
- <h4 class="modal-title">会员充值</h4>
- </div>
- <div class="modal-body">
-
-
-
- <div class="form-group">
- <label class="col-sm-2 control-label">粉丝</label>
- <div class="col-sm-9 col-xs-12">
- <div class="form-control-static">
- <img src='{$profile['avatar']}' style='width:20px;height:20px;padding:1px;border:1px solid #ccc' />
- {$profile['nickname']}
- </div>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">会员信息</label>
- <div class="col-sm-9 col-xs-12">
- <div class="form-control-static">ID: {$profile['id']} / 姓名: {$profile['realname']} / 手机号: {$profile['mobile']}</div>
- </div>
- </div>
-
- <div class="tabs-container">
-
- <div class="tabs">
- <ul class="nav nav-tabs">
- {ifp 'finance.recharge.credit1'}
- <li {if $type=='credit1'}class="active"{/if}><a data-toggle="tab" href="#tab-1" data-rechargetype="credit1" aria-expanded="true"> 充值积分</a></li>
- {/if}
-
- {ifp 'finance.recharge.credit2'}
- <li {if $type=='credit2'}class="active"{/if}><a data-toggle="tab" href="#tab-2" data-rechargetype="credit2" aria-expanded="false"> 充值余额</a></li>
- {/if}
-
- </ul>
- <div class="tab-content ">
- <div id="tab-1" class="tab-pane {if $type=='credit1'}active{/if}">
- <div class="form-group"></div>
- <div class="form-group">
- <label class="col-sm-2 control-label">当前积分</label>
- <div class="col-sm-9 col-xs-12">
- <div class="form-control-static">{$profile['credit1']}</div>
- </div>
- </div>
-
- </div>
- <div id="tab-2" class="tab-pane {if $type=='credit2'}active{/if}">
-
- <div class="form-group"></div>
- <div class="form-group">
- <label class="col-sm-2 control-label">当前余额</label>
- <div class="col-sm-9 col-xs-12">
- <div class="form-control-static">{$profile['credit2']}</div>
- </div>
- </div>
-
-
- </div>
- </div>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">变化</label>
- <div class="col-sm-9 col-xs-12">
- <label class='radio-inline'>
- <input type='radio' name='changetype' value='0' checked /> 增加
- </label>
- <label class='radio-inline'>
- <input type='radio' name='changetype' value='1' /> 减少
- </label>
- <label class='radio-inline'>
- <input type='radio' name='changetype' value='2' /> 最终<span class='name'>{if $type=='credit1'}积分{else}余额{/if}</span>
- </label>
- </div>
- </div>
-
-
- <div class="form-group">
- <label class="col-sm-2 control-label mustl">充值数目</label>
- <div class="col-sm-9 col-xs-12">
- <input type="text" name="num" class="form-control" value="" data-rule-number='true' data-rule-required='true' data-rule-min='0.01' />
- </div>
- </div>
-
- <div class="form-group">
- <label class="col-sm-2 control-label">备注</label>
- <div class="col-sm-9 col-xs-12">
- <textarea name="remark" class="form-control richtext" cols="70"></textarea>
- </div>
- </div>
-
- </div> <div class="modal-footer">
- <button class="btn btn-primary" type="submit">确认充值</button>
- <button data-dismiss="modal" class="btn btn-default" type="button">取消</button>
- </div>
- </div>
- </div>
-
- </form>
- <script language='javascript'>
- $(function(){
- $('[data-toggle="tab"]').click(function(){
- var type =$(this).data('rechargetype');
- if(type=='credit1') {
- $('.name').html('积分');
- }else{
- $('.name').html('余额');
- }
- $(':hidden[name=type]').val( type) ;
- });
-
- })
- </script>
-
|