Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sensorConsult
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
zhanglw
sensorConsult
Commits
f0b2effe
Commit
f0b2effe
authored
Sep 01, 2023
by
zhanglw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优质供应商搜素
parent
0f88cd3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
20 deletions
+5
-20
index.vue
src/views/homepage/supplier/index.vue
+5
-20
No files found.
src/views/homepage/supplier/index.vue
View file @
f0b2effe
...
...
@@ -52,19 +52,10 @@
</span>
</div>
</el-col>
<el-col
:span=
"2"
>
<div
class=
"search-item"
:class=
"query.type==='time'?'active':''"
>
<span
class=
"touch label"
@
click=
"setQuertType('time')"
>
上架时间
</span>
<span
v-if=
"query.type==='time'"
>
<i
v-if=
"query.sort"
class=
"el-icon-sort-up touch"
/>
<i
v-else
class=
"el-icon-sort-down touch"
/>
</span>
</div>
</el-col>
<el-col
:span=
"18"
>
<el-col
:span=
"20"
>
<div
class=
"search-item"
>
<span>
产品价格区间
</span>
<div
style=
"position: absolute;top: 15px;left:
35
%;"
>
<div
style=
"position: absolute;top: 15px;left:
28
%;"
>
<el-input
v-model=
"query.minPrice"
placeholder=
"请输入价格(元)"
clearable
style=
"width: 140px"
/>
~
<el-input
v-model=
"query.maxPrice"
placeholder=
"请输入价格(元)"
clearable
style=
"width: 140px"
/>
...
...
@@ -129,7 +120,6 @@
</div>
<div
v-else
style=
"width:240px;height:278px;"
/>
</div>
<div
style=
"padding: 15px 50px;text-align: center"
><span
v-show=
"page*pageSize
<total
"
class=
"more touch"
title=
"点击查看更多..."
@
click=
"moreTo('supplier')"
>
更多展开
<i
class=
"el-icon-arrow-down"
/></span></div>
<div
class=
"pagination"
>
<!--
<span
style=
"font-size: 14px; color: #666; margin-right: 8px"
>
共
{{
total
}}
条记录
</span>
-->
<el-pagination
...
...
@@ -217,13 +207,6 @@ export default {
this
.
total
=
res
.
data
.
suppliersList
.
total
})
},
// 点击更多
moreTo
(
type
)
{
if
(
type
===
'
supplier
'
)
{
this
.
pageSize
+=
4
this
.
search
()
}
},
keywordClick
(
item
,
type
)
{
this
.
query
.
keyword
=
item
.
name
this
.
search
()
...
...
@@ -235,6 +218,8 @@ export default {
this
.
query
.
type
=
type
this
.
query
.
sort
=
false
}
this
.
page
=
1
this
.
search
()
},
// 点击询价
inquiry
(
item
,
type
)
{
...
...
@@ -266,7 +251,7 @@ export default {
this
.
loadData
()
},
loadData
()
{
this
.
search
()
},
goTop
()
{
document
.
body
.
scrollTop
=
0
...
...
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