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
588a832e
Commit
588a832e
authored
Jun 15, 2021
by
hanfeng zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
3321
parent
1763af76
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
7 deletions
+19
-7
Icon.vue
src/components/common/Icon.vue
+4
-3
Banner.vue
src/components/home/Banner.vue
+1
-1
Square.vue
src/views/Square.vue
+14
-3
No files found.
src/components/common/Icon.vue
View file @
588a832e
<
template
>
<
template
>
<div>
<a-icon
v-if=
"!customize"
:type=
"type"
:class=
"color"
/>
<a-icon
v-if=
"!customize"
:type=
"type"
:class=
"color"
/>
<app-icon
v-else
:type=
"type"
class=
"color"
:style=
'
{fontSize:size,lineHeight:size,color:"#ffffff"}'>
</app-icon>
</div>
<app-icon
v-else
:type=
"type"
class=
"color"
:style=
'
{fontSize:size,lineHeight:size,color:color}'>
</app-icon>
</
template
>
</
template
>
...
...
src/components/home/Banner.vue
View file @
588a832e
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
<div
v-if=
"showBtn"
class=
"mt-3 w-full px-6"
>
<div
v-if=
"showBtn"
class=
"mt-3 w-full px-6"
>
<Input
class=
"xs-input"
placeholder=
"请输入社区名称/ID"
@
pressEnter=
"search"
>
<Input
class=
"xs-input"
placeholder=
"请输入社区名称/ID"
@
pressEnter=
"search"
>
<div
slot=
"addonAfter"
@
click=
"search"
>
<div
slot=
"addonAfter"
@
click=
"search"
>
<app-icon
customize
size=
"20px"
type=
'icon-sousuo'
></app-icon>
<app-icon
customize
size=
"20px"
color=
"#ffffff"
type=
'icon-sousuo'
></app-icon>
</div>
</div>
</Input>
</Input>
</div>
</div>
...
...
src/views/Square.vue
View file @
588a832e
...
@@ -3,8 +3,15 @@
...
@@ -3,8 +3,15 @@
<div
class=
" h-260px bg-demo bg-center bg-cover bg-transparent bg-opacity-10 relative"
ref=
"topBox"
>
<div
class=
" h-260px bg-demo bg-center bg-cover bg-transparent bg-opacity-10 relative"
ref=
"topBox"
>
头部图片/可以用背景图片
头部图片/可以用背景图片
<div
class=
'w-full absolute bottom-1 '
>
<div
class=
'w-full absolute bottom-1 '
>
<div
class=
' w-11/12 mx-auto h-10 bg-blue-900 text-white'
>
<div
class=
' w-11/12 mx-auto h-10 text-white'
>
搜索input
<div
class=
'search flex items-center'
>
<div
class=
'search-input'
>
<input
type=
"text"
class=
""
>
</div>
<div
class=
'search-icon self-center'
>
<app-icon
customize
size=
"18px"
color=
" text-white"
type=
'icon-sousuo'
></app-icon>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -53,13 +60,17 @@ export default Vue.extend({
...
@@ -53,13 +60,17 @@ export default Vue.extend({
components
:{
components
:{
'app-icon'
:()
=>
import
(
'@/components/common/Icon.vue'
),
'app-icon'
:()
=>
import
(
'@/components/common/Icon.vue'
),
'app-card'
:()
=>
import
(
'@/components/Card.vue'
),
'app-card'
:()
=>
import
(
'@/components/Card.vue'
),
'app-card2'
:()
=>
import
(
'@/components/Card_two.vue'
)
'app-card2'
:()
=>
import
(
'@/components/Card_two.vue'
),
},
},
methods
:{
methods
:{
doFilter
(){
doFilter
(){
console
.
log
(
123
);
console
.
log
(
123
);
},
},
search
()
{
console
.
log
(
'run'
)
},
scrollStart
(
e
:
any
){
scrollStart
(
e
:
any
){
let
poisition
=
e
.
target
.
scrollTop
let
poisition
=
e
.
target
.
scrollTop
this
.
scrollArr
.
push
(
poisition
)
this
.
scrollArr
.
push
(
poisition
)
...
...
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