Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vue-ssr
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
lixy
vue-ssr
Commits
06714c12
Commit
06714c12
authored
Sep 20, 2019
by
lixy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
车型搜索结果
parent
9db866f5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
11 deletions
+16
-11
all.vue
pages/findList/all.vue
+1
-1
findVehicle.vue
pages/findList/findVehicle.vue
+15
-10
No files found.
pages/findList/all.vue
View file @
06714c12
...
...
@@ -10,7 +10,7 @@
<ul
class=
"v-ul clearfix"
>
<li
v-for=
"menu in findList"
:key=
"menu.id"
class=
"v-li"
>
<nuxt-link
:to=
"menu.link"
style=
"color:#000"
:class=
"menu.id== 1?'active':''"
>
{{
menu
.
name
}}
(
{{
menu
.
number
}}
)
</nuxt-link>
<nuxt-link
:to=
"menu.link
+ '?keywords=' + listQuery.keyword
"
style=
"color:#000"
:class=
"menu.id== 1?'active':''"
>
{{
menu
.
name
}}
(
{{
menu
.
number
}}
)
</nuxt-link>
</li>
</ul>
<div>
...
...
pages/findList/findVehicle.vue
View file @
06714c12
<
template
>
<div
class=
"container"
style=
"background: #fff;"
>
<menu-modal></menu-modal>
<menu-modal
v-on:childByValue =
"childByValue"
></menu-modal>
<div
class=
"main-container"
>
<div
class=
"wrap"
style=
"background:#fff"
>
...
...
@@ -96,16 +96,21 @@ export default {
findMenu
},
created
()
{
this
.
listQuery
.
keyword
=
this
.
$route
.
query
.
keywords
;
this
.
getAll
();
},
methods
:
{
childByValue
(
e
){
this
.
listQuery
.
keyword
=
e
;
this
.
getAll
();
},
async
getAll
()
{
let
{
data
:
{
data
}
}
=
await
axios
.
get
(
`/api/uccn/app/unauth/search?type=
${
this
.
listQuery
.
type
}
&keyword=
${
this
.
listQuery
.
keyword
}
&page=
${
this
.
listQuery
.
page
}
&limit=
${
this
.
listQuery
.
limit
}
`
);
console
.
log
(
data
);
// 车型
data
.
data
.
map
(
function
(
item
)
{
...
...
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