Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
朱继来
/
后台订单管理
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c6a09efc
authored
Jul 29, 2020
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
列表添加过期字段
parent
3a4b115c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
4 deletions
app/Model/UserSampleApplyModel.php
app/Model/UserSampleInviteModel.php
public/js/web/selfSampleLog.js
resources/views/web/selfSampleLog.blade.php
app/Model/UserSampleApplyModel.php
View file @
c6a09efc
...
...
@@ -126,7 +126,7 @@ class UserSampleApplyModel extends Model
$page
=
$request
->
input
(
'page'
,
1
);
$limit
=
$request
->
input
(
'limit'
,
10
);
$field
=
[
'apply_id'
,
'user_id'
,
'account'
,
'order_id'
,
'order_sn'
,
'goods_id'
,
'goods_name'
,
'apply_num'
,
'quota'
,
'create_time'
];
$field
=
[
'apply_id'
,
'user_id'
,
'account'
,
'order_id'
,
'order_sn'
,
'goods_id'
,
'goods_name'
,
'apply_num'
,
'quota'
,
'
is_expire'
,
'
create_time'
];
$list
=
$this
->
where
(
'user_id'
,
$user_id
)
->
select
(
$field
)
...
...
app/Model/UserSampleInviteModel.php
View file @
c6a09efc
...
...
@@ -28,7 +28,7 @@ class UserSampleInviteModel extends Model
$page
=
$request
->
input
(
'page'
,
1
);
$limit
=
$request
->
input
(
'limit'
,
10
);
$field
=
[
'invite_id'
,
'user_id'
,
'account'
,
'invitee_uid'
,
'invitee_mobile'
,
'create_time'
];
$field
=
[
'invite_id'
,
'user_id'
,
'account'
,
'invitee_uid'
,
'invitee_mobile'
,
'
is_expire'
,
'
create_time'
];
$list
=
$this
->
where
(
'user_id'
,
$user_id
)
->
select
(
$field
)
...
...
public/js/web/selfSampleLog.js
View file @
c6a09efc
...
...
@@ -23,6 +23,7 @@ layui.use(['table'], function(){
,{
field
:
'goods_name'
,
title
:
'样片名称'
,
width
:
300
}
,{
field
:
'apply_num'
,
title
:
'领取数量'
,
width
:
120
}
,{
field
:
'quota'
,
title
:
'样片消耗人数'
,
width
:
120
}
,{
field
:
'is_expire'
,
title
:
'是否过期'
,
templet
:
'#is_expire'
,
width
:
120
}
,{
field
:
'create_time'
,
title
:
'领取时间'
,
width
:
215
}
]]
,
limit
:
10
...
...
@@ -46,6 +47,7 @@ layui.use(['table'], function(){
,{
field
:
'account'
,
title
:
'用户账户'
}
,{
field
:
'invitee_uid'
,
title
:
'受邀人ID'
}
,{
field
:
'invitee_mobile'
,
title
:
'受邀人手机号码'
}
,{
field
:
'is_expire'
,
title
:
'是否过期'
,
templet
:
'#is_expire'
,
width
:
120
}
,{
field
:
'create_time'
,
title
:
'受邀人注册时间'
}
]]
,
limit
:
10
...
...
resources/views/web/selfSampleLog.blade.php
View file @
c6a09efc
...
...
@@ -55,4 +55,12 @@
<hr>
<h3>
邀约记录
</h3>
<table
id=
"invite_log"
lay-filter=
"invite"
></table>
\ No newline at end of file
<table
id=
"invite_log"
lay-filter=
"invite"
></table>
<script
type=
"text/html"
id=
"is_expire"
>
@{{
#
if
(
d
.
is_expire
==
1
)
{
}}
<
div
style
=
"color:green;"
>
未过期
<
/div
>
@{{
#
}
else
{
}}
<
div
style
=
"color:#ccc;"
>
已过期
<
/div
>
@{{
#
}
}}
</script>
\ No newline at end of file
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