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