This commit is contained in:
parent
f2503a7f69
commit
ec7f540aed
|
|
@ -82,7 +82,7 @@ class Controller extends \think\Controller
|
|||
}
|
||||
}
|
||||
|
||||
$this->admin['per_page'] = cookie('admin_per_page') ?? 10;
|
||||
$this->admin['per_page'] = cookie('admin_per_page') ?? 5;
|
||||
$this->admin['per_page'] = $this->admin['per_page'] < 100 ? $this->admin['per_page'] : 100;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -74,4 +74,18 @@ class OrderController extends Controller
|
|||
]);
|
||||
return $this->fetch();
|
||||
}
|
||||
|
||||
//启用
|
||||
public function enable($id, Order $model)
|
||||
{
|
||||
$result = $model->whereIn('id', $id)->update(['status' => 1]);
|
||||
return $result ? success('操作成功', URL_RELOAD) : error();
|
||||
}
|
||||
|
||||
//禁用
|
||||
public function disable($id, Order $model)
|
||||
{
|
||||
$result = $model->whereIn('id', $id)->update(['status' => 0]);
|
||||
return $result ? success('操作成功', URL_RELOAD) : error();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -105,7 +105,6 @@ class ShopConfigController extends Controller
|
|||
$param = $request->param();
|
||||
ShopConfig::set('goods', 'goods_id', $param['goods_id']);
|
||||
ShopConfig::set('goods', 'day', $param['day']);
|
||||
ShopConfig::set('goods', 'is_withdraw', $param['is_withdraw']);
|
||||
ShopConfig::set('goods', 'is_first', $param['is_first']);
|
||||
ShopConfig::set('goods', 'is_open', $param['is_open']);
|
||||
$url = URL_RELOAD;
|
||||
|
|
@ -114,7 +113,6 @@ class ShopConfigController extends Controller
|
|||
$config = [
|
||||
'goods_id' => ShopConfig::get('goods', 'goods_id'),
|
||||
'day' => ShopConfig::get('goods', 'day'),
|
||||
'is_withdraw' => ShopConfig::get('goods', 'is_withdraw'),
|
||||
'is_first' => ShopConfig::get('goods', 'is_first'),
|
||||
'is_open' => ShopConfig::get('goods', 'is_open'),
|
||||
'goods_list'=>Goods::all(),
|
||||
|
|
|
|||
|
|
@ -169,6 +169,20 @@ class UserController extends Controller
|
|||
return $result ? success('操作成功', URL_RELOAD) : error();
|
||||
}
|
||||
|
||||
//开启体验资格
|
||||
public function experience_enable($id, User $model)
|
||||
{
|
||||
$result = $model->whereIn('id', $id)->update(['is_experience' => 1]);
|
||||
return $result ? success('操作成功', URL_RELOAD) : error();
|
||||
}
|
||||
|
||||
//关闭体验资格
|
||||
public function experience_disable($id, User $model)
|
||||
{
|
||||
$result = $model->whereIn('id', $id)->update(['is_experience' => 0]);
|
||||
return $result ? success('操作成功', URL_RELOAD) : error();
|
||||
}
|
||||
|
||||
|
||||
//分配设备
|
||||
public function equipmentadd(Request $request,Order $omodel)
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ class WithdrawController extends Controller
|
|||
public function lists(Request $request, WithdrawApply $model)
|
||||
{
|
||||
$WITHDRAW_TYPE=$model->WITHDRAW_TYPE;
|
||||
$STATUS_TYPE=$model->STATUS_TYPE;
|
||||
$STATUSA_TYPE=$model->STATUSA_TYPE;
|
||||
$param = $request->param();
|
||||
|
||||
$where = [];
|
||||
|
|
@ -35,7 +35,7 @@ class WithdrawController extends Controller
|
|||
|
||||
//提现单号
|
||||
if (isset($param['withdraw_sn']) && $param['withdraw_sn'] != '') {
|
||||
$where[] = ['w.sn', '=', $param['withdraw_sn']];
|
||||
$where[] = ['w.sn', 'like', '%'.$param['withdraw_sn'].'%'];
|
||||
}
|
||||
|
||||
//提现方式
|
||||
|
|
@ -69,7 +69,7 @@ class WithdrawController extends Controller
|
|||
'page' => $data->render(),
|
||||
'total' => $data->total(),
|
||||
'type_list' =>$WITHDRAW_TYPE,
|
||||
'status_list'=>$STATUS_TYPE,
|
||||
'status_list'=>$STATUSA_TYPE,
|
||||
]);
|
||||
return $this->fetch();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -136,6 +136,7 @@
|
|||
<small>每页显示</small>
|
||||
|
||||
<select class="input-sm" onchange="changePerPage(this)">
|
||||
<option value="5" {if $admin.per_page==5}selected{/if}>5</option>
|
||||
<option value="10" {if $admin.per_page==10}selected{/if}>10</option>
|
||||
<option value="20" {if $admin.per_page==20}selected{/if}>20</option>
|
||||
<option value="30" {if $admin.per_page==30}selected{/if}>30</option>
|
||||
|
|
|
|||
|
|
@ -97,6 +97,7 @@
|
|||
<small>每页显示</small>
|
||||
|
||||
<select class="input-sm" onchange="changePerPage(this)">
|
||||
<option value="5" {if $admin.per_page==5}selected{/if}>5</option>
|
||||
<option value="10" {if $admin.per_page==10}selected{/if}>10</option>
|
||||
<option value="20" {if $admin.per_page==20}selected{/if}>20</option>
|
||||
<option value="30" {if $admin.per_page==30}selected{/if}>30</option>
|
||||
|
|
|
|||
|
|
@ -134,6 +134,7 @@
|
|||
<small>每页显示</small>
|
||||
|
||||
<select class="input-sm" onchange="changePerPage(this)">
|
||||
<option value="5" {if $admin.per_page==5}selected{/if}>5</option>
|
||||
<option value="10" {if $admin.per_page==10}selected{/if}>10</option>
|
||||
<option value="20" {if $admin.per_page==20}selected{/if}>20</option>
|
||||
<option value="30" {if $admin.per_page==30}selected{/if}>30</option>
|
||||
|
|
|
|||
|
|
@ -129,6 +129,7 @@
|
|||
<small>每页显示</small>
|
||||
|
||||
<select class="input-sm" onchange="changePerPage(this)">
|
||||
<option value="5" {if $admin.per_page==5}selected{/if}>5</option>
|
||||
<option value="10" {if $admin.per_page==10}selected{/if}>10</option>
|
||||
<option value="20" {if $admin.per_page==20}selected{/if}>20</option>
|
||||
<option value="30" {if $admin.per_page==30}selected{/if}>30</option>
|
||||
|
|
|
|||
|
|
@ -148,6 +148,7 @@
|
|||
<small>每页显示</small>
|
||||
|
||||
<select class="input-sm" onchange="changePerPage(this)">
|
||||
<option value="5" {if $admin.per_page==5}selected{/if}>5</option>
|
||||
<option value="10" {if $admin.per_page==10}selected{/if}>10</option>
|
||||
<option value="20" {if $admin.per_page==20}selected{/if}>20</option>
|
||||
<option value="30" {if $admin.per_page==30}selected{/if}>30</option>
|
||||
|
|
|
|||
|
|
@ -100,10 +100,30 @@
|
|||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box">
|
||||
<!--数据列表顶部-->
|
||||
<div class="box-header">
|
||||
<div>
|
||||
<a class="btn btn-success btn-sm AjaxButton" data-toggle="tooltip" title="启用选中数据"
|
||||
data-confirm-title="启用确认" data-confirm-content="您确定要启用选中的数据吗?" data-id="checked"
|
||||
data-url="{:url('enable')}">
|
||||
<i class="fa fa-circle"></i> 启用
|
||||
</a>
|
||||
|
||||
<a class="btn btn-warning btn-sm AjaxButton" data-toggle="tooltip" title="禁用选中数据"
|
||||
data-confirm-title="禁用确认" data-confirm-content="您确定要禁用选中的数据吗?" data-id="checked"
|
||||
data-url="{:url('disable')}">
|
||||
<i class="fa fa-circle"></i> 禁用
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-body table-responsive">
|
||||
<table class="table table-hover table-bordered datatable" width="100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
<input id="dataCheckAll" type="checkbox" onclick="checkAll(this)" class="checkbox"
|
||||
placeholder="全选/取消">
|
||||
</th>
|
||||
<th>
|
||||
<div style="width:380px;text-align:center;">用户信息</div>
|
||||
</th>
|
||||
|
|
@ -116,12 +136,18 @@
|
|||
<th><div class="layui-table-cell" style="width:100px;text-align:center;">购买数量</div></th>
|
||||
<th><div class="layui-table-cell" style="width:200px;text-align:center;">结束时间</div></th>
|
||||
<th><div class="layui-table-cell" style="width:100px;text-align:center;">产生收益</div></th>
|
||||
<th><div class="layui-table-cell" style="width:100px;text-align:center;">是否启用</div></th>
|
||||
<th><div class="layui-table-cell" style="width:200px;text-align:center;">创建时间</div></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach name="data" item="item"}
|
||||
<tr>
|
||||
<td>
|
||||
<input type="checkbox" onclick="checkThis(this)" name="data-checkbox"
|
||||
data-id="{$item.id}" class="checkbox data-list-check" value="{$item.id}"
|
||||
placeholder="选择/取消">
|
||||
</td>
|
||||
<td class="layui-table-col-special">
|
||||
<div class="layui-table-cell laytable-cell-1-0-2">
|
||||
<img src="{$item.avatar}" style="height:80px;width: 80px;margin-right: 10px;" class="image-show">
|
||||
|
|
@ -158,6 +184,9 @@
|
|||
<td>
|
||||
<div class="layui-table-cell" style="width:100px;text-align:center;">{$item.profit}</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="layui-table-cell" style="width:100px;text-align:center;">{$item.status_text}</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="layui-table-cell" style="width:200px;text-align:center;">{$item.create_time}</div>
|
||||
</td>
|
||||
|
|
@ -175,6 +204,7 @@
|
|||
<small>每页显示</small>
|
||||
|
||||
<select class="input-sm" onchange="changePerPage(this)">
|
||||
<option value="5" {if $admin.per_page==5}selected{/if}>5</option>
|
||||
<option value="10" {if $admin.per_page==10}selected{/if}>10</option>
|
||||
<option value="20" {if $admin.per_page==20}selected{/if}>20</option>
|
||||
<option value="30" {if $admin.per_page==30}selected{/if}>30</option>
|
||||
|
|
|
|||
|
|
@ -34,24 +34,6 @@
|
|||
</div>
|
||||
<label for="name" class="control-label">天</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="is_withdraw" class="col-sm-2 control-label">是否可提现</label>
|
||||
<div class="col-sm-10 col-md-4">
|
||||
<input class="input-switch" id="is_withdraw" value="1" {if(!isset($config) ||$config.is_withdraw==1)}checked{/if} type="checkbox" />
|
||||
<input class="switch field-switch" placeholder="是否可提现" name="is_withdraw" value="{$config.is_withdraw|default=''}" hidden />
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$('#is_withdraw').bootstrapSwitch({
|
||||
onText: "是",
|
||||
offText: "否",
|
||||
onColor: "success",
|
||||
offColor: "danger",
|
||||
onSwitchChange: function (event, state) {
|
||||
$(event.target).closest('.bootstrap-switch').next().val(state ? '1' : '0').change();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<div class="form-group">
|
||||
<label for="is_first" class="col-sm-2 control-label">是否新用户领取</label>
|
||||
<div class="col-sm-10 col-md-4">
|
||||
|
|
|
|||
|
|
@ -117,6 +117,7 @@
|
|||
<small>每页显示</small>
|
||||
|
||||
<select class="input-sm" onchange="changePerPage(this)">
|
||||
<option value="5" {if $admin.per_page==5}selected{/if}>5</option>
|
||||
<option value="10" {if $admin.per_page==10}selected{/if}>10</option>
|
||||
<option value="20" {if $admin.per_page==20}selected{/if}>20</option>
|
||||
<option value="30" {if $admin.per_page==30}selected{/if}>30</option>
|
||||
|
|
|
|||
|
|
@ -110,8 +110,17 @@
|
|||
data-url="{:url('disable')}">
|
||||
<i class="fa fa-circle"></i> 禁用
|
||||
</a>
|
||||
<a class="btn btn-success btn-sm AjaxButton" data-toggle="tooltip" title="开启体验资格选中数据"
|
||||
data-confirm-title="开启体验资格" data-confirm-content="您确定要开启体验资格选中的数据吗?" data-id="checked"
|
||||
data-url="{:url('experience_enable')}">
|
||||
<i class="fa fa-circle"></i> 开启体验收益资格
|
||||
</a>
|
||||
|
||||
|
||||
<a class="btn btn-warning btn-sm AjaxButton" data-toggle="tooltip" title="关闭体验资格选中数据"
|
||||
data-confirm-title="关闭体验资格确认" data-confirm-content="您确定要关闭体验资格选中的数据吗?" data-id="checked"
|
||||
data-url="{:url('experience_disable')}">
|
||||
<i class="fa fa-circle"></i> 关闭体验收益资格
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
@ -129,6 +138,9 @@
|
|||
<th>
|
||||
<div class="layui-table-cell" style="width:100px;text-align:center;">用户等级</div>
|
||||
</th>
|
||||
<th>
|
||||
<div class="layui-table-cell" style="width:100px;text-align:center;">体验收益资格</div>
|
||||
</th>
|
||||
<th>
|
||||
<div class="layui-table-cell" style="width:100px;text-align:center;">可提现积分</div>
|
||||
</th>
|
||||
|
|
@ -166,6 +178,9 @@
|
|||
<td>
|
||||
<div class="layui-table-cell" style="width:100px;text-align:center;">{$item.user_level_id_text}</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="layui-table-cell" style="width:100px;text-align:center;">{$item.experience_text}</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="layui-table-cell" style="width:100px;text-align:center;">{$item.integral}</div>
|
||||
</td>
|
||||
|
|
@ -233,6 +248,7 @@
|
|||
<small>每页显示</small>
|
||||
|
||||
<select class="input-sm" onchange="changePerPage(this)">
|
||||
<option value="5" {if $admin.per_page==5}selected{/if}>5</option>
|
||||
<option value="10" {if $admin.per_page==10}selected{/if}>10</option>
|
||||
<option value="20" {if $admin.per_page==20}selected{/if}>20</option>
|
||||
<option value="30" {if $admin.per_page==30}selected{/if}>30</option>
|
||||
|
|
|
|||
|
|
@ -172,7 +172,7 @@
|
|||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="layui-table-cell" style="width:100px;text-align:center;">{$item.status_text}</div>
|
||||
<div class="layui-table-cell" style="width:100px;text-align:center;">{$item.statusa_text}</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="layui-table-cell" style="width:200px;text-align:center;">{$item.description}</div>
|
||||
|
|
@ -204,6 +204,7 @@
|
|||
<small>每页显示</small>
|
||||
|
||||
<select class="input-sm" onchange="changePerPage(this)">
|
||||
<option value="5" {if $admin.per_page==5}selected{/if}>5</option>
|
||||
<option value="10" {if $admin.per_page==10}selected{/if}>10</option>
|
||||
<option value="20" {if $admin.per_page==20}selected{/if}>20</option>
|
||||
<option value="30" {if $admin.per_page==30}selected{/if}>30</option>
|
||||
|
|
|
|||
|
|
@ -65,12 +65,12 @@ class IndexController extends Controller
|
|||
$is_first=ShopConfig::get('goods', 'is_first');
|
||||
$goods_id=ShopConfig::get('goods', 'goods_id');
|
||||
if($is_first==1){
|
||||
$user_count=$umodel->where(array('user_level_id'=>1))->count();
|
||||
$user_count=$umodel->where(array('user_level_id'=>1,'id'=>$uid))->count();
|
||||
if($user_count==0){
|
||||
$goods_config['is_open']=0;
|
||||
}
|
||||
}
|
||||
$ty_count=$omodel->where(array('order_type'=>2,'goods_id'=>$goods_id))->count();
|
||||
$ty_count=$omodel->where(array('order_type'=>2,'goods_id'=>$goods_id,'user_id'=>$uid))->count();
|
||||
if($ty_count>0){
|
||||
$goods_config['is_open']=0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ class UserController extends Controller
|
|||
$totalPages = ceil($order_count / $size);
|
||||
$order_list = $model
|
||||
->alias('o')
|
||||
->field("mi.thumb_image as img, o.goods_name,o.attr,o.order_price,number,o.id as order_id,o.create_time,o.end_time")
|
||||
->field("mi.thumb_image as img, o.goods_name,o.attr,o.order_price,number,o.id as order_id,o.create_time,o.end_time,o.goods_id")
|
||||
->where(array('o.user_id'=>$uid))
|
||||
->join('mall_image mi', 'mi.union_id= o.goods_id and is_cover=1 and mi.type=1', 'LEFT')
|
||||
->limit($page, $size)
|
||||
|
|
@ -47,6 +47,7 @@ class UserController extends Controller
|
|||
foreach ($order_list as $k1 => $v1) {
|
||||
$order_list[$k1]['img'] =$this->img_url.$v1['img'];
|
||||
$order_list[$k1]['order_id'] = Crypt::encrypt($v1['order_id']);
|
||||
$order_list[$k1]['goods_id'] = Crypt::encrypt($v1['goods_id']);
|
||||
}
|
||||
$page=array(
|
||||
'count'=>$order_count,
|
||||
|
|
@ -256,7 +257,7 @@ class UserController extends Controller
|
|||
$user_info['level']=1;
|
||||
}
|
||||
}
|
||||
$user_info['avatar'] =$this->img_url.$user_info['avatar'];
|
||||
//$user_info['avatar'] =$this->img_url.$user_info['avatar'];
|
||||
//联系电话
|
||||
$tel =ShopConfig::get('website', 'tel');
|
||||
$data=array(
|
||||
|
|
@ -421,7 +422,7 @@ class UserController extends Controller
|
|||
if($is_open==0){
|
||||
return client_error('体验设备已关闭,无法领取');
|
||||
}
|
||||
$ty_count=$omodel->where(array('order_type'=>2,'goods_id'=>$goods_id))->count();
|
||||
$ty_count=$omodel->where(array('order_type'=>2,'goods_id'=>$goods_id,'user_id'=>$uid))->count();
|
||||
if($ty_count>0){
|
||||
return client_error('您已领取该体验设备,无法重复领取');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,6 +16,8 @@ class Model extends \think\Model
|
|||
const LEVL_TEXT = [1 => '体验会员', 2=> '正式会员'];
|
||||
//订单类型
|
||||
const ORDER_TEXT = [1 => '正式订单', 2=> '体验订单'];
|
||||
//用户体验收益资格
|
||||
const EXPERIENCE_TEXT = [0 => '关闭', 1=> '开启'];
|
||||
|
||||
//是否为软删除
|
||||
public $softDelete = true;
|
||||
|
|
|
|||
|
|
@ -17,6 +17,12 @@ class Order extends Model
|
|||
//可搜索字段
|
||||
protected $searchField = [];
|
||||
|
||||
//是否启用获取器
|
||||
public function getStatusTextAttr($value, $data)
|
||||
{
|
||||
return self::BOOLEAN_TEXT[$data['status']];
|
||||
}
|
||||
|
||||
//结束时间获取器
|
||||
public function getEndTimeAttr($value)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -17,6 +17,12 @@ class User extends Model
|
|||
//可搜索字段
|
||||
protected $searchField = ['username', 'mobile', 'nickname',];
|
||||
|
||||
|
||||
//是否启用用户体验收益资格
|
||||
public function getExperienceTextAttr($value, $data)
|
||||
{
|
||||
return self::EXPERIENCE_TEXT[$data['is_experience']];
|
||||
}
|
||||
//是否启用获取器
|
||||
public function getStatusTextAttr($value, $data)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -22,8 +22,14 @@ class WithdrawApply extends Model
|
|||
'3' =>'银行卡',
|
||||
];
|
||||
|
||||
public $STATUSA_TYPE = [
|
||||
'1' =>'待审核',
|
||||
'2' =>'同意',
|
||||
'3' =>'驳回',
|
||||
];
|
||||
|
||||
public $STATUS_TYPE = [
|
||||
'1' =>'待提现',
|
||||
'1' =>'审核中',
|
||||
'2' =>'提现成功',
|
||||
'3' =>'提现失败',
|
||||
];
|
||||
|
|
@ -33,10 +39,17 @@ class WithdrawApply extends Model
|
|||
return $this->WITHDRAW_TYPE[$data['type']];
|
||||
}
|
||||
//状态:1-待提现2-提现中3-提现成功4-提现失败获取器
|
||||
public function getStatusaTextAttr($value, $data)
|
||||
{
|
||||
return $this->STATUSA_TYPE[$data['status']];
|
||||
}
|
||||
//状态:1-待提现2-提现中3-提现成功4-提现失败获取器
|
||||
public function getStatusTextAttr($value, $data)
|
||||
{
|
||||
return $this->STATUS_TYPE[$data['status']];
|
||||
}//支付时间获取器
|
||||
}
|
||||
|
||||
//支付时间获取器
|
||||
public function getPaymentTimeAttr($value)
|
||||
{
|
||||
return date('Y-m-d H:i:s',$value);
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -1,4 +1,4 @@
|
|||
<?php /*a:9:{s:87:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/order/index.html";i:1638168804;s:87:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/base.html";i:1637830212;s:91:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/head_css.html";i:1586528064;s:90:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/head_js.html";i:1637749387;s:89:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/header.html";i:1586528064;s:90:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/sidebar.html";i:1586528064;s:97:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/content_header.html";i:1586528064;s:89:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/footer.html";i:1592550718;s:98:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/control_sidebar.html";i:1586528064;}*/ ?>
|
||||
<?php /*a:9:{s:87:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/order/index.html";i:1639020699;s:87:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/base.html";i:1637830212;s:91:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/head_css.html";i:1586528064;s:90:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/head_js.html";i:1637749387;s:89:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/header.html";i:1586528064;s:90:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/sidebar.html";i:1586528064;s:97:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/content_header.html";i:1586528064;s:89:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/footer.html";i:1592550718;s:98:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/control_sidebar.html";i:1586528064;}*/ ?>
|
||||
<?php if(!$admin['pjax']): ?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
|
|
@ -313,10 +313,30 @@
|
|||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box">
|
||||
<!--数据列表顶部-->
|
||||
<div class="box-header">
|
||||
<div>
|
||||
<a class="btn btn-success btn-sm AjaxButton" data-toggle="tooltip" title="启用选中数据"
|
||||
data-confirm-title="启用确认" data-confirm-content="您确定要启用选中的数据吗?" data-id="checked"
|
||||
data-url="<?php echo url('enable'); ?>">
|
||||
<i class="fa fa-circle"></i> 启用
|
||||
</a>
|
||||
|
||||
<a class="btn btn-warning btn-sm AjaxButton" data-toggle="tooltip" title="禁用选中数据"
|
||||
data-confirm-title="禁用确认" data-confirm-content="您确定要禁用选中的数据吗?" data-id="checked"
|
||||
data-url="<?php echo url('disable'); ?>">
|
||||
<i class="fa fa-circle"></i> 禁用
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-body table-responsive">
|
||||
<table class="table table-hover table-bordered datatable" width="100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
<input id="dataCheckAll" type="checkbox" onclick="checkAll(this)" class="checkbox"
|
||||
placeholder="全选/取消">
|
||||
</th>
|
||||
<th>
|
||||
<div style="width:380px;text-align:center;">用户信息</div>
|
||||
</th>
|
||||
|
|
@ -329,12 +349,18 @@
|
|||
<th><div class="layui-table-cell" style="width:100px;text-align:center;">购买数量</div></th>
|
||||
<th><div class="layui-table-cell" style="width:200px;text-align:center;">结束时间</div></th>
|
||||
<th><div class="layui-table-cell" style="width:100px;text-align:center;">产生收益</div></th>
|
||||
<th><div class="layui-table-cell" style="width:100px;text-align:center;">是否启用</div></th>
|
||||
<th><div class="layui-table-cell" style="width:200px;text-align:center;">创建时间</div></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(is_array($data) || $data instanceof \think\Collection || $data instanceof \think\Paginator): if( count($data)==0 ) : echo "" ;else: foreach($data as $key=>$item): ?>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="checkbox" onclick="checkThis(this)" name="data-checkbox"
|
||||
data-id="<?php echo htmlentities($item['id']); ?>" class="checkbox data-list-check" value="<?php echo htmlentities($item['id']); ?>"
|
||||
placeholder="选择/取消">
|
||||
</td>
|
||||
<td class="layui-table-col-special">
|
||||
<div class="layui-table-cell laytable-cell-1-0-2">
|
||||
<img src="<?php echo htmlentities($item['avatar']); ?>" style="height:80px;width: 80px;margin-right: 10px;" class="image-show">
|
||||
|
|
@ -371,6 +397,9 @@
|
|||
<td>
|
||||
<div class="layui-table-cell" style="width:100px;text-align:center;"><?php echo htmlentities($item['profit']); ?></div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="layui-table-cell" style="width:100px;text-align:center;"><?php echo htmlentities($item['status_text']); ?></div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="layui-table-cell" style="width:200px;text-align:center;"><?php echo htmlentities($item['create_time']); ?></div>
|
||||
</td>
|
||||
|
|
@ -388,6 +417,7 @@
|
|||
<small>每页显示</small>
|
||||
|
||||
<select class="input-sm" onchange="changePerPage(this)">
|
||||
<option value="5" <?php if($admin['per_page']==5): ?>selected<?php endif; ?>>5</option>
|
||||
<option value="10" <?php if($admin['per_page']==10): ?>selected<?php endif; ?>>10</option>
|
||||
<option value="20" <?php if($admin['per_page']==20): ?>selected<?php endif; ?>>20</option>
|
||||
<option value="30" <?php if($admin['per_page']==30): ?>selected<?php endif; ?>>30</option>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php /*a:9:{s:93:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/shop_config/goods.html";i:1637751415;s:87:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/base.html";i:1637830212;s:91:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/head_css.html";i:1586528064;s:90:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/head_js.html";i:1637749387;s:89:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/header.html";i:1586528064;s:90:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/sidebar.html";i:1586528064;s:97:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/content_header.html";i:1586528064;s:89:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/footer.html";i:1592550718;s:98:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/control_sidebar.html";i:1586528064;}*/ ?>
|
||||
<?php /*a:9:{s:93:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/shop_config/goods.html";i:1639019948;s:87:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/base.html";i:1637830212;s:91:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/head_css.html";i:1586528064;s:90:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/head_js.html";i:1637749387;s:89:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/header.html";i:1586528064;s:90:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/sidebar.html";i:1586528064;s:97:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/content_header.html";i:1586528064;s:89:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/footer.html";i:1592550718;s:98:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/control_sidebar.html";i:1586528064;}*/ ?>
|
||||
<?php if(!$admin['pjax']): ?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
|
|
@ -247,24 +247,6 @@
|
|||
</div>
|
||||
<label for="name" class="control-label">天</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="is_withdraw" class="col-sm-2 control-label">是否可提现</label>
|
||||
<div class="col-sm-10 col-md-4">
|
||||
<input class="input-switch" id="is_withdraw" value="1" <?php if((!isset($config) ||$config['is_withdraw']==1)): ?>checked<?php endif; ?> type="checkbox" />
|
||||
<input class="switch field-switch" placeholder="是否可提现" name="is_withdraw" value="<?php echo htmlentities((isset($config['is_withdraw']) && ($config['is_withdraw'] !== '')?$config['is_withdraw']:'')); ?>" hidden />
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$('#is_withdraw').bootstrapSwitch({
|
||||
onText: "是",
|
||||
offText: "否",
|
||||
onColor: "success",
|
||||
offColor: "danger",
|
||||
onSwitchChange: function (event, state) {
|
||||
$(event.target).closest('.bootstrap-switch').next().val(state ? '1' : '0').change();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<div class="form-group">
|
||||
<label for="is_first" class="col-sm-2 control-label">是否新用户领取</label>
|
||||
<div class="col-sm-10 col-md-4">
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php /*a:9:{s:92:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/admin_role/index.html";i:1586528064;s:87:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/base.html";i:1637830212;s:91:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/head_css.html";i:1586528064;s:90:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/head_js.html";i:1637749387;s:89:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/header.html";i:1586528064;s:90:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/sidebar.html";i:1586528064;s:97:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/content_header.html";i:1586528064;s:89:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/footer.html";i:1592550718;s:98:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/control_sidebar.html";i:1586528064;}*/ ?>
|
||||
<?php /*a:9:{s:92:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/admin_role/index.html";i:1639019032;s:87:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/base.html";i:1637830212;s:91:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/head_css.html";i:1586528064;s:90:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/head_js.html";i:1637749387;s:89:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/header.html";i:1586528064;s:90:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/sidebar.html";i:1586528064;s:97:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/content_header.html";i:1586528064;s:89:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/footer.html";i:1592550718;s:98:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/control_sidebar.html";i:1586528064;}*/ ?>
|
||||
<?php if(!$admin['pjax']): ?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
|
|
@ -347,6 +347,7 @@
|
|||
<small>每页显示</small>
|
||||
|
||||
<select class="input-sm" onchange="changePerPage(this)">
|
||||
<option value="5" <?php if($admin['per_page']==5): ?>selected<?php endif; ?>>5</option>
|
||||
<option value="10" <?php if($admin['per_page']==10): ?>selected<?php endif; ?>>10</option>
|
||||
<option value="20" <?php if($admin['per_page']==20): ?>selected<?php endif; ?>>20</option>
|
||||
<option value="30" <?php if($admin['per_page']==30): ?>selected<?php endif; ?>>30</option>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php /*a:9:{s:90:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/admin_menu/add.html";i:1586528064;s:87:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/base.html";i:1586528064;s:91:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/head_css.html";i:1586528064;s:90:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/head_js.html";i:1637749387;s:89:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/header.html";i:1586528064;s:90:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/sidebar.html";i:1586528064;s:97:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/content_header.html";i:1586528064;s:89:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/footer.html";i:1592550718;s:98:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/control_sidebar.html";i:1586528064;}*/ ?>
|
||||
<?php /*a:9:{s:90:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/admin_menu/add.html";i:1586528064;s:87:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/base.html";i:1637830212;s:91:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/head_css.html";i:1586528064;s:90:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/head_js.html";i:1637749387;s:89:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/header.html";i:1586528064;s:90:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/sidebar.html";i:1586528064;s:97:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/content_header.html";i:1586528064;s:89:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/footer.html";i:1592550718;s:98:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/control_sidebar.html";i:1586528064;}*/ ?>
|
||||
<?php if(!$admin['pjax']): ?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php /*a:9:{s:86:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/user/index.html";i:1638167134;s:87:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/base.html";i:1637830212;s:91:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/head_css.html";i:1586528064;s:90:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/head_js.html";i:1637749387;s:89:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/header.html";i:1586528064;s:90:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/sidebar.html";i:1586528064;s:97:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/content_header.html";i:1586528064;s:89:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/footer.html";i:1592550718;s:98:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/control_sidebar.html";i:1586528064;}*/ ?>
|
||||
<?php /*a:9:{s:86:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/user/index.html";i:1639019770;s:87:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/base.html";i:1637830212;s:91:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/head_css.html";i:1586528064;s:90:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/head_js.html";i:1637749387;s:89:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/header.html";i:1586528064;s:90:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/sidebar.html";i:1586528064;s:97:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/content_header.html";i:1586528064;s:89:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/footer.html";i:1592550718;s:98:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/control_sidebar.html";i:1586528064;}*/ ?>
|
||||
<?php if(!$admin['pjax']): ?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
|
|
@ -323,8 +323,17 @@
|
|||
data-url="<?php echo url('disable'); ?>">
|
||||
<i class="fa fa-circle"></i> 禁用
|
||||
</a>
|
||||
<a class="btn btn-success btn-sm AjaxButton" data-toggle="tooltip" title="开启体验资格选中数据"
|
||||
data-confirm-title="开启体验资格" data-confirm-content="您确定要开启体验资格选中的数据吗?" data-id="checked"
|
||||
data-url="<?php echo url('experience_enable'); ?>">
|
||||
<i class="fa fa-circle"></i> 开启体验收益资格
|
||||
</a>
|
||||
|
||||
|
||||
<a class="btn btn-warning btn-sm AjaxButton" data-toggle="tooltip" title="关闭体验资格选中数据"
|
||||
data-confirm-title="关闭体验资格确认" data-confirm-content="您确定要关闭体验资格选中的数据吗?" data-id="checked"
|
||||
data-url="<?php echo url('experience_disable'); ?>">
|
||||
<i class="fa fa-circle"></i> 关闭体验收益资格
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
@ -342,6 +351,9 @@
|
|||
<th>
|
||||
<div class="layui-table-cell" style="width:100px;text-align:center;">用户等级</div>
|
||||
</th>
|
||||
<th>
|
||||
<div class="layui-table-cell" style="width:100px;text-align:center;">体验收益资格</div>
|
||||
</th>
|
||||
<th>
|
||||
<div class="layui-table-cell" style="width:100px;text-align:center;">可提现积分</div>
|
||||
</th>
|
||||
|
|
@ -379,6 +391,9 @@
|
|||
<td>
|
||||
<div class="layui-table-cell" style="width:100px;text-align:center;"><?php echo htmlentities($item['user_level_id_text']); ?></div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="layui-table-cell" style="width:100px;text-align:center;"><?php echo htmlentities($item['experience_text']); ?></div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="layui-table-cell" style="width:100px;text-align:center;"><?php echo htmlentities($item['integral']); ?></div>
|
||||
</td>
|
||||
|
|
@ -446,6 +461,7 @@
|
|||
<small>每页显示</small>
|
||||
|
||||
<select class="input-sm" onchange="changePerPage(this)">
|
||||
<option value="5" <?php if($admin['per_page']==5): ?>selected<?php endif; ?>>5</option>
|
||||
<option value="10" <?php if($admin['per_page']==10): ?>selected<?php endif; ?>>10</option>
|
||||
<option value="20" <?php if($admin['per_page']==20): ?>selected<?php endif; ?>>20</option>
|
||||
<option value="30" <?php if($admin['per_page']==30): ?>selected<?php endif; ?>>30</option>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?php /*a:9:{s:90:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/withdraw/lists.html";i:1638455766;s:87:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/base.html";i:1637830212;s:91:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/head_css.html";i:1586528064;s:90:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/head_js.html";i:1637749387;s:89:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/header.html";i:1586528064;s:90:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/sidebar.html";i:1586528064;s:97:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/content_header.html";i:1586528064;s:89:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/footer.html";i:1592550718;s:98:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/control_sidebar.html";i:1586528064;}*/ ?>
|
||||
<?php /*a:9:{s:90:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/withdraw/lists.html";i:1639018962;s:87:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/base.html";i:1637830212;s:91:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/head_css.html";i:1586528064;s:90:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/head_js.html";i:1637749387;s:89:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/header.html";i:1586528064;s:90:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/sidebar.html";i:1586528064;s:97:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/content_header.html";i:1586528064;s:89:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/footer.html";i:1592550718;s:98:"/Library/WebServer/Documents/dggxiangmu/dggmyyc/application/admin/view/public/control_sidebar.html";i:1586528064;}*/ ?>
|
||||
<?php if(!$admin['pjax']): ?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
|
|
@ -385,7 +385,7 @@
|
|||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="layui-table-cell" style="width:100px;text-align:center;"><?php echo htmlentities($item['status_text']); ?></div>
|
||||
<div class="layui-table-cell" style="width:100px;text-align:center;"><?php echo htmlentities($item['statusa_text']); ?></div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="layui-table-cell" style="width:200px;text-align:center;"><?php echo htmlentities($item['description']); ?></div>
|
||||
|
|
@ -417,6 +417,7 @@
|
|||
<small>每页显示</small>
|
||||
|
||||
<select class="input-sm" onchange="changePerPage(this)">
|
||||
<option value="5" <?php if($admin['per_page']==5): ?>selected<?php endif; ?>>5</option>
|
||||
<option value="10" <?php if($admin['per_page']==10): ?>selected<?php endif; ?>>10</option>
|
||||
<option value="20" <?php if($admin['per_page']==20): ?>selected<?php endif; ?>>20</option>
|
||||
<option value="30" <?php if($admin['per_page']==30): ?>selected<?php endif; ?>>30</option>
|
||||
|
|
|
|||
Loading…
Reference in New Issue