Commit f0b2effe authored by zhanglw's avatar zhanglw

优质供应商搜素

parent 0f88cd3d
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment