提交 1b008a1e 编写于 作者: G gongfuxiang

钱包管理

上级 c97b417f
......@@ -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>
......
......@@ -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">
......
{{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
<?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
......@@ -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
.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.
先完成此消息的编辑!
想要评论请 注册