Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
starsw001
ShopXO
提交
1b008a1e
ShopXO
项目概览
starsw001
/
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,发现更多精彩内容 >>
提交
1b008a1e
编写于
5月 04, 2019
作者:
G
gongfuxiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
钱包管理
上级
c97b417f
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
159 addition
and
9 deletion
+159
-9
application/plugins/view/membershiplevel/level/index.html
application/plugins/view/membershiplevel/level/index.html
+1
-1
application/plugins/view/wallet/admin/index.html
application/plugins/view/wallet/admin/index.html
+2
-2
application/plugins/view/wallet/walletadmin/index.html
application/plugins/view/wallet/walletadmin/index.html
+91
-0
application/plugins/wallet/Walletadmin.php
application/plugins/wallet/Walletadmin.php
+46
-0
public/static/plugins/css/wallet/admin/admin.css
public/static/plugins/css/wallet/admin/admin.css
+6
-6
public/static/plugins/css/wallet/admin/walletadmin.css
public/static/plugins/css/wallet/admin/walletadmin.css
+13
-0
未找到文件。
application/plugins/view/membershiplevel/level/index.html
浏览文件 @
1b008a1e
...
...
@@ -77,7 +77,7 @@
</tr>
{{/foreach}}
{{else /}}
<tr><td
colspan=
"
5
"
class=
"table-no"
>
没有相关数据
</td></tr>
<tr><td
colspan=
"
7
"
class=
"table-no"
>
没有相关数据
</td></tr>
{{/if}}
</tbody>
</table>
...
...
application/plugins/view/wallet/admin/index.html
浏览文件 @
1b008a1e
...
...
@@ -79,7 +79,7 @@
<span
class=
"am-panel-title"
>
管理
</span>
</div>
<div
class=
"am-panel-bd"
>
<ul
data-am-widget=
"gallery"
class=
"am-gallery am-avg-sm-
2 am-avg-md-2 am-avg-lg-4
am-gallery-default"
data-am-gallery=
"{ pureview: true }"
>
<ul
data-am-widget=
"gallery"
class=
"am-gallery am-avg-sm-
1 am-avg-md-2 am-avg-lg-2
am-gallery-default"
data-am-gallery=
"{ pureview: true }"
>
<li
class=
"module-wallet"
>
<div
class=
"module-items"
>
<p
class=
"title"
>
钱包总数
</p>
...
...
@@ -96,7 +96,7 @@
<span>
用户
</span>
<span
class=
"animation-count-to"
data-to=
"12"
data-speed=
"1500"
>
12
</span>
</div>
<a
href=
"
#
"
class=
"view-to"
>
查看
<i
class=
"am-icon-angle-double-right"
></i></a>
<a
href=
"
{{:PluginsAdminUrl('wallet', 'walletadmin', 'index')}}
"
class=
"view-to"
>
查看
<i
class=
"am-icon-angle-double-right"
></i></a>
</div>
</li>
<li
class=
"module-cash"
>
...
...
application/plugins/view/wallet/walletadmin/index.html
0 → 100644
浏览文件 @
1b008a1e
{{include file="public/header" /}}
<!-- right content start -->
<div
class=
"content-right"
>
<div
class=
"content"
>
{{if !isset($params['is_admin_index']) or $params['is_admin_index'] neq 1}}
<legend>
<span
class=
"fs-16"
>
钱包插件
</span>
<a
href=
"{{:PluginsAdminUrl('wallet', 'admin', 'index')}}"
class=
"fr fs-14 m-t-5 am-icon-mail-reply"
>
返回
</a>
</legend>
{{/if}}
<div
class=
"wallet-content"
>
<!-- form start -->
<form
class=
"am-form form-search"
action=
"{{:PluginsAdminUrl('wallet', 'walletadmin', 'index')}}"
method=
"POST"
>
<div
class=
"am-g form-keyword"
>
<input
type=
"text"
class=
"am-form-field am-radius"
name=
"keywords"
placeholder=
"用户名/电话/邮箱"
{{
if
!
empty
($
params
['
keywords
'])}}
value=
"{{$params.keywords}}"
{{/
if
}}
/>
<button
class=
"am-btn am-btn-secondary am-radius am-btn-sm"
type=
"submit"
>
查询
</button>
</div>
</form>
<!-- form end -->
<!-- list start -->
<table
class=
"am-table am-table-striped am-table-hover am-text-middle m-t-10"
>
<thead>
<tr>
<th>
用户信息
</th>
<th>
可用金额
</th>
<th>
冻结金额
</th>
<th>
赠送金额
</th>
<th>
状态
</th>
<th
class=
"am-hide-sm-only"
>
开通时间
</th>
<th>
操作
</th>
</tr>
</thead>
<tbody>
{{if !empty($data_list)}}
{{foreach $data_list as $v}}
<tr
id=
"data-list-{{$v.id}}"
{{
if
isset
($
v
['
is_enable
'])
and
$
v
['
is_enable
']
eq
0}}
class=
"am-active"
{{/
if
}}
>
<td>
{{$v.name}}
</td>
<td
{{
if
!
empty
($
v
['
bg_color
'])}}
style=
"background-color:{{$v.bg_color}};"
{{/
if
}}
>
{{if !empty($v['images_url'])}}
<a
href=
"{{$v['images_url']}}"
target=
"_blank"
>
<img
src=
"{{$v['images_url']}}"
class=
"am-radius"
width=
"100"
/>
</a>
{{else /}}
<span
class=
"cr-ccc"
>
暂无图片
</span>
{{/if}}
</td>
<td>
{{$v.rules_min}}~{{$v.rules_max}}
</td>
<td>
满减:{{if $v['order_price'] gt 0 and $v['full_reduction_price'] gt 0}}
满{{$v.order_price}}元 减{{$v.full_reduction_price}}元
{{else /}}
<span
class=
"cr-ccc"
>
无满减
</span>
{{/if}}
<br
/>
折扣:{{if $v['discount_rate']}}
{{$v.discount_rate}}折
{{else /}}
<span
class=
"cr-ccc"
>
无折扣
</span>
{{/if}}
</td>
<td
class=
"am-hide-sm-only"
>
<a
href=
"javascript:;"
class=
"am-icon-btn am-icon-check submit-state {{if isset($v['is_enable']) and $v['is_enable'] eq 1}}am-success{{else /}}am-default{{/if}}"
data-url=
"{{:PluginsAdminUrl('wallet', 'level', 'statusupdate')}}"
data-id=
"{{$v.id}}"
data-state=
"{{if isset($v['is_enable'])}}{{$v['is_enable']}}{{/if}}"
data-field=
"is_enable"
data-is-update-status=
"1"
></a>
</td>
<td
class=
"am-hide-sm-only"
>
{{$v.operation_time_time}}
</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']])}}"
>
<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>
</td>
{{/if}}
</tr>
{{/foreach}}
{{else /}}
<tr><td
colspan=
"7"
class=
"table-no"
>
没有相关数据
</td></tr>
{{/if}}
</tbody>
</table>
<!-- list 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
0 → 100644
浏览文件 @
1b008a1e
<?php
// +----------------------------------------------------------------------
// | ShopXO 国内领先企业级B2C免费开源电商系统
// +----------------------------------------------------------------------
// | Copyright (c) 2011~2019 http://shopxo.net All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: Devil
// +----------------------------------------------------------------------
namespace
app\plugins\wallet
;
use
think\Controller
;
use
app\plugins\wallet\service\BaseService
;
use
app\service\PluginsService
;
/**
* 钱包插件 - 钱包管理
* @author Devil
* @blog http://gong.gg/
* @version 0.0.1
* @datetime 2016-12-01T21:51:08+0800
*/
class
Walletadmin
extends
Controller
{
/**
* 首页
* @author Devil
* @blog http://gong.gg/
* @version 1.0.0
* @datetime 2019-02-07T08:21:54+0800
* @param [array] $params [输入参数]
*/
public
function
index
(
$params
=
[])
{
$ret
=
PluginsService
::
PluginsData
(
'wallet'
,
''
,
false
);
if
(
$ret
[
'code'
]
==
0
)
{
$this
->
assign
(
'data'
,
$ret
[
'data'
]);
return
$this
->
fetch
(
'../../../plugins/view/wallet/walletadmin/index'
);
}
else
{
return
$ret
[
'msg'
];
}
}
}
?>
\ No newline at end of file
public/static/plugins/css/wallet/admin/admin.css
浏览文件 @
1b008a1e
...
...
@@ -22,7 +22,7 @@
padding
:
10px
;
margin
:
10px
;
border-radius
:
3px
;
background
:
#
68cffe
;
background
:
#
f0f0f0
;
position
:
relative
;
}
.wallet-content-module
.module-items
p
,
.wallet-content-module
.module-items
.small
{
...
...
@@ -40,27 +40,27 @@
font-size
:
14px
;
font-weight
:
700
;
margin
:
0
;
color
:
#
fff
;
color
:
#
666
;
}
.wallet-content-module
.module-items
p
.total
{
margin
:
0
0
5px
0
;
color
:
#
fff
;
color
:
#
333
;
font-size
:
26px
;
font-weight
:
700
;
}
.wallet-content-module
.module-items
.small
span
{
color
:
#
f0f0f0
;
color
:
#
888
;
font-size
:
12px
;
}
.wallet-content-module
.module-items
.top-right
{
position
:
absolute
;
top
:
10px
;
right
:
10px
;
color
:
#
ddd
;
color
:
#
888
;
}
.wallet-content-module
.module-items
.view-to
{
position
:
absolute
;
right
:
10px
;
bottom
:
10px
;
color
:
#
fff
;
color
:
#
666
;
}
\ No newline at end of file
public/static/plugins/css/wallet/admin/walletadmin.css
0 → 100644
浏览文件 @
1b008a1e
.form-search
.form-keyword
input
{
display
:
initial
;
}
@media
only
screen
and
(
min-width
:
641px
)
{
.form-search
.form-keyword
input
{
width
:
50%
;
}
}
@media
only
screen
and
(
max-width
:
641px
)
{
.form-search
.form-keyword
input
{
width
:
calc
(
100%
-
54px
);
}
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录