Commit 0f88cd3d authored by zhanglw's avatar zhanglw

优质供应商搜素

parent d3988e2f
ENV = 'development' ENV = 'development'
# 接口地址 # 接口地址
#VUE_APP_BASE_API = 'http://192.168.3.23:7001' VUE_APP_BASE_API = 'http://192.168.3.23:7001'
#VUE_APP_WS_API = 'ws://192.168.3.23:7001' VUE_APP_WS_API = 'ws://192.168.3.23:7001'
VUE_APP_BASE_API = 'http://60.217.78.224:7001' #VUE_APP_BASE_API = 'http://60.217.78.224:7001'
VUE_APP_WS_API = 'ws://60.217.78.224:7001' #VUE_APP_WS_API = 'ws://60.217.78.224:7001'
# 是否启用 babel-plugin-dynamic-import-node插件 # 是否启用 babel-plugin-dynamic-import-node插件
VUE_CLI_BABEL_TRANSPILE_MODULES = true VUE_CLI_BABEL_TRANSPILE_MODULES = true
...@@ -121,7 +121,7 @@ ...@@ -121,7 +121,7 @@
<div class="btn-o" style="width: 150px;border-radius: 10px;box-shadow: 0 1px 2px 0 rgba(0,0,0,0.2);font-size:20px;" @click="inquiry(item, 'product')">询 价</div> <div class="btn-o" style="width: 150px;border-radius: 10px;box-shadow: 0 1px 2px 0 rgba(0,0,0,0.2);font-size:20px;" @click="inquiry(item, 'product')">询 价</div>
</div> </div>
</div> </div>
<div style="padding: 15px 50px;text-align: center"><span v-show="page*pageSize<=total" class="more touch" title="点击查看更多..." @click="moreTo('product')">更多展开<i class="el-icon-arrow-down" /></span></div> <div style="padding: 15px 50px;text-align: center"><span v-show="page*pageSize<total" class="more touch" title="点击查看更多..." @click="moreTo('product')">更多展开<i class="el-icon-arrow-down" /></span></div>
</div> </div>
<!--解决方案展柜--> <!--解决方案展柜-->
<div v-show="projectList.length"> <div v-show="projectList.length">
......
...@@ -129,6 +129,7 @@ ...@@ -129,6 +129,7 @@
</div> </div>
<div v-else style="width:240px;height:278px;" /> <div v-else style="width:240px;height:278px;" />
</div> </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"> <div class="pagination">
<!-- <span style="font-size: 14px; color: #666; margin-right: 8px">{{ total }} 条记录</span>--> <!-- <span style="font-size: 14px; color: #666; margin-right: 8px">{{ total }} 条记录</span>-->
<el-pagination <el-pagination
...@@ -172,7 +173,7 @@ export default { ...@@ -172,7 +173,7 @@ export default {
defaultImgSystem: default_system, defaultImgSystem: default_system,
imgSrcStart: process.env.VUE_APP_BASE_API, imgSrcStart: process.env.VUE_APP_BASE_API,
page: 1, page: 1,
pageSize: 10, pageSize: 4,
total: 0, total: 0,
query: { query: {
keyword: '', keyword: '',
...@@ -208,14 +209,21 @@ export default { ...@@ -208,14 +209,21 @@ export default {
}, },
search() { search() {
HttpReq.webClientApi.supplierGetSupplierList({ HttpReq.webClientApi.supplierGetSupplierList({
// page: this.page - 1, page: this.page - 1,
// pageSize: this.pageSize, pageSize: this.pageSize,
...this.query ...this.query
}).then((res) => { }).then((res) => {
this.supplierList = res.data.suppliersList.data this.supplierList = res.data.suppliersList.data
this.total = res.data.suppliersList.total this.total = res.data.suppliersList.total
}) })
}, },
// 点击更多
moreTo(type) {
if (type === 'supplier') {
this.pageSize += 4
this.search()
}
},
keywordClick(item, type) { keywordClick(item, type) {
this.query.keyword = item.name this.query.keyword = item.name
this.search() this.search()
......
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