Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
2d1ef0fd
Commit
2d1ef0fd
authored
Mar 11, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
红包返现
parent
4dd4f193
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
38 deletions
+24
-38
cashBackList.html
application/index/view/coupon/cashBackList.html
+5
-12
cashBackList.js
public/resource/js/cashBackList.js
+8
-10
cash_back_list_template_tpl.html
public/resource/template/cash_back_list_template_tpl.html
+11
-16
No files found.
application/index/view/coupon/cashBackList.html
View file @
2d1ef0fd
...
...
@@ -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>
...
...
public/resource/js/cashBackList.js
View file @
2d1ef0fd
...
...
@@ -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'
).
htm
l
();
}
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'
).
va
l
();
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
,
pictur
e
.
getList
);
add_page
(
data
.
data
.
total
,
pageNo
,
redEnvelope
.
pageSize
,
redEnvelop
e
.
getList
);
$
(
'.J_preview'
).
preview
();
}
});
...
...
public/resource/template/cash_back_list_template_tpl.html
View file @
2d1ef0fd
<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>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment