Commit 2b207672 authored by agping's avatar agping

红包相关

parent 11e531a2
......@@ -11,12 +11,12 @@ namespace app\index\controller;
use app\index\extend\Basic;
class ShopInspectionLogTest extends Basic
class CashAccount extends Basic
{
public function shopinspectionLogListTest()
public function cashAccountList()
{
if (!$this->request->isAjax()) {
return view('shopinspectiontest/shopinspectionLogListTest');
return view('redEnvelope/cashAccountList');
}
}
}
<?php
namespace app\index\controller;
/**
* Created by PhpStorm.
* User: liu yin ping
* Date: 2018/3/13
* Time: 15:48
*/
use app\index\extend\Basic;
class CashBack extends Basic
{
public function cashBackList()
{
if (!$this->request->isAjax()) {
return view('redEnvelope/cashBackList');
}
}
}
<?php
namespace app\index\controller;
/**
* Created by PhpStorm.
* User: liu yin ping
* Date: 2018/3/13
* Time: 15:48
*/
use app\index\extend\Basic;
class RedEnvelope extends Basic
{
public function redEnvelopeList()
{
if (!$this->request->isAjax()) {
return view('redEnvelope/redEnvelopeList');
}
}
}
{layout name="global/frame_two_tpl" /}
<input type="hidden" class="page-load" id="cashAccountList" />
<style>
</style>
<div id="page-content-wrapper">
<div class="container">
<div class="row">
<div class="">
<div class="panel panel-default">
<div class="panel-heading breadcrumb">
<li><a href="#">账户明细</a></li>
<div class="pull-right">
<ul class="bread_btn">
<li>
<a href="#modal" data-toggle="modal" class="btn btn-info"><i class="icon-plus"></i>新增活动</a>
</li>
</ul>
</div>
</div>
<div class="panel-body">
<div class="table-responsive" >
<table class="table table-striped table-bordered table-hover table-condensed">
<thead>
<tr>
<td colspan="12">
<form id="form_search">
<span class="fore-span ld-Marheight">变动时间:</span>
<input class="form-control btn4 ld-Marheight" value="" data-rule-phoneus="false" data-rule-required="false" id="create_time_start" name="start_date1" type="date">
<span class="fore-span ld-Marheight">-</span>
<input class="form-control btn4 ld-Marheight" value="" data-rule-phoneus="false" data-rule-required="false" id="create_time_end" name="end_date1" type="date">
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="industry_type" placeholder="客户ID" type="text" value="" name="groupname">
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="dish" placeholder="客户手机号" type="text" value="" name="store_name">
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="dish" placeholder="客户昵称" type="text" value="" name="store_name">
<span class="btn btn-info btn3 ld-Marheight" id="search">搜索</span>
<span class="btn btn-info btn3 ld-Marheight" id="reset">重置</span>
<div style="margin-left: 8px;font-size: 18px;font-weight: 600;">
<span>待审核金额:</span><span>50000元</span>
<span>提现成功金额:</span><span>4500元</span>
<span>未提现总额:</span><span>4500元</span>
</div>
</form>
</td>
</tr>
<tr class="main_table_th_tr">
<th class="text-center">变动时间</th>
<th class="text-center">变动金额</th>
<th class="text-center">变动类型</th>
<th class="text-center">余额(元)</th>
<th class="text-center">客户ID</th>
<th class="text-center">客户昵称</th>
<th class="text-center">客户手机号</th>
<th class="text-center">审核人</th>
<th class="text-center">操作</th>
</tr>
</thead>
<tbody class="text-center" id="picture_list"></tbody>
</table>
</div>
<!-- /#page-content-wrapper -->
<div class="text-right" id="pagediv">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{layout name="global/frame_two_tpl" /}
<input type="hidden" class="page-load" id="cashBackList" />
<style>
</style>
<div id="page-content-wrapper">
<div class="container">
<div class="row">
<div class="">
<div class="panel panel-default">
<div class="panel-heading breadcrumb">
<li><a href="#">返现红包</a></li>
<div class="pull-right">
<ul class="bread_btn">
<li>
<a href="#modal" data-toggle="modal" class="btn btn-info"><i class="icon-plus"></i>新增活动</a>
</li>
</ul>
</div>
</div>
<div class="panel-body">
<div class="table-responsive" >
<table class="table table-striped table-bordered table-hover table-condensed">
<thead>
<tr>
<td colspan="12">
<form id="form_search">
<span class="fore-span ld-Marheight">发放时间:</span>
<input class="form-control btn4 ld-Marheight" value="" data-rule-phoneus="false" data-rule-required="false" id="create_time_start" name="start_date1" type="date">
<span class="fore-span ld-Marheight">-</span>
<input class="form-control btn4 ld-Marheight" value="" data-rule-phoneus="false" data-rule-required="false" id="create_time_end" name="end_date1" type="date">
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="industry_type" placeholder="客户ID" type="text" value="" name="groupname">
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="dish" placeholder="客户手机号" type="text" value="" name="store_name">
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="dish" placeholder="红包ID" type="text" value="" name="store_name">
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="dish" placeholder="活动ID" type="text" value="" name="store_name">
<select class="form-control btn2 ld-Marheight" id="come_from">
<option value="-1">红包状态</option>
<option value="0">有效</option>
<option value="1">过期</option>
<option value="2">已使用</option>
</select>
<span class="btn btn-info btn3 ld-Marheight" id="search">搜索</span>
<span class="btn btn-info btn3 ld-Marheight" id="reset">重置</span>
</form>
</td>
</tr>
<tr class="main_table_th_tr">
<th class="text-center">发送时间</th>
<th class="text-center">返现红包ID</th>
<th class="text-center">红包金额</th>
<th class="text-center">奖励动作</th>
<th class="text-center">有效期</th>
<th class="text-center">客户ID</th>
<th class="text-center">客户昵称</th>
<th class="text-center">客户手机号</th>
<th class="text-center">状态</th>
<th class="text-center">返现时间</th>
<th class="text-center">返现人(确认分佣人)</th>
<th class="text-center">操作</th>
</tr>
</thead>
<tbody class="text-center" id="picture_list"></tbody>
</table>
</div>
<!-- /#page-content-wrapper -->
<div class="text-right" id="pagediv">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{layout name="global/frame_two_tpl" /}
<input type="hidden" class="page-load" id="redEnvelopeList" />
<style>
</style>
<div id="page-content-wrapper">
<div class="container">
<div class="row">
<div class="">
<div class="panel panel-default">
<div class="panel-heading breadcrumb">
<li><a href="#">活动列表</a></li>
<div class="pull-right">
<ul class="bread_btn">
<li>
<a href="#modal" data-toggle="modal" class="btn btn-info"><i class="icon-plus"></i>新增活动</a>
</li>
</ul>
</div>
</div>
<div class="panel-body">
<div class="table-responsive" >
<table class="table table-striped table-bordered table-hover table-condensed">
<thead>
<tr class="main_table_th_tr">
<th class="text-center">提交时间</th>
<th class="text-center">活动ID</th>
<th class="text-center">活动名称</th>
<th class="text-center">金额(元)</th>
<th class="text-center">奖励类型</th>
<th class="text-center">奖励动作</th>
<th class="text-center">开始时间-结束时间</th>
<th class="text-center">状态</th>
<th class="text-center">操作</th>
</tr>
</thead>
<tbody class="text-center" id="picture_list"></tbody>
</table>
</div>
<!-- /#page-content-wrapper -->
<div class="text-right" id="pagediv">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
......@@ -328,8 +328,9 @@ Route::group('index', [
'inspectionRecordList' => [ 'index/InspectionRecord/inspectionRecordList', [ 'method' => 'GET' ] ],//约带看记录liu
'realtimePerformance' => [ 'index/RealTimePerformance/realtimePerformanceList', [ 'method' => 'GET' ] ],//实时业绩liu
'shopinspectionLog' => [ 'index/ShopInspectionLog/shopinspectionLogList', [ 'method' => 'POST|GET' ] ],//商铺查看日志liu
'shopinspectionLogTest' => [ 'index/ShopInspectionLogTest/shopinspectionLogListTest', [ 'method' => 'POST|GET' ] ],//商铺查看日志测试liu
'redEnvelope' => [ 'index/RedEnvelope/redEnvelopeList', [ 'method' => 'POST|GET' ] ],//活动列表liu
'CashBack' => [ 'index/CashBack/cashBackList', [ 'method' => 'POST|GET' ] ],//返现红包liu
'CashAccount' => [ 'index/CashAccount/cashAccountList', [ 'method' => 'POST|GET' ] ],//现金账户liu
'performancesubsidiaryList' => ['index/PerformanceSubsidiary/performancesubsidiaryList', ['method' => 'POST|GET']],//业绩明细liu
'pkList' => ['index/PkList/pkList', ['method' => 'POST|GET']],//pk榜 liu
'pkWeekList' => ['index/PkList/pkWeekList', ['method' => 'POST|GET']],//pk榜 liu
......
define (['doT', 'text!temp/cash_account_list_template_tpl.html', 'css!style/home.css','ckfinder','ckfinderStart','pagination','bootstrapJs', 'blow-up'], function (doT, template) {
redEnvelope = {
pageNo: 1, /*第几页*/
pageSize: 10, /*每页显示多少条*/
init: function () {
//初始化dot
$ ("body").append (template);
redEnvelope.event ();
redEnvelope.getList (1);
},
event: function () {
//图片,附件上传删除键事件
$(document).on('click', '.delet-pic-btn', function(e) {
var _this = $(this);
e.preventDefault();
e.stopPropagation();
$(this).parent().parent().remove();
/*if(confirm('确定删除该图片吗?')) {
var _imgId = _this.parent().attr('data-imgid');
var file_id = $(this).parent('li').attr('id') - 0 ;
_this.parent().remove();
user.addDeleteNewsEvent(file_id);
};*/
});
$("#search").click(function() { //搜索
redEnvelope.getList(1);
});
$("#reset").click(function() { //重置
document.getElementById("form_search").reset();
});
},
//获取列表
getList: function (pageNo) {
redEnvelope.pageNo = pageNo;
var params = {
"AuthToken" : JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))).AuthToken,
};
params.pageNo = redEnvelope.pageNo;
params.pageSize = redEnvelope.pageSize;
params.img_type = $('#p_type option:selected').val() == -1 ? '' : $('#p_type option:selected').val();
if( params.img_type == 2 ){
params.label = '' ;
} else {
params.label = $('#yetai_type option:selected').val() ==-1 ? '' : $('#yetai_type option:selected').html();
}
$.ajax ({
url: '/index/getImageDepotList',//获取列表
type: 'GET',
async: true,
data: params,
dataType: 'json',
success: function (data) {
var temp = document.getElementById ('cash_account_template_tpl').innerHTML;
var doTtmpl = doT.template (temp);
$ ("#picture_list").html (doTtmpl (data.data.list));
/*分页代码*/
add_page(data.data.total,pageNo,redEnvelope.pageSize,redEnvelope.getList);
$ ('.J_preview').preview ();
}
});
},
};
return redEnvelope;
});
\ No newline at end of file
define (['doT', 'text!temp/cash_back_list_template_tpl.html', 'css!style/home.css','ckfinder','ckfinderStart','pagination','bootstrapJs', 'blow-up'], function (doT, template) {
redEnvelope = {
pageNo: 1, /*第几页*/
pageSize: 10, /*每页显示多少条*/
init: function () {
//初始化dot
$ ("body").append (template);
redEnvelope.event ();
redEnvelope.getList (1);
},
event: function () {
//图片,附件上传删除键事件
$(document).on('click', '.delet-pic-btn', function(e) {
var _this = $(this);
e.preventDefault();
e.stopPropagation();
$(this).parent().parent().remove();
/*if(confirm('确定删除该图片吗?')) {
var _imgId = _this.parent().attr('data-imgid');
var file_id = $(this).parent('li').attr('id') - 0 ;
_this.parent().remove();
user.addDeleteNewsEvent(file_id);
};*/
});
},
//获取列表
getList: function (pageNo) {
redEnvelope.pageNo = pageNo;
var params = {
"AuthToken" : JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))).AuthToken,
};
params.pageNo = redEnvelope.pageNo;
params.pageSize = redEnvelope.pageSize;
params.img_type = $('#p_type option:selected').val() == -1 ? '' : $('#p_type option:selected').val();
if( params.img_type == 2 ){
params.label = '' ;
} else {
params.label = $('#yetai_type option:selected').val() ==-1 ? '' : $('#yetai_type option:selected').html();
}
$.ajax ({
url: '/index/getImageDepotList',//获取列表
type: 'GET',
async: true,
data: params,
dataType: 'json',
success: function (data) {
var temp = document.getElementById ('cash_back_template_tpl').innerHTML;
var doTtmpl = doT.template (temp);
$ ("#picture_list").html (doTtmpl (data.data.list));
/*分页代码*/
add_page(data.data.total,pageNo,picture.pageSize,picture.getList);
$ ('.J_preview').preview ();
}
});
},
};
return redEnvelope;
});
\ No newline at end of file
define (['doT', 'text!temp/red_envelope_list_template_tpl.html', 'css!style/home.css','ckfinder','ckfinderStart','pagination','bootstrapJs', 'blow-up'], function (doT, template) {
redEnvelope = {
pageNo: 1, /*第几页*/
pageSize: 10, /*每页显示多少条*/
init: function () {
//初始化dot
$ ("body").append (template);
redEnvelope.event ();
redEnvelope.getList (1);
},
event: function () {
//图片,附件上传删除键事件
$(document).on('click', '.delet-pic-btn', function(e) {
var _this = $(this);
e.preventDefault();
e.stopPropagation();
$(this).parent().parent().remove();
/*if(confirm('确定删除该图片吗?')) {
var _imgId = _this.parent().attr('data-imgid');
var file_id = $(this).parent('li').attr('id') - 0 ;
_this.parent().remove();
user.addDeleteNewsEvent(file_id);
};*/
});
},
//获取列表
getList: function (pageNo) {
redEnvelope.pageNo = pageNo;
var params = {
"AuthToken" : JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))).AuthToken,
};
params.pageNo = redEnvelope.pageNo;
params.pageSize = redEnvelope.pageSize;
params.img_type = $('#p_type option:selected').val() == -1 ? '' : $('#p_type option:selected').val();
if( params.img_type == 2 ){
params.label = '' ;
} else {
params.label = $('#yetai_type option:selected').val() ==-1 ? '' : $('#yetai_type option:selected').html();
}
$.ajax ({
url: '/index/getImageDepotList',//获取列表
type: 'GET',
async: true,
data: params,
dataType: 'json',
success: function (data) {
var temp = document.getElementById ('red_envelope_template_tpl').innerHTML;
var doTtmpl = doT.template (temp);
$ ("#picture_list").html (doTtmpl (data.data.list));
/*分页代码*/
add_page(data.data.total,pageNo,picture.pageSize,picture.getList);
$ ('.J_preview').preview ();
}
});
},
};
return redEnvelope;
});
\ No newline at end of file
<script id="cash_account_template_tpl" type="text/template">
[% if(it != '') { %]
[% for(var item in it){ %]
<tr class="text-center">
<td>[%= it[item]['create_time'] %]</td>
<td>[%= it[item]['create_time'] %]</td>
<td>[%= it[item]['create_time'] %]</td>
<td>[%= it[item]['create_time'] %]</td>
<td>[%= it[item]['create_time'] %]</td>
<td>[%= it[item]['create_time'] %]</td>
<td>[%= it[item]['create_time'] %]</td>
<td>[%= it[item]['create_time'] %]</td>
<td>
<a class="btn1 btn-success is_show" data-toggle="modal" data-id='[%= it[item]["id"] %]' data-target="#modal-show">审核通过</a>
</td>
</tr>
[% } %]
[% }else{ %]
<tr>
<td colspan="12" style="text-align:center;"> 暂无数据</td>
</tr>
[% } %]
</script>
\ No newline at end of file
<script id="cash_back_template_tpl" type="text/template">
[% if(it != '') { %]
[% for(var item in it){ %]
<tr class="text-center">
<td>[%= it[item]['create_time'] %]</td>
<td>[%= it[item]['create_time'] %]</td>
<td>[%= it[item]['create_time'] %]</td>
<td>[%= it[item]['create_time'] %]</td>
<td>[%= it[item]['create_time'] %]</td>
<td>[%= it[item]['create_time'] %]</td>
<td>[%= it[item]['create_time'] %]</td>
<td>[%= it[item]['create_time'] %]</td>
<td>[%= it[item]['create_time'] %]</td>
<td>[%= it[item]['create_time'] %]</td>
<td>[%= it[item]['create_time'] %]</td>
<td>
<a class="btn1 btn-success is_show" data-toggle="modal" data-id='[%= it[item]["id"] %]' data-target="#modal-show">编辑</a>
<a class="btn1 btn-success is_show" data-toggle="modal" data-id='[%= it[item]["id"] %]' data-target="#modal-show">删除</a>
</td>
</tr>
[% } %]
[% }else{ %]
<tr>
<td colspan="12" style="text-align:center;"> 暂无数据</td>
</tr>
[% } %]
</script>
\ No newline at end of file
<script id="red_envelope_template_tpl" type="text/template">
[% if(it != '') { %]
[% for(var item in it){ %]
<tr class="text-center">
<td>[%= it[item]['create_time'] %]</td>
<td>[%= it[item]['create_time'] %]</td>
<td>[%= it[item]['create_time'] %]</td>
<td>[%= it[item]['create_time'] %]</td>
<td>[%= it[item]['create_time'] %]</td>
<td>[%= it[item]['create_time'] %]</td>
<td>[%= it[item]['create_time'] %]</td>
<td>[%= it[item]['create_time'] %]</td>
<td>
<a class="btn1 btn-success is_show" data-toggle="modal" data-id='[%= it[item]["id"] %]' data-target="#modal-show">编辑</a>
</td>
</tr>
[% } %]
[% }else{ %]
<tr>
<td colspan="12" style="text-align:center;"> 暂无数据</td>
</tr>
[% } %]
</script>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment