| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 |
- @extends('layouts.base')
- @section('content')
- @section('title', trans('基础设置'))
- <script type="text/javascript">
- window.optionchanged = false;
- require(['bootstrap'], function () {
- $('#myTab a').click(function (e) {
- e.preventDefault();
- $(this).tab('show');
- })
- });
- </script>
- <section class="content">
- <div class="w1200 ">
- <div class=" rightlist ">
- <div class="right-titpos">
- <ul class="add-snav">
- <li class="active"><a href="#">基础设置</a></li>
- </ul>
- </div>
- <div class="right-addbox"><!-- 此处是右侧内容新包一层div -->
- <div class="panel panel-default">
- <div class="panel-body">
- <form id="form1" action="" method="post" class="form-horizontal form">
- <div class="form-group">
- <label class="col-xs-12 col-sm-3 col-md-2 control-label">插件开启</label>
- <div class="col-sm-9 col-xs-12">
- <label class='radio-inline'>
- <input type='radio' name='data[is_ranking]' value='1'
- @if($item['is_ranking'] == 1) checked="checked" @endif
- /> 开启
- </label>
- <label class='radio-inline'>
- <input type='radio' name='data[is_ranking]' value='0'
- @if($item['is_ranking'] == 0) checked="checked" @endif
- /> 关闭
- </label>
- </div>
- </div>
- <div class="panel-body">
- <div class="form-group">
- <label class="col-xs-12 col-sm-3 col-md-2 control-label">排行榜类型</label>
- <div class="col-sm-9 col-xs-12">
- @if(app('plugins')->isEnabled('commission'))
- <label class="radio-inline">
- <input type="checkbox" name="data[is_commission]" value="1"
- @if($item['is_commission'] ==1) checked="checked"@endif/>推客
- </label>
- @endif
- @if(app('plugins')->isEnabled('team-dividend'))
- <label class="radio-inline">
- <input type="checkbox" name="data[is_team_dividend]" value="1"
- @if($item['is_team_dividend'] ==1) checked="checked"@endif/> 经销商
- </label>
- @endif
- @if(app('plugins')->isEnabled('merchant'))
- <label class="radio-inline">
- <input type="checkbox" name="data[is_merchant]" value="1"
- @if($item['is_merchant'] ==1) checked="checked"@endif/> 招商
- </label>
- @endif
- @if(app('plugins')->isEnabled('micro'))
- <label class="radio-inline">
- <input type="checkbox" name="data[is_micro]" value="1"
- @if($item['is_micro'] ==1 ) checked="checked"@endif/> 微店
- </label>
- @endif
- @if(app('plugins')->isEnabled('area-dividend'))
- <label class="radio-inline">
- <input type="checkbox" name="data[is_area_dividend]" value="1"
- @if($item['is_area_dividend'] ==1) checked="checked"@endif/> 区域代理
- </label>
- @endif
- @if(app('plugins')->isEnabled('room'))
- <label class="radio-inline">
- <input type="checkbox" name="data[is_room]" value="1"
- @if($item['is_room'] ==1) checked="checked"@endif/> 主播
- </label>
- @endif
- <label class="radio-inline">
- <input type="checkbox" name="data[is_income]" value="1"
- @if($item['is_income'] ==1) checked="checked"@endif/> 收入(仅统计推客
- 经销商管理 招商 区域分红 分销消费积分 业绩奖励 新业绩奖励)
- </label>
- </div>
- </div>
- </div>
- <div class="form-group">
- <label class="col-xs-12 col-sm-3 col-md-2 control-label">收入排行榜</label>
- <div class="col-sm-9 col-xs-12">
- <label class='radio-inline'>
- <input type='radio' name='data[is_show_income_rank]' value='0'
- @if($item['is_show_income_rank'] == 0) checked="checked" @endif
- /> 显示其他会员排名
- </label>
- <label class='radio-inline'>
- <input type='radio' name='data[is_show_income_rank]' value='1'
- @if($item['is_show_income_rank'] == 1) checked="checked" @endif
- /> 只显示自己的排名
- </label>
- </div>
- </div>
- <div class="form-group">
- <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span
- style='color:red'>*</span>收益提现文案</label>
- <div class="col-sm-4 col-xs-12">
- <input class="form-control" type="text" value="{{$item['title']}}"
- name="data[title]">
- </div>
- </div>
- <div class="form-group">
- <label class="col-xs-12 col-sm-3 col-md-2 control-label" ><span
- style="color: red;">*</span>收益提醒图片</label>
- <div class="col-sm-6 col-xs-12 detail-logo">
- {!! app\common\helpers\ImageHelper::tplFormFieldImage('data[thumb]', $item['thumb']) !!}
- <span class="help-block">建议尺寸: 640*640 </span>
- </div>
- </div>
- <div class="form-group">
- <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
- <div class="form-group col-sm-6 col-sm-12 " style="width:20%;padding: 0">
- <input type="button" name="but" style="width:30%;" value="提交" class="btn btn-success" onclick="return log()"/>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
- </div>
- </section>
- <script language='javascript'>
- function log()
- {
- var form_data = $($('#form1')[0]).serialize();
- var html = '';
- var url = "{!! yzWebUrl('plugin.ranking.admin.ranking-set.index') !!}";
- $.post
- ({
- url: url,
- dataType: "json",
- data: form_data,
- success: function (strValue) {
- if (strValue.result == "0") {
- console.log(strValue);
- alert(strValue.msg);
- return false;
- } else if (strValue.result == "1") {
- confirm(strValue.msg);
- window.location.href = url;
- } else if (strValue.status == "-1") {
- confirm(strValue.result.msg);
- document.form1.submit.disabled=false;
- }
- }
- })
- }
- ;
- </script>
- @endsection
|