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
9bd7fb9a
Commit
9bd7fb9a
authored
Apr 27, 2021
by
baihong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
签到活动
parent
cb8430d3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
115 additions
and
55 deletions
+115
-55
detail.vue
src/view/signIn/detail.vue
+113
-52
userList.vue.vue
src/view/signIn/userList.vue.vue
+2
-3
No files found.
src/view/signIn/detail.vue
View file @
9bd7fb9a
<
template
>
<
template
>
<div
class=
"detail"
>
<div
class=
"detail"
>
<Card
dis-hover
:padding=
'30'
>
<Card
dis-hover
:padding=
"30"
>
<p
slot=
"title"
>
基础信息
</p>
<p
slot=
"title"
>
基础信息
</p>
<Row>
<Row>
<Col
span=
"8"
>
用户ID:
123123123
</Col>
<Col
span=
"8"
>
用户ID:
{{
row
.
user_uuid
}}
</Col>
<Col
span=
"8"
>
头像:
<Avatar
icon=
"ios-person
"
/></Col>
<Col
span=
"8"
>
头像:
<Avatar
:src=
"row.default_avatar
"
/></Col>
<Col
span=
"8"
>
姓名:
阿斯顿马丁
</Col>
<Col
span=
"8"
>
姓名:
{{
row
.
nick_name
}}
</Col>
</Row>
</Row>
<Row
style=
"margin-top: 40px;"
>
<Row
style=
"margin-top: 40px;"
>
<Col
span=
"8"
>
手机号:17762662211
</Col>
<Col
span=
"8"
>
手机号:
{{
row
.
phone
}}
</Col>
<Col
span=
"8"
>
真我币:1233123
</Col>
<Col
span=
"8"
>
真我币:
{{
row
.
sign_in_score
}}
</Col>
<Col
span=
"8"
>
签到次数:365
</Col>
<Col
span=
"8"
>
签到次数:
{{
row
.
user_sign_in_vo
&&
row
.
user_sign_in_vo
.
cumulative_sign_in
}}
</Col
>
</Row>
</Row>
</Card>
</Card>
<div
class=
"pc-main"
>
<div
class=
"pc-main"
>
...
@@ -19,37 +21,27 @@
...
@@ -19,37 +21,27 @@
<TabPane
label=
"优惠卷"
name=
"2"
></TabPane>
<TabPane
label=
"优惠卷"
name=
"2"
></TabPane>
</Tabs>
</Tabs>
<Table
<Table
v-if=
"tab===
'1'"
v-if=
"tab ===
'1'"
:loading=
"$store.state.app.isLoading"
:loading=
"$store.state.app.isLoading"
border
border
ref=
"selection"
ref=
"selection"
: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
...
@@ -64,6 +56,11 @@
...
@@ -64,6 +56,11 @@
<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>
</div>
</div>
<div
class=
"btn"
>
<div
class=
"btn"
>
<Button
type=
"primary"
@
click=
"$router.go(-1)"
>
返回
</Button>
<Button
type=
"primary"
@
click=
"$router.go(-1)"
>
返回
</Button>
...
@@ -72,55 +69,119 @@
...
@@ -72,55 +69,119 @@
</template>
</template>
<
script
>
<
script
>
import
{
getScenes
,
delScenes
,
editScenes
}
from
'@/api/scenes'
import
{
activityClockRecords
,
activityawardrecord
}
from
"@/api/clock/activityClocks"
;
import
{
formatDate
}
from
"@/libs/util"
;
import
Pager
from
"@/view/common/Pager.vue"
;
export
default
{
export
default
{
name
:
'categories'
,
name
:
"categories"
,
components
:
{},
components
:
{
data
()
{
Pager
},
filters
:
{
format
(
value
)
{
return
formatDate
(
value
);
}
},
data
()
{
return
{
return
{
tab
:
'1'
,
tab
:
"1"
,
config
:
{
total
:
0
,
size
:
10
,
current
:
1
},
pageIndex
:
1
,
pageSize
:
10
,
row
:
this
.
$route
.
query
.
row
,
data
:
[],
data
:
[],
yhqcolumns
:
[
yhqcolumns
:
[
{
{
title
:
'优惠卷名称'
,
title
:
"优惠卷名称"
,
key
:
'created_at'
key
:
"award_name"
},
},
{
{
title
:
'获奖时间'
,
title
:
"获奖时间"
,
slot
:
'name'
slot
:
"create_time"
}
}
],
],
columns
:
[
columns
:
[
{
{
title
:
'签到日期'
,
title
:
"活动日期"
,
key
:
'created_at'
slot
:
"apply_date"
},
{
title
:
"打卡状态"
,
slot
:
"status"
},
},
{
{
title
:
'获得收益'
,
title
:
"支付金额(真我币)"
,
slot
:
'name'
key
:
"pay_amount"
},
},
{
{
title
:
'签到时间'
,
title
:
"报名时间"
,
slot
:
'title'
slot
:
"apply_time"
},
},
{
{
title
:
'分享收益'
,
title
:
"打卡时间"
,
key
:
'created_at'
slot
:
"clock_time"
},
},
{
{
title
:
'总收益'
,
title
:
"本场瓜分(真我币)"
,
slot
:
'enable'
key
:
"expense_amount"
},
},
{
{
title
:
'操作'
,
title
:
"操作"
,
slot
:
'action'
slot
:
"action"
}
}
]
]
};
},
watch
:
{
tab
:
{
handler
:
function
(
val
)
{
if
(
val
===
"2"
)
{
this
.
getyhq
()
}
else
{
this
.
search
()
}
}
},
},
methods
:
{},
immediate
:
true
mounted
()
{}
}
}
},
methods
:
{
handlePager
(
pager
)
{
this
.
pageIndex
=
pager
.
current
;
this
.
pageSize
=
pager
.
size
;
this
.
search
();
},
getyhq
(){
let
params
=
{
activity_type
:
2
,
award_type
:
1
,
user_uuid
:
this
.
row
.
user_uuid
,
page_index
:
this
.
pageIndex
,
page_size
:
this
.
pageSize
};
activityawardrecord
(
params
).
then
(
res
=>
{
this
.
config
.
total
=
res
.
total
;
this
.
data
=
res
.
data
;
});
},
goDetail
(
row
)
{
this
.
$router
.
push
({
path
:
"/clockEarly/detailZaoqi"
,
query
:
{
uuid
:
row
.
uuid
}
});
},
search
()
{
let
params
=
{
uuid
:
this
.
row
.
user_uuid
,
pageIndex
:
this
.
pageIndex
,
pageSize
:
this
.
pageSize
};
activityClockRecords
(
params
).
then
(
res
=>
{
this
.
config
.
total
=
res
.
total
;
this
.
data
=
res
.
data
;
});
}
},
mounted
()
{
this
.
search
()
}
};
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
...
@@ -136,5 +197,5 @@ export default {
...
@@ -136,5 +197,5 @@ export default {
background-color
:
#fff
;
background-color
:
#fff
;
bottom
:
10px
;
bottom
:
10px
;
padding
:
10px
30px
;
padding
:
10px
30px
;
}
}
</
style
>
</
style
>
src/view/signIn/userList.vue.vue
View file @
9bd7fb9a
...
@@ -91,7 +91,6 @@ export default {
...
@@ -91,7 +91,6 @@ export default {
let
params
=
{
let
params
=
{
search
:
this
.
keyword
,
search
:
this
.
keyword
,
activity_type
:
2
,
activity_type
:
2
,
user_uuid
:
sessionStorage
.
getItem
(
'admin_uuid'
),
page_index
:
this
.
pageIndex
,
page_index
:
this
.
pageIndex
,
page_size
:
this
.
pageSize
page_size
:
this
.
pageSize
};
};
...
@@ -100,8 +99,8 @@ export default {
...
@@ -100,8 +99,8 @@ export default {
this
.
data
=
res
.
data
;
this
.
data
=
res
.
data
;
});
});
},
},
goDetail
()
{
goDetail
(
row
)
{
this
.
$router
.
push
({
path
:
"/signIn/detail"
,
query
:
{
id
:
"new"
}
});
this
.
$router
.
push
({
path
:
"/signIn/detail"
,
query
:
{
row
:
row
}
});
}
}
},
},
mounted
()
{
mounted
()
{
...
...
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