Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
study
Project
Project
Details
Activity
Releases
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
Damon
study
Commits
8bad8498
Commit
8bad8498
authored
Jul 26, 2021
by
Damon
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-v1.0.0' into test
parents
03b3a3c6
c7ec3b79
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
12 deletions
+17
-12
index.vue
src/pages/login/index.vue
+1
-0
detail.vue
src/pages/search/detail.vue
+8
-6
index.vue
src/pages/search/index.vue
+8
-6
No files found.
src/pages/login/index.vue
View file @
8bad8498
...
...
@@ -125,6 +125,7 @@ export default {
.bottom
{
width
:
600
rpx
;
height
:
104
rpx
;
line-height
:
104
rpx
;
border-radius
:
52
rpx
;
background-color
:
#2953ff
!important
;
}
...
...
src/pages/search/detail.vue
View file @
8bad8498
...
...
@@ -176,13 +176,15 @@ export default {
this
.
arrIndex
=
e
.
show
?
e
.
index
:
null
},
search
(
val
)
{
this
.
keyword
=
val
let
history
=
this
.
searchHistory
history
.
unshift
(
val
)
if
(
history
.
length
>
9
)
{
history
.
splice
(
9
,
1
)
if
(
val
){
this
.
keyword
=
val
let
history
=
this
.
searchHistory
history
.
unshift
(
val
)
if
(
history
.
length
>
9
)
{
history
.
splice
(
9
,
1
)
}
this
.
$u
.
vuex
(
'searchHistory'
,
history
)
}
this
.
$u
.
vuex
(
'searchHistory'
,
history
)
},
collection
(
item
)
{
const
action
=
item
.
collectionFlag
?
'removeCollection'
:
'joinCollection'
...
...
src/pages/search/index.vue
View file @
8bad8498
...
...
@@ -62,13 +62,15 @@ export default {
},
methods
:
{
search
(
val
)
{
this
.
keyword
=
val
this
.
history
.
unshift
(
val
)
if
(
this
.
history
.
length
>
9
){
this
.
history
.
splice
(
9
,
1
)
if
(
val
){
this
.
keyword
=
val
this
.
history
.
unshift
(
val
)
if
(
this
.
history
.
length
>
9
){
this
.
history
.
splice
(
9
,
1
)
}
this
.
$u
.
vuex
(
'searchHistory'
,
this
.
history
)
this
.
toSearchDetail
(
val
)
}
this
.
$u
.
vuex
(
'searchHistory'
,
this
.
history
)
this
.
toSearchDetail
(
val
)
},
toSearchDetail
(
keyword
)
{
this
.
$u
.
route
({
...
...
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