Commit 2d1ef0fd authored by agping's avatar agping

红包返现

parent 4dd4f193
......@@ -30,11 +30,10 @@
<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">
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="user_id" placeholder="客户ID" type="text">
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="red_bag_id" placeholder="红包ID" type="text">
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="activity_id" placeholder="活动ID" type="text">
<select class="form-control btn2 ld-Marheight" id="staus_red">
<option value="-1">红包状态</option>
<option value="0">有效</option>
<option value="1">过期</option>
......@@ -46,19 +45,13 @@
</td>
</tr>
<tr class="main_table_th_tr">
<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">客户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>
......
......@@ -29,17 +29,15 @@ define (['doT', 'text!temp/cash_back_list_template_tpl.html', 'css!style/home.cs
//获取列表
getList: function (pageNo) {
redEnvelope.pageNo = pageNo;
var params = {
"AuthToken" : JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))).AuthToken,
};
var params = {};
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();
}
params.start_time = $('#create_time_start').val();
params.end_time = $('#create_time_end').val();
params.user_id = $('#user_id').val();
params.id = $('#red_bag_id').val();
params.activity_id = $('#activity_id').val();
params.status = $('#staus_red').val();
$.ajax ({
url: '/index/couponList',//获取列表
type: 'GET',
......@@ -52,7 +50,7 @@ define (['doT', 'text!temp/cash_back_list_template_tpl.html', 'css!style/home.cs
$ ("#picture_list").html (doTtmpl (data.data.list));
/*分页代码*/
add_page(data.data.total,pageNo,picture.pageSize,picture.getList);
add_page(data.data.total,pageNo,redEnvelope.pageSize,redEnvelope.getList);
$ ('.J_preview').preview ();
}
});
......
<script id="cash_back_template_tpl" type="text/template">
[% var swAction=function(s){switch(Number(s)){case 0:return"首次登陆";case 1:return"邀请登陆";case 2:return"邀请成交";default:return s}};%]
[% var swStatus=function(s){switch(Number(s)){case 0:return"正常";case 1:return"手动停止";case 3:return"时间过期";case 4:return"删除";case 5:return"未开始";default:return s}};%]
[% 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>
<td>[%= it[item]['id'] %]</td>
<td>[%= it[item]['money'] %]</td>
<td>[%= swAction(it[item]['return_action']) %]</td>
<td>[%= it[item]['user_id'] %]</td>
<td>[%= it[item]['user_phone'] %]</td>
<td>[%= swStatus(it[item]['status']) %]</td>
</tr>
[% } %]
[% }else{ %]
......@@ -24,4 +19,5 @@
<td colspan="12" style="text-align:center;"> 暂无数据</td>
</tr>
[% } %]
</script>
\ No newline at end of file
</script>
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