Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
admin
Overview
Overview
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
baihong
admin
Commits
cb8430d3
Commit
cb8430d3
authored
Apr 27, 2021
by
baihong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
点赞用户
parent
23c79877
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
71 additions
and
73 deletions
+71
-73
activityClocks.js
src/api/clock/activityClocks.js
+4
-0
detail.vue
src/view/clockEarly/detail.vue
+22
-23
detailZaoqi.vue
src/view/clockEarly/detailZaoqi.vue
+45
-50
No files found.
src/api/clock/activityClocks.js
View file @
cb8430d3
...
...
@@ -44,6 +44,10 @@ export const getActivityConfigByPay = (data) => {
export
const
activityawardrecord
=
(
data
)
=>
{
return
$http
.
postObj
(
'/cms/sign-in/activity-award-record'
,
data
)
}
//点赞列表
export
const
queryLikeList
=
(
data
)
=>
{
return
$http
.
get
(
'/cms/sign-in/queryLikeList'
,
data
)
}
//用户详情
export
const
userDe
=
(
data
)
=>
{
return
$http
.
get
(
'/cms/sign-in/user/'
+
data
)
...
...
src/view/clockEarly/detail.vue
View file @
cb8430d3
...
...
@@ -28,30 +28,20 @@
:columns=
"columns"
:data=
"data"
>
<template
slot-scope=
"
{ row }" slot="
nam
e">
<span>
{{
row
.
details
.
name
}}
</span>
<template
slot-scope=
"
{ row }" slot="
apply_dat
e">
<span>
{{
row
.
apply_date
|
format
}}
</span>
</
template
>
<
template
slot-scope=
"{ row }"
slot=
"
titl
e"
>
<span>
{{
row
.
details
.
title
}}
</span>
<
template
slot-scope=
"{ row }"
slot=
"
apply_tim
e"
>
<span>
{{
row
.
apply_time
|
format
}}
</span>
</
template
>
<
template
slot-scope=
"{ row }"
slot=
"c
reated_at
"
>
<span>
{{
row
.
c
reated_at
|
format
}}
</span>
<
template
slot-scope=
"{ row }"
slot=
"c
lock_time
"
>
<span>
{{
row
.
c
lock_time
|
format
}}
</span>
</
template
>
<
template
slot-scope=
"{ row }"
slot=
"enable"
>
<i-switch
:value=
"row.is_enable === 1 ? true : false"
@
on-change=
"
value =>
{
change(value, row);
}
"
/>
<
template
slot-scope=
"{ row }"
slot=
"status"
>
{{
row
.
status
===
0
?
'未开始'
:
row
.
status
===
1
?
'进行中'
:
row
.
status
===
2
?
'结算中'
:
'已结束'
}}
</
template
>
<
template
slot-scope=
"{ row }"
slot=
"action"
>
<a
@
click=
"edit(row)"
>
编辑
</a>
</
template
>
<
template
slot-scope=
"{ row }"
slot=
"edit"
>
<a
@
click=
"goTheme(row)"
>
编辑
</a>
<a
@
click=
"goDetail(row)"
>
详情
</a>
</
template
>
</Table>
<Table
...
...
@@ -80,12 +70,18 @@
<
script
>
import
{
activityClockRecords
,
activityawardrecord
}
from
"@/api/clock/activityClocks"
;
import
{
formatDate
}
from
"@/libs/util"
;
import
Pager
from
"@/view/common/Pager.vue"
;
export
default
{
name
:
"categories"
,
components
:
{
Pager
},
filters
:
{
format
(
value
)
{
return
formatDate
(
value
);
}
},
data
()
{
return
{
tab
:
"1"
,
...
...
@@ -107,11 +103,11 @@ export default {
columns
:
[
{
title
:
"活动日期"
,
slot
:
"a
ctivit
y_date"
slot
:
"a
ppl
y_date"
},
{
title
:
"打卡状态"
,
key
:
"status_name
"
slot
:
"status
"
},
{
title
:
"支付金额(真我币)"
,
...
...
@@ -119,11 +115,11 @@ export default {
},
{
title
:
"报名时间"
,
slot
:
"apply
T
ime"
slot
:
"apply
_t
ime"
},
{
title
:
"打卡时间"
,
slot
:
"clock
T
ime"
slot
:
"clock
_t
ime"
},
{
title
:
"本场瓜分(真我币)"
,
...
...
@@ -167,6 +163,9 @@ export default {
this
.
data
=
res
.
data
;
});
},
goDetail
(
row
)
{
this
.
$router
.
push
({
path
:
"/clockEarly/detailZaoqi"
,
query
:
{
uuid
:
row
.
uuid
}
});
},
search
()
{
let
params
=
{
uuid
:
this
.
row
.
user_uuid
,
...
...
src/view/clockEarly/detailZaoqi.vue
View file @
cb8430d3
...
...
@@ -4,31 +4,26 @@
<p
slot=
"title"
>
基础信息
</p>
<Row>
<Col
span=
"8"
>
头像:
<Avatar
:src=
"row.default_avatar"
/></Col>
<Col
span=
"8"
>
姓名:
{{
row
.
user_name
}}
</Col>
<Col
span=
"8"
>
打卡时间:
{{
row
.
sign_in_num
}}
</Col>
<Col
span=
"8"
>
姓名:
{{
row
.
user_name
}}
</Col>
<Col
span=
"8"
>
打卡时间:
{{
row
.
sign_in_num
}}
</Col>
</Row>
<Row>
<Col
span=
"8"
>
获得收益(真我币):
<Avatar
:src=
"row.default_avatar"
/></Col>
<Row
style=
"margin-top:10px"
>
<Col
span=
"8"
>
获得收益(真我币):
<Avatar
:src=
"row.default_avatar"
/></Col>
<Col
span=
"8"
>
图片:
<Avatar
:src=
"row.default_avatar"
/></Col>
<Col
span=
"8"
>
点赞人数:
{{
row
.
sign_in_num
}}
</Col>
<Col
span=
"8"
>
点赞人数:
{{
row
.
sign_in_num
}}
</Col>
</Row>
<Row
>
<Row
style=
"margin-top:10px"
>
<Col
span=
"8"
>
审核账号:
<Avatar
:src=
"row.default_avatar"
/></Col>
<Col
span=
"8"
>
打赏金额:
{{
row
.
expense_amount
}}
</Col>
<Col
span=
"8"
>
评论:
{{
row
.
sign_in_num
}}
</Col>
<Col
span=
"8"
>
打赏金额:
{{
row
.
expense_amount
}}
</Col>
<Col
span=
"8"
>
评论:
{{
row
.
sign_in_num
}}
</Col>
</Row>
</Card>
<div
class=
"pc-main"
>
<Card
dis-hover
:padding=
"30"
>
<p
slot=
"title"
>
参与用户
</p>
<div
class=
"topSearch"
>
<div
class=
"left"
>
用户搜索:
<Input
style=
"width:200px"
enter-button
placeholder=
"请输入"
/>
<Button
type=
"primary"
>
查 询
</Button>
</div>
</div>
<p
slot=
"title"
>
点赞用户
</p>
<Table
:loading=
"$store.state.app.isLoading"
border
...
...
@@ -36,10 +31,18 @@
:columns=
"columns"
:data=
"data"
>
<template
slot-scope=
"
{ row }" slot="create_time">
{{
row
.
create_time
|
format
}}
</
template
>
<
template
slot-scope=
"{ row }"
slot=
"action"
>
<a
@
click=
"edit(row)"
>
编辑
</a>
</
template
>
</Table>
<Pager
class=
"margin-top-10"
:config=
"config"
@
on-change=
"handlePager"
></Pager>
</Card>
</div>
<div
class=
"btn"
>
...
...
@@ -49,11 +52,14 @@
</template>
<
script
>
import
{
userDe
}
from
"@/api/clock/activityClocks"
;
import
{
userDe
,
queryLikeList
}
from
"@/api/clock/activityClocks"
;
import
{
formatDate
}
from
"@/libs/util"
;
import
Pager
from
"@/view/common/Pager.vue"
;
export
default
{
name
:
"categories"
,
components
:
{},
components
:
{
Pager
},
filters
:
{
format
(
value
)
{
return
formatDate
(
value
);
...
...
@@ -62,56 +68,45 @@ export default {
data
()
{
return
{
tab
:
"1"
,
pageIndex
:
1
,
pageSize
:
10
,
row
:
{},
data
:
[],
columns
:
[
{
title
:
"用户ID"
,
key
:
"created_at"
},
{
title
:
"头像"
,
slot
:
"name"
},
{
title
:
"姓名"
,
slot
:
"title"
title
:
"用户名称"
,
key
:
"nick_name"
},
{
title
:
"
手机号
"
,
slot
:
"name
"
title
:
"
点赞类型
"
,
key
:
"like_text
"
},
{
title
:
"报名时间"
,
slot
:
"title"
},
{
title
:
"打开时间"
,
slot
:
"title"
},
{
title
:
"获得真我币"
,
slot
:
"name"
title
:
"点赞时间"
,
slot
:
"create_time"
}
]
};
},
methods
:
{
handlePager
(
pager
)
{
this
.
pageIndex
=
pager
.
current
;
this
.
pageSize
=
pager
.
size
;
this
.
search
();
},
search
()
{
let
params
=
{
status
:
this
.
status
,
startDate
:
this
.
date
[
0
],
endDate
:
this
.
date
[
1
],
queryLikeList
({
objectType
:
1
,
pageIndex
:
this
.
pageIndex
,
pageSize
:
this
.
pageSize
};
userDe
(
params
).
then
(
res
=>
{
this
.
config
.
total
=
res
.
total
;
this
.
row
=
res
.
data
;
pageSize
:
this
.
pageSize
,
uuid
:
this
.
$route
.
query
.
uuid
}).
then
(
res
=>
{
this
.
data
=
res
.
data
;
});
}
,
}
},
mounted
()
{
this
.
search
();
userDe
(
this
.
$route
.
query
.
uuid
).
then
(
res
=>
{
this
.
row
=
res
.
data
;
});
...
...
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