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
cfbcfbb8
Commit
cfbcfbb8
authored
Sep 16, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
红包列表显示
parent
eb6e9b00
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
93 additions
and
13 deletions
+93
-13
account_statement_shop.html
...ion/index/view/officeBuilding/account_statement_shop.html
+29
-9
reportListShop.js
public/resource/js/reportListShop.js
+45
-2
reportList_shop_template_tpl.html
public/resource/template/reportList_shop_template_tpl.html
+19
-2
No files found.
application/index/view/officeBuilding/account_statement_shop.html
View file @
cfbcfbb8
...
@@ -1290,26 +1290,46 @@
...
@@ -1290,26 +1290,46 @@
</h4>
</h4>
</div>
</div>
<div
class=
"modal-body"
>
<div
class=
"modal-body"
>
<div
class=
"table-responsive"
>
<div
class=
"isHideEnvelope"
>
<h5>
返现红包
</h5>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<thead>
<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>
</tr>
</thead>
<tbody
class=
"text-center"
id=
"maintable_envelope_list"
>
</tbody>
</table>
</div>
<div
class=
"envelope-details"
style=
"margin-bottom: 30px;"
>
注:确认分佣后系统会立即返现现金到对应的客户账户上
</div>
</div>
<h5>
成交评价
</h5>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<thead>
<thead>
<tr>
<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"
>
有效期
</th>
<th
class=
"text-center"
>
客户ID
</th>
<th
class=
"text-center"
>
客户ID
</th>
<th
class=
"text-center"
>
客户手机号
</th>
<th
class=
"text-center"
>
订单ID
</th>
<th
class=
"text-center"
>
评价分数
</th>
<th
class=
"text-center"
>
评价内容
</th>
</tr>
</tr>
</thead>
</thead>
<tbody
class=
"text-center"
id=
"maintable_e
nvelope
_list"
>
<tbody
class=
"text-center"
id=
"maintable_e
valuation
_list"
>
</tbody>
</tbody>
</table>
</table>
</div>
</div>
<div
class=
"envelope-details"
style=
"margin-bottom: 30px;"
>
注:确认分佣后系统会立即返现现金到对应的客户账户上
</div>
</div>
</div>
<div
class=
"modal-footer"
>
<div
class=
"modal-footer"
>
<button
type=
"button btn2"
class=
"btn btn-primary maid_ok_btn"
id=
""
data-dismiss=
"modal"
>
<button
type=
"button btn2"
class=
"btn btn-primary maid_ok_btn"
id=
""
data-dismiss=
"modal"
>
...
...
public/resource/js/reportListShop.js
View file @
cfbcfbb8
...
@@ -119,7 +119,9 @@ define(['doT', 'text!temp/reportList_shop_template_tpl.html', 'css!style/home.cs
...
@@ -119,7 +119,9 @@ define(['doT', 'text!temp/reportList_shop_template_tpl.html', 'css!style/home.cs
});
});
//红包提现
//红包提现
_doc
.
on
(
"click"
,
".envelope-list"
,
function
()
{
_doc
.
on
(
"click"
,
".envelope-list"
,
function
()
{
bargain
.
getEnvelopeList
();
bargain
.
getEnvelopeList
();
//获取红包
bargain
.
getEvaluationList
();
//获取成交评价
});
});
//转到一级审核
//转到一级审核
...
@@ -1278,7 +1280,7 @@ define(['doT', 'text!temp/reportList_shop_template_tpl.html', 'css!style/home.cs
...
@@ -1278,7 +1280,7 @@ define(['doT', 'text!temp/reportList_shop_template_tpl.html', 'css!style/home.cs
$
(
'.envelope-list'
).
show
();
$
(
'.envelope-list'
).
show
();
bargain
.
report_id_show
=
1
;
bargain
.
report_id_show
=
1
;
}
else
{
}
else
{
$
(
'.envelope-list'
).
hide
();
$
(
'.envelope-list'
).
show
();
bargain
.
report_id_show
=
0
;
bargain
.
report_id_show
=
0
;
}
}
}
else
{
}
else
{
...
@@ -2263,8 +2265,49 @@ define(['doT', 'text!temp/reportList_shop_template_tpl.html', 'css!style/home.cs
...
@@ -2263,8 +2265,49 @@ define(['doT', 'text!temp/reportList_shop_template_tpl.html', 'css!style/home.cs
success
:
function
(
data
)
{
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
data
){
$
(
".isHideEnvelope"
).
show
();
//红包列表有数据
}
else
{
$
(
".isHideEnvelope"
).
hide
();
}
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'envelope_template_tpl'
).
innerHTML
);
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'envelope_template_tpl'
).
innerHTML
);
$
(
"#maintable_envelope_list"
).
html
(
doTtmpl
(
data
.
data
));
$
(
"#maintable_envelope_list"
).
html
(
doTtmpl
(
data
.
data
));
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
alert
(
'请求超时'
);
};
}
});
},
// 成交评价
getEvaluationList
:
function
(){
var
params
=
{
'report_id'
:
bargain
.
report_id_liu
};
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/getActivityCoupon'
,
data
:
params
,
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{
},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'evaluation_template_tpl'
).
innerHTML
);
$
(
"#maintable_evaluation_list"
).
html
(
doTtmpl
(
data
.
data
));
}
else
{
}
else
{
alert
(
data
[
'msg'
]);
alert
(
data
[
'msg'
]);
...
...
public/resource/template/reportList_shop_template_tpl.html
View file @
cfbcfbb8
...
@@ -247,4 +247,22 @@
...
@@ -247,4 +247,22 @@
<
td
colspan
=
"14"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
td
colspan
=
"14"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
<
/tr
>
[
%
}
%
]
[
%
}
%
]
</script>
</script>
\ No newline at end of file
<!--成交评价-->
<script
id=
"evaluation_template_tpl"
type=
"text/template"
>
[
%
if
(
it
&&
it
.
length
!=
0
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center"
>
<
td
>
[
%=
it
[
item
][
'user_type'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'money'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'title'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'validity'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"14"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</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