Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
community_vote
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hanfeng zhang
community_vote
Commits
ab098256
Commit
ab098256
authored
Jun 23, 2021
by
xhx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
界面调整
parent
9e5cc3f7
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
99 additions
and
80 deletions
+99
-80
App.vue
src/App.vue
+1
-1
Pagination.vue
src/components/common/Pagination.vue
+1
-1
Attend.vue
src/components/mine/Attend.vue
+11
-4
TicketRecord.vue
src/components/mine/TicketRecord.vue
+5
-5
Filter.vue
src/components/square/Filter.vue
+7
-3
style.css
src/style.css
+8
-0
Square.vue
src/views/Square.vue
+12
-5
MyAttend.vue
src/views/browser/MyAttend.vue
+1
-1
PersonVote.vue
src/views/browser/PersonVote.vue
+1
-1
ProjectDetails.vue
src/views/browser/ProjectDetails.vue
+14
-8
VoteHash.vue
src/views/browser/VoteHash.vue
+7
-7
index.vue
src/views/browser/index.vue
+2
-18
MineEdit.vue
src/views/mine/MineEdit.vue
+1
-1
MyProject.vue
src/views/mine/MyProject.vue
+1
-1
SquareDetails.vue
src/views/square/SquareDetails.vue
+1
-1
SquareVote.vue
src/views/square/SquareVote.vue
+26
-23
No files found.
src/App.vue
View file @
ab098256
<
template
>
<div
id=
"app"
>
<keep-alive
name=
"Min
e"
>
<keep-alive
include=
"MinePag
e"
>
<router-view
v-if=
"cabilityChecked"
></router-view>
<div
v-else
>
loading
</div>
</keep-alive>
...
...
src/components/common/Pagination.vue
View file @
ab098256
<
template
>
<div
class=
"w-full flex items-center justify-center mt-6"
>
<div
class=
"w-full flex items-center justify-center mt-6
mb-6
"
>
<div
class=
"page-btn text-center text-xs rounded-l-lg flex items-center justify-center border border-solid border-app-blue-3"
@
click=
"goPage(1)"
>
首页
</div>
...
...
src/components/mine/Attend.vue
View file @
ab098256
<
template
>
<div
class=
"content px-6 mt-4 mb-16 overflow-x-hidden"
>
<template
v-if=
"lists.length"
>
<
router-link
<
div
v-for=
"item in communityList"
:key=
"item.id"
class=
"w-full inline-block mb-3 text-white"
:to=
"
{ path: tab === 1 ? '/Mine/MyCommunity' : '/Mine/AttendCommunity', query: {}}
">
@
click=
"goCommunity
"
>
<card-two></card-two>
</
router-link
>
</
div
>
<div
v-for=
"item in projectList"
:key=
"item.id"
...
...
@@ -49,13 +49,20 @@ export default Vue.extend({
}
},
methods
:
{
goCommunity
()
{
if
(
this
.
tab
===
1
)
{
this
.
$router
.
push
({
path
:
'/Mine/MyCommunity'
})
}
else
{
this
.
$router
.
push
({
path
:
'/Mine/AttendCommunity'
})
}
},
goProject
()
{
if
(
this
.
tab
===
1
)
{
this
.
$router
.
push
({
path
:
'/Mine/MyProject'
})
}
else
{
this
.
$router
.
push
({
path
:
'/Mine/AttendProject'
})
}
}
}
,
},
watch
:
{
tab
(
n
)
{
...
...
src/components/mine/TicketRecord.vue
View file @
ab098256
...
...
@@ -12,12 +12,12 @@
<span
class=
"text-sm"
>
投票数
</span>
<span
class=
"tet-xs"
>
1200票
</span>
</div>
<div
class=
"px-1 text-xs
leading-10
flex justify-between items-center"
>
<div
class=
"px-1 text-xs
py-4
flex justify-between items-center"
>
<span>
HASH
</span>
<
span
class=
"flex items-cen
ter"
@
click=
"goHash"
>
l1z9e1beb62e754ff3704d8ba626d6…1c5a0
<app-icon
class=
"ml-
1
"
customize
size=
"12px"
type=
'icon-arrow-right-copy-copy'
></app-icon>
</
span
>
<
div
class=
"flex items-center tracking-tigh
ter"
@
click=
"goHash"
>
<span>
l1z9e1beb62e754ff3704d8ba626d6…1c5a0
</span>
<app-icon
class=
"ml-
0
"
customize
size=
"12px"
type=
'icon-arrow-right-copy-copy'
></app-icon>
</
div
>
</div>
</div>
</div>
...
...
src/components/square/Filter.vue
View file @
ab098256
<
template
>
<van-popup
v-model=
"isShow"
position=
"right"
:style=
"
{ width: '70%', height: '100
vh'}
">
<div
class=
"relative w-full h-
screen
overflow-hidden"
>
<van-popup
v-model=
"isShow"
position=
"right"
:style=
"
{ width: '70%', height: '100
%'}" @click-overlay="close
">
<div
class=
"relative w-full h-
full
overflow-hidden"
>
<div
class=
"content px-5 pt-10 overflow-x-hidden"
>
<h4
class=
"font-bold text-3xl mb-9"
>
筛选
</h4>
<div>
...
...
@@ -84,6 +84,9 @@ export default Vue.extend({
},
submit
()
{
this
.
$emit
(
'filterList'
,
{
status
:
this
.
status
,
type
:
this
.
isActive
})
},
close
()
{
this
.
$emit
(
'cancel'
,
true
)
}
},
watch
:
{
...
...
@@ -106,6 +109,6 @@ export default Vue.extend({
color
:
#fff
}
.content
{
height
:
calc
(
100
vh
-
40px
);
height
:
calc
(
100
%
-
40px
);
}
</
style
>
\ No newline at end of file
src/style.css
View file @
ab098256
...
...
@@ -19,6 +19,13 @@ body{
width
:
100%
;
}
a
:visited
,
a
:active
,
a
:hover
{
color
:
white
;
}
button
:active
,
button
:visited
{
outline
:
none
;
}
.vdpComponent
{
...
...
@@ -66,6 +73,7 @@ body{
.page-btn
{
flex-grow
:
0
;
flex-shrink
:
0
;
box-sizing
:
border-box
;
min-width
:
36px
;
height
:
36px
;
...
...
src/views/Square.vue
View file @
ab098256
<
template
>
<div
class=
"flex flex-col"
>
<div
class=
" h-260px bg-squareBanner bg-center bg-cover bg-transparent bg-opacity-10 relative"
ref=
"topBox"
>
<div
class=
"flex flex-col justify-center items-center py-12"
ref=
"textBox"
>
<div
class=
"flex flex-col justify-center items-center py-12
pointer-events-none
"
ref=
"textBox"
>
<img
src=
"@/assets/squareBanner-text.png"
alt=
""
>
</div>
<div
class=
'w-full absolute bottom-3 '
>
...
...
@@ -16,12 +16,12 @@
<div
@
click=
"doFilter"
><app-icon
type=
"icon-shaixuan"
customize
color=
' text-white'
></app-icon></div>
</div>
<div
class=
"list w-full"
@
scroll=
"scrollStart"
ref=
"botBox"
>
<
router-link
class=
"text-white"
to=
"/Square/Square
Vote"
>
<
div
class=
"text-white"
@
click=
"go
Vote"
>
<app-card
class=
" mb-2"
></app-card>
</
router-link
>
<
router-link
class=
"text-white"
to=
"/Square/Square
Details"
>
</
div
>
<
div
class=
"text-white"
@
click=
"go
Details"
>
<app-card
class=
" mb-2"
></app-card>
</
router-link
>
</
div
>
<app-card
class=
" mb-2"
></app-card>
<app-card
class=
" mb-2"
></app-card>
<app-card
class=
" mb-2"
></app-card>
...
...
@@ -68,6 +68,7 @@ export default Vue.extend({
methods
:{
doFilter
(){
console
.
log
(
123
);
console
.
log
(
this
.
showfilter
)
this
.
showfilter
=
true
},
search
()
{
...
...
@@ -89,6 +90,12 @@ export default Vue.extend({
},
showhidden
(
v
:
boolean
)
{
this
.
showfilter
=
!
v
},
goVote
()
{
this
.
$router
.
push
({
path
:
'/Square/SquareVote'
})
},
goDetails
()
{
this
.
$router
.
push
({
path
:
'/Square/SquareDetails'
})
}
}
...
...
src/views/browser/MyAttend.vue
View file @
ab098256
...
...
@@ -6,7 +6,7 @@
<div
class=
"flex items-center justify-between leading-9"
>
<div
class=
"text-app-white"
>
哈希
</div>
<div
class=
"flex items-center justify-between text-xs"
>
<span
class=
"inline-block mr-2 tracking-tight"
>
1z9e1beb62e754ff3704d8ba626d6e
29f761a
1c5a0
</span>
<span
class=
"inline-block mr-2 tracking-tight"
>
1z9e1beb62e754ff3704d8ba626d6e
...
1c5a0
</span>
<div
v-clipboard:copy=
"'hahahhahahahhaid'"
v-clipboard:success=
"onCopy"
...
...
src/views/browser/PersonVote.vue
View file @
ab098256
...
...
@@ -5,7 +5,7 @@
<div
class=
"mx-4 py-4 border-app-blue-3 border border-solid rounded-lg bg-app-blue-4"
>
<div
class=
"px-4 pb-4 border-b border-solid border-app-blue-3"
>
<div
class=
"flex items-center justify-between mb-0 text-xs"
>
<span
class=
"inline-block mr-2 tracking-tight
"
>
ID:1z9e1beb62e754ff3704d8ba626d6e29f761a
1c5a0
</span>
<span
class=
"inline-block mr-2 tracking-tight
er"
>
ID:1z9e1beb62e754ff3704d8ba626...
1c5a0
</span>
<div
v-clipboard:copy=
"'hahahhahahahhaid'"
v-clipboard:success=
"onCopy"
...
...
src/views/browser/ProjectDetails.vue
View file @
ab098256
...
...
@@ -8,17 +8,23 @@
<p
class=
"mb-0 px-4 pb-3 text-xs leading-normal border-0 border-b border-app-blue-1 border-solid"
>
内容介绍内容介绍内容介绍内容介绍内容介绍内容介绍内容介绍内容介绍内容介绍内容介绍内容介绍内容介绍内容介绍内容介绍内容介绍
</p>
</div>
<div
class=
"px-4 py-4"
>
<div
class=
"flex items-center justify-between mb-0 text-xs"
>
<span
class=
"inline-block mr-2 tracking-tight"
>
ID:1z9e1beb62e754ff3704d8ba626d6e29f761a1c5a0
</span>
<div
v-clipboard:copy=
"'hahahhahahahhaid'"
v-clipboard:success=
"onCopy"
v-clipboard:error=
"onError"
>
<app-icon
customize
size=
"16px"
color=
"#FFBB00"
type=
'icon-fuzhi'
></app-icon>
<div
class=
"flex items-center justify-between mb-0 text-xs text-app-white"
>
<div
class=
"flex-shrink-0"
>
地址
</div>
<div
class=
"flex items-center"
>
<span
class=
"inline-block mr-2 tracking-tighter"
>
1z9e1beb62e754ff3704d8ba...c5a0
</span>
<div
v-clipboard:copy=
"'hahahhahahahhaid'"
v-clipboard:success=
"onCopy"
v-clipboard:error=
"onError"
>
<app-icon
customize
size=
"16px"
color=
"#FFBB00"
type=
'icon-fuzhi'
></app-icon>
</div>
</div>
</div>
</div>
<p
class=
"mb-0 px-4
opacity-60
text-xs flex items-center justify-between"
>
<p
class=
"mb-0 px-4
text-app-white
text-xs flex items-center justify-between"
>
<span>
当前总票数
</span>
<span>
123464654票
</span>
</p>
...
...
src/views/browser/VoteHash.vue
View file @
ab098256
...
...
@@ -2,11 +2,11 @@
<div>
<child-view>
<div
class=
"sub-page"
>
<div
class=
"mx-4 mb-5 py-3 px-2 text-xs border-app-blue-3 border border-solid rounded-lg bg-app-blue-4"
>
<div
class=
"mx-4 mb-5 py-3 px-2 text-xs border-app-blue-3 border border-solid rounded-lg bg-app-blue-4
text-app-white
"
>
<div
class=
"flex items-center justify-between leading-9"
>
<div
class=
"
text-app-white
"
>
哈希
</div>
<div
class=
"
flex-shrink-0
"
>
哈希
</div>
<div
class=
"flex items-center justify-between text-xs"
>
<span
class=
"inline-block mr-2 tracking-tight
"
>
1z9e1beb62e754ff3704d8ba626d6e29f761a1
c5a0
</span>
<span
class=
"inline-block mr-2 tracking-tight
er"
>
1z9e1beb62e754ff3704d8ba626d...
c5a0
</span>
<div
v-clipboard:copy=
"'hahahhahahahhaid'"
v-clipboard:success=
"onCopy"
...
...
@@ -16,19 +16,19 @@
</div>
</div>
<div
class=
"flex items-center justify-between leading-9"
>
<div
class=
"
text-app-white
"
>
区块高度
</div>
<div
class=
""
>
区块高度
</div>
<div>
88925
</div>
</div>
<div
class=
"flex items-center justify-between leading-9"
>
<div
class=
"
text-app-white
"
>
投票数
</div>
<div
class=
""
>
投票数
</div>
<div>
88925票
</div>
</div>
<div
class=
"flex items-center justify-between leading-9"
>
<div
class=
"
text-app-white
"
>
投票时间
</div>
<div
class=
""
>
投票时间
</div>
<div>
88925
</div>
</div>
<div
class=
"flex items-center justify-between leading-9"
>
<div
class=
"
text-app-white
"
>
手续费
</div>
<div
class=
""
>
手续费
</div>
<div>
88925BTY
</div>
</div>
</div>
...
...
src/views/browser/index.vue
View file @
ab098256
...
...
@@ -6,7 +6,7 @@
<div
class=
"px-4 pb-4 border-0 border-b border-app-blue-3 border-solid"
>
<p
class=
"text-sm mb-3"
>
社区名称
</p>
<div
class=
"flex items-center text-yellow-400 mb-0 text-xs justify-between"
>
<span
class=
"inline-block mr-2 tracking-tight
"
>
ID:1z9e1beb62e754ff3704d8ba626d6e29f761a1
c5a0
</span>
<span
class=
"inline-block mr-2 tracking-tight
er"
>
ID:1z9e1beb62e75465da5s4dd...
c5a0
</span>
<div
v-clipboard:copy=
"'hahahhahahahhaid'"
v-clipboard:success=
"onCopy"
...
...
@@ -42,22 +42,6 @@
<div>
<x-pagination
:currentPage=
"currentPage"
:totalPage=
"totalPage"
@
handleChange=
"handleChange"
/>
</div>
<!--
<div
class=
"w-full flex items-center justify-center mt-6"
>
<div
class=
"page-btn text-center text-xs rounded-l-lg flex items-center justify-center border border-solid border-app-blue-3"
@
click=
"goPage(1)"
>
首页
</div>
<van-pagination
class=
"mb-0"
v-model=
"currentPage"
:page-count=
"totalPage"
>
<template
#
prev-text
>
<van-icon
name=
"arrow-left"
/>
</
template
>
<
template
#
next-text
>
<van-icon
name=
"arrow"
/>
</
template
>
</van-pagination>
<div
class=
"page-btn text-center text-xs rounded-r-lg flex items-center justify-center border border-solid border-app-blue-3"
@
click=
"goPage(totalPage)"
>
尾页
</div>
</div>
-->
</div>
</div>
</child-view>
...
...
@@ -78,7 +62,7 @@ export default Vue.extend({
return
{
currentPage
:
5
,
lists
:
[
1
,
2
,
3
,
4
,
6
,
7
,
8
,
9
,
0
],
totalPage
:
10
totalPage
:
1
1
0
}
},
methods
:
{
...
...
src/views/mine/MineEdit.vue
View file @
ab098256
...
...
@@ -38,7 +38,7 @@ export default Vue.extend({
},
data
()
{
return
{
checked
:
tru
e
checked
:
fals
e
}
},
methods
:
{
...
...
src/views/mine/MyProject.vue
View file @
ab098256
...
...
@@ -31,7 +31,7 @@
</div>
<div
class=
"mt-3 px-3 flex items-center justify-between text-xs"
>
<div>
ID
</div>
<div
class=
"flex items-center"
@
click=
"goProject"
>
<div
class=
"flex items-center
tracking-tighter
"
@
click=
"goProject"
>
<span>
jshhhdjsdfkdsKHLHJ94859837…yiyh
</span>
<app-icon
customize
type=
'icon-arrow-right-copy-copy'
></app-icon>
</div>
...
...
src/views/square/SquareDetails.vue
View file @
ab098256
...
...
@@ -40,7 +40,7 @@
<div
class=
"mt-3 px-3 flex items-center justify-between text-xs"
>
<div>
ID
</div>
<div
class=
"flex items-center"
@
click=
"goProject"
>
<span>
jshhhdjsdfkdsKHLHJ94859837…yiyh
</span>
<span
class=
"tracking-tighter"
>
jshhhdjsdfkdsKHLHJ94859837…yiyh
</span>
<app-icon
customize
type=
'icon-arrow-right-copy-copy'
></app-icon>
</div>
</div>
...
...
src/views/square/SquareVote.vue
View file @
ab098256
...
...
@@ -5,7 +5,7 @@
<div
class=
"p-4 border-0 border-b border-app-blue-3 border-solid"
>
<community-card
/>
</div>
<div
class=
"p-4 border-0 border-b border-app-blue-3 border-solid"
:class=
"
{'
mb-40
': hide}">
<div
class=
"p-4 border-0 border-b border-app-blue-3 border-solid"
:class=
"
{'
pb-44
': hide}">
<div
v-for=
"(item, index) in lists"
:key=
"index"
...
...
@@ -75,30 +75,30 @@ export default Vue.extend({
selected
:
true
,
content
:
'选项卡-选修课-选修课-'
},
{
selected
:
false
,
content
:
'选项卡-选修课-选修课-'
},
//
{
//
selected: false,
//
content: '选项卡-选修课-选修课-'
//
},
{
selected
:
false
,
content
:
'选项卡-选修课-选修课-选项卡-选修课-选修课-选项卡-选修课-选修课-选项卡-选修课-选修课-选项卡-选修课-选修课-选项卡-选修课-选修课-选项卡-选修课-选修课-'
},
{
selected
:
false
,
content
:
'选项卡-选修课-选修课-'
},
{
selected
:
false
,
content
:
'选项卡-选修课-选修课-'
},
{
selected
:
false
,
content
:
'选项卡-选修课-选修课-'
},
{
selected
:
false
,
content
:
'选项卡-选修课-选修课-'
},
//
{
//
selected: false,
//
content: '选项卡-选修课-选修课-'
//
},
//
{
//
selected: false,
//
content: '选项卡-选修课-选修课-'
//
},
//
{
//
selected: false,
//
content: '选项卡-选修课-选修课-'
//
},
//
{
//
selected: false,
//
content: '选项卡-选修课-选修课-'
//
},
],
type1
:
true
,
voteNum
:
''
,
...
...
@@ -147,15 +147,18 @@ export default Vue.extend({
// 计算底部样式
// const height = document.body.clientHeight || document.documentElement.clientHeight
const
height
=
window
.
innerHeight
this
.
hide
=
false
console
.
log
(
height
)
console
.
log
(
box
.
scrollHeight
)
if
(
height
<
box
.
scrollHeight
)
{
if
(
height
+
50
<
box
.
scrollHeight
)
{
this
.
hide
=
true
}
else
{
this
.
hide
=
false
}
window
.
onresize
=
()
=>
{
if
(
height
<
box
.
scrollHeight
)
{
console
.
log
(
height
)
console
.
log
(
box
.
scrollHeight
)
if
(
height
+
50
<
box
.
scrollHeight
)
{
this
.
hide
=
true
}
else
{
this
.
hide
=
false
...
...
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