Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
T
taote
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
李达
taote
Commits
b96d0832
提交
b96d0832
authored
8月 31, 2021
作者:
LTSC-20210524KK\Administrator
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
淘特分销生成控制器
上级
6ab0efe6
隐藏空白字符变更
内嵌
并排
正在显示
30 个修改的文件
包含
886 行增加
和
16 行删除
+886
-16
Operators.php
application/admin/controller/Operators.php
+4
-1
TtCode.php
application/admin/controller/TtCode.php
+40
-0
TtDistribution.php
application/admin/controller/TtDistribution.php
+40
-0
TtLevelReward.php
application/admin/controller/TtLevelReward.php
+40
-0
tt_code.php
application/admin/lang/zh-cn/tt_code.php
+11
-0
tt_distribution.php
application/admin/lang/zh-cn/tt_distribution.php
+8
-0
tt_level_reward.php
application/admin/lang/zh-cn/tt_level_reward.php
+7
-0
Operators.php
application/admin/model/Operators.php
+4
-1
OperatorsDeploy.php
application/admin/model/OperatorsDeploy.php
+26
-0
TtCode.php
application/admin/model/TtCode.php
+60
-0
TtDistribution.php
application/admin/model/TtDistribution.php
+40
-0
TtLevelReward.php
application/admin/model/TtLevelReward.php
+40
-0
TtCode.php
application/admin/validate/TtCode.php
+27
-0
TtDistribution.php
application/admin/validate/TtDistribution.php
+27
-0
TtLevelReward.php
application/admin/validate/TtLevelReward.php
+27
-0
index.html
application/admin/view/index/index.html
+2
-2
add.html
application/admin/view/tt_code/add.html
+40
-0
edit.html
application/admin/view/tt_code/edit.html
+40
-0
index.html
application/admin/view/tt_code/index.html
+45
-0
add.html
application/admin/view/tt_distribution/add.html
+28
-0
edit.html
application/admin/view/tt_distribution/edit.html
+28
-0
index.html
application/admin/view/tt_distribution/index.html
+35
-0
add.html
application/admin/view/tt_level_reward/add.html
+22
-0
edit.html
application/admin/view/tt_level_reward/edit.html
+22
-0
index.html
application/admin/view/tt_level_reward/index.html
+35
-0
site.php
application/extra/site.php
+1
-1
operators.js
public/assets/js/backend/operators.js
+28
-11
tt_code.js
public/assets/js/backend/tt_code.js
+54
-0
tt_distribution.js
public/assets/js/backend/tt_distribution.js
+53
-0
tt_level_reward.js
public/assets/js/backend/tt_level_reward.js
+52
-0
没有找到文件。
application/admin/controller/Operators.php
浏览文件 @
b96d0832
...
...
@@ -76,12 +76,15 @@ class Operators extends Backend
$admin
=
[
"admin_id"
=>
$admin_id
];
}
$list
=
$this
->
model
->
with
(
'role'
)
->
where
(
$where
)
->
where
(
$admin
)
->
order
(
$sort
,
$order
)
->
paginate
(
$limit
);
$list_one
=
collection
(
$list
->
items
())
->
toArray
();
$result
=
array
(
"total"
=>
$list
->
total
(),
"rows"
=>
$list
->
items
()
);
$result
=
array
(
"total"
=>
$list
->
total
(),
"rows"
=>
$list
_one
);
return
json
(
$result
);
}
return
$this
->
view
->
fetch
();
...
...
application/admin/controller/TtCode.php
0 → 100644
浏览文件 @
b96d0832
<?php
namespace
app\admin\controller
;
use
app\common\controller\Backend
;
/**
* 邀请码
*
* @icon fa fa-circle-o
*/
class
TtCode
extends
Backend
{
/**
* TtCode模型对象
* @var \app\admin\model\TtCode
*/
protected
$model
=
null
;
public
function
_initialize
()
{
parent
::
_initialize
();
$this
->
model
=
new
\app\admin\model\TtCode
;
$this
->
view
->
assign
(
"statusList"
,
$this
->
model
->
getStatusList
());
}
public
function
import
()
{
parent
::
import
();
}
/**
* 默认生成的控制器所继承的父类中有index/add/edit/del/multi五个基础方法、destroy/restore/recyclebin三个回收站方法
* 因此在当前控制器中可不用编写增删改查的代码,除非需要自己控制这部分逻辑
* 需要将application/admin/library/traits/Backend.php中对应的方法复制到当前控制器,然后进行修改
*/
}
application/admin/controller/TtDistribution.php
0 → 100644
浏览文件 @
b96d0832
<?php
namespace
app\admin\controller
;
use
app\common\controller\Backend
;
/**
* 分销比例
*
* @icon fa fa-circle-o
*/
class
TtDistribution
extends
Backend
{
/**
* TtDistribution模型对象
* @var \app\admin\model\TtDistribution
*/
protected
$model
=
null
;
public
function
_initialize
()
{
parent
::
_initialize
();
$this
->
model
=
new
\app\admin\model\TtDistribution
;
}
public
function
import
()
{
parent
::
import
();
}
/**
* 默认生成的控制器所继承的父类中有index/add/edit/del/multi五个基础方法、destroy/restore/recyclebin三个回收站方法
* 因此在当前控制器中可不用编写增删改查的代码,除非需要自己控制这部分逻辑
* 需要将application/admin/library/traits/Backend.php中对应的方法复制到当前控制器,然后进行修改
*/
}
application/admin/controller/TtLevelReward.php
0 → 100644
浏览文件 @
b96d0832
<?php
namespace
app\admin\controller
;
use
app\common\controller\Backend
;
/**
* 平级奖励
*
* @icon fa fa-circle-o
*/
class
TtLevelReward
extends
Backend
{
/**
* TtLevelReward模型对象
* @var \app\admin\model\TtLevelReward
*/
protected
$model
=
null
;
public
function
_initialize
()
{
parent
::
_initialize
();
$this
->
model
=
new
\app\admin\model\TtLevelReward
;
}
public
function
import
()
{
parent
::
import
();
}
/**
* 默认生成的控制器所继承的父类中有index/add/edit/del/multi五个基础方法、destroy/restore/recyclebin三个回收站方法
* 因此在当前控制器中可不用编写增删改查的代码,除非需要自己控制这部分逻辑
* 需要将application/admin/library/traits/Backend.php中对应的方法复制到当前控制器,然后进行修改
*/
}
application/admin/lang/zh-cn/tt_code.php
0 → 100644
浏览文件 @
b96d0832
<?php
return
[
'Id'
=>
'ID'
,
'Code'
=>
'邀请码'
,
'User_id'
=>
'用户ID'
,
'Update_time'
=>
'使用时间'
,
'Status'
=>
'状态'
,
'Status 0'
=>
'未使用'
,
'Status 1'
=>
'已使用'
];
application/admin/lang/zh-cn/tt_distribution.php
0 → 100644
浏览文件 @
b96d0832
<?php
return
[
'Id'
=>
'ID'
,
'Primary_distribution'
=>
'一级分销'
,
'Secondary_distribution'
=>
'二级分销'
,
'Third_distribution'
=>
'三级分销'
];
application/admin/lang/zh-cn/tt_level_reward.php
0 → 100644
浏览文件 @
b96d0832
<?php
return
[
'Id'
=>
'ID'
,
'Group_id'
=>
'角色ID'
,
'Price'
=>
'价格'
];
application/admin/model/Operators.php
浏览文件 @
b96d0832
...
...
@@ -44,5 +44,8 @@ class Operators extends Model
return
$value
===
''
?
null
:
(
$value
&&
!
is_numeric
(
$value
)
?
strtotime
(
$value
)
:
$value
);
}
public
function
role
()
{
return
$this
->
belongsTo
(
'operators_deploy'
,
'id'
,
'operators_id'
,[],
'LEFT'
)
->
setEagerlyType
(
0
);
}
}
application/admin/model/OperatorsDeploy.php
0 → 100644
浏览文件 @
b96d0832
<?php
namespace
app\admin\model
;
use
think\Model
;
class
OperatorsDeploy
extends
Model
{
// 表名
protected
$name
=
'operators_deploy'
;
// 自动写入时间戳字段
protected
$autoWriteTimestamp
=
false
;
// 定义时间戳字段名
protected
$createTime
=
false
;
protected
$updateTime
=
false
;
protected
$deleteTime
=
false
;
}
application/admin/model/TtCode.php
0 → 100644
浏览文件 @
b96d0832
<?php
namespace
app\admin\model
;
use
think\Model
;
class
TtCode
extends
Model
{
// 表名
protected
$name
=
'tt_code'
;
// 自动写入时间戳字段
protected
$autoWriteTimestamp
=
false
;
// 定义时间戳字段名
protected
$createTime
=
false
;
protected
$updateTime
=
false
;
protected
$deleteTime
=
false
;
// 追加属性
protected
$append
=
[
'update_time_text'
,
'status_text'
];
public
function
getStatusList
()
{
return
[
'0'
=>
__
(
'Status 0'
),
'1'
=>
__
(
'Status 1'
)];
}
public
function
getUpdateTimeTextAttr
(
$value
,
$data
)
{
$value
=
$value
?
$value
:
(
isset
(
$data
[
'update_time'
])
?
$data
[
'update_time'
]
:
''
);
return
is_numeric
(
$value
)
?
date
(
"Y-m-d H:i:s"
,
$value
)
:
$value
;
}
public
function
getStatusTextAttr
(
$value
,
$data
)
{
$value
=
$value
?
$value
:
(
isset
(
$data
[
'status'
])
?
$data
[
'status'
]
:
''
);
$list
=
$this
->
getStatusList
();
return
isset
(
$list
[
$value
])
?
$list
[
$value
]
:
''
;
}
protected
function
setUpdateTimeAttr
(
$value
)
{
return
$value
===
''
?
null
:
(
$value
&&
!
is_numeric
(
$value
)
?
strtotime
(
$value
)
:
$value
);
}
}
application/admin/model/TtDistribution.php
0 → 100644
浏览文件 @
b96d0832
<?php
namespace
app\admin\model
;
use
think\Model
;
class
TtDistribution
extends
Model
{
// 表名
protected
$name
=
'tt_distribution'
;
// 自动写入时间戳字段
protected
$autoWriteTimestamp
=
false
;
// 定义时间戳字段名
protected
$createTime
=
false
;
protected
$updateTime
=
false
;
protected
$deleteTime
=
false
;
// 追加属性
protected
$append
=
[
];
}
application/admin/model/TtLevelReward.php
0 → 100644
浏览文件 @
b96d0832
<?php
namespace
app\admin\model
;
use
think\Model
;
class
TtLevelReward
extends
Model
{
// 表名
protected
$name
=
'tt_level_reward'
;
// 自动写入时间戳字段
protected
$autoWriteTimestamp
=
false
;
// 定义时间戳字段名
protected
$createTime
=
false
;
protected
$updateTime
=
false
;
protected
$deleteTime
=
false
;
// 追加属性
protected
$append
=
[
];
}
application/admin/validate/TtCode.php
0 → 100644
浏览文件 @
b96d0832
<?php
namespace
app\admin\validate
;
use
think\Validate
;
class
TtCode
extends
Validate
{
/**
* 验证规则
*/
protected
$rule
=
[
];
/**
* 提示消息
*/
protected
$message
=
[
];
/**
* 验证场景
*/
protected
$scene
=
[
'add'
=>
[],
'edit'
=>
[],
];
}
application/admin/validate/TtDistribution.php
0 → 100644
浏览文件 @
b96d0832
<?php
namespace
app\admin\validate
;
use
think\Validate
;
class
TtDistribution
extends
Validate
{
/**
* 验证规则
*/
protected
$rule
=
[
];
/**
* 提示消息
*/
protected
$message
=
[
];
/**
* 验证场景
*/
protected
$scene
=
[
'add'
=>
[],
'edit'
=>
[],
];
}
application/admin/validate/TtLevelReward.php
0 → 100644
浏览文件 @
b96d0832
<?php
namespace
app\admin\validate
;
use
think\Validate
;
class
TtLevelReward
extends
Validate
{
/**
* 验证规则
*/
protected
$rule
=
[
];
/**
* 提示消息
*/
protected
$message
=
[
];
/**
* 验证场景
*/
protected
$scene
=
[
'add'
=>
[],
'edit'
=>
[],
];
}
application/admin/view/index/index.html
浏览文件 @
b96d0832
...
...
@@ -10,11 +10,11 @@
<!-- 头部区域 -->
<header
id=
"header"
class=
"main-header"
>
{if preg_match('/\/admin\/|\/admin\.php|\/admin_d75KABNWt\.php/i', url())}
<!--
{if preg_match('/\/admin\/|\/admin\.php|\/admin_d75KABNWt\.php/i', url())}
<div class="alert alert-danger-light text-center" style="margin-bottom:0;border:none;">
{:__('Security tips')}
</div>
{/if}
{/if}
-->
{include file='common/header' /}
</header>
...
...
application/admin/view/tt_code/add.html
0 → 100644
浏览文件 @
b96d0832
<form
id=
"add-form"
class=
"form-horizontal"
role=
"form"
data-toggle=
"validator"
method=
"POST"
action=
""
>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Code')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-code"
data-rule=
"required"
class=
"form-control"
name=
"row[code]"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('User_id')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-user_id"
data-rule=
"required"
data-source=
"user/user/index"
data-field=
"nickname"
class=
"form-control selectpage"
name=
"row[user_id]"
type=
"text"
value=
""
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Update_time')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-update_time"
data-rule=
"required"
class=
"form-control datetimepicker"
data-date-format=
"YYYY-MM-DD HH:mm:ss"
data-use-current=
"true"
name=
"row[update_time]"
type=
"text"
value=
"{:date('Y-m-d H:i:s')}"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Status')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<div
class=
"radio"
>
{foreach name="statusList" item="vo"}
<label
for=
"row[status]-{$key}"
><input
id=
"row[status]-{$key}"
name=
"row[status]"
type=
"radio"
value=
"{$key}"
{
in
name=
"key"
value=
"0"
}
checked
{/
in
}
/>
{$vo}
</label>
{/foreach}
</div>
</div>
</div>
<div
class=
"form-group layer-footer"
>
<label
class=
"control-label col-xs-12 col-sm-2"
></label>
<div
class=
"col-xs-12 col-sm-8"
>
<button
type=
"submit"
class=
"btn btn-success btn-embossed disabled"
>
{:__('OK')}
</button>
<button
type=
"reset"
class=
"btn btn-default btn-embossed"
>
{:__('Reset')}
</button>
</div>
</div>
</form>
application/admin/view/tt_code/edit.html
0 → 100644
浏览文件 @
b96d0832
<form
id=
"edit-form"
class=
"form-horizontal"
role=
"form"
data-toggle=
"validator"
method=
"POST"
action=
""
>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Code')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-code"
data-rule=
"required"
class=
"form-control"
name=
"row[code]"
type=
"text"
value=
"{$row.code|htmlentities}"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('User_id')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-user_id"
data-rule=
"required"
data-source=
"user/user/index"
data-field=
"nickname"
class=
"form-control selectpage"
name=
"row[user_id]"
type=
"text"
value=
"{$row.user_id|htmlentities}"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Update_time')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-update_time"
data-rule=
"required"
class=
"form-control datetimepicker"
data-date-format=
"YYYY-MM-DD HH:mm:ss"
data-use-current=
"true"
name=
"row[update_time]"
type=
"text"
value=
"{:$row.update_time?datetime($row.update_time):''}"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Status')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<div
class=
"radio"
>
{foreach name="statusList" item="vo"}
<label
for=
"row[status]-{$key}"
><input
id=
"row[status]-{$key}"
name=
"row[status]"
type=
"radio"
value=
"{$key}"
{
in
name=
"key"
value=
"$row.status"
}
checked
{/
in
}
/>
{$vo}
</label>
{/foreach}
</div>
</div>
</div>
<div
class=
"form-group layer-footer"
>
<label
class=
"control-label col-xs-12 col-sm-2"
></label>
<div
class=
"col-xs-12 col-sm-8"
>
<button
type=
"submit"
class=
"btn btn-success btn-embossed disabled"
>
{:__('OK')}
</button>
<button
type=
"reset"
class=
"btn btn-default btn-embossed"
>
{:__('Reset')}
</button>
</div>
</div>
</form>
application/admin/view/tt_code/index.html
0 → 100644
浏览文件 @
b96d0832
<div
class=
"panel panel-default panel-intro"
>
<div
class=
"panel-heading"
>
{:build_heading(null,FALSE)}
<ul
class=
"nav nav-tabs"
data-field=
"status"
>
<li
class=
"{:$Think.get.status === null ? 'active' : ''}"
><a
href=
"#t-all"
data-value=
""
data-toggle=
"tab"
>
{:__('All')}
</a></li>
{foreach name="statusList" item="vo"}
<li
class=
"{:$Think.get.status === (string)$key ? 'active' : ''}"
><a
href=
"#t-{$key}"
data-value=
"{$key}"
data-toggle=
"tab"
>
{$vo}
</a></li>
{/foreach}
</ul>
</div>
<div
class=
"panel-body"
>
<div
id=
"myTabContent"
class=
"tab-content"
>
<div
class=
"tab-pane fade active in"
id=
"one"
>
<div
class=
"widget-body no-padding"
>
<div
id=
"toolbar"
class=
"toolbar"
>
<a
href=
"javascript:;"
class=
"btn btn-primary btn-refresh"
title=
"{:__('Refresh')}"
><i
class=
"fa fa-refresh"
></i>
</a>
<a
href=
"javascript:;"
class=
"btn btn-success btn-add {:$auth->check('tt_code/add')?'':'hide'}"
title=
"{:__('Add')}"
><i
class=
"fa fa-plus"
></i>
{:__('Add')}
</a>
<a
href=
"javascript:;"
class=
"btn btn-success btn-edit btn-disabled disabled {:$auth->check('tt_code/edit')?'':'hide'}"
title=
"{:__('Edit')}"
><i
class=
"fa fa-pencil"
></i>
{:__('Edit')}
</a>
<a
href=
"javascript:;"
class=
"btn btn-danger btn-del btn-disabled disabled {:$auth->check('tt_code/del')?'':'hide'}"
title=
"{:__('Delete')}"
><i
class=
"fa fa-trash"
></i>
{:__('Delete')}
</a>
<a
href=
"javascript:;"
class=
"btn btn-danger btn-import {:$auth->check('tt_code/import')?'':'hide'}"
title=
"{:__('Import')}"
id=
"btn-import-file"
data-url=
"ajax/upload"
data-mimetype=
"csv,xls,xlsx"
data-multiple=
"false"
><i
class=
"fa fa-upload"
></i>
{:__('Import')}
</a>
<div
class=
"dropdown btn-group {:$auth->check('tt_code/multi')?'':'hide'}"
>
<a
class=
"btn btn-primary btn-more dropdown-toggle btn-disabled disabled"
data-toggle=
"dropdown"
><i
class=
"fa fa-cog"
></i>
{:__('More')}
</a>
<ul
class=
"dropdown-menu text-left"
role=
"menu"
>
<li><a
class=
"btn btn-link btn-multi btn-disabled disabled"
href=
"javascript:;"
data-params=
"status=normal"
><i
class=
"fa fa-eye"
></i>
{:__('Set to normal')}
</a></li>
<li><a
class=
"btn btn-link btn-multi btn-disabled disabled"
href=
"javascript:;"
data-params=
"status=hidden"
><i
class=
"fa fa-eye-slash"
></i>
{:__('Set to hidden')}
</a></li>
</ul>
</div>
</div>
<table
id=
"table"
class=
"table table-striped table-bordered table-hover table-nowrap"
data-operate-edit=
"{:$auth->check('tt_code/edit')}"
data-operate-del=
"{:$auth->check('tt_code/del')}"
width=
"100%"
>
</table>
</div>
</div>
</div>
</div>
</div>
application/admin/view/tt_distribution/add.html
0 → 100644
浏览文件 @
b96d0832
<form
id=
"add-form"
class=
"form-horizontal"
role=
"form"
data-toggle=
"validator"
method=
"POST"
action=
""
>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Primary_distribution')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-primary_distribution"
data-rule=
"required"
class=
"form-control"
name=
"row[primary_distribution]"
type=
"number"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Secondary_distribution')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-secondary_distribution"
data-rule=
"required"
class=
"form-control"
name=
"row[secondary_distribution]"
type=
"number"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Third_distribution')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-third_distribution"
data-rule=
"required"
class=
"form-control"
name=
"row[third_distribution]"
type=
"number"
>
</div>
</div>
<div
class=
"form-group layer-footer"
>
<label
class=
"control-label col-xs-12 col-sm-2"
></label>
<div
class=
"col-xs-12 col-sm-8"
>
<button
type=
"submit"
class=
"btn btn-success btn-embossed disabled"
>
{:__('OK')}
</button>
<button
type=
"reset"
class=
"btn btn-default btn-embossed"
>
{:__('Reset')}
</button>
</div>
</div>
</form>
application/admin/view/tt_distribution/edit.html
0 → 100644
浏览文件 @
b96d0832
<form
id=
"edit-form"
class=
"form-horizontal"
role=
"form"
data-toggle=
"validator"
method=
"POST"
action=
""
>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Primary_distribution')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-primary_distribution"
data-rule=
"required"
class=
"form-control"
name=
"row[primary_distribution]"
type=
"number"
value=
"{$row.primary_distribution|htmlentities}"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Secondary_distribution')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-secondary_distribution"
data-rule=
"required"
class=
"form-control"
name=
"row[secondary_distribution]"
type=
"number"
value=
"{$row.secondary_distribution|htmlentities}"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Third_distribution')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-third_distribution"
data-rule=
"required"
class=
"form-control"
name=
"row[third_distribution]"
type=
"number"
value=
"{$row.third_distribution|htmlentities}"
>
</div>
</div>
<div
class=
"form-group layer-footer"
>
<label
class=
"control-label col-xs-12 col-sm-2"
></label>
<div
class=
"col-xs-12 col-sm-8"
>
<button
type=
"submit"
class=
"btn btn-success btn-embossed disabled"
>
{:__('OK')}
</button>
<button
type=
"reset"
class=
"btn btn-default btn-embossed"
>
{:__('Reset')}
</button>
</div>
</div>
</form>
application/admin/view/tt_distribution/index.html
0 → 100644
浏览文件 @
b96d0832
<div
class=
"panel panel-default panel-intro"
>
{:build_heading()}
<div
class=
"panel-body"
>
<div
id=
"myTabContent"
class=
"tab-content"
>
<div
class=
"tab-pane fade active in"
id=
"one"
>
<div
class=
"widget-body no-padding"
>
<div
id=
"toolbar"
class=
"toolbar"
>
<a
href=
"javascript:;"
class=
"btn btn-primary btn-refresh"
title=
"{:__('Refresh')}"
><i
class=
"fa fa-refresh"
></i>
</a>
<a
href=
"javascript:;"
class=
"btn btn-success btn-add {:$auth->check('tt_distribution/add')?'':'hide'}"
title=
"{:__('Add')}"
><i
class=
"fa fa-plus"
></i>
{:__('Add')}
</a>
<a
href=
"javascript:;"
class=
"btn btn-success btn-edit btn-disabled disabled {:$auth->check('tt_distribution/edit')?'':'hide'}"
title=
"{:__('Edit')}"
><i
class=
"fa fa-pencil"
></i>
{:__('Edit')}
</a>
<a
href=
"javascript:;"
class=
"btn btn-danger btn-del btn-disabled disabled {:$auth->check('tt_distribution/del')?'':'hide'}"
title=
"{:__('Delete')}"
><i
class=
"fa fa-trash"
></i>
{:__('Delete')}
</a>
<a
href=
"javascript:;"
class=
"btn btn-danger btn-import {:$auth->check('tt_distribution/import')?'':'hide'}"
title=
"{:__('Import')}"
id=
"btn-import-file"
data-url=
"ajax/upload"
data-mimetype=
"csv,xls,xlsx"
data-multiple=
"false"
><i
class=
"fa fa-upload"
></i>
{:__('Import')}
</a>
<div
class=
"dropdown btn-group {:$auth->check('tt_distribution/multi')?'':'hide'}"
>
<a
class=
"btn btn-primary btn-more dropdown-toggle btn-disabled disabled"
data-toggle=
"dropdown"
><i
class=
"fa fa-cog"
></i>
{:__('More')}
</a>
<ul
class=
"dropdown-menu text-left"
role=
"menu"
>
<li><a
class=
"btn btn-link btn-multi btn-disabled disabled"
href=
"javascript:;"
data-params=
"status=normal"
><i
class=
"fa fa-eye"
></i>
{:__('Set to normal')}
</a></li>
<li><a
class=
"btn btn-link btn-multi btn-disabled disabled"
href=
"javascript:;"
data-params=
"status=hidden"
><i
class=
"fa fa-eye-slash"
></i>
{:__('Set to hidden')}
</a></li>
</ul>
</div>
</div>
<table
id=
"table"
class=
"table table-striped table-bordered table-hover table-nowrap"
data-operate-edit=
"{:$auth->check('tt_distribution/edit')}"
data-operate-del=
"{:$auth->check('tt_distribution/del')}"
width=
"100%"
>
</table>
</div>
</div>
</div>
</div>
</div>
application/admin/view/tt_level_reward/add.html
0 → 100644
浏览文件 @
b96d0832
<form
id=
"add-form"
class=
"form-horizontal"
role=
"form"
data-toggle=
"validator"
method=
"POST"
action=
""
>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Group_id')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-group_id"
data-rule=
"required"
data-source=
"group/index"
class=
"form-control selectpage"
name=
"row[group_id]"
type=
"text"
value=
""
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Price')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-price"
data-rule=
"required"
class=
"form-control"
step=
"0.01"
name=
"row[price]"
type=
"number"
>
</div>
</div>
<div
class=
"form-group layer-footer"
>
<label
class=
"control-label col-xs-12 col-sm-2"
></label>
<div
class=
"col-xs-12 col-sm-8"
>
<button
type=
"submit"
class=
"btn btn-success btn-embossed disabled"
>
{:__('OK')}
</button>
<button
type=
"reset"
class=
"btn btn-default btn-embossed"
>
{:__('Reset')}
</button>
</div>
</div>
</form>
application/admin/view/tt_level_reward/edit.html
0 → 100644
浏览文件 @
b96d0832
<form
id=
"edit-form"
class=
"form-horizontal"
role=
"form"
data-toggle=
"validator"
method=
"POST"
action=
""
>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Group_id')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-group_id"
data-rule=
"required"
data-source=
"group/index"
class=
"form-control selectpage"
name=
"row[group_id]"
type=
"text"
value=
"{$row.group_id|htmlentities}"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Price')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-price"
data-rule=
"required"
class=
"form-control"
step=
"0.01"
name=
"row[price]"
type=
"number"
value=
"{$row.price|htmlentities}"
>
</div>
</div>
<div
class=
"form-group layer-footer"
>
<label
class=
"control-label col-xs-12 col-sm-2"
></label>
<div
class=
"col-xs-12 col-sm-8"
>
<button
type=
"submit"
class=
"btn btn-success btn-embossed disabled"
>
{:__('OK')}
</button>
<button
type=
"reset"
class=
"btn btn-default btn-embossed"
>
{:__('Reset')}
</button>
</div>
</div>
</form>
application/admin/view/tt_level_reward/index.html
0 → 100644
浏览文件 @
b96d0832
<div
class=
"panel panel-default panel-intro"
>
{:build_heading()}
<div
class=
"panel-body"
>
<div
id=
"myTabContent"
class=
"tab-content"
>
<div
class=
"tab-pane fade active in"
id=
"one"
>
<div
class=
"widget-body no-padding"
>
<div
id=
"toolbar"
class=
"toolbar"
>
<a
href=
"javascript:;"
class=
"btn btn-primary btn-refresh"
title=
"{:__('Refresh')}"
><i
class=
"fa fa-refresh"
></i>
</a>
<a
href=
"javascript:;"
class=
"btn btn-success btn-add {:$auth->check('tt_level_reward/add')?'':'hide'}"
title=
"{:__('Add')}"
><i
class=
"fa fa-plus"
></i>
{:__('Add')}
</a>
<a
href=
"javascript:;"
class=
"btn btn-success btn-edit btn-disabled disabled {:$auth->check('tt_level_reward/edit')?'':'hide'}"
title=
"{:__('Edit')}"
><i
class=
"fa fa-pencil"
></i>
{:__('Edit')}
</a>
<a
href=
"javascript:;"
class=
"btn btn-danger btn-del btn-disabled disabled {:$auth->check('tt_level_reward/del')?'':'hide'}"
title=
"{:__('Delete')}"
><i
class=
"fa fa-trash"
></i>
{:__('Delete')}
</a>
<a
href=
"javascript:;"
class=
"btn btn-danger btn-import {:$auth->check('tt_level_reward/import')?'':'hide'}"
title=
"{:__('Import')}"
id=
"btn-import-file"
data-url=
"ajax/upload"
data-mimetype=
"csv,xls,xlsx"
data-multiple=
"false"
><i
class=
"fa fa-upload"
></i>
{:__('Import')}
</a>
<div
class=
"dropdown btn-group {:$auth->check('tt_level_reward/multi')?'':'hide'}"
>
<a
class=
"btn btn-primary btn-more dropdown-toggle btn-disabled disabled"
data-toggle=
"dropdown"
><i
class=
"fa fa-cog"
></i>
{:__('More')}
</a>
<ul
class=
"dropdown-menu text-left"
role=
"menu"
>
<li><a
class=
"btn btn-link btn-multi btn-disabled disabled"
href=
"javascript:;"
data-params=
"status=normal"
><i
class=
"fa fa-eye"
></i>
{:__('Set to normal')}
</a></li>
<li><a
class=
"btn btn-link btn-multi btn-disabled disabled"
href=
"javascript:;"
data-params=
"status=hidden"
><i
class=
"fa fa-eye-slash"
></i>
{:__('Set to hidden')}
</a></li>
</ul>
</div>
</div>
<table
id=
"table"
class=
"table table-striped table-bordered table-hover table-nowrap"
data-operate-edit=
"{:$auth->check('tt_level_reward/edit')}"
data-operate-del=
"{:$auth->check('tt_level_reward/del')}"
width=
"100%"
>
</table>
</div>
</div>
</div>
</div>
</div>
application/extra/site.php
浏览文件 @
b96d0832
<?php
return
array
(
'name'
=>
'
淘特管理后台
'
,
'name'
=>
'
益农社管理系统
'
,
'beian'
=>
''
,
'cdnurl'
=>
''
,
'version'
=>
'1.0.8'
,
...
...
public/assets/js/backend/operators.js
浏览文件 @
b96d0832
...
...
@@ -7,7 +7,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
extend
:
{
index_url
:
'operators/index'
+
location
.
search
,
add_url
:
'operators/add'
,
del_url
:
'operators/del'
,
//
del_url: 'operators/del',
edit_url
:
'operators/edit'
,
update_url
:
'operators/edit'
,
table
:
'operators'
,
...
...
@@ -21,22 +21,39 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
url
:
$
.
fn
.
bootstrapTable
.
defaults
.
extend
.
index_url
,
pk
:
'id'
,
sortName
:
'id'
,
// 搜索按钮框展开
searchFormVisible
:
true
,
//隐藏搜索框
search
:
false
,
//隐藏切换按钮
showToggle
:
false
,
//隐藏列按钮
showColumns
:
false
,
//隐藏导出按钮
showExport
:
false
,
columns
:
[
[
{
checkbox
:
false
},
{
field
:
'id'
,
title
:
__
(
'Id'
)},
{
field
:
'name'
,
title
:
"姓名"
,
operate
:
'LIKE'
},
{
field
:
'mobile'
,
title
:
"手机号"
},
// {checkbox: false},
// {field: 'id', title: __('Id')},
{
field
:
'salt'
,
title
:
"运营商推广码"
},
{
field
:
'name'
,
title
:
"运营商联系人"
,
operate
:
'LIKE'
},
{
field
:
'mobile'
,
title
:
"运营商联系电话"
,
operate
:
'LIKE'
},
{
field
:
'role.id'
,
title
:
"推广页数量"
,
operate
:
false
},
{
field
:
'role.id'
,
title
:
"站长数量"
,
operate
:
false
},
{
field
:
'role.id'
,
title
:
"拉新奖励"
,
operate
:
false
},
{
field
:
'role.id'
,
title
:
"订单补贴"
,
operate
:
false
},
{
field
:
'role.id'
,
title
:
"业绩奖金"
,
operate
:
false
},
{
field
:
'role.id'
,
title
:
"运营补贴"
,
operate
:
false
},
{
field
:
'operate'
,
title
:
__
(
'Operate'
),
table
:
table
,
events
:
Table
.
api
.
events
.
operate
,
formatter
:
Table
.
api
.
formatter
.
operate
},
]
],
showColumns
:
false
,
showToggle
:
false
,
showExport
:
false
,
commonSearch
:
false
,
operate
:
false
,
search
:
false
//
showColumns: false,
//
showToggle: false,
//
showExport: false,
//
commonSearch: false,
//
operate: false,
//
search:false
});
...
...
public/assets/js/backend/tt_code.js
0 → 100644
浏览文件 @
b96d0832
define
([
'jquery'
,
'bootstrap'
,
'backend'
,
'table'
,
'form'
],
function
(
$
,
undefined
,
Backend
,
Table
,
Form
)
{
var
Controller
=
{
index
:
function
()
{
// 初始化表格参数配置
Table
.
api
.
init
({
extend
:
{
index_url
:
'tt_code/index'
+
location
.
search
,
add_url
:
'tt_code/add'
,
edit_url
:
'tt_code/edit'
,
del_url
:
'tt_code/del'
,
multi_url
:
'tt_code/multi'
,
import_url
:
'tt_code/import'
,
table
:
'tt_code'
,
}
});
var
table
=
$
(
"#table"
);
// 初始化表格
table
.
bootstrapTable
({
url
:
$
.
fn
.
bootstrapTable
.
defaults
.
extend
.
index_url
,
pk
:
'id'
,
sortName
:
'id'
,
columns
:
[
[
{
checkbox
:
true
},
{
field
:
'id'
,
title
:
__
(
'Id'
)},
{
field
:
'code'
,
title
:
__
(
'Code'
)},
{
field
:
'user_id'
,
title
:
__
(
'User_id'
)},
{
field
:
'update_time'
,
title
:
__
(
'Update_time'
),
operate
:
'RANGE'
,
addclass
:
'datetimerange'
,
autocomplete
:
false
,
formatter
:
Table
.
api
.
formatter
.
datetime
},
{
field
:
'status'
,
title
:
__
(
'Status'
),
searchList
:
{
"0"
:
__
(
'Status 0'
),
"1"
:
__
(
'Status 1'
)},
formatter
:
Table
.
api
.
formatter
.
status
},
{
field
:
'operate'
,
title
:
__
(
'Operate'
),
table
:
table
,
events
:
Table
.
api
.
events
.
operate
,
formatter
:
Table
.
api
.
formatter
.
operate
}
]
]
});
// 为表格绑定事件
Table
.
api
.
bindevent
(
table
);
},
add
:
function
()
{
Controller
.
api
.
bindevent
();
},
edit
:
function
()
{
Controller
.
api
.
bindevent
();
},
api
:
{
bindevent
:
function
()
{
Form
.
api
.
bindevent
(
$
(
"form[role=form]"
));
}
}
};
return
Controller
;
});
\ No newline at end of file
public/assets/js/backend/tt_distribution.js
0 → 100644
浏览文件 @
b96d0832
define
([
'jquery'
,
'bootstrap'
,
'backend'
,
'table'
,
'form'
],
function
(
$
,
undefined
,
Backend
,
Table
,
Form
)
{
var
Controller
=
{
index
:
function
()
{
// 初始化表格参数配置
Table
.
api
.
init
({
extend
:
{
index_url
:
'tt_distribution/index'
+
location
.
search
,
add_url
:
'tt_distribution/add'
,
edit_url
:
'tt_distribution/edit'
,
del_url
:
'tt_distribution/del'
,
multi_url
:
'tt_distribution/multi'
,
import_url
:
'tt_distribution/import'
,
table
:
'tt_distribution'
,
}
});
var
table
=
$
(
"#table"
);
// 初始化表格
table
.
bootstrapTable
({
url
:
$
.
fn
.
bootstrapTable
.
defaults
.
extend
.
index_url
,
pk
:
'id'
,
sortName
:
'id'
,
columns
:
[
[
{
checkbox
:
true
},
{
field
:
'id'
,
title
:
__
(
'Id'
)},
{
field
:
'primary_distribution'
,
title
:
__
(
'Primary_distribution'
)},
{
field
:
'secondary_distribution'
,
title
:
__
(
'Secondary_distribution'
)},
{
field
:
'third_distribution'
,
title
:
__
(
'Third_distribution'
)},
{
field
:
'operate'
,
title
:
__
(
'Operate'
),
table
:
table
,
events
:
Table
.
api
.
events
.
operate
,
formatter
:
Table
.
api
.
formatter
.
operate
}
]
]
});
// 为表格绑定事件
Table
.
api
.
bindevent
(
table
);
},
add
:
function
()
{
Controller
.
api
.
bindevent
();
},
edit
:
function
()
{
Controller
.
api
.
bindevent
();
},
api
:
{
bindevent
:
function
()
{
Form
.
api
.
bindevent
(
$
(
"form[role=form]"
));
}
}
};
return
Controller
;
});
\ No newline at end of file
public/assets/js/backend/tt_level_reward.js
0 → 100644
浏览文件 @
b96d0832
define
([
'jquery'
,
'bootstrap'
,
'backend'
,
'table'
,
'form'
],
function
(
$
,
undefined
,
Backend
,
Table
,
Form
)
{
var
Controller
=
{
index
:
function
()
{
// 初始化表格参数配置
Table
.
api
.
init
({
extend
:
{
index_url
:
'tt_level_reward/index'
+
location
.
search
,
add_url
:
'tt_level_reward/add'
,
edit_url
:
'tt_level_reward/edit'
,
del_url
:
'tt_level_reward/del'
,
multi_url
:
'tt_level_reward/multi'
,
import_url
:
'tt_level_reward/import'
,
table
:
'tt_level_reward'
,
}
});
var
table
=
$
(
"#table"
);
// 初始化表格
table
.
bootstrapTable
({
url
:
$
.
fn
.
bootstrapTable
.
defaults
.
extend
.
index_url
,
pk
:
'id'
,
sortName
:
'id'
,
columns
:
[
[
{
checkbox
:
true
},
{
field
:
'id'
,
title
:
__
(
'Id'
)},
{
field
:
'group_id'
,
title
:
__
(
'Group_id'
)},
{
field
:
'price'
,
title
:
__
(
'Price'
),
operate
:
'BETWEEN'
},
{
field
:
'operate'
,
title
:
__
(
'Operate'
),
table
:
table
,
events
:
Table
.
api
.
events
.
operate
,
formatter
:
Table
.
api
.
formatter
.
operate
}
]
]
});
// 为表格绑定事件
Table
.
api
.
bindevent
(
table
);
},
add
:
function
()
{
Controller
.
api
.
bindevent
();
},
edit
:
function
()
{
Controller
.
api
.
bindevent
();
},
api
:
{
bindevent
:
function
()
{
Form
.
api
.
bindevent
(
$
(
"form[role=form]"
));
}
}
};
return
Controller
;
});
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论