Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jcy2004x
ShopXO
提交
6c4b7795
ShopXO
项目概览
jcy2004x
/
ShopXO
与 Fork 源项目一致
Fork自
纵之格 / ShopXO
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
ShopXO
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
6c4b7795
编写于
5月 05, 2019
作者:
D
devil_gong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
钱包管理
上级
bf1ed7c0
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
74 addition
and
5 deletion
+74
-5
application/plugins/view/wallet/walletadmin/index.html
application/plugins/view/wallet/walletadmin/index.html
+5
-5
application/plugins/view/wallet/walletadmin/saveinfo.html
application/plugins/view/wallet/walletadmin/saveinfo.html
+52
-0
application/plugins/wallet/Walletadmin.php
application/plugins/wallet/Walletadmin.php
+17
-0
未找到文件。
application/plugins/view/wallet/walletadmin/index.html
浏览文件 @
6c4b7795
...
...
@@ -14,7 +14,7 @@
<!-- form start -->
<form
class=
"am-form form-search"
action=
"{{:PluginsAdminUrl('wallet', 'walletadmin', 'index')}}"
method=
"POST"
>
<div
class=
"am-g"
>
<input
type=
"text"
autocomplete=
"off"
class=
"am-radius form-keyword"
placeholder=
"
姓名/手机/邮箱/昵称
"
name=
"keywords"
{{
if
!
empty
($
params
['
keywords
'])}}
value=
"{{$params.keywords}}"
{{/
if
}}
/>
<input
type=
"text"
autocomplete=
"off"
class=
"am-radius form-keyword"
placeholder=
"
用户名/昵称/手机/邮箱
"
name=
"keywords"
{{
if
!
empty
($
params
['
keywords
'])}}
value=
"{{$params.keywords}}"
{{/
if
}}
/>
<button
type=
"submit"
class=
"am-btn am-btn-secondary am-btn-sm am-radius form-submit"
>
查询
</button>
<label
class=
"fs-12 m-l-5 c-p fw-100 more-submit"
>
更多筛选
...
...
@@ -28,7 +28,7 @@
</label>
<div
class=
"more-where {{if !isset($params['is_more']) or $params['is_more'] neq 1}} none{{/if}}"
>
<select
name=
"status"
class=
"am-radius
c-p
m-t-10 chosen-select param-where"
data-placeholder=
"状态..."
>
<select
name=
"status"
class=
"am-radius m-t-10 chosen-select param-where"
data-placeholder=
"状态..."
>
<option
value=
"-1"
>
状态...
</option>
{{foreach $wallet_status_list as $v}}
<option
value=
"{{$v.value}}"
{{
if
isset
($
params
['
status
'])
and
$
params
['
status
']
eq
$
v
['
value
']}}
selected
{{/
if
}}
>
{{$v.name}}
</option>
...
...
@@ -70,7 +70,7 @@
<td
class=
"money"
>
<ul>
<li>
可用
:
<span
class=
"normal-money"
>
{{$v.normal_money}}
</span>
有效
:
<span
class=
"normal-money"
>
{{$v.normal_money}}
</span>
</li>
<li>
冻结:
<span
class=
"frozen-money"
>
{{$v.frozen_money}}
</span>
...
...
@@ -84,10 +84,10 @@
<td
class=
"am-hide-sm-only"
>
{{$v.add_time_text}}
</td>
{{if !isset($params['is_admin_index']) or $params['is_admin_index'] neq 1}}
<td
class=
"view-operation"
>
<a
href=
"{{:PluginsAdminUrl('wallet', '
level
', 'saveinfo', ['id'=>$v['id']])}}"
>
<a
href=
"{{:PluginsAdminUrl('wallet', '
walletadmin
', 'saveinfo', ['id'=>$v['id']])}}"
>
<button
class=
"am-btn am-btn-secondary am-btn-xs am-radius am-icon-edit"
>
编辑
</button>
</a>
<button
class=
"am-btn am-btn-danger am-btn-xs am-radius am-icon-trash-o submit-delete"
data-url=
"{{:PluginsAdminUrl('wallet', '
level
', 'delete')}}"
data-id=
"{{$v.id}}"
>
删除
</button>
<button
class=
"am-btn am-btn-danger am-btn-xs am-radius am-icon-trash-o submit-delete"
data-url=
"{{:PluginsAdminUrl('wallet', '
walletadmin
', 'delete')}}"
data-id=
"{{$v.id}}"
>
删除
</button>
</td>
{{/if}}
</tr>
...
...
application/plugins/view/wallet/walletadmin/saveinfo.html
0 → 100644
浏览文件 @
6c4b7795
{{include file="public/header" /}}
<!-- right content start -->
<div
class=
"content-right"
>
<div
class=
"content"
>
<legend>
<span
class=
"fs-16"
>
钱包编辑
</span>
<a
href=
"{{:PluginsAdminUrl('wallet', 'walletadmin', 'index')}}"
class=
"fr fs-14 m-t-5 am-icon-mail-reply"
>
返回
</a>
</legend>
<div
class=
"membershiplevel-content"
>
<!-- form start -->
<form
class=
"am-form form-validation view-save"
action=
"{{:PluginsAdminUrl('membershiplevel', 'level', 'save')}}"
method=
"POST"
request-type=
"ajax-url"
request-value=
"{{:PluginsAdminUrl('wallet', 'walletadmin', 'index')}}"
enctype=
"multipart/form-data"
>
<div
class=
"am-form-group"
>
<label>
有效金额
<span
class=
"am-form-group-label-tips"
>
包含赠送金额
</span></label>
<input
type=
"number"
name=
"normal_money"
placeholder=
"有效金额"
step=
"0.01"
data-validation-message=
"请输入有效的有效金额"
class=
"am-radius"
{{
if
!
empty
($
data
['
normal_money
'])
and
$
data
['
normal_money
']
gt
0}}
value=
"{{$data.normal_money}}"
{{/
if
}}
/>
</div>
<div
class=
"am-form-group"
>
<label>
冻结金额
</label>
<input
type=
"number"
name=
"frozen_money"
placeholder=
"冻结金额"
step=
"0.01"
data-validation-message=
"请输入有效的冻结金额"
class=
"am-radius"
{{
if
!
empty
($
data
['
frozen_money
'])
and
$
data
['
frozen_money
']
gt
0}}
value=
"{{$data.frozen_money}}"
{{/
if
}}
/>
</div>
<div
class=
"am-form-group"
>
<label>
赠送金额
</label>
<input
type=
"number"
name=
"give_money"
placeholder=
"赠送金额"
step=
"0.01"
data-validation-message=
"请输入有效的赠送金额"
class=
"am-radius"
{{
if
!
empty
($
data
['
give_money
'])
and
$
data
['
give_money
']
gt
0}}
value=
"{{$data.frozen_money}}"
{{/
if
}}
/>
</div>
<div
class=
"am-form-group"
>
<label>
状态
</label>
<select
name=
"status"
class=
"am-radius chosen-select"
data-validation-message=
"请选择状态"
required
>
{{foreach $wallet_status_list as $v}}
<option
value=
"{{$v.value}}"
{{
if
isset
($
data
['
status
'])
and
$
data
['
status
']
eq
$
v
['
value
']}}
selected
{{
else
/}}{{
if
!
isset
($
data
['
status
'])
and
isset
($
v
['
checked
'])
and
$
v
['
checked
']
eq
true
}}
selected
{{/
if
}}{{/
if
}}
>
{{$v.name}}
</option>
{{/foreach}}
</select>
</div>
<div
class=
"am-form-group am-form-group-refreshing"
>
<input
type=
"hidden"
name=
"id"
{{
if
!
empty
($
data
['
id
'])}}
value=
"{{$data.id}}"
{{/
if
}}
/>
<button
type=
"submit"
class=
"am-btn am-btn-primary am-radius btn-loading-example am-btn-sm w100"
data-am-loading=
"{loadingText:'处理中...'}"
>
保存
</button>
</div>
</form>
<!-- form end -->
</div>
</div>
</div>
<!-- right content end -->
<!-- footer start -->
{{include file="public/footer" /}}
<!-- footer end -->
\ No newline at end of file
application/plugins/wallet/Walletadmin.php
浏览文件 @
6c4b7795
...
...
@@ -74,5 +74,22 @@ class Walletadmin extends Controller
$this
->
assign
(
'params'
,
$params
);
return
$this
->
fetch
(
'../../../plugins/view/wallet/walletadmin/index'
);
}
/**
* 钱包编辑页面
* @author Devil
* @blog http://gong.gg/
* @version 1.0.0
* @date 2019-05-05
* @desc description
* @param [array] $params [输入参数]
*/
public
function
saveinfo
(
$params
=
[])
{
// 静态数据
$this
->
assign
(
'wallet_status_list'
,
WalletService
::
$wallet_status_list
);
return
$this
->
fetch
(
'../../../plugins/view/wallet/walletadmin/saveinfo'
);
}
}
?>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录